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

Comparing rxvt-unicode/configure (file contents):
Revision 1.34 by root, Sun Aug 15 04:42:45 2004 UTC vs.
Revision 1.87 by root, Sat Jan 21 23:50:33 2006 UTC

237' 237'
238IFS=" $as_nl" 238IFS=" $as_nl"
239 239
240# CDPATH. 240# CDPATH.
241$as_unset CDPATH 241$as_unset CDPATH
242
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 242
401 243
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.
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 RM 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
1034 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
874 --enable-font-styles enable bold and italic support
1036 --enable-utmp enable utmp (utmpx) support 875 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 876 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp) 877 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps 878 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds 879 --enable-transparency enable transparent backgrounds
1041 --enable-tinting enable tinting of transparent bg 880 --enable-tinting enable tinting of transparent bg
1042 --enable-fading enable colors fading when off focus 881 --enable-fading enable colors fading when off focus
1043 --enable-menubar enable menubar
1044 --enable-rxvt-scroll enable rxvt style scrollbar 882 --enable-rxvt-scroll enable rxvt style scrollbar
1045 --enable-next-scroll enable NeXT style scrollbar 883 --enable-next-scroll enable NeXT style scrollbar
1046 --enable-xterm-scroll enable Xterm style scrollbar 884 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter
1047 --enable-plain-scroll enable plain style scrollbar 886 --enable-plain-scroll enable plain style scrollbar
1048 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1049 --enable-xim XIM (X Input Method) protocol support 887 --enable-xim XIM (X Input Method) protocol support
1050 --enable-ttygid enable tty setting to group named "tty" 888 --enable-ttygid enable tty setting to group named "tty"
1051 --disable-backspace-key disable handling of the backspace key 889 --disable-backspace-key disable handling of the backspace key
1052 --disable-delete-key disable handling of the delete key 890 --disable-delete-key disable handling of the delete key
1053 --disable-resources disable all resource checking 891 --disable-resources disable all resource checking
1054 --enable-xgetdefault enable resources via X instead of our small version
1055 --enable-8bitctrls enable 8 bit control sequences (not recommended) 892 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1056 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 893 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1057 --enable-strings enable some replacement system functions
1058 --disable-swapscreen disable swap screen support 894 --disable-swapscreen disable swap screen support
1059 --enable-iso14755 enable support for extended ISO 14755 modes 895 --enable-iso14755 enable support for extended ISO 14755 modes
1060 --enable-frills enable support for rarely used features 896 --enable-frills enable support for rarely used features
1061 --enable-linespace enable support for linespace
1062 --enable-24bit enable support for using 24bit visuals if available 897 --enable-24bit enable support for using 24bit visuals if available
1063 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 898 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1064 --enable-selectionscrolling enable scrolling during selections 899 --enable-selectionscrolling enable scrolling during selections
1065 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 900 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1066 --enable-slipwheeling enable slip wheel scrolling (requires previous) 901 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1067 --enable-dmalloc enable Gray Watson's malloc - for debugging use 902 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1068 --enable-dlmalloc enable Doug Lea's malloc - for production use 903 --enable-dlmalloc enable Doug Lea's malloc - for production use
1069 NOTE: enable only one malloc package 904 NOTE: enable only one malloc package
1070 --enable-smart-resize enable smart growth/shrink behaviour 905 --enable-smart-resize enable smart growth/shrink behaviour
1071 --enable-256-color enable 256-color support
1072 --enable-cursor-blink enable blinking cursor
1073 --enable-text-blink enable blinking text 906 --enable-text-blink enable blinking text
1074 --enable-pointer-blank enable pointer blank when typing or inactive pointer 907 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1075 908
1076Optional Packages: 909Optional Packages:
1077 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1078 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1079 --with-gnu-ld assume the C compiler uses GNU ld default=no
1080 --with-pic try to use only PIC/non-PIC objects default=use both
1081 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 912 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1082 --with-res-name=NAME use this as default resource name (default: urxvt) 913 --with-res-name=NAME use this as default resource name (default: urxvt)
1083 --with-res-class=CLASS use this as the resource class (default: URxvt) 914 --with-res-class=CLASS use this as the resource class (default: URxvt)
1084 --with-name=NAME set the basename for the installed binaries (default: urxvt) 915 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1085 --with-term=NAME set the terminal to NAME (default: rxvt) 916 --with-term=NAME set the terminal to NAME (default: rxvt)
1086 --with-terminfo=PATH set the path to the terminfo tree to PATH 917 --with-terminfo=PATH set the path to the terminfo tree to PATH
1538 1369
1539 1370
1540 1371
1541 1372
1542 1373
1374
1375 ac_config_headers="$ac_config_headers config.h:config.h.in"
1376
1377
1543ac_aux_dir= 1378ac_aux_dir=
1544for ac_dir in autoconf $srcdir/autoconf; do 1379for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then 1380 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir 1381 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c" 1382 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break 1383 break
1549 elif test -f $ac_dir/install.sh; then 1384 elif test -f $ac_dir/install.sh; then
1555 ac_install_sh="$ac_aux_dir/shtool install -c" 1390 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break 1391 break
1557 fi 1392 fi
1558done 1393done
1559if test -z "$ac_aux_dir"; then 1394if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1396echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; } 1397 { (exit 1); exit 1; }; }
1563fi 1398fi
1564ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1399ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1400ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1401ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567 1402
1568 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1403# Make sure we can run config.sub.
1404$ac_config_sub sun4 >/dev/null 2>&1 ||
1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1406echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1407 { (exit 1); exit 1; }; }
1408
1409echo "$as_me:$LINENO: checking build system type" >&5
1410echo $ECHO_N "checking build system type... $ECHO_C" >&6
1411if test "${ac_cv_build+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 ac_cv_build_alias=$build_alias
1415test -z "$ac_cv_build_alias" &&
1416 ac_cv_build_alias=`$ac_config_guess`
1417test -z "$ac_cv_build_alias" &&
1418 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1419echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1420 { (exit 1); exit 1; }; }
1421ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1423echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1425
1426fi
1427echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1428echo "${ECHO_T}$ac_cv_build" >&6
1429build=$ac_cv_build
1430build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433
1434
1435echo "$as_me:$LINENO: checking host system type" >&5
1436echo $ECHO_N "checking host system type... $ECHO_C" >&6
1437if test "${ac_cv_host+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439else
1440 ac_cv_host_alias=$host_alias
1441test -z "$ac_cv_host_alias" &&
1442 ac_cv_host_alias=$ac_cv_build_alias
1443ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1445echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1447
1448fi
1449echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1450echo "${ECHO_T}$ac_cv_host" >&6
1451host=$ac_cv_host
1452host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455
1569 1456
1570 1457
1571VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1458VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1572DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1459DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1573LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1574LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1575echo "" 1460echo ""
1576echo "configuring for rxvt $VERSION" 1461echo "configuring for rxvt $VERSION"
1577echo "" 1462echo ""
1463
1464orig_CXXFLAGS="$CXXFLAGS"
1578 1465
1579 1466
1580ac_ext=c 1467ac_ext=c
1581ac_cpp='$CPP $CPPFLAGS' 1468ac_cpp='$CPP $CPPFLAGS'
1582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 3050
3164test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3165 3052
3166test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3167 3054
3168for ac_prog in gawk mawk nawk awk
3169do
3170 # Extract the first word of "$ac_prog", so it can be a program name with args.
3171set dummy $ac_prog; ac_word=$2
3172echo "$as_me:$LINENO: checking for $ac_word" >&5
3173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174if test "${ac_cv_prog_AWK+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177 if test -n "$AWK"; then
3178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3179else
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187 ac_cv_prog_AWK="$ac_prog"
3188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3190 fi
3191done
3192done
3193 3055
3194fi
3195fi
3196AWK=$ac_cv_prog_AWK
3197if test -n "$AWK"; then
3198 echo "$as_me:$LINENO: result: $AWK" >&5
3199echo "${ECHO_T}$AWK" >&6
3200else
3201 echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
3203fi
3204
3205 test -n "$AWK" && break
3206done
3207
3208
3209ac_ext=c
3210ac_cpp='$CPP $CPPFLAGS'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214
3215
3216LINKER="$CXX"
3217if test x$GCC = xyes && test x$GXX = xyes; then
3218
3219echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3220echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3221if test "${ac_cv_lib_supcpp_main+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
3224 ac_check_lib_save_LIBS=$LIBS
3225LIBS="-lsupc++ $LIBS"
3226cat >conftest.$ac_ext <<_ACEOF
3227/* confdefs.h. */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h. */
3232
3233
3234int
3235main ()
3236{
3237main ();
3238 ;
3239 return 0;
3240}
3241_ACEOF
3242rm -f conftest.$ac_objext conftest$ac_exeext
3243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3244 (eval $ac_link) 2>conftest.er1
3245 ac_status=$?
3246 grep -v '^ *+' conftest.er1 >conftest.err
3247 rm -f conftest.er1
3248 cat conftest.err >&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } &&
3251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; } &&
3257 { ac_try='test -s conftest$ac_exeext'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; }; then
3263 ac_cv_lib_supcpp_main=yes
3264else
3265 echo "$as_me: failed program was:" >&5
3266sed 's/^/| /' conftest.$ac_ext >&5
3267
3268ac_cv_lib_supcpp_main=no
3269fi
3270rm -f conftest.err conftest.$ac_objext \
3271 conftest$ac_exeext conftest.$ac_ext
3272LIBS=$ac_check_lib_save_LIBS
3273fi
3274echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3275echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3276if test $ac_cv_lib_supcpp_main = yes; then
3277
3278 LINKER="$CC"
3279 LIBS="$LIBS -lsupc++"
3280
3281fi
3282
3283fi
3284LINKER=$LINKER
3285
3286
3287CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3288
3289
3290ac_ext=cc
3291ac_cpp='$CXXCPP $CPPFLAGS'
3292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3295
3296
3297
3298ac_ext=cc
3299ac_cpp='$CXXCPP $CPPFLAGS'
3300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3303echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3304echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3305if test -z "$CXXCPP"; then
3306 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308else
3309 # Double quotes because CXXCPP needs to be expanded
3310 for CXXCPP in "$CXX -E" "/lib/cpp"
3311 do
3312 ac_preproc_ok=false
3313for ac_cxx_preproc_warn_flag in '' yes
3314do
3315 # Use a header file that comes with gcc, so configuring glibc
3316 # with a fresh cross-compiler works.
3317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3318 # <limits.h> exists even on freestanding compilers.
3319 # On the NeXT, cc -E runs the code through the compiler's parser,
3320 # not just through cpp. "Syntax error" is here to catch this case.
3321 cat >conftest.$ac_ext <<_ACEOF
3322/* confdefs.h. */
3323_ACEOF
3324cat confdefs.h >>conftest.$ac_ext
3325cat >>conftest.$ac_ext <<_ACEOF
3326/* end confdefs.h. */
3327#ifdef __STDC__
3328# include <limits.h>
3329#else
3330# include <assert.h>
3331#endif
3332 Syntax error
3333_ACEOF
3334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } >/dev/null; then
3342 if test -s conftest.err; then
3343 ac_cpp_err=$ac_cxx_preproc_warn_flag
3344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3345 else
3346 ac_cpp_err=
3347 fi
3348else
3349 ac_cpp_err=yes
3350fi
3351if test -z "$ac_cpp_err"; then
3352 :
3353else
3354 echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 # Broken: fails on valid input.
3358continue
3359fi
3360rm -f conftest.err conftest.$ac_ext
3361
3362 # OK, works on sane cases. Now check whether non-existent headers
3363 # can be detected and how.
3364 cat >conftest.$ac_ext <<_ACEOF
3365/* confdefs.h. */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h. */
3370#include <ac_nonexistent.h>
3371_ACEOF
3372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } >/dev/null; then
3380 if test -s conftest.err; then
3381 ac_cpp_err=$ac_cxx_preproc_warn_flag
3382 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3383 else
3384 ac_cpp_err=
3385 fi
3386else
3387 ac_cpp_err=yes
3388fi
3389if test -z "$ac_cpp_err"; then
3390 # Broken: success on invalid input.
3391continue
3392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 # Passes both tests.
3397ac_preproc_ok=:
3398break
3399fi
3400rm -f conftest.err conftest.$ac_ext
3401
3402done
3403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3404rm -f conftest.err conftest.$ac_ext
3405if $ac_preproc_ok; then
3406 break
3407fi
3408
3409 done
3410 ac_cv_prog_CXXCPP=$CXXCPP
3411
3412fi
3413 CXXCPP=$ac_cv_prog_CXXCPP
3414else
3415 ac_cv_prog_CXXCPP=$CXXCPP
3416fi
3417echo "$as_me:$LINENO: result: $CXXCPP" >&5
3418echo "${ECHO_T}$CXXCPP" >&6
3419ac_preproc_ok=false
3420for ac_cxx_preproc_warn_flag in '' yes
3421do
3422 # Use a header file that comes with gcc, so configuring glibc
3423 # with a fresh cross-compiler works.
3424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3425 # <limits.h> exists even on freestanding compilers.
3426 # On the NeXT, cc -E runs the code through the compiler's parser,
3427 # not just through cpp. "Syntax error" is here to catch this case.
3428 cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h. */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h. */
3434#ifdef __STDC__
3435# include <limits.h>
3436#else
3437# include <assert.h>
3438#endif
3439 Syntax error
3440_ACEOF
3441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } >/dev/null; then
3449 if test -s conftest.err; then
3450 ac_cpp_err=$ac_cxx_preproc_warn_flag
3451 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3452 else
3453 ac_cpp_err=
3454 fi
3455else
3456 ac_cpp_err=yes
3457fi
3458if test -z "$ac_cpp_err"; then
3459 :
3460else
3461 echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 # Broken: fails on valid input.
3465continue
3466fi
3467rm -f conftest.err conftest.$ac_ext
3468
3469 # OK, works on sane cases. Now check whether non-existent headers
3470 # can be detected and how.
3471 cat >conftest.$ac_ext <<_ACEOF
3472/* confdefs.h. */
3473_ACEOF
3474cat confdefs.h >>conftest.$ac_ext
3475cat >>conftest.$ac_ext <<_ACEOF
3476/* end confdefs.h. */
3477#include <ac_nonexistent.h>
3478_ACEOF
3479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3481 ac_status=$?
3482 grep -v '^ *+' conftest.er1 >conftest.err
3483 rm -f conftest.er1
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } >/dev/null; then
3487 if test -s conftest.err; then
3488 ac_cpp_err=$ac_cxx_preproc_warn_flag
3489 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3490 else
3491 ac_cpp_err=
3492 fi
3493else
3494 ac_cpp_err=yes
3495fi
3496if test -z "$ac_cpp_err"; then
3497 # Broken: success on invalid input.
3498continue
3499else
3500 echo "$as_me: failed program was:" >&5
3501sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 # Passes both tests.
3504ac_preproc_ok=:
3505break
3506fi
3507rm -f conftest.err conftest.$ac_ext
3508
3509done
3510# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3511rm -f conftest.err conftest.$ac_ext
3512if $ac_preproc_ok; then
3513 :
3514else
3515 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3516See \`config.log' for more details." >&5
3517echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3518See \`config.log' for more details." >&2;}
3519 { (exit 1); exit 1; }; }
3520fi
3521
3522ac_ext=cc
3523ac_cpp='$CXXCPP $CPPFLAGS'
3524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3527 3056
3528 3057
3529echo "$as_me:$LINENO: checking for egrep" >&5 3058echo "$as_me:$LINENO: checking for egrep" >&5
3530echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3059echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3531if test "${ac_cv_prog_egrep+set}" = set; then 3060if test "${ac_cv_prog_egrep+set}" = set; then
3606 grep -v '^ *+' conftest.er1 >conftest.err 3135 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1 3136 rm -f conftest.er1
3608 cat conftest.err >&5 3137 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } && 3139 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5 3142 (eval $ac_try) 2>&5
3614 ac_status=$? 3143 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } && 3145 (exit $ac_status); }; } &&
3660 grep -v '^ *+' conftest.er1 >conftest.err 3189 grep -v '^ *+' conftest.er1 >conftest.err
3661 rm -f conftest.er1 3190 rm -f conftest.er1
3662 cat conftest.err >&5 3191 cat conftest.err >&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); } && 3193 (exit $ac_status); } &&
3665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5 3196 (eval $ac_try) 2>&5
3668 ac_status=$? 3197 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } && 3199 (exit $ac_status); }; } &&
3692if test "$ac_cv_search_strerror" != no; then 3221if test "$ac_cv_search_strerror" != no; then
3693 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3222 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3694 3223
3695fi 3224fi
3696 3225
3226ac_ext=cc
3227ac_cpp='$CXXCPP $CPPFLAGS'
3228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3697 3231
3232
3233if test x$GCC = xyes && test x$GXX = xyes; then
3234 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3235echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3236 save_CXX="$CXX"
3237 save_LIBS="$LIBS"
3238 CXX="$CC"
3239 LIBS="$LIBS -lsupc++"
3240 LINKER="$CC"
3241
3242cat >conftest.$ac_ext <<_ACEOF
3243/* confdefs.h. */
3244_ACEOF
3245cat confdefs.h >>conftest.$ac_ext
3246cat >>conftest.$ac_ext <<_ACEOF
3247/* end confdefs.h. */
3248struct test { }; void f() try { throw new test; } catch (...) { throw; }
3249int
3250main ()
3251{
3252
3253 ;
3254 return 0;
3255}
3256_ACEOF
3257rm -f conftest.$ac_objext conftest$ac_exeext
3258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3259 (eval $ac_link) 2>conftest.er1
3260 ac_status=$?
3261 grep -v '^ *+' conftest.er1 >conftest.err
3262 rm -f conftest.er1
3263 cat conftest.err >&5
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); } &&
3266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest$ac_exeext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 echo "$as_me:$LINENO: result: ok" >&5
3279echo "${ECHO_T}ok" >&6
3280else
3281 echo "$as_me: failed program was:" >&5
3282sed 's/^/| /' conftest.$ac_ext >&5
3283
3284
3285 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3286echo "${ECHO_T}no, making everything bigger and slower" >&6
3287 LIBS="$save_LIBS"
3288 LINKER="$save_CXX"
3289
3290
3291fi
3292rm -f conftest.err conftest.$ac_objext \
3293 conftest$ac_exeext conftest.$ac_ext
3294 CXX="$save_CXX"
3295fi
3296LINKER=$LINKER
3297
3298
3299ac_ext=cc
3300ac_cpp='$CXXCPP $CPPFLAGS'
3301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3304
3305if test -z "$orig_CXXFLAGS"; then
3306 if test x$GCC = xyes && test "x$GXX" = xyes; then
3307 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3308 cat >conftest.$ac_ext <<_ACEOF
3309/* confdefs.h. */
3310_ACEOF
3311cat confdefs.h >>conftest.$ac_ext
3312cat >>conftest.$ac_ext <<_ACEOF
3313/* end confdefs.h. */
3314
3315int
3316main ()
3317{
3318
3319 ;
3320 return 0;
3321}
3322_ACEOF
3323rm -f conftest.$ac_objext
3324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3325 (eval $ac_compile) 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } &&
3332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3334 (eval $ac_try) 2>&5
3335 ac_status=$?
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; } &&
3338 { ac_try='test -s conftest.$ac_objext'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; }; then
3344 :
3345else
3346 echo "$as_me: failed program was:" >&5
3347sed 's/^/| /' conftest.$ac_ext >&5
3348
3349CXXFLAGS="-g -O3"
3350fi
3351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3352 else
3353 CXXFLAGS="-O"
3354 fi
3355 CFLAGS="$CXXFLAGS"
3356fi
3357
3358
3359cat >>confdefs.h <<\_ACEOF
3360#define _GNU_SOURCE 1
3361_ACEOF
3362
3363
3364case $host in
3365 *-*-solaris* )
3366
3367cat >>confdefs.h <<\_ACEOF
3368#define _XOPEN_SOURCE_EXTENDED 1
3369_ACEOF
3370
3371
3372cat >>confdefs.h <<\_ACEOF
3373#define _XOPEN_SOURCE 2
3374_ACEOF
3375
3376
3377cat >>confdefs.h <<\_ACEOF
3378#define __EXTENSIONS__ 1
3379_ACEOF
3380
3381 ;;
3382esac
3383
3384
3385echo "$as_me:$LINENO: checking for setlocale" >&5
3386echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3387if test "${ac_cv_func_setlocale+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3389else
3390 cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h. */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h. */
3396/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3398#define setlocale innocuous_setlocale
3399
3400/* System header to define __stub macros and hopefully few prototypes,
3401 which can conflict with char setlocale (); below.
3402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3403 <limits.h> exists even on freestanding compilers. */
3404
3405#ifdef __STDC__
3406# include <limits.h>
3407#else
3408# include <assert.h>
3409#endif
3410
3411#undef setlocale
3412
3413/* Override any gcc2 internal prototype to avoid an error. */
3414#ifdef __cplusplus
3415extern "C"
3416{
3417#endif
3418/* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3420char setlocale ();
3421/* The GNU C library defines this for functions which it implements
3422 to always fail with ENOSYS. Some functions are actually named
3423 something starting with __ and the normal name is an alias. */
3424#if defined (__stub_setlocale) || defined (__stub___setlocale)
3425choke me
3426#else
3427char (*f) () = setlocale;
3428#endif
3429#ifdef __cplusplus
3430}
3431#endif
3432
3433int
3434main ()
3435{
3436return f != setlocale;
3437 ;
3438 return 0;
3439}
3440_ACEOF
3441rm -f conftest.$ac_objext conftest$ac_exeext
3442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3443 (eval $ac_link) 2>conftest.er1
3444 ac_status=$?
3445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; } &&
3456 { ac_try='test -s conftest$ac_exeext'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 (eval $ac_try) 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; }; then
3462 ac_cv_func_setlocale=yes
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467ac_cv_func_setlocale=no
3468fi
3469rm -f conftest.err conftest.$ac_objext \
3470 conftest$ac_exeext conftest.$ac_ext
3471fi
3472echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3473echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3474if test $ac_cv_func_setlocale = yes; then
3475 :
3476else
3698echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 3477 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3699echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 3478echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3700if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then 3479if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6 3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3702else 3481else
3703 ac_check_lib_save_LIBS=$LIBS 3482 ac_check_lib_save_LIBS=$LIBS
3760echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 3539echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3761if test $ac_cv_lib_xpg4_setlocale = yes; then 3540if test $ac_cv_lib_xpg4_setlocale = yes; then
3762 LIBS="$LIBS -lxpg4" 3541 LIBS="$LIBS -lxpg4"
3763fi 3542fi
3764 3543
3544fi
3765 3545
3546
3547echo "$as_me:$LINENO: checking for gethostbyname" >&5
3548echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3549if test "${ac_cv_func_gethostbyname+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551else
3552 cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h. */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h. */
3558/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3560#define gethostbyname innocuous_gethostbyname
3561
3562/* System header to define __stub macros and hopefully few prototypes,
3563 which can conflict with char gethostbyname (); below.
3564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3565 <limits.h> exists even on freestanding compilers. */
3566
3567#ifdef __STDC__
3568# include <limits.h>
3569#else
3570# include <assert.h>
3571#endif
3572
3573#undef gethostbyname
3574
3575/* Override any gcc2 internal prototype to avoid an error. */
3576#ifdef __cplusplus
3577extern "C"
3578{
3579#endif
3580/* We use char because int might match the return type of a gcc2
3581 builtin and then its argument prototype would still apply. */
3582char gethostbyname ();
3583/* The GNU C library defines this for functions which it implements
3584 to always fail with ENOSYS. Some functions are actually named
3585 something starting with __ and the normal name is an alias. */
3586#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3587choke me
3588#else
3589char (*f) () = gethostbyname;
3590#endif
3591#ifdef __cplusplus
3592}
3593#endif
3594
3595int
3596main ()
3597{
3598return f != gethostbyname;
3599 ;
3600 return 0;
3601}
3602_ACEOF
3603rm -f conftest.$ac_objext conftest$ac_exeext
3604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3605 (eval $ac_link) 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; } &&
3618 { ac_try='test -s conftest$ac_exeext'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_cv_func_gethostbyname=yes
3625else
3626 echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629ac_cv_func_gethostbyname=no
3630fi
3631rm -f conftest.err conftest.$ac_objext \
3632 conftest$ac_exeext conftest.$ac_ext
3633fi
3634echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3635echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3636if test $ac_cv_func_gethostbyname = yes; then
3637 :
3638else
3766echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 3639 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3767echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 3640echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3768if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 3641if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6 3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else 3643else
3771 ac_check_lib_save_LIBS=$LIBS 3644 ac_check_lib_save_LIBS=$LIBS
3828echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 3701echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3829if test $ac_cv_lib_nsl_gethostbyname = yes; then 3702if test $ac_cv_lib_nsl_gethostbyname = yes; then
3830 LIBS="$LIBS -lnsl" 3703 LIBS="$LIBS -lnsl"
3831fi 3704fi
3832 3705
3706fi
3707
3708echo "$as_me:$LINENO: checking for socket" >&5
3709echo $ECHO_N "checking for socket... $ECHO_C" >&6
3710if test "${ac_cv_func_socket+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712else
3713 cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h. */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h. */
3719/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3721#define socket innocuous_socket
3722
3723/* System header to define __stub macros and hopefully few prototypes,
3724 which can conflict with char socket (); below.
3725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3726 <limits.h> exists even on freestanding compilers. */
3727
3728#ifdef __STDC__
3729# include <limits.h>
3730#else
3731# include <assert.h>
3732#endif
3733
3734#undef socket
3735
3736/* Override any gcc2 internal prototype to avoid an error. */
3737#ifdef __cplusplus
3738extern "C"
3739{
3740#endif
3741/* We use char because int might match the return type of a gcc2
3742 builtin and then its argument prototype would still apply. */
3743char socket ();
3744/* The GNU C library defines this for functions which it implements
3745 to always fail with ENOSYS. Some functions are actually named
3746 something starting with __ and the normal name is an alias. */
3747#if defined (__stub_socket) || defined (__stub___socket)
3748choke me
3749#else
3750char (*f) () = socket;
3751#endif
3752#ifdef __cplusplus
3753}
3754#endif
3755
3756int
3757main ()
3758{
3759return f != socket;
3760 ;
3761 return 0;
3762}
3763_ACEOF
3764rm -f conftest.$ac_objext conftest$ac_exeext
3765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3766 (eval $ac_link) 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } &&
3773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3775 (eval $ac_try) 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); }; } &&
3779 { ac_try='test -s conftest$ac_exeext'
3780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 (eval $ac_try) 2>&5
3782 ac_status=$?
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); }; }; then
3785 ac_cv_func_socket=yes
3786else
3787 echo "$as_me: failed program was:" >&5
3788sed 's/^/| /' conftest.$ac_ext >&5
3789
3790ac_cv_func_socket=no
3791fi
3792rm -f conftest.err conftest.$ac_objext \
3793 conftest$ac_exeext conftest.$ac_ext
3794fi
3795echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3796echo "${ECHO_T}$ac_cv_func_socket" >&6
3797if test $ac_cv_func_socket = yes; then
3798 :
3799else
3833echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 3800 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3834echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 3801echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3835if test "${ac_cv_lib_socket_socket+set}" = set; then 3802if test "${ac_cv_lib_socket_socket+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6 3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3837else 3804else
3838 ac_check_lib_save_LIBS=$LIBS 3805 ac_check_lib_save_LIBS=$LIBS
3895echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 3862echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3896if test $ac_cv_lib_socket_socket = yes; then 3863if test $ac_cv_lib_socket_socket = yes; then
3897 LIBS="$LIBS -lsocket" 3864 LIBS="$LIBS -lsocket"
3898fi 3865fi
3899 3866
3900
3901# Check whether --enable-shared or --disable-shared was given.
3902if test "${enable_shared+set}" = set; then
3903 enableval="$enable_shared"
3904 p=${PACKAGE-default}
3905case "$enableval" in
3906yes) enable_shared=yes ;;
3907no) enable_shared=no ;;
3908*)
3909 enable_shared=no
3910 # Look at the argument we got. We use all the common list separators.
3911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3912 for pkg in $enableval; do
3913 if test "X$pkg" = "X$p"; then
3914 enable_shared=yes
3915 fi
3916 done
3917 IFS="$ac_save_ifs"
3918 ;;
3919esac
3920else
3921 enable_shared=no
3922fi; # Check whether --enable-static or --disable-static was given.
3923if test "${enable_static+set}" = set; then
3924 enableval="$enable_static"
3925 p=${PACKAGE-default}
3926case "$enableval" in
3927yes) enable_static=yes ;;
3928no) enable_static=no ;;
3929*)
3930 enable_static=no
3931 # Look at the argument we got. We use all the common list separators.
3932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3933 for pkg in $enableval; do
3934 if test "X$pkg" = "X$p"; then
3935 enable_static=yes
3936 fi
3937 done
3938 IFS="$ac_save_ifs"
3939 ;;
3940esac
3941else
3942 enable_static=yes
3943fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3944if test "${enable_fast_install+set}" = set; then
3945 enableval="$enable_fast_install"
3946 p=${PACKAGE-default}
3947case "$enableval" in
3948yes) enable_fast_install=yes ;;
3949no) enable_fast_install=no ;;
3950*)
3951 enable_fast_install=no
3952 # Look at the argument we got. We use all the common list separators.
3953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3954 for pkg in $enableval; do
3955 if test "X$pkg" = "X$p"; then
3956 enable_fast_install=yes
3957 fi
3958 done
3959 IFS="$ac_save_ifs"
3960 ;;
3961esac
3962else
3963 enable_fast_install=yes
3964fi; 3867fi
3965# Make sure we can run config.sub.
3966$ac_config_sub sun4 >/dev/null 2>&1 ||
3967 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3968echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3969 { (exit 1); exit 1; }; }
3970 3868
3971echo "$as_me:$LINENO: checking build system type" >&5
3972echo $ECHO_N "checking build system type... $ECHO_C" >&6
3973if test "${ac_cv_build+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976 ac_cv_build_alias=$build_alias
3977test -z "$ac_cv_build_alias" &&
3978 ac_cv_build_alias=`$ac_config_guess`
3979test -z "$ac_cv_build_alias" &&
3980 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3981echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3982 { (exit 1); exit 1; }; }
3983ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3984 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3985echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3986 { (exit 1); exit 1; }; }
3987 3869
3988fi
3989echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3990echo "${ECHO_T}$ac_cv_build" >&6
3991build=$ac_cv_build
3992build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3993build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3994build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3995
3996
3997echo "$as_me:$LINENO: checking host system type" >&5
3998echo $ECHO_N "checking host system type... $ECHO_C" >&6
3999if test "${ac_cv_host+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 ac_cv_host_alias=$host_alias
4003test -z "$ac_cv_host_alias" &&
4004 ac_cv_host_alias=$ac_cv_build_alias
4005ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4006 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4007echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4008 { (exit 1); exit 1; }; }
4009
4010fi
4011echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4012echo "${ECHO_T}$ac_cv_host" >&6
4013host=$ac_cv_host
4014host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4015host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4016host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4017
4018
4019
4020# Check whether --with-gnu-ld or --without-gnu-ld was given.
4021if test "${with_gnu_ld+set}" = set; then
4022 withval="$with_gnu_ld"
4023 test "$withval" = no || with_gnu_ld=yes
4024else
4025 with_gnu_ld=no
4026fi;
4027ac_prog=ld
4028if test "$GCC" = yes; then
4029 # Check if gcc -print-prog-name=ld gives a path.
4030 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4031echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4032 case $host in
4033 *-*-mingw*)
4034 # gcc leaves a trailing carriage return which upsets mingw
4035 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4036 *)
4037 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4038 esac
4039 case "$ac_prog" in
4040 # Accept absolute paths.
4041 [\\/]* | [A-Za-z]:[\\/]*)
4042 re_direlt='/[^/][^/]*/\.\./'
4043 # Canonicalize the path of ld
4044 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4045 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4046 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4047 done
4048 test -z "$LD" && LD="$ac_prog"
4049 ;;
4050 "")
4051 # If it fails, then pretend we aren't using GCC.
4052 ac_prog=ld
4053 ;;
4054 *)
4055 # If it is relative, then search for the first ld in PATH.
4056 with_gnu_ld=unknown
4057 ;;
4058 esac
4059elif test "$with_gnu_ld" = yes; then
4060 echo "$as_me:$LINENO: checking for GNU ld" >&5 3870echo "$as_me:$LINENO: checking for sched_yield" >&5
4061echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3871echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4062else
4063 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4064echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4065fi
4066if test "${lt_cv_path_LD+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
4069 if test -z "$LD"; then
4070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4071 for ac_dir in $PATH; do
4072 test -z "$ac_dir" && ac_dir=.
4073 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4074 lt_cv_path_LD="$ac_dir/$ac_prog"
4075 # Check to see if the program is GNU ld. I'd rather use --version,
4076 # but apparently some GNU ld's only accept -v.
4077 # Break only if it was the GNU/non-GNU ld that we prefer.
4078 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4079 test "$with_gnu_ld" != no && break
4080 else
4081 test "$with_gnu_ld" != yes && break
4082 fi
4083 fi
4084 done
4085 IFS="$ac_save_ifs"
4086else
4087 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4088fi
4089fi
4090
4091LD="$lt_cv_path_LD"
4092if test -n "$LD"; then
4093 echo "$as_me:$LINENO: result: $LD" >&5
4094echo "${ECHO_T}$LD" >&6
4095else
4096 echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6
4098fi
4099test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4100echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4101 { (exit 1); exit 1; }; }
4102echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4103echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4104if test "${lt_cv_prog_gnu_ld+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4108if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4109 lt_cv_prog_gnu_ld=yes
4110else
4111 lt_cv_prog_gnu_ld=no
4112fi
4113fi
4114echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4115echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4116with_gnu_ld=$lt_cv_prog_gnu_ld
4117
4118
4119echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4120echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4121if test "${lt_cv_ld_reload_flag+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 lt_cv_ld_reload_flag='-r'
4125fi
4126echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4127echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4128reload_flag=$lt_cv_ld_reload_flag
4129test -n "$reload_flag" && reload_flag=" $reload_flag"
4130
4131echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4132echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4133if test "${lt_cv_path_NM+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136 if test -n "$NM"; then
4137 # Let the user override the test.
4138 lt_cv_path_NM="$NM"
4139else
4140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4141 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4142 test -z "$ac_dir" && ac_dir=.
4143 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4144 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4145 # Check to see if the nm accepts a BSD-compat flag.
4146 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4147 # nm: unknown option "B" ignored
4148 # Tru64's nm complains that /dev/null is an invalid object file
4149 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4150 lt_cv_path_NM="$tmp_nm -B"
4151 break
4152 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4153 lt_cv_path_NM="$tmp_nm -p"
4154 break
4155 else
4156 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4157 continue # so that we can try to find one that supports BSD flags
4158 fi
4159 fi
4160 done
4161 IFS="$ac_save_ifs"
4162 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4163fi
4164fi
4165
4166NM="$lt_cv_path_NM"
4167echo "$as_me:$LINENO: result: $NM" >&5
4168echo "${ECHO_T}$NM" >&6
4169
4170echo "$as_me:$LINENO: checking whether ln -s works" >&5
4171echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4172LN_S=$as_ln_s
4173if test "$LN_S" = "ln -s"; then
4174 echo "$as_me:$LINENO: result: yes" >&5
4175echo "${ECHO_T}yes" >&6
4176else
4177 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4178echo "${ECHO_T}no, using $LN_S" >&6
4179fi
4180
4181echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4182echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4183if test "${lt_cv_deplibs_check_method+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 lt_cv_file_magic_cmd='$MAGIC_CMD'
4187lt_cv_file_magic_test_file=
4188lt_cv_deplibs_check_method='unknown'
4189# Need to set the preceding variable on all platforms that support
4190# interlibrary dependencies.
4191# 'none' -- dependencies not supported.
4192# `unknown' -- same as none, but documents that we really don't know.
4193# 'pass_all' -- all dependencies passed with no checks.
4194# 'test_compile' -- check by making test program.
4195# ['file_magic [regex]'] -- check by looking for files in library path
4196# which responds to the $file_magic_cmd with a given egrep regex.
4197# If you have `file' or equivalent on your system and you're not sure
4198# whether `pass_all' will *always* work, you probably want this one.
4199
4200case "$host_os" in
4201aix4*)
4202 lt_cv_deplibs_check_method=pass_all
4203 ;;
4204
4205beos*)
4206 lt_cv_deplibs_check_method=pass_all
4207 ;;
4208
4209bsdi4*)
4210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4211 lt_cv_file_magic_cmd='/usr/bin/file -L'
4212 lt_cv_file_magic_test_file=/shlib/libc.so
4213 ;;
4214
4215cygwin* | mingw* | pw32*)
4216 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4217 lt_cv_file_magic_cmd='$OBJDUMP -f'
4218 ;;
4219
4220darwin*|rhapsody*)
4221 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4222 lt_cv_file_magiic_cmd=/usr/bin/file
4223 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4224 ;;
4225
4226freebsd*)
4227 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4228 case "$host_cpu" in
4229 i*86 )
4230 # Not sure whether the presence of OpenBSD here was a mistake.
4231 # Let's accept both of them until this is cleared up.
4232 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4233 lt_cv_file_magic_cmd=/usr/bin/file
4234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4235 ;;
4236 esac
4237 else
4238 lt_cv_deplibs_check_method=pass_all
4239 fi
4240 ;;
4241
4242gnu*)
4243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245
4246hpux10.20*|hpux11*)
4247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4248 lt_cv_file_magic_cmd=/usr/bin/file
4249 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4250 ;;
4251
4252irix5* | irix6*)
4253 case "$host_os" in
4254 irix5*)
4255 # this will be overridden with pass_all, but let us keep it just in case
4256 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4257 ;;
4258 *)
4259 case "$LD" in
4260 *-32|*"-32 ") libmagic=32-bit;;
4261 *-n32|*"-n32 ") libmagic=N32;;
4262 *-64|*"-64 ") libmagic=64-bit;;
4263 *) libmagic=never-match;;
4264 esac
4265 # this will be overridden with pass_all, but let us keep it just in case
4266 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4267 ;;
4268 esac
4269 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4270 lt_cv_deplibs_check_method=pass_all
4271 ;;
4272
4273# This must be Linux ELF.
4274linux-gnu*)
4275 case "$host_cpu" in
4276 alpha* | i*86 | powerpc* | sparc* | ia64* )
4277 lt_cv_deplibs_check_method=pass_all ;;
4278 *)
4279 # glibc up to 2.1.1 does not perform some relocations on ARM
4280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4281 esac
4282 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4283 ;;
4284
4285netbsd*)
4286 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4287 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4288 else
4289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4290 fi
4291 lt_cv_file_magic_cmd='/usr/bin/file -L'
4292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4293 ;;
4294
4295newos6*)
4296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4297 lt_cv_file_magic_cmd=/usr/bin/file
4298 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4299 ;;
4300
4301osf3* | osf4* | osf5*)
4302 # this will be overridden with pass_all, but let us keep it just in case
4303 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4304 lt_cv_file_magic_test_file=/shlib/libc.so
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307
4308sco3.2v5*)
4309 lt_cv_deplibs_check_method=pass_all
4310 ;;
4311
4312solaris*)
4313 lt_cv_deplibs_check_method=pass_all
4314 lt_cv_file_magic_test_file=/lib/libc.so
4315 ;;
4316
4317sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4318 case "$host_vendor" in
4319 motorola)
4320 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]'
4321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4322 ;;
4323 ncr)
4324 lt_cv_deplibs_check_method=pass_all
4325 ;;
4326 sequent)
4327 lt_cv_file_magic_cmd='/bin/file'
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4329 ;;
4330 sni)
4331 lt_cv_file_magic_cmd='/bin/file'
4332 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4333 lt_cv_file_magic_test_file=/lib/libc.so
4334 ;;
4335 esac
4336 ;;
4337esac
4338
4339fi
4340echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4341echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4342file_magic_cmd=$lt_cv_file_magic_cmd
4343deplibs_check_method=$lt_cv_deplibs_check_method
4344
4345
4346
4347
4348
4349
4350
4351# Check for command to grab the raw symbol name followed by C symbol from nm.
4352echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4353echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4354if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357
4358# These are sane defaults that work on at least a few old systems.
4359# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4360
4361# Character class describing NM global symbol codes.
4362symcode='[BCDEGRST]'
4363
4364# Regexp to match symbols that can be accessed directly from C.
4365sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4366
4367# Transform the above into a raw symbol and a C symbol.
4368symxfrm='\1 \2\3 \3'
4369
4370# Transform an extracted symbol line into a proper C declaration
4371lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4372
4373# Define system-specific variables.
4374case "$host_os" in
4375aix*)
4376 symcode='[BCDT]'
4377 ;;
4378cygwin* | mingw* | pw32*)
4379 symcode='[ABCDGISTW]'
4380 ;;
4381hpux*) # Its linker distinguishes data from code symbols
4382 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4383 ;;
4384irix*)
4385 symcode='[BCDEGRST]'
4386 ;;
4387solaris* | sysv5*)
4388 symcode='[BDT]'
4389 ;;
4390sysv4)
4391 symcode='[DFNSTU]'
4392 ;;
4393esac
4394
4395# Handle CRLF in mingw tool chain
4396opt_cr=
4397case "$host_os" in
4398mingw*)
4399 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4400 ;;
4401esac
4402
4403# If we're using GNU nm, then use its standard symbol codes.
4404if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4405 symcode='[ABCDGISTW]'
4406fi
4407
4408# Try without a prefix undercore, then with it.
4409for ac_symprfx in "" "_"; do
4410
4411 # Write the raw and C identifiers.
4412lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4413
4414 # Check to see that the pipe works correctly.
4415 pipe_works=no
4416 rm -f conftest*
4417 cat > conftest.$ac_ext <<EOF
4418#ifdef __cplusplus
4419extern "C" {
4420#endif
4421char nm_test_var;
4422void nm_test_func(){}
4423#ifdef __cplusplus
4424}
4425#endif
4426main(){nm_test_var='a';nm_test_func();return(0);}
4427EOF
4428
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; then
4434 # Now try to grab the symbols.
4435 nlist=conftest.nm
4436 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4437 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && test -s "$nlist"; then
4441 # Try sorting and uniquifying the output.
4442 if sort "$nlist" | uniq > "$nlist"T; then
4443 mv -f "$nlist"T "$nlist"
4444 else
4445 rm -f "$nlist"T
4446 fi
4447
4448 # Make sure that we snagged all the symbols we need.
4449 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4450 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4451 cat <<EOF > conftest.$ac_ext
4452#ifdef __cplusplus
4453extern "C" {
4454#endif
4455
4456EOF
4457 # Now generate the symbol file.
4458 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4459
4460 cat <<EOF >> conftest.$ac_ext
4461#if defined (__STDC__) && __STDC__
4462# define lt_ptr_t void *
4463#else
4464# define lt_ptr_t char *
4465# define const
4466#endif
4467
4468/* The mapping between symbol names and symbols. */
4469const struct {
4470 const char *name;
4471 lt_ptr_t address;
4472}
4473lt_preloaded_symbols[] =
4474{
4475EOF
4476 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4477 cat <<\EOF >> conftest.$ac_ext
4478 {0, (lt_ptr_t) 0}
4479};
4480
4481#ifdef __cplusplus
4482}
4483#endif
4484EOF
4485 # Now try linking the two files.
4486 mv conftest.$ac_objext conftstm.$ac_objext
4487 save_LIBS="$LIBS"
4488 save_CFLAGS="$CFLAGS"
4489 LIBS="conftstm.$ac_objext"
4490 CFLAGS="$CFLAGS$no_builtin_flag"
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } && test -s conftest; then
4496 pipe_works=yes
4497 fi
4498 LIBS="$save_LIBS"
4499 CFLAGS="$save_CFLAGS"
4500 else
4501 echo "cannot find nm_test_func in $nlist" >&5
4502 fi
4503 else
4504 echo "cannot find nm_test_var in $nlist" >&5
4505 fi
4506 else
4507 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4508 fi
4509 else
4510 echo "$progname: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4512 fi
4513 rm -f conftest* conftst*
4514
4515 # Do not use the global_symbol_pipe unless it works.
4516 if test "$pipe_works" = yes; then
4517 break
4518 else
4519 lt_cv_sys_global_symbol_pipe=
4520 fi
4521done
4522
4523fi
4524
4525global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4526if test -z "$lt_cv_sys_global_symbol_pipe"; then
4527 global_symbol_to_cdecl=
4528else
4529 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4530fi
4531if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4532 echo "$as_me:$LINENO: result: failed" >&5
4533echo "${ECHO_T}failed" >&6
4534else
4535 echo "$as_me:$LINENO: result: ok" >&5
4536echo "${ECHO_T}ok" >&6
4537fi
4538
4539echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541if test "${ac_cv_header_stdc+set}" = set; then 3872if test "${ac_cv_func_sched_yield+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6 3873 echo $ECHO_N "(cached) $ECHO_C" >&6
4543else 3874else
4544 cat >conftest.$ac_ext <<_ACEOF 3875 cat >conftest.$ac_ext <<_ACEOF
4545/* confdefs.h. */ 3876/* confdefs.h. */
4546_ACEOF 3877_ACEOF
4547cat confdefs.h >>conftest.$ac_ext 3878cat confdefs.h >>conftest.$ac_ext
4548cat >>conftest.$ac_ext <<_ACEOF 3879cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h. */ 3880/* end confdefs.h. */
4550#include <stdlib.h>
4551#include <stdarg.h>
4552#include <string.h>
4553#include <float.h>
4554
4555int
4556main ()
4557{
4558
4559 ;
4560 return 0;
4561}
4562_ACEOF
4563rm -f conftest.$ac_objext
4564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_header_stdc=yes
4585else
4586 echo "$as_me: failed program was:" >&5
4587sed 's/^/| /' conftest.$ac_ext >&5
4588
4589ac_cv_header_stdc=no
4590fi
4591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592
4593if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
4601#include <string.h>
4602
4603_ACEOF
4604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "memchr" >/dev/null 2>&1; then
4606 :
4607else
4608 ac_cv_header_stdc=no
4609fi
4610rm -f conftest*
4611
4612fi
4613
4614if test $ac_cv_header_stdc = yes; then
4615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616 cat >conftest.$ac_ext <<_ACEOF
4617/* confdefs.h. */
4618_ACEOF
4619cat confdefs.h >>conftest.$ac_ext
4620cat >>conftest.$ac_ext <<_ACEOF
4621/* end confdefs.h. */
4622#include <stdlib.h>
4623
4624_ACEOF
4625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "free" >/dev/null 2>&1; then
4627 :
4628else
4629 ac_cv_header_stdc=no
4630fi
4631rm -f conftest*
4632
4633fi
4634
4635if test $ac_cv_header_stdc = yes; then
4636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4637 if test "$cross_compiling" = yes; then
4638 :
4639else
4640 cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
4646#include <ctype.h>
4647#if ((' ' & 0x0FF) == 0x020)
4648# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4649# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4650#else
4651# define ISLOWER(c) \
4652 (('a' <= (c) && (c) <= 'i') \
4653 || ('j' <= (c) && (c) <= 'r') \
4654 || ('s' <= (c) && (c) <= 'z'))
4655# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4656#endif
4657
4658#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4659int
4660main ()
4661{
4662 int i;
4663 for (i = 0; i < 256; i++)
4664 if (XOR (islower (i), ISLOWER (i))
4665 || toupper (i) != TOUPPER (i))
4666 exit(2);
4667 exit (0);
4668}
4669_ACEOF
4670rm -f conftest$ac_exeext
4671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 :
4682else
4683 echo "$as_me: program exited with status $ac_status" >&5
4684echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687( exit $ac_status )
4688ac_cv_header_stdc=no
4689fi
4690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4691fi
4692fi
4693fi
4694echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4695echo "${ECHO_T}$ac_cv_header_stdc" >&6
4696if test $ac_cv_header_stdc = yes; then
4697
4698cat >>confdefs.h <<\_ACEOF
4699#define STDC_HEADERS 1
4700_ACEOF
4701
4702fi
4703
4704# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4715 inttypes.h stdint.h unistd.h
4716do
4717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4718echo "$as_me:$LINENO: checking for $ac_header" >&5
4719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720if eval "test \"\${$as_ac_Header+set}\" = set"; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723 cat >conftest.$ac_ext <<_ACEOF
4724/* confdefs.h. */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h. */
4729$ac_includes_default
4730
4731#include <$ac_header>
4732_ACEOF
4733rm -f conftest.$ac_objext
4734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 eval "$as_ac_Header=yes"
4755else
4756 echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759eval "$as_ac_Header=no"
4760fi
4761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762fi
4763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766 cat >>confdefs.h <<_ACEOF
4767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768_ACEOF
4769
4770fi
4771
4772done
4773
4774
4775
4776for ac_header in dlfcn.h
4777do
4778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784fi
4785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787else
4788 # Is the header compilable?
4789echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h. */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h. */
4797$ac_includes_default
4798#include <$ac_header>
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler=yes
4822else
4823 echo "$as_me: failed program was:" >&5
4824sed 's/^/| /' conftest.$ac_ext >&5
4825
4826ac_header_compiler=no
4827fi
4828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830echo "${ECHO_T}$ac_header_compiler" >&6
4831
4832# Is the header present?
4833echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835cat >conftest.$ac_ext <<_ACEOF
4836/* confdefs.h. */
4837_ACEOF
4838cat confdefs.h >>conftest.$ac_ext
4839cat >>conftest.$ac_ext <<_ACEOF
4840/* end confdefs.h. */
4841#include <$ac_header>
4842_ACEOF
4843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4845 ac_status=$?
4846 grep -v '^ *+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null; then
4851 if test -s conftest.err; then
4852 ac_cpp_err=$ac_cxx_preproc_warn_flag
4853 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4854 else
4855 ac_cpp_err=
4856 fi
4857else
4858 ac_cpp_err=yes
4859fi
4860if test -z "$ac_cpp_err"; then
4861 ac_header_preproc=yes
4862else
4863 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 ac_header_preproc=no
4867fi
4868rm -f conftest.err conftest.$ac_ext
4869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870echo "${ECHO_T}$ac_header_preproc" >&6
4871
4872# So? What about this header?
4873case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4874 yes:no: )
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4879 ac_header_preproc=yes
4880 ;;
4881 no:yes:* )
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4894 (
4895 cat <<\_ASBOX
4896## ------------------------------------------ ##
4897## Report this to the AC_PACKAGE_NAME lists. ##
4898## ------------------------------------------ ##
4899_ASBOX
4900 ) |
4901 sed "s/^/$as_me: WARNING: /" >&2
4902 ;;
4903esac
4904echo "$as_me:$LINENO: checking for $ac_header" >&5
4905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4906if eval "test \"\${$as_ac_Header+set}\" = set"; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909 eval "$as_ac_Header=\$ac_header_preproc"
4910fi
4911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4913
4914fi
4915if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916 cat >>confdefs.h <<_ACEOF
4917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4918_ACEOF
4919
4920fi
4921
4922done
4923
4924
4925
4926
4927
4928# Only perform the check for file, if the check method requires it
4929case "$deplibs_check_method" in
4930file_magic*)
4931 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4932 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4933echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4934if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936else
4937 case "$MAGIC_CMD" in
4938 /*)
4939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4940 ;;
4941 ?:/*)
4942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4943 ;;
4944 *)
4945 ac_save_MAGIC_CMD="$MAGIC_CMD"
4946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4947 ac_dummy="/usr/bin:$PATH"
4948 for ac_dir in $ac_dummy; do
4949 test -z "$ac_dir" && ac_dir=.
4950 if test -f $ac_dir/${ac_tool_prefix}file; then
4951 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4952 if test -n "$file_magic_test_file"; then
4953 case "$deplibs_check_method" in
4954 "file_magic "*)
4955 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4958 egrep "$file_magic_regex" > /dev/null; then
4959 :
4960 else
4961 cat <<EOF 1>&2
4962
4963*** Warning: the command libtool uses to detect shared libraries,
4964*** $file_magic_cmd, produces output that libtool cannot recognize.
4965*** The result is that libtool may fail to recognize shared libraries
4966*** as such. This will affect the creation of libtool libraries that
4967*** depend on shared libraries, but programs linked with such libtool
4968*** libraries will work regardless of this problem. Nevertheless, you
4969*** may want to report the problem to your system manager and/or to
4970*** bug-libtool@gnu.org
4971
4972EOF
4973 fi ;;
4974 esac
4975 fi
4976 break
4977 fi
4978 done
4979 IFS="$ac_save_ifs"
4980 MAGIC_CMD="$ac_save_MAGIC_CMD"
4981 ;;
4982esac
4983fi
4984
4985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4986if test -n "$MAGIC_CMD"; then
4987 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4988echo "${ECHO_T}$MAGIC_CMD" >&6
4989else
4990 echo "$as_me:$LINENO: result: no" >&5
4991echo "${ECHO_T}no" >&6
4992fi
4993
4994if test -z "$lt_cv_path_MAGIC_CMD"; then
4995 if test -n "$ac_tool_prefix"; then
4996 echo "$as_me:$LINENO: checking for file" >&5
4997echo $ECHO_N "checking for file... $ECHO_C" >&6
4998if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001 case "$MAGIC_CMD" in
5002 /*)
5003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5004 ;;
5005 ?:/*)
5006 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5007 ;;
5008 *)
5009 ac_save_MAGIC_CMD="$MAGIC_CMD"
5010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5011 ac_dummy="/usr/bin:$PATH"
5012 for ac_dir in $ac_dummy; do
5013 test -z "$ac_dir" && ac_dir=.
5014 if test -f $ac_dir/file; then
5015 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5016 if test -n "$file_magic_test_file"; then
5017 case "$deplibs_check_method" in
5018 "file_magic "*)
5019 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5022 egrep "$file_magic_regex" > /dev/null; then
5023 :
5024 else
5025 cat <<EOF 1>&2
5026
5027*** Warning: the command libtool uses to detect shared libraries,
5028*** $file_magic_cmd, produces output that libtool cannot recognize.
5029*** The result is that libtool may fail to recognize shared libraries
5030*** as such. This will affect the creation of libtool libraries that
5031*** depend on shared libraries, but programs linked with such libtool
5032*** libraries will work regardless of this problem. Nevertheless, you
5033*** may want to report the problem to your system manager and/or to
5034*** bug-libtool@gnu.org
5035
5036EOF
5037 fi ;;
5038 esac
5039 fi
5040 break
5041 fi
5042 done
5043 IFS="$ac_save_ifs"
5044 MAGIC_CMD="$ac_save_MAGIC_CMD"
5045 ;;
5046esac
5047fi
5048
5049MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5050if test -n "$MAGIC_CMD"; then
5051 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5052echo "${ECHO_T}$MAGIC_CMD" >&6
5053else
5054 echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
5056fi
5057
5058 else
5059 MAGIC_CMD=:
5060 fi
5061fi
5062
5063 fi
5064 ;;
5065esac
5066
5067if test -n "$ac_tool_prefix"; then
5068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5069set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5070echo "$as_me:$LINENO: checking for $ac_word" >&5
5071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072if test "${ac_cv_prog_RANLIB+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075 if test -n "$RANLIB"; then
5076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5077else
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089done
5090done
5091
5092fi
5093fi
5094RANLIB=$ac_cv_prog_RANLIB
5095if test -n "$RANLIB"; then
5096 echo "$as_me:$LINENO: result: $RANLIB" >&5
5097echo "${ECHO_T}$RANLIB" >&6
5098else
5099 echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6
5101fi
5102
5103fi
5104if test -z "$ac_cv_prog_RANLIB"; then
5105 ac_ct_RANLIB=$RANLIB
5106 # Extract the first word of "ranlib", so it can be a program name with args.
5107set dummy ranlib; ac_word=$2
5108echo "$as_me:$LINENO: checking for $ac_word" >&5
5109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113 if test -n "$ac_ct_RANLIB"; then
5114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_ac_ct_RANLIB="ranlib"
5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127done
5128done
5129
5130 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5131fi
5132fi
5133ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5134if test -n "$ac_ct_RANLIB"; then
5135 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5136echo "${ECHO_T}$ac_ct_RANLIB" >&6
5137else
5138 echo "$as_me:$LINENO: result: no" >&5
5139echo "${ECHO_T}no" >&6
5140fi
5141
5142 RANLIB=$ac_ct_RANLIB
5143else
5144 RANLIB="$ac_cv_prog_RANLIB"
5145fi
5146
5147if test -n "$ac_tool_prefix"; then
5148 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5149set dummy ${ac_tool_prefix}strip; ac_word=$2
5150echo "$as_me:$LINENO: checking for $ac_word" >&5
5151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5152if test "${ac_cv_prog_STRIP+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155 if test -n "$STRIP"; then
5156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5157else
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169done
5170done
5171
5172fi
5173fi
5174STRIP=$ac_cv_prog_STRIP
5175if test -n "$STRIP"; then
5176 echo "$as_me:$LINENO: result: $STRIP" >&5
5177echo "${ECHO_T}$STRIP" >&6
5178else
5179 echo "$as_me:$LINENO: result: no" >&5
5180echo "${ECHO_T}no" >&6
5181fi
5182
5183fi
5184if test -z "$ac_cv_prog_STRIP"; then
5185 ac_ct_STRIP=$STRIP
5186 # Extract the first word of "strip", so it can be a program name with args.
5187set dummy strip; ac_word=$2
5188echo "$as_me:$LINENO: checking for $ac_word" >&5
5189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193 if test -n "$ac_ct_STRIP"; then
5194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5195else
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_STRIP="strip"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207done
5208done
5209
5210 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5211fi
5212fi
5213ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5214if test -n "$ac_ct_STRIP"; then
5215 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5216echo "${ECHO_T}$ac_ct_STRIP" >&6
5217else
5218 echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220fi
5221
5222 STRIP=$ac_ct_STRIP
5223else
5224 STRIP="$ac_cv_prog_STRIP"
5225fi
5226
5227
5228enable_dlopen=no
5229enable_win32_dll=no
5230
5231# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5232if test "${enable_libtool_lock+set}" = set; then
5233 enableval="$enable_libtool_lock"
5234
5235fi;
5236test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5237
5238# Some flags need to be propagated to the compiler or linker for good
5239# libtool support.
5240case "$host" in
5241*-*-irix6*)
5242 # Find out which ABI we are using.
5243 echo '#line 5243 "configure"' > conftest.$ac_ext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245 (eval $ac_compile) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; then
5249 case "`/usr/bin/file conftest.$ac_objext`" in
5250 *32-bit*)
5251 LD="${LD-ld} -32"
5252 ;;
5253 *N32*)
5254 LD="${LD-ld} -n32"
5255 ;;
5256 *64-bit*)
5257 LD="${LD-ld} -64"
5258 ;;
5259 esac
5260 fi
5261 rm -rf conftest*
5262 ;;
5263
5264*-*-sco3.2v5*)
5265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5266 SAVE_CFLAGS="$CFLAGS"
5267 CFLAGS="$CFLAGS -belf"
5268 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5269echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5270if test "${lt_cv_cc_needs_belf+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273
5274
5275 ac_ext=c
5276ac_cpp='$CPP $CPPFLAGS'
5277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280
5281 cat >conftest.$ac_ext <<_ACEOF
5282/* confdefs.h. */
5283_ACEOF
5284cat confdefs.h >>conftest.$ac_ext
5285cat >>conftest.$ac_ext <<_ACEOF
5286/* end confdefs.h. */
5287
5288int
5289main ()
5290{
5291
5292 ;
5293 return 0;
5294}
5295_ACEOF
5296rm -f conftest.$ac_objext conftest$ac_exeext
5297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5298 (eval $ac_link) 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try='test -s conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 lt_cv_cc_needs_belf=yes
5318else
5319 echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
5322lt_cv_cc_needs_belf=no
5323fi
5324rm -f conftest.err conftest.$ac_objext \
5325 conftest$ac_exeext conftest.$ac_ext
5326 ac_ext=cc
5327ac_cpp='$CXXCPP $CPPFLAGS'
5328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5331
5332fi
5333echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5334echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5335 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5336 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5337 CFLAGS="$SAVE_CFLAGS"
5338 fi
5339 ;;
5340
5341
5342esac
5343
5344# Sed substitution that helps us do robust quoting. It backslashifies
5345# metacharacters that are still active within double-quoted strings.
5346Xsed='sed -e s/^X//'
5347sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5348
5349# Same as above, but do not quote variable references.
5350double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5351
5352# Sed substitution to delay expansion of an escaped shell variable in a
5353# double_quote_subst'ed string.
5354delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5355
5356# Constants:
5357rm="rm -f"
5358
5359# Global variables:
5360default_ofile=libtool
5361can_build_shared=yes
5362
5363# All known linkers require a `.a' archive for static linking (except M$VC,
5364# which needs '.lib').
5365libext=a
5366ltmain="$ac_aux_dir/ltmain.sh"
5367ofile="$default_ofile"
5368with_gnu_ld="$lt_cv_prog_gnu_ld"
5369need_locks="$enable_libtool_lock"
5370
5371old_CC="$CC"
5372old_CFLAGS="$CFLAGS"
5373
5374# Set sane defaults for various variables
5375test -z "$AR" && AR=ar
5376test -z "$AR_FLAGS" && AR_FLAGS=cru
5377test -z "$AS" && AS=as
5378test -z "$CC" && CC=cc
5379test -z "$DLLTOOL" && DLLTOOL=dlltool
5380test -z "$LD" && LD=ld
5381test -z "$LN_S" && LN_S="ln -s"
5382test -z "$MAGIC_CMD" && MAGIC_CMD=file
5383test -z "$NM" && NM=nm
5384test -z "$OBJDUMP" && OBJDUMP=objdump
5385test -z "$RANLIB" && RANLIB=:
5386test -z "$STRIP" && STRIP=:
5387test -z "$ac_objext" && ac_objext=o
5388
5389if test x"$host" != x"$build"; then
5390 ac_tool_prefix=${host_alias}-
5391else
5392 ac_tool_prefix=
5393fi
5394
5395# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5396case "$host_os" in
5397linux-gnu*) ;;
5398linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5399esac
5400
5401case "$host_os" in
5402aix3*)
5403 # AIX sometimes has problems with the GCC collect2 program. For some
5404 # reason, if we set the COLLECT_NAMES environment variable, the problems
5405 # vanish in a puff of smoke.
5406 if test "X${COLLECT_NAMES+set}" != Xset; then
5407 COLLECT_NAMES=
5408 export COLLECT_NAMES
5409 fi
5410 ;;
5411esac
5412
5413# Determine commands to create old-style static archives.
5414old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5415old_postinstall_cmds='chmod 644 $oldlib'
5416old_postuninstall_cmds=
5417
5418if test -n "$RANLIB"; then
5419 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5420 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5421fi
5422
5423# Allow CC to be a program name with arguments.
5424set dummy $CC
5425compiler="$2"
5426
5427## FIXME: this should be a separate macro
5428##
5429echo "$as_me:$LINENO: checking for objdir" >&5
5430echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5431rm -f .libs 2>/dev/null
5432mkdir .libs 2>/dev/null
5433if test -d .libs; then
5434 objdir=.libs
5435else
5436 # MS-DOS does not allow filenames that begin with a dot.
5437 objdir=_libs
5438fi
5439rmdir .libs 2>/dev/null
5440echo "$as_me:$LINENO: result: $objdir" >&5
5441echo "${ECHO_T}$objdir" >&6
5442##
5443## END FIXME
5444
5445
5446## FIXME: this should be a separate macro
5447##
5448
5449# Check whether --with-pic or --without-pic was given.
5450if test "${with_pic+set}" = set; then
5451 withval="$with_pic"
5452 pic_mode="$withval"
5453else
5454 pic_mode=default
5455fi;
5456test -z "$pic_mode" && pic_mode=default
5457
5458# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5459# in isolation, and that seeing it set (from the cache) indicates that
5460# the associated values are set (in the cache) correctly too.
5461echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5462echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5463if test "${lt_cv_prog_cc_pic+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 lt_cv_prog_cc_pic=
5467 lt_cv_prog_cc_shlib=
5468 lt_cv_prog_cc_wl=
5469 lt_cv_prog_cc_static=
5470 lt_cv_prog_cc_no_builtin=
5471 lt_cv_prog_cc_can_build_shared=$can_build_shared
5472
5473 if test "$GCC" = yes; then
5474 lt_cv_prog_cc_wl='-Wl,'
5475 lt_cv_prog_cc_static='-static'
5476
5477 case "$host_os" in
5478 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5479 # PIC is the default for these OSes.
5480 ;;
5481 aix*)
5482 # Below there is a dirty hack to force normal static linking with -ldl
5483 # The problem is because libdl dynamically linked with both libc and
5484 # libC (AIX C++ library), which obviously doesn't included in libraries
5485 # list by gcc. This cause undefined symbols with -static flags.
5486 # This hack allows C programs to be linked with "-static -ldl", but
5487 # we not sure about C++ programs.
5488 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5489 ;;
5490 cygwin* | mingw* | pw32* | os2*)
5491 # This hack is so that the source file can tell whether it is being
5492 # built for inclusion in a dll (and should export symbols for example).
5493 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5494 ;;
5495 amigaos*)
5496 # FIXME: we need at least 68020 code to build shared libraries, but
5497 # adding the `-m68020' flag to GCC prevents building anything better,
5498 # like `-m68040'.
5499 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5500 ;;
5501 sysv4*MP*)
5502 if test -d /usr/nec; then
5503 lt_cv_prog_cc_pic=-Kconform_pic
5504 fi
5505 ;;
5506 *)
5507 lt_cv_prog_cc_pic='-fPIC'
5508 ;;
5509 esac
5510 else
5511 # PORTME Check for PIC flags for the system compiler.
5512 case "$host_os" in
5513 aix3* | aix4*)
5514 # All AIX code is PIC.
5515 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5516 ;;
5517
5518 hpux9* | hpux10* | hpux11*)
5519 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5520 lt_cv_prog_cc_wl='-Wl,'
5521 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5522 lt_cv_prog_cc_pic='+Z'
5523 ;;
5524
5525 irix5* | irix6*)
5526 lt_cv_prog_cc_wl='-Wl,'
5527 lt_cv_prog_cc_static='-non_shared'
5528 # PIC (with -KPIC) is the default.
5529 ;;
5530
5531 cygwin* | mingw* | pw32* | os2*)
5532 # This hack is so that the source file can tell whether it is being
5533 # built for inclusion in a dll (and should export symbols for example).
5534 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5535 ;;
5536
5537 newsos6)
5538 lt_cv_prog_cc_pic='-KPIC'
5539 lt_cv_prog_cc_static='-Bstatic'
5540 ;;
5541
5542 osf3* | osf4* | osf5*)
5543 # All OSF/1 code is PIC.
5544 lt_cv_prog_cc_wl='-Wl,'
5545 lt_cv_prog_cc_static='-non_shared'
5546 ;;
5547
5548 sco3.2v5*)
5549 lt_cv_prog_cc_pic='-Kpic'
5550 lt_cv_prog_cc_static='-dn'
5551 lt_cv_prog_cc_shlib='-belf'
5552 ;;
5553
5554 solaris*)
5555 lt_cv_prog_cc_pic='-KPIC'
5556 lt_cv_prog_cc_static='-Bstatic'
5557 lt_cv_prog_cc_wl='-Wl,'
5558 ;;
5559
5560 sunos4*)
5561 lt_cv_prog_cc_pic='-PIC'
5562 lt_cv_prog_cc_static='-Bstatic'
5563 lt_cv_prog_cc_wl='-Qoption ld '
5564 ;;
5565
5566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5567 lt_cv_prog_cc_pic='-KPIC'
5568 lt_cv_prog_cc_static='-Bstatic'
5569 if test "x$host_vendor" = xsni; then
5570 lt_cv_prog_cc_wl='-LD'
5571 else
5572 lt_cv_prog_cc_wl='-Wl,'
5573 fi
5574 ;;
5575
5576 uts4*)
5577 lt_cv_prog_cc_pic='-pic'
5578 lt_cv_prog_cc_static='-Bstatic'
5579 ;;
5580
5581 sysv4*MP*)
5582 if test -d /usr/nec ;then
5583 lt_cv_prog_cc_pic='-Kconform_pic'
5584 lt_cv_prog_cc_static='-Bstatic'
5585 fi
5586 ;;
5587
5588 *)
5589 lt_cv_prog_cc_can_build_shared=no
5590 ;;
5591 esac
5592 fi
5593
5594fi
5595
5596if test -z "$lt_cv_prog_cc_pic"; then
5597 echo "$as_me:$LINENO: result: none" >&5
5598echo "${ECHO_T}none" >&6
5599else
5600 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5601echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5602
5603 # Check to make sure the pic_flag actually works.
5604 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5605echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5606 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609 save_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5611 cat >conftest.$ac_ext <<_ACEOF
5612/* confdefs.h. */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h. */
5617
5618int
5619main ()
5620{
5621
5622 ;
5623 return 0;
5624}
5625_ACEOF
5626rm -f conftest.$ac_objext
5627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 case "$host_os" in
5648 hpux9* | hpux10* | hpux11*)
5649 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5650 # they create non-PIC objects. So, if there were any warnings, we
5651 # assume that PIC is not supported.
5652 if test -s conftest.err; then
5653 lt_cv_prog_cc_pic_works=no
5654 else
5655 lt_cv_prog_cc_pic_works=yes
5656 fi
5657 ;;
5658 *)
5659 lt_cv_prog_cc_pic_works=yes
5660 ;;
5661 esac
5662
5663else
5664 echo "$as_me: failed program was:" >&5
5665sed 's/^/| /' conftest.$ac_ext >&5
5666
5667 lt_cv_prog_cc_pic_works=no
5668
5669fi
5670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5671 CFLAGS="$save_CFLAGS"
5672
5673fi
5674
5675
5676 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5677 lt_cv_prog_cc_pic=
5678 lt_cv_prog_cc_can_build_shared=no
5679 else
5680 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5681 fi
5682
5683 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5684echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5685fi
5686##
5687## END FIXME
5688
5689# Check for any special shared library compilation flags.
5690if test -n "$lt_cv_prog_cc_shlib"; then
5691 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5692echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5693 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5694 else
5695 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5696echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5697 lt_cv_prog_cc_can_build_shared=no
5698 fi
5699fi
5700
5701## FIXME: this should be a separate macro
5702##
5703echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5704echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5705if test "${lt_cv_prog_cc_static_works+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708 lt_cv_prog_cc_static_works=no
5709 save_LDFLAGS="$LDFLAGS"
5710 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5711 cat >conftest.$ac_ext <<_ACEOF
5712/* confdefs.h. */
5713_ACEOF
5714cat confdefs.h >>conftest.$ac_ext
5715cat >>conftest.$ac_ext <<_ACEOF
5716/* end confdefs.h. */
5717
5718int
5719main ()
5720{
5721
5722 ;
5723 return 0;
5724}
5725_ACEOF
5726rm -f conftest.$ac_objext conftest$ac_exeext
5727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728 (eval $ac_link) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest$ac_exeext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 lt_cv_prog_cc_static_works=yes
5748else
5749 echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752fi
5753rm -f conftest.err conftest.$ac_objext \
5754 conftest$ac_exeext conftest.$ac_ext
5755 LDFLAGS="$save_LDFLAGS"
5756
5757fi
5758
5759
5760# Belt *and* braces to stop my trousers falling down:
5761test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5762echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5763echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5764
5765pic_flag="$lt_cv_prog_cc_pic"
5766special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5767wl="$lt_cv_prog_cc_wl"
5768link_static_flag="$lt_cv_prog_cc_static"
5769no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5770can_build_shared="$lt_cv_prog_cc_can_build_shared"
5771##
5772## END FIXME
5773
5774
5775## FIXME: this should be a separate macro
5776##
5777# Check to see if options -o and -c are simultaneously supported by compiler
5778echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5779echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5780$rm -r conftest 2>/dev/null
5781mkdir conftest
5782cd conftest
5783echo "int some_variable = 0;" > conftest.$ac_ext
5784mkdir out
5785# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5786# that will create temporary files in the current directory regardless of
5787# the output directory. Thus, making CWD read-only will cause this test
5788# to fail, enabling locking or at least warning the user not to do parallel
5789# builds.
5790chmod -w .
5791save_CFLAGS="$CFLAGS"
5792CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5793compiler_c_o=no
5794if { (eval echo configure:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5795 # The compiler can only warn and ignore the option if not recognized
5796 # So say no if there are warnings
5797 if test -s out/conftest.err; then
5798 compiler_c_o=no
5799 else
5800 compiler_c_o=yes
5801 fi
5802else
5803 # Append any errors to the config.log.
5804 cat out/conftest.err 1>&5
5805 compiler_c_o=no
5806fi
5807echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5808echo "${ECHO_T}$compiler_c_o" >&6
5809CFLAGS="$save_CFLAGS"
5810chmod u+w .
5811$rm conftest* out/*
5812rmdir out
5813cd ..
5814rmdir conftest
5815$rm -r conftest 2>/dev/null
5816
5817if test x"$compiler_c_o" = x"yes"; then
5818 # Check to see if we can write to a .lo
5819 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5820echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5821 compiler_o_lo=no
5822 save_CFLAGS="$CFLAGS"
5823 CFLAGS="$CFLAGS -c -o conftest.lo"
5824 cat >conftest.$ac_ext <<_ACEOF
5825/* confdefs.h. */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h. */
5830
5831int
5832main ()
5833{
5834int some_variable = 0;
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839rm -f conftest.$ac_objext
5840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
5848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 # The compiler can only warn and ignore the option if not recognized
5861 # So say no if there are warnings
5862 if test -s conftest.err; then
5863 compiler_o_lo=no
5864 else
5865 compiler_o_lo=yes
5866 fi
5867
5868else
5869 echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872fi
5873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5874 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5875echo "${ECHO_T}$compiler_c_o" >&6
5876 CFLAGS="$save_CFLAGS"
5877else
5878 compiler_o_lo=no
5879fi
5880##
5881## END FIXME
5882
5883## FIXME: this should be a separate macro
5884##
5885# Check to see if we can do hard links to lock some files if needed
5886hard_links="nottested"
5887if test "$compiler_c_o" = no && test "$need_locks" != no; then
5888 # do not overwrite the value of need_locks provided by the user
5889 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5890echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5891 hard_links=yes
5892 $rm conftest*
5893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5894 touch conftest.a
5895 ln conftest.a conftest.b 2>&5 || hard_links=no
5896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5897 echo "$as_me:$LINENO: result: $hard_links" >&5
5898echo "${ECHO_T}$hard_links" >&6
5899 if test "$hard_links" = no; then
5900 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5901echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5902 need_locks=warn
5903 fi
5904else
5905 need_locks=no
5906fi
5907##
5908## END FIXME
5909
5910## FIXME: this should be a separate macro
5911##
5912if test "$GCC" = yes; then
5913 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5914 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5915echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5916 echo "int some_variable = 0;" > conftest.$ac_ext
5917 save_CFLAGS="$CFLAGS"
5918 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5919 compiler_rtti_exceptions=no
5920 cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h. */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h. */
5926
5927int
5928main ()
5929{
5930int some_variable = 0;
5931 ;
5932 return 0;
5933}
5934_ACEOF
5935rm -f conftest.$ac_objext
5936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937 (eval $ac_compile) 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest.$ac_objext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 # The compiler can only warn and ignore the option if not recognized
5957 # So say no if there are warnings
5958 if test -s conftest.err; then
5959 compiler_rtti_exceptions=no
5960 else
5961 compiler_rtti_exceptions=yes
5962 fi
5963
5964else
5965 echo "$as_me: failed program was:" >&5
5966sed 's/^/| /' conftest.$ac_ext >&5
5967
5968fi
5969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5970 CFLAGS="$save_CFLAGS"
5971 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5972echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5973
5974 if test "$compiler_rtti_exceptions" = "yes"; then
5975 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5976 else
5977 no_builtin_flag=' -fno-builtin'
5978 fi
5979fi
5980##
5981## END FIXME
5982
5983## FIXME: this should be a separate macro
5984##
5985# See if the linker supports building shared libraries.
5986echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5987echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5988
5989allow_undefined_flag=
5990no_undefined_flag=
5991need_lib_prefix=unknown
5992need_version=unknown
5993# when you set need_version to no, make sure it does not cause -set_version
5994# flags to be left without arguments
5995archive_cmds=
5996archive_expsym_cmds=
5997old_archive_from_new_cmds=
5998old_archive_from_expsyms_cmds=
5999export_dynamic_flag_spec=
6000whole_archive_flag_spec=
6001thread_safe_flag_spec=
6002hardcode_into_libs=no
6003hardcode_libdir_flag_spec=
6004hardcode_libdir_separator=
6005hardcode_direct=no
6006hardcode_minus_L=no
6007hardcode_shlibpath_var=unsupported
6008runpath_var=
6009link_all_deplibs=unknown
6010always_export_symbols=no
6011export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6012# include_expsyms should be a list of space-separated symbols to be *always*
6013# included in the symbol list
6014include_expsyms=
6015# exclude_expsyms can be an egrep regular expression of symbols to exclude
6016# it will be wrapped by ` (' and `)$', so one must not match beginning or
6017# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6018# as well as any symbol that contains `d'.
6019exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6020# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6021# platforms (ab)use it in PIC code, but their linkers get confused if
6022# the symbol is explicitly referenced. Since portable code cannot
6023# rely on this symbol name, it's probably fine to never include it in
6024# preloaded symbol tables.
6025extract_expsyms_cmds=
6026
6027case "$host_os" in
6028cygwin* | mingw* | pw32* )
6029 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6030 # When not using gcc, we currently assume that we are using
6031 # Microsoft Visual C++.
6032 if test "$GCC" != yes; then
6033 with_gnu_ld=no
6034 fi
6035 ;;
6036
6037esac
6038
6039ld_shlibs=yes
6040if test "$with_gnu_ld" = yes; then
6041 # If archive_cmds runs LD, not CC, wlarc should be empty
6042 wlarc='${wl}'
6043
6044 # See if GNU ld supports shared libraries.
6045 case "$host_os" in
6046 aix3* | aix4*)
6047 # On AIX, the GNU linker is very broken
6048 ld_shlibs=no
6049 cat <<EOF 1>&2
6050
6051*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6052*** to be unable to reliably create shared libraries on AIX.
6053*** Therefore, libtool is disabling shared libraries support. If you
6054*** really care for shared libraries, you may want to modify your PATH
6055*** so that a non-GNU linker is found, and then restart.
6056
6057EOF
6058 ;;
6059
6060 amigaos*)
6061 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)'
6062 hardcode_libdir_flag_spec='-L$libdir'
6063 hardcode_minus_L=yes
6064
6065 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6066 # that the semantics of dynamic libraries on AmigaOS, at least up
6067 # to version 4, is to share data among multiple programs linked
6068 # with the same dynamic library. Since this doesn't match the
6069 # behavior of shared libraries on other platforms, we can use
6070 # them.
6071 ld_shlibs=no
6072 ;;
6073
6074 beos*)
6075 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6076 allow_undefined_flag=unsupported
6077 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6078 # support --undefined. This deserves some investigation. FIXME
6079 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6080 else
6081 ld_shlibs=no
6082 fi
6083 ;;
6084
6085 cygwin* | mingw* | pw32*)
6086 # hardcode_libdir_flag_spec is actually meaningless, as there is
6087 # no search path for DLLs.
6088 hardcode_libdir_flag_spec='-L$libdir'
6089 allow_undefined_flag=unsupported
6090 always_export_symbols=yes
6091
6092 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6093 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6094 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6095 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6096 else $CC -o impgen impgen.c ; fi)~
6097 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
6098
6099 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6100
6101 # cygwin and mingw dlls have different entry points and sets of symbols
6102 # to exclude.
6103 # FIXME: what about values for MSVC?
6104 dll_entry=__cygwin_dll_entry@12
6105 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6106 case "$host_os" in
6107 mingw*)
6108 # mingw values
6109 dll_entry=_DllMainCRTStartup@12
6110 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6111 ;;
6112 esac
6113
6114 # mingw and cygwin differ, and it's simplest to just exclude the union
6115 # of the two symbol sets.
6116 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6117
6118 # recent cygwin and mingw systems supply a stub DllMain which the user
6119 # can override, but on older systems we have to supply one (in ltdll.c)
6120 if test "x$lt_cv_need_dllmain" = "xyes"; then
6121 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6122 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~
6123 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6124 else
6125 ltdll_obj=
6126 ltdll_cmds=
6127 fi
6128
6129 # Extract the symbol export list from an `--export-all' def file,
6130 # then regenerate the def file from the symbol export list, so that
6131 # the compiled dll only exports the symbol export list.
6132 # Be careful not to strip the DATA tag left be newer dlltools.
6133 export_symbols_cmds="$ltdll_cmds"'
6134 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6135 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6136
6137 # If DATA tags from a recent dlltool are present, honour them!
6138 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
6139 _lt_hint=1;
6140 cat $export_symbols | while read symbol; do
6141 set dummy \$symbol;
6142 case \$# in
6143 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6144 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6145 esac;
6146 _lt_hint=`expr 1 + \$_lt_hint`;
6147 done~
6148 '"$ltdll_cmds"'
6149 $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~
6150 $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~
6151 $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~
6152 $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~
6153 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6154 ;;
6155
6156 netbsd*)
6157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6158 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6159 wlarc=
6160 else
6161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6162 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6163 fi
6164 ;;
6165
6166 solaris* | sysv5*)
6167 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6168 ld_shlibs=no
6169 cat <<EOF 1>&2
6170
6171*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6172*** create shared libraries on Solaris systems. Therefore, libtool
6173*** is disabling shared libraries support. We urge you to upgrade GNU
6174*** binutils to release 2.9.1 or newer. Another option is to modify
6175*** your PATH or compiler configuration so that the native linker is
6176*** used, and then restart.
6177
6178EOF
6179 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6181 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6182 else
6183 ld_shlibs=no
6184 fi
6185 ;;
6186
6187 sunos4*)
6188 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6189 wlarc=
6190 hardcode_direct=yes
6191 hardcode_shlibpath_var=no
6192 ;;
6193
6194 *)
6195 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6198 else
6199 ld_shlibs=no
6200 fi
6201 ;;
6202 esac
6203
6204 if test "$ld_shlibs" = yes; then
6205 runpath_var=LD_RUN_PATH
6206 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6207 export_dynamic_flag_spec='${wl}--export-dynamic'
6208 case $host_os in
6209 cygwin* | mingw* | pw32*)
6210 # dlltool doesn't understand --whole-archive et. al.
6211 whole_archive_flag_spec=
6212 ;;
6213 *)
6214 # ancient GNU ld didn't support --whole-archive et. al.
6215 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6216 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6217 else
6218 whole_archive_flag_spec=
6219 fi
6220 ;;
6221 esac
6222 fi
6223else
6224 # PORTME fill in a description of your system's linker (not GNU ld)
6225 case "$host_os" in
6226 aix3*)
6227 allow_undefined_flag=unsupported
6228 always_export_symbols=yes
6229 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'
6230 # Note: this linker hardcodes the directories in LIBPATH if there
6231 # are no directories specified by -L.
6232 hardcode_minus_L=yes
6233 if test "$GCC" = yes && test -z "$link_static_flag"; then
6234 # Neither direct hardcoding nor static linking is supported with a
6235 # broken collect2.
6236 hardcode_direct=unsupported
6237 fi
6238 ;;
6239
6240 aix4*)
6241 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6242 hardcode_libdir_separator=':'
6243 if test "$GCC" = yes; then
6244 collect2name=`${CC} -print-prog-name=collect2`
6245 if test -f "$collect2name" && \
6246 strings "$collect2name" | grep resolve_lib_name >/dev/null
6247 then
6248 # We have reworked collect2
6249 hardcode_direct=yes
6250 else
6251 # We have old collect2
6252 hardcode_direct=unsupported
6253 # It fails to find uninstalled libraries when the uninstalled
6254 # path is not listed in the libpath. Setting hardcode_minus_L
6255 # to unsupported forces relinking
6256 hardcode_minus_L=yes
6257 hardcode_libdir_flag_spec='-L$libdir'
6258 hardcode_libdir_separator=
6259 fi
6260 shared_flag='-shared'
6261 else
6262 shared_flag='${wl}-bM:SRE'
6263 hardcode_direct=yes
6264 fi
6265 allow_undefined_flag=' ${wl}-berok'
6266 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6267 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6268 case "$host_os" in aix4.[01]|aix4.[01].*)
6269 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6270 always_export_symbols=yes ;;
6271 esac
6272
6273 # We don't want to build shared libraries on unknown CPU types.
6274 case $host_cpu in
6275 powerpc | rs6000) ;;
6276 *) ld_shlibs=no ;;
6277 esac
6278 ;;
6279
6280 amigaos*)
6281 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)'
6282 hardcode_libdir_flag_spec='-L$libdir'
6283 hardcode_minus_L=yes
6284 # see comment about different semantics on the GNU ld section
6285 ld_shlibs=no
6286 ;;
6287
6288 cygwin* | mingw* | pw32*)
6289 # When not using gcc, we currently assume that we are using
6290 # Microsoft Visual C++.
6291 # hardcode_libdir_flag_spec is actually meaningless, as there is
6292 # no search path for DLLs.
6293 hardcode_libdir_flag_spec=' '
6294 allow_undefined_flag=unsupported
6295 # Tell ltmain to make .lib files, not .a files.
6296 libext=lib
6297 # FIXME: Setting linknames here is a bad hack.
6298 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6299 # The linker will automatically build a .lib file if we build a DLL.
6300 old_archive_from_new_cmds='true'
6301 # FIXME: Should let the user specify the lib program.
6302 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6303 fix_srcfile_path='`cygpath -w "$srcfile"`'
6304 ;;
6305
6306 darwin* | rhapsody*)
6307 allow_undefined_flag='-undefined warning'
6308 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6309 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6310 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6311 ## What we need is to hardcode the path to the library, not the search path
6312 #hardcode_direct=yes
6313 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6314 hardcode_shlibpath_var=no
6315 whole_archive_flag_spec='-all_load'
6316 ;;
6317
6318 freebsd1*)
6319 ld_shlibs=no
6320 ;;
6321
6322 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6323 # support. Future versions do this automatically, but an explicit c++rt0.o
6324 # does not break anything, and helps significantly (at the cost of a little
6325 # extra space).
6326 freebsd2.2*)
6327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6328 hardcode_libdir_flag_spec='-R$libdir'
6329 hardcode_direct=yes
6330 hardcode_shlibpath_var=no
6331 ;;
6332
6333 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6334 freebsd2*)
6335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6336 hardcode_direct=yes
6337 hardcode_minus_L=yes
6338 hardcode_shlibpath_var=no
6339 ;;
6340
6341 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6342 freebsd*)
6343 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6344 hardcode_libdir_flag_spec='-R$libdir'
6345 hardcode_direct=yes
6346 hardcode_shlibpath_var=no
6347 ;;
6348
6349 hpux9* | hpux10* | hpux11*)
6350 case "$host_os" in
6351 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' ;;
6352 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6353 esac
6354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6355 hardcode_libdir_separator=:
6356 hardcode_direct=yes
6357 hardcode_minus_L=yes # Not in the search PATH, but as the default
6358 # location of the library.
6359 export_dynamic_flag_spec='${wl}-E'
6360 ;;
6361
6362 irix5* | irix6*)
6363 if test "$GCC" = yes; then
6364 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'
6365 else
6366 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'
6367 fi
6368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6369 hardcode_libdir_separator=:
6370 link_all_deplibs=yes
6371 ;;
6372
6373 netbsd*)
6374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6376 else
6377 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6378 fi
6379 hardcode_libdir_flag_spec='-R$libdir'
6380 hardcode_direct=yes
6381 hardcode_shlibpath_var=no
6382 ;;
6383
6384 newsos6)
6385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6386 hardcode_direct=yes
6387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6388 hardcode_libdir_separator=:
6389 hardcode_shlibpath_var=no
6390 ;;
6391
6392 openbsd*)
6393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6394 hardcode_libdir_flag_spec='-R$libdir'
6395 hardcode_direct=yes
6396 hardcode_shlibpath_var=no
6397 ;;
6398
6399 os2*)
6400 hardcode_libdir_flag_spec='-L$libdir'
6401 hardcode_minus_L=yes
6402 allow_undefined_flag=unsupported
6403 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'
6404 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6405 ;;
6406
6407 osf3*)
6408 if test "$GCC" = yes; then
6409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6410 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'
6411 else
6412 allow_undefined_flag=' -expect_unresolved \*'
6413 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'
6414 fi
6415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6416 hardcode_libdir_separator=:
6417 ;;
6418
6419 osf4* | osf5*) # as osf3* with the addition of -msym flag
6420 if test "$GCC" = yes; then
6421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6422 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'
6423 else
6424 allow_undefined_flag=' -expect_unresolved \*'
6425 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'
6426 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6427 $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'
6428 fi
6429#Both c and cxx compiler support -rpath directly
6430 hardcode_libdir_flag_spec='-rpath $libdir'
6431 hardcode_libdir_separator=:
6432 ;;
6433
6434 sco3.2v5*)
6435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6436 hardcode_shlibpath_var=no
6437 runpath_var=LD_RUN_PATH
6438 hardcode_runpath_var=yes
6439 ;;
6440
6441 solaris*)
6442 no_undefined_flag=' -z text'
6443 # $CC -shared without GNU ld will not create a library from C++
6444 # object files and a static libstdc++, better avoid it by now
6445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6446 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6448 hardcode_libdir_flag_spec='-R$libdir'
6449 hardcode_shlibpath_var=no
6450 case "$host_os" in
6451 solaris2.[0-5] | solaris2.[0-5].*) ;;
6452 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6453 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6454 esac
6455 link_all_deplibs=yes
6456 ;;
6457
6458 sunos4*)
6459 if test "x$host_vendor" = xsequent; then
6460 # Use $CC to link under sequent, because it throws in some extra .o
6461 # files that make .init and .fini sections work.
6462 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6463 else
6464 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6465 fi
6466 hardcode_libdir_flag_spec='-L$libdir'
6467 hardcode_direct=yes
6468 hardcode_minus_L=yes
6469 hardcode_shlibpath_var=no
6470 ;;
6471
6472 sysv4)
6473 if test "x$host_vendor" = xsno; then
6474 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6475 hardcode_direct=yes # is this really true???
6476 else
6477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6478 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6479 fi
6480 runpath_var='LD_RUN_PATH'
6481 hardcode_shlibpath_var=no
6482 ;;
6483
6484 sysv4.3*)
6485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6486 hardcode_shlibpath_var=no
6487 export_dynamic_flag_spec='-Bexport'
6488 ;;
6489
6490 sysv5*)
6491 no_undefined_flag=' -z text'
6492 # $CC -shared without GNU ld will not create a library from C++
6493 # object files and a static libstdc++, better avoid it by now
6494 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6495 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6497 hardcode_libdir_flag_spec=
6498 hardcode_shlibpath_var=no
6499 runpath_var='LD_RUN_PATH'
6500 ;;
6501
6502 uts4*)
6503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6504 hardcode_libdir_flag_spec='-L$libdir'
6505 hardcode_shlibpath_var=no
6506 ;;
6507
6508 dgux*)
6509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6510 hardcode_libdir_flag_spec='-L$libdir'
6511 hardcode_shlibpath_var=no
6512 ;;
6513
6514 sysv4*MP*)
6515 if test -d /usr/nec; then
6516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6517 hardcode_shlibpath_var=no
6518 runpath_var=LD_RUN_PATH
6519 hardcode_runpath_var=yes
6520 ld_shlibs=yes
6521 fi
6522 ;;
6523
6524 sysv4.2uw2*)
6525 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6526 hardcode_direct=yes
6527 hardcode_minus_L=no
6528 hardcode_shlibpath_var=no
6529 hardcode_runpath_var=yes
6530 runpath_var=LD_RUN_PATH
6531 ;;
6532
6533 unixware7*)
6534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6535 runpath_var='LD_RUN_PATH'
6536 hardcode_shlibpath_var=no
6537 ;;
6538
6539 *)
6540 ld_shlibs=no
6541 ;;
6542 esac
6543fi
6544echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6545echo "${ECHO_T}$ld_shlibs" >&6
6546test "$ld_shlibs" = no && can_build_shared=no
6547##
6548## END FIXME
6549
6550## FIXME: this should be a separate macro
6551##
6552# Check hardcoding attributes.
6553echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6554echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6555hardcode_action=
6556if test -n "$hardcode_libdir_flag_spec" || \
6557 test -n "$runpath_var"; then
6558
6559 # We can hardcode non-existant directories.
6560 if test "$hardcode_direct" != no &&
6561 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6562 # have to relink, otherwise we might link with an installed library
6563 # when we should be linking with a yet-to-be-installed one
6564 ## test "$hardcode_shlibpath_var" != no &&
6565 test "$hardcode_minus_L" != no; then
6566 # Linking always hardcodes the temporary library directory.
6567 hardcode_action=relink
6568 else
6569 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6570 hardcode_action=immediate
6571 fi
6572else
6573 # We cannot hardcode anything, or else we can only hardcode existing
6574 # directories.
6575 hardcode_action=unsupported
6576fi
6577echo "$as_me:$LINENO: result: $hardcode_action" >&5
6578echo "${ECHO_T}$hardcode_action" >&6
6579##
6580## END FIXME
6581
6582## FIXME: this should be a separate macro
6583##
6584striplib=
6585old_striplib=
6586echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6587echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6588if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6589 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6590 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6591 echo "$as_me:$LINENO: result: yes" >&5
6592echo "${ECHO_T}yes" >&6
6593else
6594 echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6
6596fi
6597##
6598## END FIXME
6599
6600reload_cmds='$LD$reload_flag -o $output$reload_objs'
6601test -z "$deplibs_check_method" && deplibs_check_method=unknown
6602
6603## FIXME: this should be a separate macro
6604##
6605# PORTME Fill in your ld.so characteristics
6606echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6607echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6608library_names_spec=
6609libname_spec='lib$name'
6610soname_spec=
6611postinstall_cmds=
6612postuninstall_cmds=
6613finish_cmds=
6614finish_eval=
6615shlibpath_var=
6616shlibpath_overrides_runpath=unknown
6617version_type=none
6618dynamic_linker="$host_os ld.so"
6619sys_lib_dlsearch_path_spec="/lib /usr/lib"
6620sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6621
6622case "$host_os" in
6623aix3*)
6624 version_type=linux
6625 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6626 shlibpath_var=LIBPATH
6627
6628 # AIX has no versioning support, so we append a major version to the name.
6629 soname_spec='${libname}${release}.so$major'
6630 ;;
6631
6632aix4*)
6633 version_type=linux
6634 # AIX has no versioning support, so currently we can not hardcode correct
6635 # soname into executable. Probably we can add versioning support to
6636 # collect2, so additional links can be useful in future.
6637 # We preserve .a as extension for shared libraries though AIX4.2
6638 # and later linker supports .so
6639 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6640 shlibpath_var=LIBPATH
6641 ;;
6642
6643amigaos*)
6644 library_names_spec='$libname.ixlibrary $libname.a'
6645 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6646 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'
6647 ;;
6648
6649beos*)
6650 library_names_spec='${libname}.so'
6651 dynamic_linker="$host_os ld.so"
6652 shlibpath_var=LIBRARY_PATH
6653 ;;
6654
6655bsdi4*)
6656 version_type=linux
6657 need_version=no
6658 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6659 soname_spec='${libname}${release}.so$major'
6660 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6661 shlibpath_var=LD_LIBRARY_PATH
6662 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6663 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6664 export_dynamic_flag_spec=-rdynamic
6665 # the default ld.so.conf also contains /usr/contrib/lib and
6666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6667 # libtool to hard-code these into programs
6668 ;;
6669
6670cygwin* | mingw* | pw32*)
6671 version_type=windows
6672 need_version=no
6673 need_lib_prefix=no
6674 if test "$GCC" = yes; then
6675 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6676 else
6677 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6678 fi
6679 dynamic_linker='Win32 ld.exe'
6680 # FIXME: first we should search . and the directory the executable is in
6681 shlibpath_var=PATH
6682 ;;
6683
6684darwin* | rhapsody*)
6685 need_lib_prefix=no
6686 need_version=no
6687 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6688 shlibpath_overrides_runpath=yes
6689 shlibpath_var=DYLD_LIBRARY_PATH
6690 postinstall_cmds='chmod +x $lib'
6691 ;;
6692
6693freebsd1*)
6694 dynamic_linker=no
6695 ;;
6696
6697freebsd*)
6698 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6699 version_type=freebsd-$objformat
6700 case "$version_type" in
6701 freebsd-elf*)
6702 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6703 need_version=no
6704 need_lib_prefix=no
6705 ;;
6706 freebsd-*)
6707 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6708 need_version=yes
6709 ;;
6710 esac
6711 shlibpath_var=LD_LIBRARY_PATH
6712 case "$host_os" in
6713 freebsd2*)
6714 shlibpath_overrides_runpath=yes
6715 ;;
6716 *)
6717 shlibpath_overrides_runpath=no
6718 hardcode_into_libs=yes
6719 ;;
6720 esac
6721 ;;
6722
6723gnu*)
6724 version_type=linux
6725 need_lib_prefix=no
6726 need_version=no
6727 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6728 soname_spec='${libname}${release}.so$major'
6729 shlibpath_var=LD_LIBRARY_PATH
6730 hardcode_into_libs=yes
6731 ;;
6732
6733hpux9* | hpux10* | hpux11*)
6734 # Give a soname corresponding to the major version so that dld.sl refuses to
6735 # link against other versions.
6736 dynamic_linker="$host_os dld.sl"
6737 version_type=sunos
6738 need_lib_prefix=no
6739 need_version=no
6740 shlibpath_var=SHLIB_PATH
6741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6742 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6743 soname_spec='${libname}${release}.sl$major'
6744 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6745 postinstall_cmds='chmod 555 $lib'
6746 ;;
6747
6748irix5* | irix6*)
6749 version_type=irix
6750 need_lib_prefix=no
6751 need_version=no
6752 soname_spec='${libname}${release}.so$major'
6753 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6754 case "$host_os" in
6755 irix5*)
6756 libsuff= shlibsuff=
6757 ;;
6758 *)
6759 case "$LD" in # libtool.m4 will add one of these switches to LD
6760 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6761 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6762 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6763 *) libsuff= shlibsuff= libmagic=never-match;;
6764 esac
6765 ;;
6766 esac
6767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6768 shlibpath_overrides_runpath=no
6769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6771 ;;
6772
6773# No shared lib support for Linux oldld, aout, or coff.
6774linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6775 dynamic_linker=no
6776 ;;
6777
6778# This must be Linux ELF.
6779linux-gnu*)
6780 version_type=linux
6781 need_lib_prefix=no
6782 need_version=no
6783 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6784 soname_spec='${libname}${release}.so$major'
6785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6786 shlibpath_var=LD_LIBRARY_PATH
6787 shlibpath_overrides_runpath=no
6788 # This implies no fast_install, which is unacceptable.
6789 # Some rework will be needed to allow for fast_install
6790 # before this can be enabled.
6791 hardcode_into_libs=yes
6792
6793 # We used to test for /lib/ld.so.1 and disable shared libraries on
6794 # powerpc, because MkLinux only supported shared libraries with the
6795 # GNU dynamic linker. Since this was broken with cross compilers,
6796 # most powerpc-linux boxes support dynamic linking these days and
6797 # people can always --disable-shared, the test was removed, and we
6798 # assume the GNU/Linux dynamic linker is in use.
6799 dynamic_linker='GNU/Linux ld.so'
6800 ;;
6801
6802netbsd*)
6803 version_type=sunos
6804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6805 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6807 dynamic_linker='NetBSD (a.out) ld.so'
6808 else
6809 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6810 soname_spec='${libname}${release}.so$major'
6811 dynamic_linker='NetBSD ld.elf_so'
6812 fi
6813 shlibpath_var=LD_LIBRARY_PATH
6814 shlibpath_overrides_runpath=yes
6815 hardcode_into_libs=yes
6816 ;;
6817
6818newsos6)
6819 version_type=linux
6820 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6821 shlibpath_var=LD_LIBRARY_PATH
6822 shlibpath_overrides_runpath=yes
6823 ;;
6824
6825openbsd*)
6826 version_type=sunos
6827 if test "$with_gnu_ld" = yes; then
6828 need_lib_prefix=no
6829 need_version=no
6830 fi
6831 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6833 shlibpath_var=LD_LIBRARY_PATH
6834 ;;
6835
6836os2*)
6837 libname_spec='$name'
6838 need_lib_prefix=no
6839 library_names_spec='$libname.dll $libname.a'
6840 dynamic_linker='OS/2 ld.exe'
6841 shlibpath_var=LIBPATH
6842 ;;
6843
6844osf3* | osf4* | osf5*)
6845 version_type=osf
6846 need_version=no
6847 soname_spec='${libname}${release}.so'
6848 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6849 shlibpath_var=LD_LIBRARY_PATH
6850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6852 ;;
6853
6854sco3.2v5*)
6855 version_type=osf
6856 soname_spec='${libname}${release}.so$major'
6857 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6858 shlibpath_var=LD_LIBRARY_PATH
6859 ;;
6860
6861solaris*)
6862 version_type=linux
6863 need_lib_prefix=no
6864 need_version=no
6865 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6866 soname_spec='${libname}${release}.so$major'
6867 shlibpath_var=LD_LIBRARY_PATH
6868 shlibpath_overrides_runpath=yes
6869 hardcode_into_libs=yes
6870 # ldd complains unless libraries are executable
6871 postinstall_cmds='chmod +x $lib'
6872 ;;
6873
6874sunos4*)
6875 version_type=sunos
6876 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6878 shlibpath_var=LD_LIBRARY_PATH
6879 shlibpath_overrides_runpath=yes
6880 if test "$with_gnu_ld" = yes; then
6881 need_lib_prefix=no
6882 fi
6883 need_version=yes
6884 ;;
6885
6886sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6887 version_type=linux
6888 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6889 soname_spec='${libname}${release}.so$major'
6890 shlibpath_var=LD_LIBRARY_PATH
6891 case "$host_vendor" in
6892 sni)
6893 shlibpath_overrides_runpath=no
6894 ;;
6895 motorola)
6896 need_lib_prefix=no
6897 need_version=no
6898 shlibpath_overrides_runpath=no
6899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6900 ;;
6901 esac
6902 ;;
6903
6904uts4*)
6905 version_type=linux
6906 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6907 soname_spec='${libname}${release}.so$major'
6908 shlibpath_var=LD_LIBRARY_PATH
6909 ;;
6910
6911dgux*)
6912 version_type=linux
6913 need_lib_prefix=no
6914 need_version=no
6915 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6916 soname_spec='${libname}${release}.so$major'
6917 shlibpath_var=LD_LIBRARY_PATH
6918 ;;
6919
6920sysv4*MP*)
6921 if test -d /usr/nec ;then
6922 version_type=linux
6923 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6924 soname_spec='$libname.so.$major'
6925 shlibpath_var=LD_LIBRARY_PATH
6926 fi
6927 ;;
6928
6929*)
6930 dynamic_linker=no
6931 ;;
6932esac
6933echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6934echo "${ECHO_T}$dynamic_linker" >&6
6935test "$dynamic_linker" = no && can_build_shared=no
6936##
6937## END FIXME
6938
6939## FIXME: this should be a separate macro
6940##
6941# Report the final consequences.
6942echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6943echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6944echo "$as_me:$LINENO: result: $can_build_shared" >&5
6945echo "${ECHO_T}$can_build_shared" >&6
6946##
6947## END FIXME
6948
6949if test "$hardcode_action" = relink; then
6950 # Fast installation is not supported
6951 enable_fast_install=no
6952elif test "$shlibpath_overrides_runpath" = yes ||
6953 test "$enable_shared" = no; then
6954 # Fast installation is not necessary
6955 enable_fast_install=needless
6956fi
6957
6958variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6959if test "$GCC" = yes; then
6960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6961fi
6962
6963if test "x$enable_dlopen" != xyes; then
6964 enable_dlopen=unknown
6965 enable_dlopen_self=unknown
6966 enable_dlopen_self_static=unknown
6967else
6968 lt_cv_dlopen=no
6969 lt_cv_dlopen_libs=
6970
6971 case "$host_os" in
6972 beos*)
6973 lt_cv_dlopen="load_add_on"
6974 lt_cv_dlopen_libs=
6975 lt_cv_dlopen_self=yes
6976 ;;
6977
6978 cygwin* | mingw* | pw32*)
6979 lt_cv_dlopen="LoadLibrary"
6980 lt_cv_dlopen_libs=
6981 ;;
6982
6983 *)
6984 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6985echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6986if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 ac_check_lib_save_LIBS=$LIBS
6990LIBS="-ldl $LIBS"
6991cat >conftest.$ac_ext <<_ACEOF
6992/* confdefs.h. */
6993_ACEOF
6994cat confdefs.h >>conftest.$ac_ext
6995cat >>conftest.$ac_ext <<_ACEOF
6996/* end confdefs.h. */
6997
6998/* Override any gcc2 internal prototype to avoid an error. */
6999#ifdef __cplusplus
7000extern "C"
7001#endif
7002/* We use char because int might match the return type of a gcc2
7003 builtin and then its argument prototype would still apply. */
7004char dlopen ();
7005int
7006main ()
7007{
7008dlopen ();
7009 ;
7010 return 0;
7011}
7012_ACEOF
7013rm -f conftest.$ac_objext conftest$ac_exeext
7014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015 (eval $ac_link) 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest$ac_exeext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_cv_lib_dl_dlopen=yes
7035else
7036 echo "$as_me: failed program was:" >&5
7037sed 's/^/| /' conftest.$ac_ext >&5
7038
7039ac_cv_lib_dl_dlopen=no
7040fi
7041rm -f conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043LIBS=$ac_check_lib_save_LIBS
7044fi
7045echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7046echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7047if test $ac_cv_lib_dl_dlopen = yes; then
7048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7049else
7050 echo "$as_me:$LINENO: checking for dlopen" >&5
7051echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7052if test "${ac_cv_func_dlopen+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055 cat >conftest.$ac_ext <<_ACEOF
7056/* confdefs.h. */
7057_ACEOF
7058cat confdefs.h >>conftest.$ac_ext
7059cat >>conftest.$ac_ext <<_ACEOF
7060/* end confdefs.h. */
7061/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 3881/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
7062 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7063#define dlopen innocuous_dlopen 3883#define sched_yield innocuous_sched_yield
7064 3884
7065/* System header to define __stub macros and hopefully few prototypes, 3885/* System header to define __stub macros and hopefully few prototypes,
7066 which can conflict with char dlopen (); below. 3886 which can conflict with char sched_yield (); below.
7067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7068 <limits.h> exists even on freestanding compilers. */ 3888 <limits.h> exists even on freestanding compilers. */
7069 3889
7070#ifdef __STDC__ 3890#ifdef __STDC__
7071# include <limits.h> 3891# include <limits.h>
7072#else 3892#else
7073# include <assert.h> 3893# include <assert.h>
7074#endif 3894#endif
7075 3895
7076#undef dlopen 3896#undef sched_yield
7077 3897
7078/* Override any gcc2 internal prototype to avoid an error. */ 3898/* Override any gcc2 internal prototype to avoid an error. */
7079#ifdef __cplusplus 3899#ifdef __cplusplus
7080extern "C" 3900extern "C"
7081{ 3901{
7082#endif 3902#endif
7083/* We use char because int might match the return type of a gcc2 3903/* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */ 3904 builtin and then its argument prototype would still apply. */
7085char dlopen (); 3905char sched_yield ();
7086/* The GNU C library defines this for functions which it implements 3906/* The GNU C library defines this for functions which it implements
7087 to always fail with ENOSYS. Some functions are actually named 3907 to always fail with ENOSYS. Some functions are actually named
7088 something starting with __ and the normal name is an alias. */ 3908 something starting with __ and the normal name is an alias. */
7089#if defined (__stub_dlopen) || defined (__stub___dlopen) 3909#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
7090choke me 3910choke me
7091#else 3911#else
7092char (*f) () = dlopen; 3912char (*f) () = sched_yield;
7093#endif 3913#endif
7094#ifdef __cplusplus 3914#ifdef __cplusplus
7095} 3915}
7096#endif 3916#endif
7097 3917
7098int 3918int
7099main () 3919main ()
7100{ 3920{
7101return f != dlopen; 3921return f != sched_yield;
7102 ; 3922 ;
7103 return 0; 3923 return 0;
7104} 3924}
7105_ACEOF 3925_ACEOF
7106rm -f conftest.$ac_objext conftest$ac_exeext 3926rm -f conftest.$ac_objext conftest$ac_exeext
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5 3943 (eval $ac_try) 2>&5
7124 ac_status=$? 3944 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then 3946 (exit $ac_status); }; }; then
7127 ac_cv_func_dlopen=yes 3947 ac_cv_func_sched_yield=yes
7128else 3948else
7129 echo "$as_me: failed program was:" >&5 3949 echo "$as_me: failed program was:" >&5
7130sed 's/^/| /' conftest.$ac_ext >&5 3950sed 's/^/| /' conftest.$ac_ext >&5
7131 3951
7132ac_cv_func_dlopen=no 3952ac_cv_func_sched_yield=no
7133fi 3953fi
7134rm -f conftest.err conftest.$ac_objext \ 3954rm -f conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext 3955 conftest$ac_exeext conftest.$ac_ext
7136fi 3956fi
7137echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 3957echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
7138echo "${ECHO_T}$ac_cv_func_dlopen" >&6 3958echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
7139if test $ac_cv_func_dlopen = yes; then 3959if test $ac_cv_func_sched_yield = yes; then
7140 lt_cv_dlopen="dlopen" 3960 :
7141else 3961else
7142 echo "$as_me:$LINENO: checking for shl_load" >&5 3962 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
7143echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 3963echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
7144if test "${ac_cv_func_shl_load+set}" = set; then 3964if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6 3965 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else 3966else
7147 cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7155#define shl_load innocuous_shl_load
7156
7157/* System header to define __stub macros and hopefully few prototypes,
7158 which can conflict with char shl_load (); below.
7159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7160 <limits.h> exists even on freestanding compilers. */
7161
7162#ifdef __STDC__
7163# include <limits.h>
7164#else
7165# include <assert.h>
7166#endif
7167
7168#undef shl_load
7169
7170/* Override any gcc2 internal prototype to avoid an error. */
7171#ifdef __cplusplus
7172extern "C"
7173{
7174#endif
7175/* We use char because int might match the return type of a gcc2
7176 builtin and then its argument prototype would still apply. */
7177char shl_load ();
7178/* The GNU C library defines this for functions which it implements
7179 to always fail with ENOSYS. Some functions are actually named
7180 something starting with __ and the normal name is an alias. */
7181#if defined (__stub_shl_load) || defined (__stub___shl_load)
7182choke me
7183#else
7184char (*f) () = shl_load;
7185#endif
7186#ifdef __cplusplus
7187}
7188#endif
7189
7190int
7191main ()
7192{
7193return f != shl_load;
7194 ;
7195 return 0;
7196}
7197_ACEOF
7198rm -f conftest.$ac_objext conftest$ac_exeext
7199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200 (eval $ac_link) 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
7207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 (eval $ac_try) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; } &&
7213 { ac_try='test -s conftest$ac_exeext'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; }; then
7219 ac_cv_func_shl_load=yes
7220else
7221 echo "$as_me: failed program was:" >&5
7222sed 's/^/| /' conftest.$ac_ext >&5
7223
7224ac_cv_func_shl_load=no
7225fi
7226rm -f conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7228fi
7229echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7230echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7231if test $ac_cv_func_shl_load = yes; then
7232 lt_cv_dlopen="shl_load"
7233else
7234 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7235echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7236if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 ac_check_lib_save_LIBS=$LIBS 3967 ac_check_lib_save_LIBS=$LIBS
7240LIBS="-lsvld $LIBS" 3968LIBS="-lrt $LIBS"
7241cat >conftest.$ac_ext <<_ACEOF 3969cat >conftest.$ac_ext <<_ACEOF
7242/* confdefs.h. */ 3970/* confdefs.h. */
7243_ACEOF 3971_ACEOF
7244cat confdefs.h >>conftest.$ac_ext 3972cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF 3973cat >>conftest.$ac_ext <<_ACEOF
7249#ifdef __cplusplus 3977#ifdef __cplusplus
7250extern "C" 3978extern "C"
7251#endif 3979#endif
7252/* We use char because int might match the return type of a gcc2 3980/* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */ 3981 builtin and then its argument prototype would still apply. */
7254char dlopen (); 3982char sched_yield ();
7255int 3983int
7256main () 3984main ()
7257{ 3985{
7258dlopen (); 3986sched_yield ();
7259 ; 3987 ;
7260 return 0; 3988 return 0;
7261} 3989}
7262_ACEOF 3990_ACEOF
7263rm -f conftest.$ac_objext conftest$ac_exeext 3991rm -f conftest.$ac_objext conftest$ac_exeext
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5 4008 (eval $ac_try) 2>&5
7281 ac_status=$? 4009 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then 4011 (exit $ac_status); }; }; then
7284 ac_cv_lib_svld_dlopen=yes 4012 ac_cv_lib_rt_sched_yield=yes
7285else 4013else
7286 echo "$as_me: failed program was:" >&5 4014 echo "$as_me: failed program was:" >&5
7287sed 's/^/| /' conftest.$ac_ext >&5 4015sed 's/^/| /' conftest.$ac_ext >&5
7288 4016
7289ac_cv_lib_svld_dlopen=no 4017ac_cv_lib_rt_sched_yield=no
7290fi 4018fi
7291rm -f conftest.err conftest.$ac_objext \ 4019rm -f conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext 4020 conftest$ac_exeext conftest.$ac_ext
7293LIBS=$ac_check_lib_save_LIBS 4021LIBS=$ac_check_lib_save_LIBS
7294fi 4022fi
7295echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 4023echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
7296echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 4024echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
7297if test $ac_cv_lib_svld_dlopen = yes; then 4025if test $ac_cv_lib_rt_sched_yield = yes; then
7298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 4026 LIBS="$LIBS -lrt"
7299else 4027fi
4028
4029fi
4030
4031
7300 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 4032echo "$as_me:$LINENO: checking for sched_yield support" >&5
7301echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 4033echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
7302if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 ac_check_lib_save_LIBS=$LIBS
7306LIBS="-ldld $LIBS"
7307cat >conftest.$ac_ext <<_ACEOF 4034cat >conftest.$ac_ext <<_ACEOF
7308/* confdefs.h. */ 4035/* confdefs.h. */
7309_ACEOF 4036_ACEOF
7310cat confdefs.h >>conftest.$ac_ext 4037cat confdefs.h >>conftest.$ac_ext
7311cat >>conftest.$ac_ext <<_ACEOF 4038cat >>conftest.$ac_ext <<_ACEOF
7312/* end confdefs.h. */ 4039/* end confdefs.h. */
7313 4040#include <sched.h>
7314/* Override any gcc2 internal prototype to avoid an error. */
7315#ifdef __cplusplus
7316extern "C"
7317#endif
7318/* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7320char shl_load ();
7321int 4041int
7322main () 4042main ()
7323{ 4043{
7324shl_load (); 4044sched_yield ()
7325 ; 4045 ;
7326 return 0; 4046 return 0;
7327} 4047}
7328_ACEOF 4048_ACEOF
7329rm -f conftest.$ac_objext conftest$ac_exeext 4049rm -f conftest.$ac_objext conftest$ac_exeext
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5 4066 (eval $ac_try) 2>&5
7347 ac_status=$? 4067 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then 4069 (exit $ac_status); }; }; then
7350 ac_cv_lib_dld_shl_load=yes 4070 echo "$as_me:$LINENO: result: yes" >&5
4071echo "${ECHO_T}yes" >&6
4072
4073cat >>confdefs.h <<\_ACEOF
4074#define HAVE_SCHED_YIELD 1
4075_ACEOF
4076
7351else 4077else
7352 echo "$as_me: failed program was:" >&5 4078 echo "$as_me: failed program was:" >&5
7353sed 's/^/| /' conftest.$ac_ext >&5 4079sed 's/^/| /' conftest.$ac_ext >&5
7354 4080
7355ac_cv_lib_dld_shl_load=no 4081echo "$as_me:$LINENO: result: no" >&5
4082echo "${ECHO_T}no" >&6
7356fi 4083fi
7357rm -f conftest.err conftest.$ac_objext \ 4084rm -f conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext 4085 conftest$ac_exeext conftest.$ac_ext
7359LIBS=$ac_check_lib_save_LIBS
7360fi
7361echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7362echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7363if test $ac_cv_lib_dld_shl_load = yes; then
7364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7365fi
7366
7367
7368fi
7369
7370
7371fi
7372
7373
7374fi
7375
7376
7377fi
7378
7379 ;;
7380 esac
7381
7382 if test "x$lt_cv_dlopen" != xno; then
7383 enable_dlopen=yes
7384 else
7385 enable_dlopen=no
7386 fi
7387
7388 case "$lt_cv_dlopen" in
7389 dlopen)
7390 save_CPPFLAGS="$CPP_FLAGS"
7391 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7392
7393 save_LDFLAGS="$LDFLAGS"
7394 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7395
7396 save_LIBS="$LIBS"
7397 LIBS="$lt_cv_dlopen_libs $LIBS"
7398
7399 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7400echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7401if test "${lt_cv_dlopen_self+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404 if test "$cross_compiling" = yes; then :
7405 lt_cv_dlopen_self=cross
7406else
7407 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7408 lt_status=$lt_dlunknown
7409 cat > conftest.$ac_ext <<EOF
7410#line 7410 "configure"
7411#include "confdefs.h"
7412
7413#if HAVE_DLFCN_H
7414#include <dlfcn.h>
7415#endif
7416
7417#include <stdio.h>
7418
7419#ifdef RTLD_GLOBAL
7420# define LT_DLGLOBAL RTLD_GLOBAL
7421#else
7422# ifdef DL_GLOBAL
7423# define LT_DLGLOBAL DL_GLOBAL
7424# else
7425# define LT_DLGLOBAL 0
7426# endif
7427#endif
7428
7429/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7430 find out it does not work in some platform. */
7431#ifndef LT_DLLAZY_OR_NOW
7432# ifdef RTLD_LAZY
7433# define LT_DLLAZY_OR_NOW RTLD_LAZY
7434# else
7435# ifdef DL_LAZY
7436# define LT_DLLAZY_OR_NOW DL_LAZY
7437# else
7438# ifdef RTLD_NOW
7439# define LT_DLLAZY_OR_NOW RTLD_NOW
7440# else
7441# ifdef DL_NOW
7442# define LT_DLLAZY_OR_NOW DL_NOW
7443# else
7444# define LT_DLLAZY_OR_NOW 0
7445# endif
7446# endif
7447# endif
7448# endif
7449#endif
7450
7451#ifdef __cplusplus
7452extern "C" void exit (int);
7453#endif
7454
7455fnord() { int i=42;}
7456main ()
7457{
7458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7459 int status = $lt_dlunknown;
7460
7461 if (self)
7462 {
7463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7464 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7465 /* dlclose (self); */
7466 }
7467
7468 exit (status);
7469}
7470EOF
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7476 (./conftest; exit; ) 2>/dev/null
7477 lt_status=$?
7478 case x$lt_status in
7479 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7480 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7481 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7482 esac
7483 else :
7484 # compilation failed
7485 lt_cv_dlopen_self=no
7486 fi
7487fi
7488rm -fr conftest*
7489
7490
7491fi
7492echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7493echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7494
7495 if test "x$lt_cv_dlopen_self" = xyes; then
7496 LDFLAGS="$LDFLAGS $link_static_flag"
7497 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7498echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7499if test "${lt_cv_dlopen_self_static+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501else
7502 if test "$cross_compiling" = yes; then :
7503 lt_cv_dlopen_self_static=cross
7504else
7505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7506 lt_status=$lt_dlunknown
7507 cat > conftest.$ac_ext <<EOF
7508#line 7508 "configure"
7509#include "confdefs.h"
7510
7511#if HAVE_DLFCN_H
7512#include <dlfcn.h>
7513#endif
7514
7515#include <stdio.h>
7516
7517#ifdef RTLD_GLOBAL
7518# define LT_DLGLOBAL RTLD_GLOBAL
7519#else
7520# ifdef DL_GLOBAL
7521# define LT_DLGLOBAL DL_GLOBAL
7522# else
7523# define LT_DLGLOBAL 0
7524# endif
7525#endif
7526
7527/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7528 find out it does not work in some platform. */
7529#ifndef LT_DLLAZY_OR_NOW
7530# ifdef RTLD_LAZY
7531# define LT_DLLAZY_OR_NOW RTLD_LAZY
7532# else
7533# ifdef DL_LAZY
7534# define LT_DLLAZY_OR_NOW DL_LAZY
7535# else
7536# ifdef RTLD_NOW
7537# define LT_DLLAZY_OR_NOW RTLD_NOW
7538# else
7539# ifdef DL_NOW
7540# define LT_DLLAZY_OR_NOW DL_NOW
7541# else
7542# define LT_DLLAZY_OR_NOW 0
7543# endif
7544# endif
7545# endif
7546# endif
7547#endif
7548
7549#ifdef __cplusplus
7550extern "C" void exit (int);
7551#endif
7552
7553fnord() { int i=42;}
7554main ()
7555{
7556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7557 int status = $lt_dlunknown;
7558
7559 if (self)
7560 {
7561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7562 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7563 /* dlclose (self); */
7564 }
7565
7566 exit (status);
7567}
7568EOF
7569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570 (eval $ac_link) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7574 (./conftest; exit; ) 2>/dev/null
7575 lt_status=$?
7576 case x$lt_status in
7577 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7578 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7579 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7580 esac
7581 else :
7582 # compilation failed
7583 lt_cv_dlopen_self_static=no
7584 fi
7585fi
7586rm -fr conftest*
7587
7588
7589fi
7590echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7591echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7592 fi
7593
7594 CPPFLAGS="$save_CPPFLAGS"
7595 LDFLAGS="$save_LDFLAGS"
7596 LIBS="$save_LIBS"
7597 ;;
7598 esac
7599
7600 case "$lt_cv_dlopen_self" in
7601 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7602 *) enable_dlopen_self=unknown ;;
7603 esac
7604
7605 case "$lt_cv_dlopen_self_static" in
7606 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7607 *) enable_dlopen_self_static=unknown ;;
7608 esac
7609fi
7610
7611
7612## FIXME: this should be a separate macro
7613##
7614if test "$enable_shared" = yes && test "$GCC" = yes; then
7615 case "$archive_cmds" in
7616 *'~'*)
7617 # FIXME: we may have to deal with multi-command sequences.
7618 ;;
7619 '$CC '*)
7620 # Test whether the compiler implicitly links with -lc since on some
7621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7622 # to ld, don't add -lc before -lgcc.
7623 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7624echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7625 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 $rm conftest*
7629 echo 'static int dummy;' > conftest.$ac_ext
7630
7631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7632 (eval $ac_compile) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; then
7636 soname=conftest
7637 lib=conftest
7638 libobjs=conftest.$ac_objext
7639 deplibs=
7640 wl=$lt_cv_prog_cc_wl
7641 compiler_flags=-v
7642 linker_flags=-v
7643 verstring=
7644 output_objdir=.
7645 libname=conftest
7646 save_allow_undefined_flag=$allow_undefined_flag
7647 allow_undefined_flag=
7648 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7649 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }
7653 then
7654 lt_cv_archive_cmds_need_lc=no
7655 else
7656 lt_cv_archive_cmds_need_lc=yes
7657 fi
7658 allow_undefined_flag=$save_allow_undefined_flag
7659 else
7660 cat conftest.err 1>&5
7661 fi
7662fi
7663
7664 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7665echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7666 ;;
7667 esac
7668fi
7669need_lc=${lt_cv_archive_cmds_need_lc-yes}
7670##
7671## END FIXME
7672
7673## FIXME: this should be a separate macro
7674##
7675# The second clause should only fire when bootstrapping the
7676# libtool distribution, otherwise you forgot to ship ltmain.sh
7677# with your package, and you will get complaints that there are
7678# no rules to generate ltmain.sh.
7679if test -f "$ltmain"; then
7680 :
7681else
7682 # If there is no Makefile yet, we rely on a make rule to execute
7683 # `config.status --recheck' to rerun these tests and create the
7684 # libtool script then.
7685 test -f Makefile && make "$ltmain"
7686fi
7687
7688if test -f "$ltmain"; then
7689 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7690 $rm -f "${ofile}T"
7691
7692 echo creating $ofile
7693
7694 # Now quote all the things that may contain metacharacters while being
7695 # careful not to overquote the AC_SUBSTed values. We take copies of the
7696 # variables and quote the copies for generation of the libtool script.
7697 for var in echo old_CC old_CFLAGS \
7698 AR AR_FLAGS CC LD LN_S NM SHELL \
7699 reload_flag reload_cmds wl \
7700 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7701 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7702 library_names_spec soname_spec \
7703 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7704 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7705 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7706 old_striplib striplib file_magic_cmd export_symbols_cmds \
7707 deplibs_check_method allow_undefined_flag no_undefined_flag \
7708 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7709 hardcode_libdir_flag_spec hardcode_libdir_separator \
7710 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7711 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7712
7713 case "$var" in
7714 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7715 old_postinstall_cmds | old_postuninstall_cmds | \
7716 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7717 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7718 postinstall_cmds | postuninstall_cmds | \
7719 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7720 # Double-quote double-evaled strings.
7721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7722 ;;
7723 *)
7724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7725 ;;
7726 esac
7727 done
7728
7729 cat <<__EOF__ > "${ofile}T"
7730#! $SHELL
7731
7732# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7733# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7734# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7735#
7736# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7737# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7738#
7739# This program is free software; you can redistribute it and/or modify
7740# it under the terms of the GNU General Public License as published by
7741# the Free Software Foundation; either version 2 of the License, or
7742# (at your option) any later version.
7743#
7744# This program is distributed in the hope that it will be useful, but
7745# WITHOUT ANY WARRANTY; without even the implied warranty of
7746# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7747# General Public License for more details.
7748#
7749# You should have received a copy of the GNU General Public License
7750# along with this program; if not, write to the Free Software
7751# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7752#
7753# As a special exception to the GNU General Public License, if you
7754# distribute this file as part of a program that contains a
7755# configuration script generated by Autoconf, you may include it under
7756# the same distribution terms that you use for the rest of that program.
7757
7758# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7759Xsed="sed -e s/^X//"
7760
7761# The HP-UX ksh and POSIX shell print the target directory to stdout
7762# if CDPATH is set.
7763if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7764
7765# ### BEGIN LIBTOOL CONFIG
7766
7767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7768
7769# Shell to use when invoking shell scripts.
7770SHELL=$lt_SHELL
7771
7772# Whether or not to build shared libraries.
7773build_libtool_libs=$enable_shared
7774
7775# Whether or not to add -lc for building shared libraries.
7776build_libtool_need_lc=$need_lc
7777
7778# Whether or not to build static libraries.
7779build_old_libs=$enable_static
7780
7781# Whether or not to optimize for fast installation.
7782fast_install=$enable_fast_install
7783
7784# The host system.
7785host_alias=$host_alias
7786host=$host
7787
7788# An echo program that does not interpret backslashes.
7789echo=$lt_echo
7790
7791# The archiver.
7792AR=$lt_AR
7793AR_FLAGS=$lt_AR_FLAGS
7794
7795# The default C compiler.
7796CC=$lt_CC
7797
7798# Is the compiler the GNU C compiler?
7799with_gcc=$GCC
7800
7801# The linker used to build libraries.
7802LD=$lt_LD
7803
7804# Whether we need hard or soft links.
7805LN_S=$lt_LN_S
7806
7807# A BSD-compatible nm program.
7808NM=$lt_NM
7809
7810# A symbol stripping program
7811STRIP=$STRIP
7812
7813# Used to examine libraries when file_magic_cmd begins "file"
7814MAGIC_CMD=$MAGIC_CMD
7815
7816# Used on cygwin: DLL creation program.
7817DLLTOOL="$DLLTOOL"
7818
7819# Used on cygwin: object dumper.
7820OBJDUMP="$OBJDUMP"
7821
7822# Used on cygwin: assembler.
7823AS="$AS"
7824
7825# The name of the directory that contains temporary libtool files.
7826objdir=$objdir
7827
7828# How to create reloadable object files.
7829reload_flag=$lt_reload_flag
7830reload_cmds=$lt_reload_cmds
7831
7832# How to pass a linker flag through the compiler.
7833wl=$lt_wl
7834
7835# Object file suffix (normally "o").
7836objext="$ac_objext"
7837
7838# Old archive suffix (normally "a").
7839libext="$libext"
7840
7841# Executable file suffix (normally "").
7842exeext="$exeext"
7843
7844# Additional compiler flags for building library objects.
7845pic_flag=$lt_pic_flag
7846pic_mode=$pic_mode
7847
7848# Does compiler simultaneously support -c and -o options?
7849compiler_c_o=$lt_compiler_c_o
7850
7851# Can we write directly to a .lo ?
7852compiler_o_lo=$lt_compiler_o_lo
7853
7854# Must we lock files when doing compilation ?
7855need_locks=$lt_need_locks
7856
7857# Do we need the lib prefix for modules?
7858need_lib_prefix=$need_lib_prefix
7859
7860# Do we need a version for libraries?
7861need_version=$need_version
7862
7863# Whether dlopen is supported.
7864dlopen_support=$enable_dlopen
7865
7866# Whether dlopen of programs is supported.
7867dlopen_self=$enable_dlopen_self
7868
7869# Whether dlopen of statically linked programs is supported.
7870dlopen_self_static=$enable_dlopen_self_static
7871
7872# Compiler flag to prevent dynamic linking.
7873link_static_flag=$lt_link_static_flag
7874
7875# Compiler flag to turn off builtin functions.
7876no_builtin_flag=$lt_no_builtin_flag
7877
7878# Compiler flag to allow reflexive dlopens.
7879export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7880
7881# Compiler flag to generate shared objects directly from archives.
7882whole_archive_flag_spec=$lt_whole_archive_flag_spec
7883
7884# Compiler flag to generate thread-safe objects.
7885thread_safe_flag_spec=$lt_thread_safe_flag_spec
7886
7887# Library versioning type.
7888version_type=$version_type
7889
7890# Format of library name prefix.
7891libname_spec=$lt_libname_spec
7892
7893# List of archive names. First name is the real one, the rest are links.
7894# The last name is the one that the linker finds with -lNAME.
7895library_names_spec=$lt_library_names_spec
7896
7897# The coded name of the library, if different from the real name.
7898soname_spec=$lt_soname_spec
7899
7900# Commands used to build and install an old-style archive.
7901RANLIB=$lt_RANLIB
7902old_archive_cmds=$lt_old_archive_cmds
7903old_postinstall_cmds=$lt_old_postinstall_cmds
7904old_postuninstall_cmds=$lt_old_postuninstall_cmds
7905
7906# Create an old-style archive from a shared archive.
7907old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7908
7909# Create a temporary old-style archive to link instead of a shared archive.
7910old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7911
7912# Commands used to build and install a shared archive.
7913archive_cmds=$lt_archive_cmds
7914archive_expsym_cmds=$lt_archive_expsym_cmds
7915postinstall_cmds=$lt_postinstall_cmds
7916postuninstall_cmds=$lt_postuninstall_cmds
7917
7918# Commands to strip libraries.
7919old_striplib=$lt_old_striplib
7920striplib=$lt_striplib
7921
7922# Method to check whether dependent libraries are shared objects.
7923deplibs_check_method=$lt_deplibs_check_method
7924
7925# Command to use when deplibs_check_method == file_magic.
7926file_magic_cmd=$lt_file_magic_cmd
7927
7928# Flag that allows shared libraries with undefined symbols to be built.
7929allow_undefined_flag=$lt_allow_undefined_flag
7930
7931# Flag that forces no undefined symbols.
7932no_undefined_flag=$lt_no_undefined_flag
7933
7934# Commands used to finish a libtool library installation in a directory.
7935finish_cmds=$lt_finish_cmds
7936
7937# Same as above, but a single script fragment to be evaled but not shown.
7938finish_eval=$lt_finish_eval
7939
7940# Take the output of nm and produce a listing of raw symbols and C names.
7941global_symbol_pipe=$lt_global_symbol_pipe
7942
7943# Transform the output of nm in a proper C declaration
7944global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7945
7946# This is the shared library runtime path variable.
7947runpath_var=$runpath_var
7948
7949# This is the shared library path variable.
7950shlibpath_var=$shlibpath_var
7951
7952# Is shlibpath searched before the hard-coded library search path?
7953shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7954
7955# How to hardcode a shared library path into an executable.
7956hardcode_action=$hardcode_action
7957
7958# Whether we should hardcode library paths into libraries.
7959hardcode_into_libs=$hardcode_into_libs
7960
7961# Flag to hardcode \$libdir into a binary during linking.
7962# This must work even if \$libdir does not exist.
7963hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7964
7965# Whether we need a single -rpath flag with a separated argument.
7966hardcode_libdir_separator=$lt_hardcode_libdir_separator
7967
7968# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7969# resulting binary.
7970hardcode_direct=$hardcode_direct
7971
7972# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7973# resulting binary.
7974hardcode_minus_L=$hardcode_minus_L
7975
7976# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7977# the resulting binary.
7978hardcode_shlibpath_var=$hardcode_shlibpath_var
7979
7980# Variables whose values should be saved in libtool wrapper scripts and
7981# restored at relink time.
7982variables_saved_for_relink="$variables_saved_for_relink"
7983
7984# Whether libtool must link a program against all its dependency libraries.
7985link_all_deplibs=$link_all_deplibs
7986
7987# Compile-time system search path for libraries
7988sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7989
7990# Run-time system search path for libraries
7991sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7992
7993# Fix the shell variable \$srcfile for the compiler.
7994fix_srcfile_path="$fix_srcfile_path"
7995
7996# Set to yes if exported symbols are required.
7997always_export_symbols=$always_export_symbols
7998
7999# The commands to list exported symbols.
8000export_symbols_cmds=$lt_export_symbols_cmds
8001
8002# The commands to extract the exported symbol list from a shared archive.
8003extract_expsyms_cmds=$lt_extract_expsyms_cmds
8004
8005# Symbols that should not be listed in the preloaded symbols.
8006exclude_expsyms=$lt_exclude_expsyms
8007
8008# Symbols that must always be exported.
8009include_expsyms=$lt_include_expsyms
8010
8011# ### END LIBTOOL CONFIG
8012
8013__EOF__
8014
8015 case "$host_os" in
8016 aix3*)
8017 cat <<\EOF >> "${ofile}T"
8018
8019# AIX sometimes has problems with the GCC collect2 program. For some
8020# reason, if we set the COLLECT_NAMES environment variable, the problems
8021# vanish in a puff of smoke.
8022if test "X${COLLECT_NAMES+set}" != Xset; then
8023 COLLECT_NAMES=
8024 export COLLECT_NAMES
8025fi
8026EOF
8027 ;;
8028 esac
8029
8030 case "$host_os" in
8031 cygwin* | mingw* | pw32* | os2*)
8032 cat <<'EOF' >> "${ofile}T"
8033 # This is a source program that is used to create dlls on Windows
8034 # Don't remove nor modify the starting and closing comments
8035# /* ltdll.c starts here */
8036# #define WIN32_LEAN_AND_MEAN
8037# #include <windows.h>
8038# #undef WIN32_LEAN_AND_MEAN
8039# #include <stdio.h>
8040#
8041# #ifndef __CYGWIN__
8042# # ifdef __CYGWIN32__
8043# # define __CYGWIN__ __CYGWIN32__
8044# # endif
8045# #endif
8046#
8047# #ifdef __cplusplus
8048# extern "C" {
8049# #endif
8050# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8051# #ifdef __cplusplus
8052# }
8053# #endif
8054#
8055# #ifdef __CYGWIN__
8056# #include <cygwin/cygwin_dll.h>
8057# DECLARE_CYGWIN_DLL( DllMain );
8058# #endif
8059# HINSTANCE __hDllInstance_base;
8060#
8061# BOOL APIENTRY
8062# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8063# {
8064# __hDllInstance_base = hInst;
8065# return TRUE;
8066# }
8067# /* ltdll.c ends here */
8068 # This is a source program that is used to create import libraries
8069 # on Windows for dlls which lack them. Don't remove nor modify the
8070 # starting and closing comments
8071# /* impgen.c starts here */
8072# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8073#
8074# This file is part of GNU libtool.
8075#
8076# This program is free software; you can redistribute it and/or modify
8077# it under the terms of the GNU General Public License as published by
8078# the Free Software Foundation; either version 2 of the License, or
8079# (at your option) any later version.
8080#
8081# This program is distributed in the hope that it will be useful,
8082# but WITHOUT ANY WARRANTY; without even the implied warranty of
8083# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8084# GNU General Public License for more details.
8085#
8086# You should have received a copy of the GNU General Public License
8087# along with this program; if not, write to the Free Software
8088# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8089# */
8090#
8091# #include <stdio.h> /* for printf() */
8092# #include <unistd.h> /* for open(), lseek(), read() */
8093# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8094# #include <string.h> /* for strdup() */
8095#
8096# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8097# #ifndef O_BINARY
8098# #define O_BINARY 0
8099# #endif
8100#
8101# static unsigned int
8102# pe_get16 (fd, offset)
8103# int fd;
8104# int offset;
8105# {
8106# unsigned char b[2];
8107# lseek (fd, offset, SEEK_SET);
8108# read (fd, b, 2);
8109# return b[0] + (b[1]<<8);
8110# }
8111#
8112# static unsigned int
8113# pe_get32 (fd, offset)
8114# int fd;
8115# int offset;
8116# {
8117# unsigned char b[4];
8118# lseek (fd, offset, SEEK_SET);
8119# read (fd, b, 4);
8120# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8121# }
8122#
8123# static unsigned int
8124# pe_as32 (ptr)
8125# void *ptr;
8126# {
8127# unsigned char *b = ptr;
8128# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8129# }
8130#
8131# int
8132# main (argc, argv)
8133# int argc;
8134# char *argv[];
8135# {
8136# int dll;
8137# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8138# unsigned long export_rva, export_size, nsections, secptr, expptr;
8139# unsigned long name_rvas, nexp;
8140# unsigned char *expdata, *erva;
8141# char *filename, *dll_name;
8142#
8143# filename = argv[1];
8144#
8145# dll = open(filename, O_RDONLY|O_BINARY);
8146# if (!dll)
8147# return 1;
8148#
8149# dll_name = filename;
8150#
8151# for (i=0; filename[i]; i++)
8152# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8153# dll_name = filename + i +1;
8154#
8155# pe_header_offset = pe_get32 (dll, 0x3c);
8156# opthdr_ofs = pe_header_offset + 4 + 20;
8157# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8158#
8159# if (num_entries < 1) /* no exports */
8160# return 1;
8161#
8162# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8163# export_size = pe_get32 (dll, opthdr_ofs + 100);
8164# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8165# secptr = (pe_header_offset + 4 + 20 +
8166# pe_get16 (dll, pe_header_offset + 4 + 16));
8167#
8168# expptr = 0;
8169# for (i = 0; i < nsections; i++)
8170# {
8171# char sname[8];
8172# unsigned long secptr1 = secptr + 40 * i;
8173# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8174# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8175# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8176# lseek(dll, secptr1, SEEK_SET);
8177# read(dll, sname, 8);
8178# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8179# {
8180# expptr = fptr + (export_rva - vaddr);
8181# if (export_rva + export_size > vaddr + vsize)
8182# export_size = vsize - (export_rva - vaddr);
8183# break;
8184# }
8185# }
8186#
8187# expdata = (unsigned char*)malloc(export_size);
8188# lseek (dll, expptr, SEEK_SET);
8189# read (dll, expdata, export_size);
8190# erva = expdata - export_rva;
8191#
8192# nexp = pe_as32 (expdata+24);
8193# name_rvas = pe_as32 (expdata+32);
8194#
8195# printf ("EXPORTS\n");
8196# for (i = 0; i<nexp; i++)
8197# {
8198# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8199# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8200# }
8201#
8202# return 0;
8203# }
8204# /* impgen.c ends here */
8205
8206EOF
8207 ;;
8208 esac
8209
8210 # We use sed instead of cat because bash on DJGPP gets confused if
8211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8212 # text mode, it properly converts lines to CR/LF. This bash problem
8213 # is reportedly fixed, but why not run on old versions too?
8214 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8215
8216 mv -f "${ofile}T" "$ofile" || \
8217 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8218 chmod +x "$ofile"
8219fi
8220##
8221## END FIXME
8222
8223
8224
8225
8226
8227# This can be used to rebuild libtool when needed
8228LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8229
8230# Always use our own libtool.
8231LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8232
8233# Prevent multiple expansion
8234 4086
8235 4087
8236MALLOC_TYPE=S 4088MALLOC_TYPE=S
8237support_addstrings=no 4089
8238support_frills=no 4090support_frills=yes
8239support_linespace=no
8240support_inheritpixmap=no 4091support_inheritpixmap=yes
8241support_tinting=no 4092support_tinting=yes
8242support_fading=no 4093support_fading=yes
8243support_keepscrolling=no 4094support_keepscrolling=yes
8244support_selectionscrolling=no 4095support_selectionscrolling=yes
8245support_menubar=no
8246support_mousewheel=no 4096support_mousewheel=yes
8247support_mouseslipwheel=no 4097support_mouseslipwheel=yes
8248support_utmp=no 4098support_utmp=yes
8249support_wtmp=no 4099support_wtmp=yes
8250support_lastlog=no 4100support_lastlog=yes
8251support_cursor_blink=no
8252support_text_blink=no 4101support_text_blink=yes
8253support_pointer_blank=no 4102support_pointer_blank=yes
8254support_scroll_rxvt=no 4103support_scroll_rxvt=yes
8255support_scroll_next=no 4104support_scroll_next=yes
8256support_scroll_xterm=no 4105support_scroll_xterm=yes
8257support_scroll_plain=no 4106support_scroll_plain=yes
8258support_xim=no 4107support_xim=yes
8259support_xpm=no 4108support_xpm=yes
8260support_xft=no 4109support_xft=yes
8261support_unicode3=no 4110support_unicode3=no
8262support_combining=no 4111support_combining=yes
8263support_8bitctrls=no 4112support_8bitctrls=no
8264support_iso14755=no 4113support_iso14755=yes
4114support_styles=yes
4115support_perl=yes
8265codesets= 4116codesets=all
8266 4117
8267 4118
8268if test "x$enable_shared" = xyes; then 4119if test "x$enable_shared" = xyes; then
8269 4120
8270cat >>confdefs.h <<\_ACEOF 4121cat >>confdefs.h <<\_ACEOF
8276 4127
8277 4128
8278# Check whether --enable-everything or --disable-everything was given. 4129# Check whether --enable-everything or --disable-everything was given.
8279if test "${enable_everything+set}" = set; then 4130if test "${enable_everything+set}" = set; then
8280 enableval="$enable_everything" 4131 enableval="$enable_everything"
4132
4133 if test x$enableval = xno; then
4134 support_24bit=no
4135 support_frills=no
4136 support_inheritpixmap=no
4137 support_tinting=no
4138 support_fading=no
4139 support_keepscrolling=no
4140 support_selectionscrolling=no
4141 support_lastlog=no
4142 support_mousewheel=no
4143 support_mouseslipwheel=no
4144 support_text_blink=no
4145 support_pointer_blank=no
4146 support_scroll_rxvt=no
4147 support_scroll_next=no
4148 support_scroll_xterm=no
4149 support_scroll_plain=no
4150 support_utmp=no
4151 support_wtmp=no
4152 support_xim=no
4153 support_xpm=no
4154 support_xft=no
4155 support_unicode3=no
4156 support_combining=no
4157 support_8bitctrls=no
4158 support_iso14755=no
4159 support_styles=no
4160 support_perl=no
4161 codesets=
4162 fi
8281 if test x$enableval = xyes; then 4163 if test x$enableval = xyes; then
8282 support_24bit=yes 4164 support_24bit=yes
8283 support_frills=yes 4165 support_frills=yes
8284 support_linespace=yes
8285 support_inheritpixmap=yes 4166 support_inheritpixmap=yes
8286 support_tinting=yes 4167 support_tinting=yes
8287 support_fading=yes 4168 support_fading=yes
8288 support_keepscrolling=yes 4169 support_keepscrolling=yes
8289 support_selectionscrolling=yes 4170 support_selectionscrolling=yes
8290 support_lastlog=yes 4171 support_lastlog=yes
8291 support_menubar=yes
8292 support_mousewheel=yes 4172 support_mousewheel=yes
8293 support_mouseslipwheel=yes 4173 support_mouseslipwheel=yes
8294 support_cursor_blink=yes
8295 support_text_blink=yes 4174 support_text_blink=yes
8296 support_pointer_blank=yes 4175 support_pointer_blank=yes
8297 support_scroll_rxvt=yes 4176 support_scroll_rxvt=yes
8298 support_scroll_next=yes 4177 support_scroll_next=yes
8299 support_scroll_xterm=yes 4178 support_scroll_xterm=yes
8300 support_scroll_plain=yes 4179 support_scroll_plain=yes
8301 support_utmp=yes 4180 support_utmp=yes
8302 support_wtmp=yes 4181 support_wtmp=yes
8303 support_xim=yes 4182 support_xim=yes
8304 support_xpm=yes 4183 support_xpm=yes
8305 support_xft=yes 4184 support_xft=yes
8306 support_unicode3=yes 4185 support_unicode3=yes
8307 support_combining=yes 4186 support_combining=yes
8308 #support_8bitctrls=yes 4187 #support_8bitctrls=yes
8309 support_iso14755=yes 4188 support_iso14755=yes
4189 support_styles=yes
4190 support_perl=yes
8310 codesets=all 4191 codesets=all
8311 fi 4192 fi
4193
8312fi; 4194fi;
8313 4195
8314# Check whether --enable-unicode3 or --disable-unicode3 was given. 4196# Check whether --enable-unicode3 or --disable-unicode3 was given.
8315if test "${enable_unicode3+set}" = set; then 4197if test "${enable_unicode3+set}" = set; then
8316 enableval="$enable_unicode3" 4198 enableval="$enable_unicode3"
8317 if test x$enableval = xyes -o x$enableval = xno; then 4199 if test x$enableval = xyes -o x$enableval = xno; then
8318 support_unicode3=yes 4200 support_unicode3=$enableval
8319 fi 4201 fi
8320fi; 4202fi;
8321 4203
8322# Check whether --enable-combining or --disable-combining was given. 4204# Check whether --enable-combining or --disable-combining was given.
8323if test "${enable_combining+set}" = set; then 4205if test "${enable_combining+set}" = set; then
8324 enableval="$enable_combining" 4206 enableval="$enable_combining"
8325 if test x$enableval = xyes -o x$enableval = xno; then 4207 if test x$enableval = xyes -o x$enableval = xno; then
8326 support_combining=yes 4208 support_combining=$enableval
8327 fi 4209 fi
8328fi; 4210fi;
8329 4211
8330# Check whether --enable-xft or --disable-xft was given. 4212# Check whether --enable-xft or --disable-xft was given.
8331if test "${enable_xft+set}" = set; then 4213if test "${enable_xft+set}" = set; then
8332 enableval="$enable_xft" 4214 enableval="$enable_xft"
8333 if test x$enableval = xyes -o x$enableval = xno; then 4215 if test x$enableval = xyes -o x$enableval = xno; then
8334 support_xft=yes 4216 support_xft=$enableval
4217 fi
4218fi;
4219
4220# Check whether --enable-font-styles or --disable-font-styles was given.
4221if test "${enable_font_styles+set}" = set; then
4222 enableval="$enable_font_styles"
4223 if test x$enableval = xyes -o x$enableval = xno; then
4224 support_styles=$enableval
8335 fi 4225 fi
8336fi; 4226fi;
8337 4227
8338# Check whether --enable-utmp or --disable-utmp was given. 4228# Check whether --enable-utmp or --disable-utmp was given.
8339if test "${enable_utmp+set}" = set; then 4229if test "${enable_utmp+set}" = set; then
8389 if test x$enableval = xyes -o x$enableval = xno; then 4279 if test x$enableval = xyes -o x$enableval = xno; then
8390 support_fading=$enableval 4280 support_fading=$enableval
8391 fi 4281 fi
8392fi; 4282fi;
8393 4283
8394# Check whether --enable-menubar or --disable-menubar was given.
8395if test "${enable_menubar+set}" = set; then
8396 enableval="$enable_menubar"
8397 if test x$enableval = xyes -o x$enableval = xno; then
8398 support_menubar=$enableval
8399 fi
8400fi;
8401
8402# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4284# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8403if test "${enable_rxvt_scroll+set}" = set; then 4285if test "${enable_rxvt_scroll+set}" = set; then
8404 enableval="$enable_rxvt_scroll" 4286 enableval="$enable_rxvt_scroll"
8405 if test x$enableval = xyes -o x$enableval = xno; then 4287 if test x$enableval = xyes -o x$enableval = xno; then
8406 support_scroll_rxvt=$enableval 4288 support_scroll_rxvt=$enableval
8421 if test x$enableval = xyes -o x$enableval = xno; then 4303 if test x$enableval = xyes -o x$enableval = xno; then
8422 support_scroll_xterm=$enableval 4304 support_scroll_xterm=$enableval
8423 fi 4305 fi
8424fi; 4306fi;
8425 4307
4308# Check whether --enable-perl or --disable-perl was given.
4309if test "${enable_perl+set}" = set; then
4310 enableval="$enable_perl"
4311 if test x$enableval = xyes -o x$enableval = xno; then
4312 support_perl=$enableval
4313 fi
4314fi;
4315
8426# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4316# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8427if test "${enable_plain_scroll+set}" = set; then 4317if test "${enable_plain_scroll+set}" = set; then
8428 enableval="$enable_plain_scroll" 4318 enableval="$enable_plain_scroll"
8429 if test x$enableval = xyes -o x$enableval = xno; then 4319 if test x$enableval = xyes -o x$enableval = xno; then
8430 support_scroll_plain=$enableval 4320 support_scroll_plain=$enableval
8431 fi 4321 fi
8432fi; 4322fi;
8433 4323
8434# Check whether --enable-half-shadow or --disable-half-shadow was given.
8435if test "${enable_half_shadow+set}" = set; then
8436 enableval="$enable_half_shadow"
8437 if test x$enableval = xyes; then
8438
8439cat >>confdefs.h <<\_ACEOF
8440#define HALFSHADOW 1
8441_ACEOF
8442
8443 fi
8444fi;
8445 4324
8446 4325
8447# Check whether --with-codesets or --without-codesets was given. 4326# Check whether --with-codesets or --without-codesets was given.
8448if test "${with_codesets+set}" = set; then 4327if test "${with_codesets+set}" = set; then
8449 withval="$with_codesets" 4328 withval="$with_codesets"
8504_ACEOF 4383_ACEOF
8505 4384
8506 fi 4385 fi
8507fi; 4386fi;
8508 4387
8509# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
8510if test "${enable_xgetdefault+set}" = set; then
8511 enableval="$enable_xgetdefault"
8512 if test x$enableval = xyes; then
8513
8514cat >>confdefs.h <<\_ACEOF
8515#define USE_XGETDEFAULT 1
8516_ACEOF
8517
8518 fi
8519fi;
8520
8521# Check whether --enable-8bitctrls or --disable-8bitctrls was given. 4388# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8522if test "${enable_8bitctrls+set}" = set; then 4389if test "${enable_8bitctrls+set}" = set; then
8523 enableval="$enable_8bitctrls" 4390 enableval="$enable_8bitctrls"
8524 if test x$enableval = xyes -o x$enableval = xno; then 4391 if test x$enableval = xyes -o x$enableval = xno; then
8525 support_8bitctrls=yes 4392 support_8bitctrls=$enableval
8526 fi 4393 fi
8527fi; 4394fi;
8528 4395
8529RESFALLBACK=Rxvt 4396RESFALLBACK=Rxvt
8530# Check whether --enable-fallback or --disable-fallback was given. 4397# Check whether --enable-fallback or --disable-fallback was given.
8577if test "${with_name+set}" = set; then 4444if test "${with_name+set}" = set; then
8578 withval="$with_name" 4445 withval="$with_name"
8579 RXVTNAME="$withval" 4446 RXVTNAME="$withval"
8580fi; 4447fi;
8581 4448
4449cat >>confdefs.h <<_ACEOF
4450#define RXVTNAME "$RXVTNAME"
4451_ACEOF
4452
4453
8582RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4454RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8583 4455
8584
8585# Check whether --enable-strings or --disable-strings was given.
8586if test "${enable_strings+set}" = set; then
8587 enableval="$enable_strings"
8588 if test x$enableval = xyes -o x$enableval = xno; then
8589 support_addstrings=$enableval
8590 fi
8591fi;
8592 4456
8593# Check whether --enable-swapscreen or --disable-swapscreen was given. 4457# Check whether --enable-swapscreen or --disable-swapscreen was given.
8594if test "${enable_swapscreen+set}" = set; then 4458if test "${enable_swapscreen+set}" = set; then
8595 enableval="$enable_swapscreen" 4459 enableval="$enable_swapscreen"
8596 if test x$enableval = xno; then 4460 if test x$enableval = xno; then
8613# Check whether --enable-frills or --disable-frills was given. 4477# Check whether --enable-frills or --disable-frills was given.
8614if test "${enable_frills+set}" = set; then 4478if test "${enable_frills+set}" = set; then
8615 enableval="$enable_frills" 4479 enableval="$enable_frills"
8616 if test x$enableval = xyes -o x$enableval = xno; then 4480 if test x$enableval = xyes -o x$enableval = xno; then
8617 support_frills=$enableval 4481 support_frills=$enableval
8618 fi
8619fi;
8620
8621# Check whether --enable-linespace or --disable-linespace was given.
8622if test "${enable_linespace+set}" = set; then
8623 enableval="$enable_linespace"
8624 if test x$enableval = xyes -o x$enableval = xno; then
8625 support_linespace=$enableval
8626 fi 4482 fi
8627fi; 4483fi;
8628 4484
8629# Check whether --enable-24bit or --disable-24bit was given. 4485# Check whether --enable-24bit or --disable-24bit was given.
8630if test "${enable_24bit+set}" = set; then 4486if test "${enable_24bit+set}" = set; then
8698_ACEOF 4554_ACEOF
8699 4555
8700 fi 4556 fi
8701fi; 4557fi;
8702 4558
8703# Check whether --enable-256-color or --disable-256-color was given.
8704if test "${enable_256_color+set}" = set; then
8705 enableval="$enable_256_color"
8706 if test x$enableval = xyes; then
8707
8708cat >>confdefs.h <<\_ACEOF
8709#define TTY_256COLOR 1
8710_ACEOF
8711
8712 fi
8713fi;
8714
8715# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8716if test "${enable_cursor_blink+set}" = set; then
8717 enableval="$enable_cursor_blink"
8718 if test x$enableval = xyes -o x$enableval = xno; then
8719 support_cursor_blink=$enableval
8720 fi
8721fi;
8722
8723# Check whether --enable-text-blink or --disable-text-blink was given. 4559# Check whether --enable-text-blink or --disable-text-blink was given.
8724if test "${enable_text_blink+set}" = set; then 4560if test "${enable_text_blink+set}" = set; then
8725 enableval="$enable_text_blink" 4561 enableval="$enable_text_blink"
8726 if test x$enableval = xyes -o x$enableval = xno; then 4562 if test x$enableval = xyes -o x$enableval = xno; then
8727 support_text_blink=$enableval 4563 support_text_blink=$enableval
8760_ACEOF 4596_ACEOF
8761 terminfo="$withval" 4597 terminfo="$withval"
8762 fi 4598 fi
8763fi; 4599fi;
8764 4600
8765
8766
8767cat >>confdefs.h <<\_ACEOF
8768#define PROTOTYPES 1
8769_ACEOF
8770
8771
8772if test -z "$CFLAGS"; then
8773 if test -z "$CCOPTS"; then
8774 CCOPTS='-O'
8775 fi
8776 CFLAGS="$CCOPTS"
8777fi
8778 4601
8779# Extract the first word of "mv", so it can be a program name with args. 4602# Extract the first word of "mv", so it can be a program name with args.
8780set dummy mv; ac_word=$2 4603set dummy mv; ac_word=$2
8781echo "$as_me:$LINENO: checking for $ac_word" >&5 4604echo "$as_me:$LINENO: checking for $ac_word" >&5
8782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9054else 4877else
9055 echo "$as_me:$LINENO: result: no" >&5 4878 echo "$as_me:$LINENO: result: no" >&5
9056echo "${ECHO_T}no" >&6 4879echo "${ECHO_T}no" >&6
9057fi 4880fi
9058 4881
9059# Extract the first word of "tbl", so it can be a program name with args. 4882# Extract the first word of "tic", so it can be a program name with args.
9060set dummy tbl; ac_word=$2 4883set dummy tic; ac_word=$2
9061echo "$as_me:$LINENO: checking for $ac_word" >&5 4884echo "$as_me:$LINENO: checking for $ac_word" >&5
9062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9063if test "${ac_cv_path_TBL+set}" = set; then 4886if test "${ac_cv_path_TIC+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6 4887 echo $ECHO_N "(cached) $ECHO_C" >&6
9065else 4888else
9066 case $TBL in 4889 case $TIC in
9067 [\\/]* | ?:[\\/]*) 4890 [\\/]* | ?:[\\/]*)
9068 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 4891 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
9069 ;; 4892 ;;
9070 *) 4893 *)
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH 4895for as_dir in $PATH
9073do 4896do
9074 IFS=$as_save_IFS 4897 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=. 4898 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do 4899 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9078 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" 4901 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
9079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 break 2 4903 break 2
9081 fi 4904 fi
9082done 4905done
9083done 4906done
9084 4907
9085 ;; 4908 ;;
9086esac 4909esac
9087fi 4910fi
9088TBL=$ac_cv_path_TBL 4911TIC=$ac_cv_path_TIC
9089 4912
9090if test -n "$TBL"; then 4913if test -n "$TIC"; then
9091 echo "$as_me:$LINENO: result: $TBL" >&5 4914 echo "$as_me:$LINENO: result: $TIC" >&5
9092echo "${ECHO_T}$TBL" >&6 4915echo "${ECHO_T}$TIC" >&6
9093else 4916else
9094 echo "$as_me:$LINENO: result: no" >&5 4917 echo "$as_me:$LINENO: result: no" >&5
9095echo "${ECHO_T}no" >&6 4918echo "${ECHO_T}no" >&6
9096fi 4919fi
9097 4920
9098 4921
4922
4923
4924ac_ext=cc
4925ac_cpp='$CXXCPP $CPPFLAGS'
4926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4929echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4930echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4931if test -z "$CXXCPP"; then
4932 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935 # Double quotes because CXXCPP needs to be expanded
4936 for CXXCPP in "$CXX -E" "/lib/cpp"
4937 do
4938 ac_preproc_ok=false
4939for ac_cxx_preproc_warn_flag in '' yes
4940do
4941 # Use a header file that comes with gcc, so configuring glibc
4942 # with a fresh cross-compiler works.
4943 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4944 # <limits.h> exists even on freestanding compilers.
4945 # On the NeXT, cc -E runs the code through the compiler's parser,
4946 # not just through cpp. "Syntax error" is here to catch this case.
4947 cat >conftest.$ac_ext <<_ACEOF
4948/* confdefs.h. */
4949_ACEOF
4950cat confdefs.h >>conftest.$ac_ext
4951cat >>conftest.$ac_ext <<_ACEOF
4952/* end confdefs.h. */
4953#ifdef __STDC__
4954# include <limits.h>
4955#else
4956# include <assert.h>
4957#endif
4958 Syntax error
4959_ACEOF
4960if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_cxx_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4971 else
4972 ac_cpp_err=
4973 fi
4974else
4975 ac_cpp_err=yes
4976fi
4977if test -z "$ac_cpp_err"; then
4978 :
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 # Broken: fails on valid input.
4984continue
4985fi
4986rm -f conftest.err conftest.$ac_ext
4987
4988 # OK, works on sane cases. Now check whether non-existent headers
4989 # can be detected and how.
4990 cat >conftest.$ac_ext <<_ACEOF
4991/* confdefs.h. */
4992_ACEOF
4993cat confdefs.h >>conftest.$ac_ext
4994cat >>conftest.$ac_ext <<_ACEOF
4995/* end confdefs.h. */
4996#include <ac_nonexistent.h>
4997_ACEOF
4998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); } >/dev/null; then
5006 if test -s conftest.err; then
5007 ac_cpp_err=$ac_cxx_preproc_warn_flag
5008 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5009 else
5010 ac_cpp_err=
5011 fi
5012else
5013 ac_cpp_err=yes
5014fi
5015if test -z "$ac_cpp_err"; then
5016 # Broken: success on invalid input.
5017continue
5018else
5019 echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022 # Passes both tests.
5023ac_preproc_ok=:
5024break
5025fi
5026rm -f conftest.err conftest.$ac_ext
5027
5028done
5029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030rm -f conftest.err conftest.$ac_ext
5031if $ac_preproc_ok; then
5032 break
5033fi
5034
5035 done
5036 ac_cv_prog_CXXCPP=$CXXCPP
5037
5038fi
5039 CXXCPP=$ac_cv_prog_CXXCPP
5040else
5041 ac_cv_prog_CXXCPP=$CXXCPP
5042fi
5043echo "$as_me:$LINENO: result: $CXXCPP" >&5
5044echo "${ECHO_T}$CXXCPP" >&6
5045ac_preproc_ok=false
5046for ac_cxx_preproc_warn_flag in '' yes
5047do
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h. */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h. */
5060#ifdef __STDC__
5061# include <limits.h>
5062#else
5063# include <assert.h>
5064#endif
5065 Syntax error
5066_ACEOF
5067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5069 ac_status=$?
5070 grep -v '^ *+' conftest.er1 >conftest.err
5071 rm -f conftest.er1
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } >/dev/null; then
5075 if test -s conftest.err; then
5076 ac_cpp_err=$ac_cxx_preproc_warn_flag
5077 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5078 else
5079 ac_cpp_err=
5080 fi
5081else
5082 ac_cpp_err=yes
5083fi
5084if test -z "$ac_cpp_err"; then
5085 :
5086else
5087 echo "$as_me: failed program was:" >&5
5088sed 's/^/| /' conftest.$ac_ext >&5
5089
5090 # Broken: fails on valid input.
5091continue
5092fi
5093rm -f conftest.err conftest.$ac_ext
5094
5095 # OK, works on sane cases. Now check whether non-existent headers
5096 # can be detected and how.
5097 cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h. */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h. */
5103#include <ac_nonexistent.h>
5104_ACEOF
5105if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } >/dev/null; then
5113 if test -s conftest.err; then
5114 ac_cpp_err=$ac_cxx_preproc_warn_flag
5115 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5116 else
5117 ac_cpp_err=
5118 fi
5119else
5120 ac_cpp_err=yes
5121fi
5122if test -z "$ac_cpp_err"; then
5123 # Broken: success on invalid input.
5124continue
5125else
5126 echo "$as_me: failed program was:" >&5
5127sed 's/^/| /' conftest.$ac_ext >&5
5128
5129 # Passes both tests.
5130ac_preproc_ok=:
5131break
5132fi
5133rm -f conftest.err conftest.$ac_ext
5134
5135done
5136# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137rm -f conftest.err conftest.$ac_ext
5138if $ac_preproc_ok; then
5139 :
5140else
5141 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5142See \`config.log' for more details." >&5
5143echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5144See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5146fi
5147
5148ac_ext=cc
5149ac_cpp='$CXXCPP $CPPFLAGS'
5150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9099 5153
9100 5154
9101 5155
9102if test "x$ac_path_x_has_been_run" != xyes; then 5156if test "x$ac_path_x_has_been_run" != xyes; then
9103 echo "$as_me:$LINENO: checking for X" >&5 5157 echo "$as_me:$LINENO: checking for X" >&5
9202/* confdefs.h. */ 5256/* confdefs.h. */
9203_ACEOF 5257_ACEOF
9204cat confdefs.h >>conftest.$ac_ext 5258cat confdefs.h >>conftest.$ac_ext
9205cat >>conftest.$ac_ext <<_ACEOF 5259cat >>conftest.$ac_ext <<_ACEOF
9206/* end confdefs.h. */ 5260/* end confdefs.h. */
9207#include <X11/Intrinsic.h> 5261#include <X11/Xlib.h>
9208_ACEOF 5262_ACEOF
9209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9211 ac_status=$? 5265 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err 5266 grep -v '^ *+' conftest.er1 >conftest.err
9229else 5283else
9230 echo "$as_me: failed program was:" >&5 5284 echo "$as_me: failed program was:" >&5
9231sed 's/^/| /' conftest.$ac_ext >&5 5285sed 's/^/| /' conftest.$ac_ext >&5
9232 5286
9233 for ac_dir in $ac_x_header_dirs; do 5287 for ac_dir in $ac_x_header_dirs; do
9234 if test -r "$ac_dir/X11/Intrinsic.h"; then 5288 if test -r "$ac_dir/X11/Xlib.h"; then
9235 ac_x_includes=$ac_dir 5289 ac_x_includes=$ac_dir
9236 break 5290 break
9237 fi 5291 fi
9238done 5292done
9239fi 5293fi
9243if test "$ac_x_libraries" = no; then 5297if test "$ac_x_libraries" = no; then
9244 # Check for the libraries. 5298 # Check for the libraries.
9245 # See if we find them without any special options. 5299 # See if we find them without any special options.
9246 # Don't add to $LIBS permanently. 5300 # Don't add to $LIBS permanently.
9247 ac_save_LIBS=$LIBS 5301 ac_save_LIBS=$LIBS
9248 LIBS="-lXt $LIBS" 5302 LIBS="-lX11 $LIBS"
9249 cat >conftest.$ac_ext <<_ACEOF 5303 cat >conftest.$ac_ext <<_ACEOF
9250/* confdefs.h. */ 5304/* confdefs.h. */
9251_ACEOF 5305_ACEOF
9252cat confdefs.h >>conftest.$ac_ext 5306cat confdefs.h >>conftest.$ac_ext
9253cat >>conftest.$ac_ext <<_ACEOF 5307cat >>conftest.$ac_ext <<_ACEOF
9254/* end confdefs.h. */ 5308/* end confdefs.h. */
9255#include <X11/Intrinsic.h> 5309#include <X11/Xlib.h>
9256int 5310int
9257main () 5311main ()
9258{ 5312{
9259XtMalloc (0) 5313XrmInitialize ()
9260 ; 5314 ;
9261 return 0; 5315 return 0;
9262} 5316}
9263_ACEOF 5317_ACEOF
9264rm -f conftest.$ac_objext conftest$ac_exeext 5318rm -f conftest.$ac_objext conftest$ac_exeext
9292LIBS=$ac_save_LIBS 5346LIBS=$ac_save_LIBS
9293for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5347for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9294do 5348do
9295 # Don't even attempt the hair of trying to link an X program! 5349 # Don't even attempt the hair of trying to link an X program!
9296 for ac_extension in a so sl; do 5350 for ac_extension in a so sl; do
9297 if test -r $ac_dir/libXt.$ac_extension; then 5351 if test -r $ac_dir/libX11.$ac_extension; then
9298 ac_x_libraries=$ac_dir 5352 ac_x_libraries=$ac_dir
9299 break 2 5353 break 2
9300 fi 5354 fi
9301 done 5355 done
9302done 5356done
10904#define HAVE_SYS_WAIT_H 1 6958#define HAVE_SYS_WAIT_H 1
10905_ACEOF 6959_ACEOF
10906 6960
10907fi 6961fi
10908 6962
6963echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6964echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6965if test "${ac_cv_header_stdc+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6967else
6968 cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
6974#include <stdlib.h>
6975#include <stdarg.h>
6976#include <string.h>
6977#include <float.h>
10909 6978
6979int
6980main ()
6981{
6982
6983 ;
6984 return 0;
6985}
6986_ACEOF
6987rm -f conftest.$ac_objext
6988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6989 (eval $ac_compile) 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 (eval $ac_try) 2>&5
6999 ac_status=$?
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; } &&
7002 { ac_try='test -s conftest.$ac_objext'
7003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7004 (eval $ac_try) 2>&5
7005 ac_status=$?
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); }; }; then
7008 ac_cv_header_stdc=yes
7009else
7010 echo "$as_me: failed program was:" >&5
7011sed 's/^/| /' conftest.$ac_ext >&5
7012
7013ac_cv_header_stdc=no
7014fi
7015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7016
7017if test $ac_cv_header_stdc = yes; then
7018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7019 cat >conftest.$ac_ext <<_ACEOF
7020/* confdefs.h. */
7021_ACEOF
7022cat confdefs.h >>conftest.$ac_ext
7023cat >>conftest.$ac_ext <<_ACEOF
7024/* end confdefs.h. */
7025#include <string.h>
7026
7027_ACEOF
7028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029 $EGREP "memchr" >/dev/null 2>&1; then
7030 :
7031else
7032 ac_cv_header_stdc=no
7033fi
7034rm -f conftest*
7035
7036fi
7037
7038if test $ac_cv_header_stdc = yes; then
7039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7040 cat >conftest.$ac_ext <<_ACEOF
7041/* confdefs.h. */
7042_ACEOF
7043cat confdefs.h >>conftest.$ac_ext
7044cat >>conftest.$ac_ext <<_ACEOF
7045/* end confdefs.h. */
7046#include <stdlib.h>
7047
7048_ACEOF
7049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7050 $EGREP "free" >/dev/null 2>&1; then
7051 :
7052else
7053 ac_cv_header_stdc=no
7054fi
7055rm -f conftest*
7056
7057fi
7058
7059if test $ac_cv_header_stdc = yes; then
7060 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7061 if test "$cross_compiling" = yes; then
7062 :
7063else
7064 cat >conftest.$ac_ext <<_ACEOF
7065/* confdefs.h. */
7066_ACEOF
7067cat confdefs.h >>conftest.$ac_ext
7068cat >>conftest.$ac_ext <<_ACEOF
7069/* end confdefs.h. */
7070#include <ctype.h>
7071#if ((' ' & 0x0FF) == 0x020)
7072# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7073# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7074#else
7075# define ISLOWER(c) \
7076 (('a' <= (c) && (c) <= 'i') \
7077 || ('j' <= (c) && (c) <= 'r') \
7078 || ('s' <= (c) && (c) <= 'z'))
7079# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7080#endif
7081
7082#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7083int
7084main ()
7085{
7086 int i;
7087 for (i = 0; i < 256; i++)
7088 if (XOR (islower (i), ISLOWER (i))
7089 || toupper (i) != TOUPPER (i))
7090 exit(2);
7091 exit (0);
7092}
7093_ACEOF
7094rm -f conftest$ac_exeext
7095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7096 (eval $ac_link) 2>&5
7097 ac_status=$?
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101 (eval $ac_try) 2>&5
7102 ac_status=$?
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 :
7106else
7107 echo "$as_me: program exited with status $ac_status" >&5
7108echo "$as_me: failed program was:" >&5
7109sed 's/^/| /' conftest.$ac_ext >&5
7110
7111( exit $ac_status )
7112ac_cv_header_stdc=no
7113fi
7114rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7115fi
7116fi
7117fi
7118echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7119echo "${ECHO_T}$ac_cv_header_stdc" >&6
7120if test $ac_cv_header_stdc = yes; then
7121
7122cat >>confdefs.h <<\_ACEOF
7123#define STDC_HEADERS 1
7124_ACEOF
7125
7126fi
7127
7128# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7139 inttypes.h stdint.h unistd.h
7140do
7141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7142echo "$as_me:$LINENO: checking for $ac_header" >&5
7143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7144if eval "test \"\${$as_ac_Header+set}\" = set"; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153$ac_includes_default
7154
7155#include <$ac_header>
7156_ACEOF
7157rm -f conftest.$ac_objext
7158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159 (eval $ac_compile) 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 eval "$as_ac_Header=yes"
7179else
7180 echo "$as_me: failed program was:" >&5
7181sed 's/^/| /' conftest.$ac_ext >&5
7182
7183eval "$as_ac_Header=no"
7184fi
7185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7186fi
7187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7189if test `eval echo '${'$as_ac_Header'}'` = yes; then
7190 cat >>confdefs.h <<_ACEOF
7191#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7192_ACEOF
7193
7194fi
7195
7196done
10910 7197
10911 7198
10912 7199
10913 7200
10914 7201
10927 7214
10928 7215
10929for ac_header in \ 7216for ac_header in \
10930 assert.h \ 7217 assert.h \
10931 fcntl.h \ 7218 fcntl.h \
10932 grp.h \
10933 libc.h \
10934 lastlog.h \
10935 stdarg.h \ 7219 stdarg.h \
10936 stdlib.h \ 7220 stdlib.h \
10937 string.h \ 7221 string.h \
10938 termios.h \ 7222 termios.h \
10939 unistd.h \ 7223 unistd.h \
10940 sys/byteorder.h \ 7224 sys/byteorder.h \
10941 sys/ioctl.h \ 7225 sys/ioctl.h \
10942 sys/select.h \ 7226 sys/select.h \
10943 sys/sockio.h \ 7227 sys/sockio.h \
10944 sys/strredir.h \ 7228 sys/strredir.h \
10945 sys/stropts.h \
10946 sys/time.h \ 7229 sys/time.h \
10947 utmp.h \ 7230 stdint.h \
10948 utmpx.h \ 7231 wchar.h \
10949 stdint.h \ 7232 cwchar \
7233 clocale \
10950 7234
10951do 7235do
10952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10953if eval "test \"\${$as_ac_Header+set}\" = set"; then 7237if eval "test \"\${$as_ac_Header+set}\" = set"; then
10954 echo "$as_me:$LINENO: checking for $ac_header" >&5 7238 echo "$as_me:$LINENO: checking for $ac_header" >&5
11738_ACEOF 8022_ACEOF
11739 8023
11740fi 8024fi
11741 8025
11742 8026
11743echo "$as_me:$LINENO: checking for char" >&5
11744echo $ECHO_N "checking for char... $ECHO_C" >&6
11745if test "${ac_cv_type_char+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754$ac_includes_default
11755int
11756main ()
11757{
11758if ((char *) 0)
11759 return 0;
11760if (sizeof (char))
11761 return 0;
11762 ;
11763 return 0;
11764}
11765_ACEOF
11766rm -f conftest.$ac_objext
11767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest.$ac_objext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_cv_type_char=yes
11788else
11789 echo "$as_me: failed program was:" >&5
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
11792ac_cv_type_char=no
11793fi
11794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11795fi
11796echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11797echo "${ECHO_T}$ac_cv_type_char" >&6
11798
11799echo "$as_me:$LINENO: checking size of char" >&5
11800echo $ECHO_N "checking size of char... $ECHO_C" >&6
11801if test "${ac_cv_sizeof_char+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803else
11804 if test "$ac_cv_type_char" = yes; then
11805 # The cast to unsigned long works around a bug in the HP C Compiler
11806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11808 # This bug is HP SR number 8606223364.
11809 if test "$cross_compiling" = yes; then
11810 # Depending upon the size, compute the lo and hi bounds.
11811cat >conftest.$ac_ext <<_ACEOF
11812/* confdefs.h. */
11813_ACEOF
11814cat confdefs.h >>conftest.$ac_ext
11815cat >>conftest.$ac_ext <<_ACEOF
11816/* end confdefs.h. */
11817$ac_includes_default
11818int
11819main ()
11820{
11821static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11822test_array [0] = 0
11823
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828rm -f conftest.$ac_objext
11829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830 (eval $ac_compile) 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest.$ac_objext'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 ac_lo=0 ac_mid=0
11850 while :; do
11851 cat >conftest.$ac_ext <<_ACEOF
11852/* confdefs.h. */
11853_ACEOF
11854cat confdefs.h >>conftest.$ac_ext
11855cat >>conftest.$ac_ext <<_ACEOF
11856/* end confdefs.h. */
11857$ac_includes_default
11858int
11859main ()
11860{
11861static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11862test_array [0] = 0
11863
11864 ;
11865 return 0;
11866}
11867_ACEOF
11868rm -f conftest.$ac_objext
11869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest.$ac_objext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 ac_hi=$ac_mid; break
11890else
11891 echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
11894ac_lo=`expr $ac_mid + 1`
11895 if test $ac_lo -le $ac_mid; then
11896 ac_lo= ac_hi=
11897 break
11898 fi
11899 ac_mid=`expr 2 '*' $ac_mid + 1`
11900fi
11901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11902 done
11903else
11904 echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
11907cat >conftest.$ac_ext <<_ACEOF
11908/* confdefs.h. */
11909_ACEOF
11910cat confdefs.h >>conftest.$ac_ext
11911cat >>conftest.$ac_ext <<_ACEOF
11912/* end confdefs.h. */
11913$ac_includes_default
11914int
11915main ()
11916{
11917static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11918test_array [0] = 0
11919
11920 ;
11921 return 0;
11922}
11923_ACEOF
11924rm -f conftest.$ac_objext
11925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 (eval $ac_compile) 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest.$ac_objext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_hi=-1 ac_mid=-1
11946 while :; do
11947 cat >conftest.$ac_ext <<_ACEOF
11948/* confdefs.h. */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h. */
11953$ac_includes_default
11954int
11955main ()
11956{
11957static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11958test_array [0] = 0
11959
11960 ;
11961 return 0;
11962}
11963_ACEOF
11964rm -f conftest.$ac_objext
11965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_lo=$ac_mid; break
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990ac_hi=`expr '(' $ac_mid ')' - 1`
11991 if test $ac_mid -le $ac_hi; then
11992 ac_lo= ac_hi=
11993 break
11994 fi
11995 ac_mid=`expr 2 '*' $ac_mid`
11996fi
11997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11998 done
11999else
12000 echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
12002
12003ac_lo= ac_hi=
12004fi
12005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12006fi
12007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12008# Binary search between lo and hi bounds.
12009while test "x$ac_lo" != "x$ac_hi"; do
12010 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12011 cat >conftest.$ac_ext <<_ACEOF
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
12017$ac_includes_default
12018int
12019main ()
12020{
12021static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12022test_array [0] = 0
12023
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext
12029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest.$ac_objext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 ac_hi=$ac_mid
12050else
12051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054ac_lo=`expr '(' $ac_mid ')' + 1`
12055fi
12056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12057done
12058case $ac_lo in
12059?*) ac_cv_sizeof_char=$ac_lo;;
12060'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12061See \`config.log' for more details." >&5
12062echo "$as_me: error: cannot compute sizeof (char), 77
12063See \`config.log' for more details." >&2;}
12064 { (exit 1); exit 1; }; } ;;
12065esac
12066else
12067 if test "$cross_compiling" = yes; then
12068 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12069echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12070 { (exit 1); exit 1; }; }
12071else
12072 cat >conftest.$ac_ext <<_ACEOF
12073/* confdefs.h. */
12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h. */
12078$ac_includes_default
12079long longval () { return (long) (sizeof (char)); }
12080unsigned long ulongval () { return (long) (sizeof (char)); }
12081#include <stdio.h>
12082#include <stdlib.h>
12083int
12084main ()
12085{
12086
12087 FILE *f = fopen ("conftest.val", "w");
12088 if (! f)
12089 exit (1);
12090 if (((long) (sizeof (char))) < 0)
12091 {
12092 long i = longval ();
12093 if (i != ((long) (sizeof (char))))
12094 exit (1);
12095 fprintf (f, "%ld\n", i);
12096 }
12097 else
12098 {
12099 unsigned long i = ulongval ();
12100 if (i != ((long) (sizeof (char))))
12101 exit (1);
12102 fprintf (f, "%lu\n", i);
12103 }
12104 exit (ferror (f) || fclose (f) != 0);
12105
12106 ;
12107 return 0;
12108}
12109_ACEOF
12110rm -f conftest$ac_exeext
12111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112 (eval $ac_link) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_cv_sizeof_char=`cat conftest.val`
12122else
12123 echo "$as_me: program exited with status $ac_status" >&5
12124echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127( exit $ac_status )
12128{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12129See \`config.log' for more details." >&5
12130echo "$as_me: error: cannot compute sizeof (char), 77
12131See \`config.log' for more details." >&2;}
12132 { (exit 1); exit 1; }; }
12133fi
12134rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12135fi
12136fi
12137rm -f conftest.val
12138else
12139 ac_cv_sizeof_char=0
12140fi
12141fi
12142echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12143echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12144cat >>confdefs.h <<_ACEOF
12145#define SIZEOF_CHAR $ac_cv_sizeof_char
12146_ACEOF
12147
12148
12149echo "$as_me:$LINENO: checking for short" >&5 8027echo "$as_me:$LINENO: checking for short" >&5
12150echo $ECHO_N "checking for short... $ECHO_C" >&6 8028echo $ECHO_N "checking for short... $ECHO_C" >&6
12151if test "${ac_cv_type_short+set}" = set; then 8029if test "${ac_cv_type_short+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6 8030 echo $ECHO_N "(cached) $ECHO_C" >&6
12153else 8031else
12956cat >>confdefs.h <<_ACEOF 8834cat >>confdefs.h <<_ACEOF
12957#define SIZEOF_INT $ac_cv_sizeof_int 8835#define SIZEOF_INT $ac_cv_sizeof_int
12958_ACEOF 8836_ACEOF
12959 8837
12960 8838
12961echo "$as_me:$LINENO: checking for long" >&5
12962echo $ECHO_N "checking for long... $ECHO_C" >&6
12963if test "${ac_cv_type_long+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965else
12966 cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h. */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
12971/* end confdefs.h. */
12972$ac_includes_default
12973int
12974main ()
12975{
12976if ((long *) 0)
12977 return 0;
12978if (sizeof (long))
12979 return 0;
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest.$ac_objext
12985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986 (eval $ac_compile) 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 ac_cv_type_long=yes
13006else
13007 echo "$as_me: failed program was:" >&5
13008sed 's/^/| /' conftest.$ac_ext >&5
13009
13010ac_cv_type_long=no
13011fi
13012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13013fi
13014echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13015echo "${ECHO_T}$ac_cv_type_long" >&6
13016
13017echo "$as_me:$LINENO: checking size of long" >&5
13018echo $ECHO_N "checking size of long... $ECHO_C" >&6
13019if test "${ac_cv_sizeof_long+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022 if test "$ac_cv_type_long" = yes; then
13023 # The cast to unsigned long works around a bug in the HP C Compiler
13024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13026 # This bug is HP SR number 8606223364.
13027 if test "$cross_compiling" = yes; then
13028 # Depending upon the size, compute the lo and hi bounds.
13029cat >conftest.$ac_ext <<_ACEOF
13030/* confdefs.h. */
13031_ACEOF
13032cat confdefs.h >>conftest.$ac_ext
13033cat >>conftest.$ac_ext <<_ACEOF
13034/* end confdefs.h. */
13035$ac_includes_default
13036int
13037main ()
13038{
13039static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13040test_array [0] = 0
13041
13042 ;
13043 return 0;
13044}
13045_ACEOF
13046rm -f conftest.$ac_objext
13047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; } &&
13061 { ac_try='test -s conftest.$ac_objext'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_lo=0 ac_mid=0
13068 while :; do
13069 cat >conftest.$ac_ext <<_ACEOF
13070/* confdefs.h. */
13071_ACEOF
13072cat confdefs.h >>conftest.$ac_ext
13073cat >>conftest.$ac_ext <<_ACEOF
13074/* end confdefs.h. */
13075$ac_includes_default
13076int
13077main ()
13078{
13079static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13080test_array [0] = 0
13081
13082 ;
13083 return 0;
13084}
13085_ACEOF
13086rm -f conftest.$ac_objext
13087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>conftest.er1
13089 ac_status=$?
13090 grep -v '^ *+' conftest.er1 >conftest.err
13091 rm -f conftest.er1
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; } &&
13101 { ac_try='test -s conftest.$ac_objext'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_hi=$ac_mid; break
13108else
13109 echo "$as_me: failed program was:" >&5
13110sed 's/^/| /' conftest.$ac_ext >&5
13111
13112ac_lo=`expr $ac_mid + 1`
13113 if test $ac_lo -le $ac_mid; then
13114 ac_lo= ac_hi=
13115 break
13116 fi
13117 ac_mid=`expr 2 '*' $ac_mid + 1`
13118fi
13119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13120 done
13121else
13122 echo "$as_me: failed program was:" >&5
13123sed 's/^/| /' conftest.$ac_ext >&5
13124
13125cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131$ac_includes_default
13132int
13133main ()
13134{
13135static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13136test_array [0] = 0
13137
13138 ;
13139 return 0;
13140}
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144 (eval $ac_compile) 2>conftest.er1
13145 ac_status=$?
13146 grep -v '^ *+' conftest.er1 >conftest.err
13147 rm -f conftest.er1
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest.$ac_objext'
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 ac_hi=-1 ac_mid=-1
13164 while :; do
13165 cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
13171$ac_includes_default
13172int
13173main ()
13174{
13175static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13176test_array [0] = 0
13177
13178 ;
13179 return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext
13183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest.$ac_objext'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_lo=$ac_mid; break
13204else
13205 echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208ac_hi=`expr '(' $ac_mid ')' - 1`
13209 if test $ac_mid -le $ac_hi; then
13210 ac_lo= ac_hi=
13211 break
13212 fi
13213 ac_mid=`expr 2 '*' $ac_mid`
13214fi
13215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216 done
13217else
13218 echo "$as_me: failed program was:" >&5
13219sed 's/^/| /' conftest.$ac_ext >&5
13220
13221ac_lo= ac_hi=
13222fi
13223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13224fi
13225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13226# Binary search between lo and hi bounds.
13227while test "x$ac_lo" != "x$ac_hi"; do
13228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13229 cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235$ac_includes_default
13236int
13237main ()
13238{
13239static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13240test_array [0] = 0
13241
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext
13247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13248 (eval $ac_compile) 2>conftest.er1
13249 ac_status=$?
13250 grep -v '^ *+' conftest.er1 >conftest.err
13251 rm -f conftest.er1
13252 cat conftest.err >&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
13255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_hi=$ac_mid
13268else
13269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272ac_lo=`expr '(' $ac_mid ')' + 1`
13273fi
13274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13275done
13276case $ac_lo in
13277?*) ac_cv_sizeof_long=$ac_lo;;
13278'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13279See \`config.log' for more details." >&5
13280echo "$as_me: error: cannot compute sizeof (long), 77
13281See \`config.log' for more details." >&2;}
13282 { (exit 1); exit 1; }; } ;;
13283esac
13284else
13285 if test "$cross_compiling" = yes; then
13286 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13287echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13288 { (exit 1); exit 1; }; }
13289else
13290 cat >conftest.$ac_ext <<_ACEOF
13291/* confdefs.h. */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */
13296$ac_includes_default
13297long longval () { return (long) (sizeof (long)); }
13298unsigned long ulongval () { return (long) (sizeof (long)); }
13299#include <stdio.h>
13300#include <stdlib.h>
13301int
13302main ()
13303{
13304
13305 FILE *f = fopen ("conftest.val", "w");
13306 if (! f)
13307 exit (1);
13308 if (((long) (sizeof (long))) < 0)
13309 {
13310 long i = longval ();
13311 if (i != ((long) (sizeof (long))))
13312 exit (1);
13313 fprintf (f, "%ld\n", i);
13314 }
13315 else
13316 {
13317 unsigned long i = ulongval ();
13318 if (i != ((long) (sizeof (long))))
13319 exit (1);
13320 fprintf (f, "%lu\n", i);
13321 }
13322 exit (ferror (f) || fclose (f) != 0);
13323
13324 ;
13325 return 0;
13326}
13327_ACEOF
13328rm -f conftest$ac_exeext
13329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13330 (eval $ac_link) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_sizeof_long=`cat conftest.val`
13340else
13341 echo "$as_me: program exited with status $ac_status" >&5
13342echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345( exit $ac_status )
13346{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13347See \`config.log' for more details." >&5
13348echo "$as_me: error: cannot compute sizeof (long), 77
13349See \`config.log' for more details." >&2;}
13350 { (exit 1); exit 1; }; }
13351fi
13352rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13353fi
13354fi
13355rm -f conftest.val
13356else
13357 ac_cv_sizeof_long=0
13358fi
13359fi
13360echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13361echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13362cat >>confdefs.h <<_ACEOF
13363#define SIZEOF_LONG $ac_cv_sizeof_long
13364_ACEOF
13365
13366
13367echo "$as_me:$LINENO: checking for long long" >&5 8839echo "$as_me:$LINENO: checking for long long" >&5
13368echo $ECHO_N "checking for long long... $ECHO_C" >&6 8840echo $ECHO_N "checking for long long... $ECHO_C" >&6
13369if test "${ac_cv_type_long_long+set}" = set; then 8841if test "${ac_cv_type_long_long+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6 8842 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else 8843else
14222 rxvt_cv_int16_t=yes 9694 rxvt_cv_int16_t=yes
14223else 9695else
14224 echo "$as_me: failed program was:" >&5 9696 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5 9697sed 's/^/| /' conftest.$ac_ext >&5
14226 9698
14227if test $ac_cv_sizeof_char -ge 2; then 9699if test "$ac_cv_sizeof_char" -ge 2; then
14228 rxvt_cv_int16_t=" char" 9700 rxvt_cv_int16_t=" char"
14229else 9701else
14230 if test $ac_cv_sizeof_short -ge 2; then 9702 if test "$ac_cv_sizeof_short" -ge 2; then
14231 rxvt_cv_int16_t=" short" 9703 rxvt_cv_int16_t=" short"
14232 else 9704 else
14233 if test $ac_cv_sizeof_int -ge 2; then 9705 if test "$ac_cv_sizeof_int" -ge 2; then
14234 rxvt_cv_int16_t=" int" 9706 rxvt_cv_int16_t=" int"
14235 else 9707 else
14236 if test $ac_cv_sizeof_long -ge 2; then 9708 if test "$ac_cv_sizeof_long" -ge 2; then
14237 rxvt_cv_int16_t=" long" 9709 rxvt_cv_int16_t=" long"
14238 else 9710 else
14239 if test $ac_cv_sizeof_long_long -ge 2; then 9711 if test "$ac_cv_sizeof_long_long" -ge 2; then
14240 rxvt_cv_int16_t=" long long" 9712 rxvt_cv_int16_t=" long long"
14241 else 9713 else
14242 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9714 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14243 fi 9715 fi
14244 fi 9716 fi
14304 rxvt_cv_uint16_t=yes 9776 rxvt_cv_uint16_t=yes
14305else 9777else
14306 echo "$as_me: failed program was:" >&5 9778 echo "$as_me: failed program was:" >&5
14307sed 's/^/| /' conftest.$ac_ext >&5 9779sed 's/^/| /' conftest.$ac_ext >&5
14308 9780
14309if test $ac_cv_sizeof_char -ge 2; then 9781if test "$ac_cv_sizeof_char" -ge 2; then
14310 rxvt_cv_uint16_t="unsigned char" 9782 rxvt_cv_uint16_t="unsigned char"
14311else 9783else
14312 if test $ac_cv_sizeof_short -ge 2; then 9784 if test "$ac_cv_sizeof_short" -ge 2; then
14313 rxvt_cv_uint16_t="unsigned short" 9785 rxvt_cv_uint16_t="unsigned short"
14314 else 9786 else
14315 if test $ac_cv_sizeof_int -ge 2; then 9787 if test "$ac_cv_sizeof_int" -ge 2; then
14316 rxvt_cv_uint16_t="unsigned int" 9788 rxvt_cv_uint16_t="unsigned int"
14317 else 9789 else
14318 if test $ac_cv_sizeof_long -ge 2; then 9790 if test "$ac_cv_sizeof_long" -ge 2; then
14319 rxvt_cv_uint16_t="unsigned long" 9791 rxvt_cv_uint16_t="unsigned long"
14320 else 9792 else
14321 if test $ac_cv_sizeof_long_long -ge 2; then 9793 if test "$ac_cv_sizeof_long_long" -ge 2; then
14322 rxvt_cv_uint16_t="unsigned long long" 9794 rxvt_cv_uint16_t="unsigned long long"
14323 else 9795 else
14324 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9796 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14325 fi 9797 fi
14326 fi 9798 fi
14386 rxvt_cv_int32_t=yes 9858 rxvt_cv_int32_t=yes
14387else 9859else
14388 echo "$as_me: failed program was:" >&5 9860 echo "$as_me: failed program was:" >&5
14389sed 's/^/| /' conftest.$ac_ext >&5 9861sed 's/^/| /' conftest.$ac_ext >&5
14390 9862
14391if test $ac_cv_sizeof_char -ge 4; then 9863if test "$ac_cv_sizeof_char" -ge 4; then
14392 rxvt_cv_int32_t=" char" 9864 rxvt_cv_int32_t=" char"
14393else 9865else
14394 if test $ac_cv_sizeof_short -ge 4; then 9866 if test "$ac_cv_sizeof_short" -ge 4; then
14395 rxvt_cv_int32_t=" short" 9867 rxvt_cv_int32_t=" short"
14396 else 9868 else
14397 if test $ac_cv_sizeof_int -ge 4; then 9869 if test "$ac_cv_sizeof_int" -ge 4; then
14398 rxvt_cv_int32_t=" int" 9870 rxvt_cv_int32_t=" int"
14399 else 9871 else
14400 if test $ac_cv_sizeof_long -ge 4; then 9872 if test "$ac_cv_sizeof_long" -ge 4; then
14401 rxvt_cv_int32_t=" long" 9873 rxvt_cv_int32_t=" long"
14402 else 9874 else
14403 if test $ac_cv_sizeof_long_long -ge 4; then 9875 if test "$ac_cv_sizeof_long_long" -ge 4; then
14404 rxvt_cv_int32_t=" long long" 9876 rxvt_cv_int32_t=" long long"
14405 else 9877 else
14406 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9878 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14407 fi 9879 fi
14408 fi 9880 fi
14468 rxvt_cv_uint32_t=yes 9940 rxvt_cv_uint32_t=yes
14469else 9941else
14470 echo "$as_me: failed program was:" >&5 9942 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5 9943sed 's/^/| /' conftest.$ac_ext >&5
14472 9944
14473if test $ac_cv_sizeof_char -ge 4; then 9945if test "$ac_cv_sizeof_char" -ge 4; then
14474 rxvt_cv_uint32_t="unsigned char" 9946 rxvt_cv_uint32_t="unsigned char"
14475else 9947else
14476 if test $ac_cv_sizeof_short -ge 4; then 9948 if test "$ac_cv_sizeof_short" -ge 4; then
14477 rxvt_cv_uint32_t="unsigned short" 9949 rxvt_cv_uint32_t="unsigned short"
14478 else 9950 else
14479 if test $ac_cv_sizeof_int -ge 4; then 9951 if test "$ac_cv_sizeof_int" -ge 4; then
14480 rxvt_cv_uint32_t="unsigned int" 9952 rxvt_cv_uint32_t="unsigned int"
14481 else 9953 else
14482 if test $ac_cv_sizeof_long -ge 4; then 9954 if test "$ac_cv_sizeof_long" -ge 4; then
14483 rxvt_cv_uint32_t="unsigned long" 9955 rxvt_cv_uint32_t="unsigned long"
14484 else 9956 else
14485 if test $ac_cv_sizeof_long_long -ge 4; then 9957 if test "$ac_cv_sizeof_long_long" -ge 4; then
14486 rxvt_cv_uint32_t="unsigned long long" 9958 rxvt_cv_uint32_t="unsigned long long"
14487 else 9959 else
14488 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9960 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14489 fi 9961 fi
14490 fi 9962 fi
14504 else 9976 else
14505 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9977 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14506 fi 9978 fi
14507fi 9979fi
14508 9980
14509if test $ac_cv_sizeof_int_p -eq 8; then 9981if test "$ac_cv_sizeof_int_p" -eq 8; then
14510 rxvt_intp_define="#define intp_t int64_t" 9982 rxvt_intp_define="#define intp_t int64_t"
14511 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9983 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14512else 9984else
14513 if test $ac_cv_sizeof_int_p -eq 4; then 9985 if test "$ac_cv_sizeof_int_p" -eq 4; then
14514 rxvt_intp_define="#define intp_t int32_t" 9986 rxvt_intp_define="#define intp_t int32_t"
14515 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9987 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14516 else 9988 else
14517 if test $ac_cv_sizeof_int_p -eq 2; then 9989 if test "$ac_cv_sizeof_int_p" -eq 2; then
14518 rxvt_intp_define="#define intp_t int16_t" 9990 rxvt_intp_define="#define intp_t int16_t"
14519 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9991 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14520 else 9992 else
14521 rxvt_intp_define="#error set intp_t" 9993 rxvt_intp_define="#error set intp_t"
14522 rxvt_u_intp_define="#error set u_intp_t" 9994 rxvt_u_intp_define="#error set u_intp_t"
14593#define RETSIGTYPE $ac_cv_type_signal 10065#define RETSIGTYPE $ac_cv_type_signal
14594_ACEOF 10066_ACEOF
14595 10067
14596 10068
14597 10069
14598case "$host_alias" in
14599 *ultrix) ac_cv_func_setsid='no' ;;
14600 *) break;;
14601esac
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614 10070
14615 10071
14616 10072
14617 10073
14618 10074
14619 10075
14620 10076
14621for ac_func in \ 10077for ac_func in \
14622 atexit \
14623 revoke \
14624 unsetenv \ 10078 unsetenv \
14625 setutent \ 10079 setutent \
14626 seteuid \ 10080 seteuid \
10081 setresuid \
14627 setreuid \ 10082 setreuid \
14628 setsid \
14629 setpgrp \
14630 setpgid \
14631 openpty \
14632 _getpty \
14633 grantpt \
14634 unlockpt \
14635 isastream \
14636 on_exit \ 10083 on_exit \
14637 nanosleep \ 10084 nanosleep \
14638 updwtmp \
14639 ttyslot \
14640 10085
14641do 10086do
14642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14643echo "$as_me:$LINENO: checking for $ac_func" >&5 10088echo "$as_me:$LINENO: checking for $ac_func" >&5
14644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14736 10181
14737fi 10182fi
14738done 10183done
14739 10184
14740 10185
14741 10186UTMP_CHECK
14742if test "${ac_cv_header_utmp_h+set}" = set; then
14743 echo "$as_me:$LINENO: checking for utmp.h" >&5
14744echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14745if test "${ac_cv_header_utmp_h+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747fi
14748echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14749echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14750else
14751 # Is the header compilable?
14752echo "$as_me:$LINENO: checking utmp.h usability" >&5
14753echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
14754cat >conftest.$ac_ext <<_ACEOF
14755/* confdefs.h. */
14756_ACEOF
14757cat confdefs.h >>conftest.$ac_ext
14758cat >>conftest.$ac_ext <<_ACEOF
14759/* end confdefs.h. */
14760$ac_includes_default
14761#include <utmp.h>
14762_ACEOF
14763rm -f conftest.$ac_objext
14764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14765 (eval $ac_compile) 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } &&
14772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest.$ac_objext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 ac_header_compiler=yes
14785else
14786 echo "$as_me: failed program was:" >&5
14787sed 's/^/| /' conftest.$ac_ext >&5
14788
14789ac_header_compiler=no
14790fi
14791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14792echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14793echo "${ECHO_T}$ac_header_compiler" >&6
14794
14795# Is the header present?
14796echo "$as_me:$LINENO: checking utmp.h presence" >&5
14797echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
14798cat >conftest.$ac_ext <<_ACEOF
14799/* confdefs.h. */
14800_ACEOF
14801cat confdefs.h >>conftest.$ac_ext
14802cat >>conftest.$ac_ext <<_ACEOF
14803/* end confdefs.h. */
14804#include <utmp.h>
14805_ACEOF
14806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14808 ac_status=$?
14809 grep -v '^ *+' conftest.er1 >conftest.err
14810 rm -f conftest.er1
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } >/dev/null; then
14814 if test -s conftest.err; then
14815 ac_cpp_err=$ac_cxx_preproc_warn_flag
14816 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14817 else
14818 ac_cpp_err=
14819 fi
14820else
14821 ac_cpp_err=yes
14822fi
14823if test -z "$ac_cpp_err"; then
14824 ac_header_preproc=yes
14825else
14826 echo "$as_me: failed program was:" >&5
14827sed 's/^/| /' conftest.$ac_ext >&5
14828
14829 ac_header_preproc=no
14830fi
14831rm -f conftest.err conftest.$ac_ext
14832echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14833echo "${ECHO_T}$ac_header_preproc" >&6
14834
14835# So? What about this header?
14836case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
14837 yes:no: )
14838 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
14839echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14840 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
14841echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
14842 ac_header_preproc=yes
14843 ;;
14844 no:yes:* )
14845 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
14846echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
14847 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
14848echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
14850echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
14852echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
14854echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
14856echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
14857 (
14858 cat <<\_ASBOX
14859## ------------------------------------------ ##
14860## Report this to the AC_PACKAGE_NAME lists. ##
14861## ------------------------------------------ ##
14862_ASBOX
14863 ) |
14864 sed "s/^/$as_me: WARNING: /" >&2
14865 ;;
14866esac
14867echo "$as_me:$LINENO: checking for utmp.h" >&5
14868echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
14869if test "${ac_cv_header_utmp_h+set}" = set; then
14870 echo $ECHO_N "(cached) $ECHO_C" >&6
14871else
14872 ac_cv_header_utmp_h=$ac_header_preproc
14873fi
14874echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
14875echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
14876
14877fi
14878if test $ac_cv_header_utmp_h = yes; then
14879 echo "$as_me:$LINENO: checking for struct utmp" >&5
14880echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14881if test "${rxvt_cv_struct_utmp+set}" = set; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6
14883else
14884 cat >conftest.$ac_ext <<_ACEOF
14885/* confdefs.h. */
14886_ACEOF
14887cat confdefs.h >>conftest.$ac_ext
14888cat >>conftest.$ac_ext <<_ACEOF
14889/* end confdefs.h. */
14890#include <sys/types.h>
14891#include <stdint.h>
14892#include <utmp.h>
14893int
14894main ()
14895{
14896struct utmp ut;
14897 ;
14898 return 0;
14899}
14900_ACEOF
14901rm -f conftest.$ac_objext
14902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14903 (eval $ac_compile) 2>conftest.er1
14904 ac_status=$?
14905 grep -v '^ *+' conftest.er1 >conftest.err
14906 rm -f conftest.er1
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); }; } &&
14916 { ac_try='test -s conftest.$ac_objext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 rxvt_cv_struct_utmp=yes
14923else
14924 echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5
14926
14927rxvt_cv_struct_utmp=no
14928fi
14929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14930fi
14931echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
14932echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
14933if test x$rxvt_cv_struct_utmp = xyes; then
14934
14935cat >>confdefs.h <<\_ACEOF
14936#define HAVE_STRUCT_UTMP 1
14937_ACEOF
14938
14939fi
14940
14941
14942echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14943echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14944if test "${rxvt_cv_struct_utmp_host+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946else
14947 cat >conftest.$ac_ext <<_ACEOF
14948/* confdefs.h. */
14949_ACEOF
14950cat confdefs.h >>conftest.$ac_ext
14951cat >>conftest.$ac_ext <<_ACEOF
14952/* end confdefs.h. */
14953#include <sys/types.h>
14954#include <utmp.h>
14955int
14956main ()
14957{
14958struct utmp ut; ut.ut_host;
14959 ;
14960 return 0;
14961}
14962_ACEOF
14963rm -f conftest.$ac_objext
14964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14965 (eval $ac_compile) 2>conftest.er1
14966 ac_status=$?
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } &&
14978 { ac_try='test -s conftest.$ac_objext'
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 rxvt_cv_struct_utmp_host=yes
14985else
14986 echo "$as_me: failed program was:" >&5
14987sed 's/^/| /' conftest.$ac_ext >&5
14988
14989rxvt_cv_struct_utmp_host=no
14990fi
14991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14992fi
14993echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
14994echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
14995if test x$rxvt_cv_struct_utmp_host = xyes; then
14996
14997cat >>confdefs.h <<\_ACEOF
14998#define HAVE_UTMP_HOST 1
14999_ACEOF
15000
15001fi
15002
15003echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
15004echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
15005if test "${rxvt_cv_struct_utmp_pid+set}" = set; then
15006 echo $ECHO_N "(cached) $ECHO_C" >&6
15007else
15008 cat >conftest.$ac_ext <<_ACEOF
15009/* confdefs.h. */
15010_ACEOF
15011cat confdefs.h >>conftest.$ac_ext
15012cat >>conftest.$ac_ext <<_ACEOF
15013/* end confdefs.h. */
15014#include <sys/types.h>
15015#include <utmp.h>
15016int
15017main ()
15018{
15019struct utmp ut; ut.ut_pid;
15020 ;
15021 return 0;
15022}
15023_ACEOF
15024rm -f conftest.$ac_objext
15025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15026 (eval $ac_compile) 2>conftest.er1
15027 ac_status=$?
15028 grep -v '^ *+' conftest.er1 >conftest.err
15029 rm -f conftest.er1
15030 cat conftest.err >&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
15033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15036 ac_status=$?
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; } &&
15039 { ac_try='test -s conftest.$ac_objext'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then
15045 rxvt_cv_struct_utmp_pid=yes
15046else
15047 echo "$as_me: failed program was:" >&5
15048sed 's/^/| /' conftest.$ac_ext >&5
15049
15050rxvt_cv_struct_utmp_pid=no
15051fi
15052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15053fi
15054echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
15055echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
15056if test x$rxvt_cv_struct_utmp_pid = xyes; then
15057
15058cat >>confdefs.h <<\_ACEOF
15059#define HAVE_UTMP_PID 1
15060_ACEOF
15061
15062fi
15063
15064fi
15065
15066
15067
15068if test "${ac_cv_header_utmpx_h+set}" = set; then
15069 echo "$as_me:$LINENO: checking for utmpx.h" >&5
15070echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
15071if test "${ac_cv_header_utmpx_h+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073fi
15074echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
15075echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
15076else
15077 # Is the header compilable?
15078echo "$as_me:$LINENO: checking utmpx.h usability" >&5
15079echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
15080cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086$ac_includes_default
15087#include <utmpx.h>
15088_ACEOF
15089rm -f conftest.$ac_objext
15090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15091 (eval $ac_compile) 2>conftest.er1
15092 ac_status=$?
15093 grep -v '^ *+' conftest.er1 >conftest.err
15094 rm -f conftest.er1
15095 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } &&
15098 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15100 (eval $ac_try) 2>&5
15101 ac_status=$?
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; } &&
15104 { ac_try='test -s conftest.$ac_objext'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_header_compiler=yes
15111else
15112 echo "$as_me: failed program was:" >&5
15113sed 's/^/| /' conftest.$ac_ext >&5
15114
15115ac_header_compiler=no
15116fi
15117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15119echo "${ECHO_T}$ac_header_compiler" >&6
15120
15121# Is the header present?
15122echo "$as_me:$LINENO: checking utmpx.h presence" >&5
15123echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
15124cat >conftest.$ac_ext <<_ACEOF
15125/* confdefs.h. */
15126_ACEOF
15127cat confdefs.h >>conftest.$ac_ext
15128cat >>conftest.$ac_ext <<_ACEOF
15129/* end confdefs.h. */
15130#include <utmpx.h>
15131_ACEOF
15132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15134 ac_status=$?
15135 grep -v '^ *+' conftest.er1 >conftest.err
15136 rm -f conftest.er1
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } >/dev/null; then
15140 if test -s conftest.err; then
15141 ac_cpp_err=$ac_cxx_preproc_warn_flag
15142 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15143 else
15144 ac_cpp_err=
15145 fi
15146else
15147 ac_cpp_err=yes
15148fi
15149if test -z "$ac_cpp_err"; then
15150 ac_header_preproc=yes
15151else
15152 echo "$as_me: failed program was:" >&5
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
15155 ac_header_preproc=no
15156fi
15157rm -f conftest.err conftest.$ac_ext
15158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15159echo "${ECHO_T}$ac_header_preproc" >&6
15160
15161# So? What about this header?
15162case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15163 yes:no: )
15164 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
15165echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15166 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
15167echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
15168 ac_header_preproc=yes
15169 ;;
15170 no:yes:* )
15171 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
15172echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
15173 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
15174echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
15175 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
15176echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
15177 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
15178echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
15179 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
15180echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
15181 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
15182echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
15183 (
15184 cat <<\_ASBOX
15185## ------------------------------------------ ##
15186## Report this to the AC_PACKAGE_NAME lists. ##
15187## ------------------------------------------ ##
15188_ASBOX
15189 ) |
15190 sed "s/^/$as_me: WARNING: /" >&2
15191 ;;
15192esac
15193echo "$as_me:$LINENO: checking for utmpx.h" >&5
15194echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
15195if test "${ac_cv_header_utmpx_h+set}" = set; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15197else
15198 ac_cv_header_utmpx_h=$ac_header_preproc
15199fi
15200echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
15201echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
15202
15203fi
15204if test $ac_cv_header_utmpx_h = yes; then
15205 echo "$as_me:$LINENO: checking for struct utmpx" >&5
15206echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
15207if test "${rxvt_cv_struct_utmpx+set}" = set; then
15208 echo $ECHO_N "(cached) $ECHO_C" >&6
15209else
15210 cat >conftest.$ac_ext <<_ACEOF
15211/* confdefs.h. */
15212_ACEOF
15213cat confdefs.h >>conftest.$ac_ext
15214cat >>conftest.$ac_ext <<_ACEOF
15215/* end confdefs.h. */
15216#include <sys/types.h>
15217#include <utmpx.h>
15218int
15219main ()
15220{
15221struct utmpx ut;
15222 ;
15223 return 0;
15224}
15225_ACEOF
15226rm -f conftest.$ac_objext
15227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15228 (eval $ac_compile) 2>conftest.er1
15229 ac_status=$?
15230 grep -v '^ *+' conftest.er1 >conftest.err
15231 rm -f conftest.er1
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } &&
15235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237 (eval $ac_try) 2>&5
15238 ac_status=$?
15239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240 (exit $ac_status); }; } &&
15241 { ac_try='test -s conftest.$ac_objext'
15242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243 (eval $ac_try) 2>&5
15244 ac_status=$?
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; }; then
15247 rxvt_cv_struct_utmpx=yes
15248else
15249 echo "$as_me: failed program was:" >&5
15250sed 's/^/| /' conftest.$ac_ext >&5
15251
15252rxvt_cv_struct_utmpx=no
15253fi
15254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15255fi
15256echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
15257echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
15258if test x$rxvt_cv_struct_utmpx = xyes; then
15259
15260cat >>confdefs.h <<\_ACEOF
15261#define HAVE_STRUCT_UTMPX 1
15262_ACEOF
15263
15264fi
15265
15266
15267echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
15268echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
15269if test "${rxvt_cv_struct_utmpx_host+set}" = set; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271else
15272 cat >conftest.$ac_ext <<_ACEOF
15273/* confdefs.h. */
15274_ACEOF
15275cat confdefs.h >>conftest.$ac_ext
15276cat >>conftest.$ac_ext <<_ACEOF
15277/* end confdefs.h. */
15278#include <sys/types.h>
15279#include <utmpx.h>
15280int
15281main ()
15282{
15283struct utmpx utx; utx.ut_host;
15284 ;
15285 return 0;
15286}
15287_ACEOF
15288rm -f conftest.$ac_objext
15289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15290 (eval $ac_compile) 2>conftest.er1
15291 ac_status=$?
15292 grep -v '^ *+' conftest.er1 >conftest.err
15293 rm -f conftest.er1
15294 cat conftest.err >&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } &&
15297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15299 (eval $ac_try) 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; } &&
15303 { ac_try='test -s conftest.$ac_objext'
15304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15306 ac_status=$?
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then
15309 rxvt_cv_struct_utmpx_host=yes
15310else
15311 echo "$as_me: failed program was:" >&5
15312sed 's/^/| /' conftest.$ac_ext >&5
15313
15314rxvt_cv_struct_utmpx_host=no
15315fi
15316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15317fi
15318echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
15319echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
15320if test x$rxvt_cv_struct_utmpx_host = xyes; then
15321
15322cat >>confdefs.h <<\_ACEOF
15323#define HAVE_UTMPX_HOST 1
15324_ACEOF
15325
15326fi
15327
15328fi
15329
15330
15331
15332echo "$as_me:$LINENO: checking for struct lastlog" >&5
15333echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15334if test "${rxvt_cv_struct_lastlog+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15336else
15337 cat >conftest.$ac_ext <<_ACEOF
15338/* confdefs.h. */
15339_ACEOF
15340cat confdefs.h >>conftest.$ac_ext
15341cat >>conftest.$ac_ext <<_ACEOF
15342/* end confdefs.h. */
15343#include <sys/types.h>
15344#include <utmp.h>
15345#ifdef HAVE_LASTLOG_H
15346#include <lastlog.h>
15347#endif
15348
15349int
15350main ()
15351{
15352struct lastlog ll;
15353 ;
15354 return 0;
15355}
15356_ACEOF
15357rm -f conftest.$ac_objext
15358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15359 (eval $ac_compile) 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
15366 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; } &&
15372 { ac_try='test -s conftest.$ac_objext'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 rxvt_cv_struct_lastlog=yes
15379else
15380 echo "$as_me: failed program was:" >&5
15381sed 's/^/| /' conftest.$ac_ext >&5
15382
15383rxvt_cv_struct_lastlog=no
15384fi
15385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15386fi
15387echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
15388echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
15389if test x$rxvt_cv_struct_lastlog = xyes; then
15390
15391cat >>confdefs.h <<\_ACEOF
15392#define HAVE_STRUCT_LASTLOG 1
15393_ACEOF
15394
15395fi
15396
15397echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15398echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15399if test "${rxvt_cv_struct_lastlogx+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15401else
15402 cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */
15404_ACEOF
15405cat confdefs.h >>conftest.$ac_ext
15406cat >>conftest.$ac_ext <<_ACEOF
15407/* end confdefs.h. */
15408#include <sys/types.h>
15409#include <utmpx.h>
15410#ifdef HAVE_LASTLOG_H
15411#include <lastlog.h>
15412#endif
15413
15414int
15415main ()
15416{
15417struct lastlogx ll;
15418 ;
15419 return 0;
15420}
15421_ACEOF
15422rm -f conftest.$ac_objext
15423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15424 (eval $ac_compile) 2>conftest.er1
15425 ac_status=$?
15426 grep -v '^ *+' conftest.er1 >conftest.err
15427 rm -f conftest.er1
15428 cat conftest.err >&5
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); } &&
15431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest.$ac_objext'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443 rxvt_cv_struct_lastlogx=yes
15444else
15445 echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5
15447
15448rxvt_cv_struct_lastlogx=no
15449fi
15450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15451fi
15452echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
15453echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
15454if test x$rxvt_cv_struct_lastlogx = xyes; then
15455
15456cat >>confdefs.h <<\_ACEOF
15457#define HAVE_STRUCT_LASTLOGX 1
15458_ACEOF
15459
15460fi
15461
15462
15463echo "$as_me:$LINENO: checking where utmp is located" >&5
15464echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15465if test "${rxvt_cv_path_utmp+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15467else
15468 if test "$cross_compiling" = yes; then
15469 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5
15470echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
15471else
15472 cat >conftest.$ac_ext <<_ACEOF
15473/* confdefs.h. */
15474_ACEOF
15475cat confdefs.h >>conftest.$ac_ext
15476cat >>conftest.$ac_ext <<_ACEOF
15477/* end confdefs.h. */
15478#include <stdio.h>
15479#include <sys/types.h>
15480#include <utmp.h>
15481#include <errno.h>
15482main()
15483{
15484 char **u, *utmplist[] = {
15485 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
15486 FILE *a, *f=fopen("conftestval", "w");
15487 if (!f) exit(1);
15488#ifdef UTMP_FILE
15489 fprintf(f, "%s\n", UTMP_FILE);
15490 exit(0);
15491#endif
15492#ifdef _PATH_UTMP
15493 fprintf(f, "%s\n", _PATH_UTMP);
15494 exit(0);
15495#endif
15496 for (u = utmplist; *u; u++) {
15497 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
15498 fprintf(f, "%s\n", *u);
15499 exit(0);
15500 }
15501 }
15502 exit(0);
15503}
15504_ACEOF
15505rm -f conftest$ac_exeext
15506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15507 (eval $ac_link) 2>&5
15508 ac_status=$?
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516 rxvt_cv_path_utmp=`cat conftestval`
15517else
15518 echo "$as_me: program exited with status $ac_status" >&5
15519echo "$as_me: failed program was:" >&5
15520sed 's/^/| /' conftest.$ac_ext >&5
15521
15522( exit $ac_status )
15523rxvt_cv_path_utmp=
15524fi
15525rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15526fi
15527fi
15528echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5
15529echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
15530if test x$rxvt_cv_path_utmp != x; then
15531
15532cat >>confdefs.h <<_ACEOF
15533#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
15534_ACEOF
15535
15536fi
15537
15538
15539echo "$as_me:$LINENO: checking where utmpx is located" >&5
15540echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15541if test "${rxvt_cv_path_utmpx+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15543else
15544 if test "$cross_compiling" = yes; then
15545 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
15546echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
15547else
15548 cat >conftest.$ac_ext <<_ACEOF
15549/* confdefs.h. */
15550_ACEOF
15551cat confdefs.h >>conftest.$ac_ext
15552cat >>conftest.$ac_ext <<_ACEOF
15553/* end confdefs.h. */
15554#include <stdio.h>
15555#include <sys/types.h>
15556#include <utmpx.h>
15557#include <errno.h>
15558#include <sys/stat.h>
15559#ifdef HAVE_STRING_H
15560#include <string.h>
15561#endif
15562main()
15563{
15564 char **u, *p, *utmplist[] = {
15565#ifdef UTMPX_FILE
15566 UTMPX_FILE,
15567#endif
15568#ifdef _PATH_UTMPX
15569 _PATH_UTMPX,
15570#endif
15571 "/var/adm/utmpx", "/etc/utmpx", NULL };
15572 FILE *a, *f=fopen("conftestval", "w");
15573 struct stat statu, statux;
15574 if (!f) exit(1);
15575 for (u = utmplist; *u; u++) {
15576 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
15577 if (stat(*u, &statux) < 0)
15578 continue;
15579 p = strdup(*u);
15580 p[strlen(p) - 1] = '\0';
15581 if (stat(p, &statu) >= 0
15582 && (statu.st_mtime - statux.st_mtime > 86400))
15583 continue;
15584 fprintf(f, "%s\n", *u);
15585 exit(0);
15586 }
15587 }
15588 exit(0);
15589}
15590_ACEOF
15591rm -f conftest$ac_exeext
15592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15593 (eval $ac_link) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 rxvt_cv_path_utmpx=`cat conftestval`
15603else
15604 echo "$as_me: program exited with status $ac_status" >&5
15605echo "$as_me: failed program was:" >&5
15606sed 's/^/| /' conftest.$ac_ext >&5
15607
15608( exit $ac_status )
15609rxvt_cv_path_utmpx=
15610fi
15611rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15612fi
15613fi
15614echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
15615echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
15616if test x$rxvt_cv_path_utmpx != x; then
15617
15618cat >>confdefs.h <<_ACEOF
15619#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
15620_ACEOF
15621
15622fi
15623
15624
15625echo "$as_me:$LINENO: checking where wtmp is located" >&5
15626echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15627if test "${rxvt_cv_path_wtmp+set}" = set; then
15628 echo $ECHO_N "(cached) $ECHO_C" >&6
15629else
15630 if test "$cross_compiling" = yes; then
15631 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
15632echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
15633else
15634 cat >conftest.$ac_ext <<_ACEOF
15635/* confdefs.h. */
15636_ACEOF
15637cat confdefs.h >>conftest.$ac_ext
15638cat >>conftest.$ac_ext <<_ACEOF
15639/* end confdefs.h. */
15640#include <stdio.h>
15641#include <sys/types.h>
15642#ifdef HAVE_UTMP_H
15643#include <utmp.h>
15644#endif
15645#include <errno.h>
15646main()
15647{
15648 char **w, *wtmplist[] = {
15649 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
15650 FILE *a, *f=fopen("conftestval", "w");
15651 if (!f) exit(1);
15652#ifdef WTMP_FILE
15653 fprintf(f, "%s\n", WTMP_FILE);
15654 exit(0);
15655#endif
15656#ifdef _PATH_WTMP
15657 fprintf(f, "%s\n", _PATH_WTMP);
15658 exit(0);
15659#endif
15660 for (w = wtmplist; *w; w++) {
15661 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15662 fprintf(f, "%s\n", *w);
15663 exit(0);
15664 }
15665 }
15666 exit(0);
15667}
15668_ACEOF
15669rm -f conftest$ac_exeext
15670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15671 (eval $ac_link) 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15677 ac_status=$?
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then
15680 rxvt_cv_path_wtmp=`cat conftestval`
15681else
15682 echo "$as_me: program exited with status $ac_status" >&5
15683echo "$as_me: failed program was:" >&5
15684sed 's/^/| /' conftest.$ac_ext >&5
15685
15686( exit $ac_status )
15687rxvt_cv_path_wtmp=
15688fi
15689rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15690fi
15691fi
15692echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
15693echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
15694if test x$rxvt_cv_path_wtmp != x; then
15695
15696cat >>confdefs.h <<_ACEOF
15697#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
15698_ACEOF
15699
15700fi
15701
15702echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15703echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15704if test "${rxvt_cv_path_wtmpx+set}" = set; then
15705 echo $ECHO_N "(cached) $ECHO_C" >&6
15706else
15707 if test "$cross_compiling" = yes; then
15708 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
15709echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
15710else
15711 cat >conftest.$ac_ext <<_ACEOF
15712/* confdefs.h. */
15713_ACEOF
15714cat confdefs.h >>conftest.$ac_ext
15715cat >>conftest.$ac_ext <<_ACEOF
15716/* end confdefs.h. */
15717#include <stdio.h>
15718#ifdef HAVE_UTMPX_H
15719#include <utmpx.h>
15720#endif
15721#include <errno.h>
15722main()
15723{
15724 char **w, *wtmplist[] = {
15725 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
15726 FILE *a, *f=fopen("conftestval", "w");
15727 if (!f) exit(1);
15728#ifdef WTMPX_FILE
15729 fprintf(f, "%s\n", WTMPX_FILE);
15730 exit(0);
15731#endif
15732#ifdef _PATH_WTMPX
15733 fprintf(f, "%s\n", _PATH_WTMPX);
15734 exit(0);
15735#endif
15736 for (w = wtmplist; *w; w++) {
15737 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15738 fprintf(f, "%s\n", *w);
15739 exit(0);
15740 }
15741 }
15742 exit(0);
15743}
15744_ACEOF
15745rm -f conftest$ac_exeext
15746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15747 (eval $ac_link) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15752 (eval $ac_try) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); }; }; then
15756 rxvt_cv_path_wtmpx=`cat conftestval`
15757else
15758 echo "$as_me: program exited with status $ac_status" >&5
15759echo "$as_me: failed program was:" >&5
15760sed 's/^/| /' conftest.$ac_ext >&5
15761
15762( exit $ac_status )
15763rxvt_cv_path_wtmpx=
15764fi
15765rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15766fi
15767fi
15768echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
15769echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
15770if test x$rxvt_cv_path_wtmpx != x; then
15771
15772cat >>confdefs.h <<_ACEOF
15773#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
15774_ACEOF
15775
15776fi
15777
15778echo "$as_me:$LINENO: checking where lastlog is located" >&5
15779echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15780if test "${rxvt_cv_path_lastlog+set}" = set; then
15781 echo $ECHO_N "(cached) $ECHO_C" >&6
15782else
15783 if test "$cross_compiling" = yes; then
15784 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
15785echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
15786else
15787 cat >conftest.$ac_ext <<_ACEOF
15788/* confdefs.h. */
15789_ACEOF
15790cat confdefs.h >>conftest.$ac_ext
15791cat >>conftest.$ac_ext <<_ACEOF
15792/* end confdefs.h. */
15793#include <stdio.h>
15794#include <sys/types.h>
15795#ifdef HAVE_UTMPX_H
15796#include <utmpx.h>
15797#elif defined(HAVE_UTMP_H)
15798#include <utmp.h>
15799#endif
15800#ifdef HAVE_LASTLOG_H
15801#include <lastlog.h>
15802#endif
15803#include <errno.h>
15804main()
15805{
15806 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
15807 FILE *a, *f=fopen("conftestval", "w");
15808 if (!f) exit(1);
15809#ifdef LASTLOG_FILE
15810 fprintf(f, "%s\n", LASTLOG_FILE);
15811 exit(0);
15812#endif
15813#ifdef _PATH_LASTLOG
15814 fprintf(f, "%s\n", _PATH_LASTLOG);
15815 exit(0);
15816#endif
15817 for (w = lastloglist; *w; w++) {
15818 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15819 fprintf(f, "%s\n", *w);
15820 exit(0);
15821 }
15822 }
15823 exit(0);
15824}
15825_ACEOF
15826rm -f conftest$ac_exeext
15827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15828 (eval $ac_link) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833 (eval $ac_try) 2>&5
15834 ac_status=$?
15835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836 (exit $ac_status); }; }; then
15837 rxvt_cv_path_lastlog=`cat conftestval`
15838else
15839 echo "$as_me: program exited with status $ac_status" >&5
15840echo "$as_me: failed program was:" >&5
15841sed 's/^/| /' conftest.$ac_ext >&5
15842
15843( exit $ac_status )
15844rxvt_cv_path_lastlog=
15845fi
15846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15847fi
15848fi
15849echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
15850echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
15851if test x$rxvt_cv_path_lastlog != x; then
15852
15853cat >>confdefs.h <<_ACEOF
15854#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
15855_ACEOF
15856
15857 if test -d "$rxvt_cv_path_lastlog"; then
15858
15859cat >>confdefs.h <<\_ACEOF
15860#define LASTLOG_IS_DIR 1
15861_ACEOF
15862
15863 fi
15864fi
15865
15866echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15867echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15868if test "${rxvt_cv_path_lastlogx+set}" = set; then
15869 echo $ECHO_N "(cached) $ECHO_C" >&6
15870else
15871 if test "$cross_compiling" = yes; then
15872 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
15873echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
15874else
15875 cat >conftest.$ac_ext <<_ACEOF
15876/* confdefs.h. */
15877_ACEOF
15878cat confdefs.h >>conftest.$ac_ext
15879cat >>conftest.$ac_ext <<_ACEOF
15880/* end confdefs.h. */
15881#include <stdio.h>
15882#ifdef HAVE_UTMPX_H
15883#include <utmpx.h>
15884#endif
15885#include <errno.h>
15886main()
15887{
15888 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
15889 FILE *a, *f=fopen("conftestval", "w");
15890 if (!f) exit(1);
15891#ifdef LASTLOGX_FILE
15892 fprintf(f, "%s\n", LASTLOGX_FILE);
15893 exit(0);
15894#endif
15895#ifdef _PATH_LASTLOGX
15896 fprintf(f, "%s\n", _PATH_LASTLOGX);
15897 exit(0);
15898#endif
15899 for (w = wtmplist; *w; w++) {
15900 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
15901 fprintf(f, "%s\n", *w);
15902 exit(0);
15903 }
15904 }
15905 exit(0);
15906}
15907_ACEOF
15908rm -f conftest$ac_exeext
15909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15910 (eval $ac_link) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15916 ac_status=$?
15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 rxvt_cv_path_lastlogx=`cat conftestval`
15920else
15921 echo "$as_me: program exited with status $ac_status" >&5
15922echo "$as_me: failed program was:" >&5
15923sed 's/^/| /' conftest.$ac_ext >&5
15924
15925( exit $ac_status )
15926rxvt_cv_path_lastlogx=
15927fi
15928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15929fi
15930fi
15931echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
15932echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
15933if test x$rxvt_cv_path_lastlogx != x; then
15934
15935cat >>confdefs.h <<_ACEOF
15936#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
15937_ACEOF
15938
15939fi
15940 10187
15941 10188
15942echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 10189echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15943echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 10190echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15944if test "${rxvt_cv_path_ttytab+set}" = set; then 10191if test "${rxvt_cv_path_ttytab+set}" = set; then
16211#define HAVE_NL_LANGINFO 1 10458#define HAVE_NL_LANGINFO 1
16212_ACEOF 10459_ACEOF
16213 10460
16214fi 10461fi
16215 10462
10463SCM_RIGHTS_CHECK
10464
16216echo "$as_me:$LINENO: checking for broken XIM callback" >&5 10465echo "$as_me:$LINENO: checking for broken XIM callback" >&5
16217echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 10466echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
16218if test "${rxvt_broken_ximcb+set}" = set; then 10467if test "${rxvt_broken_ximcb+set}" = set; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6 10468 echo $ECHO_N "(cached) $ECHO_C" >&6
16220else 10469else
16269#define XIMCB_PROTO_BROKEN 1 10518#define XIMCB_PROTO_BROKEN 1
16270_ACEOF 10519_ACEOF
16271 10520
16272fi 10521fi
16273 10522
10523PTY_CHECK
10524
10525if test x$support_xft = xyes; then
10526 # Extract the first word of "pkg-config", so it can be a program name with args.
10527set dummy pkg-config; ac_word=$2
16274echo "$as_me:$LINENO: checking for getpt" >&5 10528echo "$as_me:$LINENO: checking for $ac_word" >&5
16275echo $ECHO_N "checking for getpt... $ECHO_C" >&6 10529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16276if test "${rxvt_cv_func_getpt+set}" = set; then 10530if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6 10531 echo $ECHO_N "(cached) $ECHO_C" >&6
16278else 10532else
16279 cat >conftest.$ac_ext <<_ACEOF 10533 case $PKG_CONFIG in
16280/* confdefs.h. */ 10534 [\\/]* | ?:[\\/]*)
16281_ACEOF 10535 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h. */
16285#define _GNU_SOURCE
16286#ifdef HAVE_STDLIB_H
16287# include <cstdlib>
16288#endif
16289int
16290main ()
16291{
16292(void)getpt();
16293 ; 10536 ;;
16294 return 0; 10537 *)
16295} 10538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16296_ACEOF 10539for as_dir in $PATH
16297rm -f conftest.$ac_objext conftest$ac_exeext 10540do
16298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10541 IFS=$as_save_IFS
16299 (eval $ac_link) 2>conftest.er1 10542 test -z "$as_dir" && as_dir=.
16300 ac_status=$? 10543 for ac_exec_ext in '' $ac_executable_extensions; do
16301 grep -v '^ *+' conftest.er1 >conftest.err 10544 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16302 rm -f conftest.er1 10545 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16303 cat conftest.err >&5 10546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10547 break 2
16305 (exit $ac_status); } && 10548 fi
16306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 10549done
16307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10550done
16308 (eval $ac_try) 2>&5
16309 ac_status=$?
16310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311 (exit $ac_status); }; } &&
16312 { ac_try='test -s conftest$ac_exeext'
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5
16315 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then
16318 rxvt_cv_func_getpt=yes
16319else
16320 echo "$as_me: failed program was:" >&5
16321sed 's/^/| /' conftest.$ac_ext >&5
16322 10551
16323rxvt_cv_func_getpt=no 10552 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10553 ;;
10554esac
16324fi 10555fi
16325rm -f conftest.err conftest.$ac_objext \ 10556PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16326 conftest$ac_exeext conftest.$ac_ext 10557
16327fi 10558if test -n "$PKG_CONFIG"; then
10559 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10560echo "${ECHO_T}$PKG_CONFIG" >&6
10561else
16328echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 10562 echo "$as_me:$LINENO: result: no" >&5
16329echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 10563echo "${ECHO_T}no" >&6
16330if test x$rxvt_cv_func_getpt = xyes; then
16331
16332cat >>confdefs.h <<\_ACEOF
16333#define HAVE_GETPT 1
16334_ACEOF
16335
16336fi 10564fi
16337 10565
10566 # Extract the first word of "xft-config", so it can be a program name with args.
10567set dummy xft-config; ac_word=$2
16338echo "$as_me:$LINENO: checking for pty/tty type" >&5 10568echo "$as_me:$LINENO: checking for $ac_word" >&5
16339echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 10569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16340if test "${rxvt_cv_ptys+set}" = set; then 10570if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6 10571 echo $ECHO_N "(cached) $ECHO_C" >&6
16342else 10572else
16343 if test x$ac_cv_func_openpty = xyes; then 10573 case $XFT_CONFIG in
16344 rxvt_cv_ptys=OPENPTY 10574 [\\/]* | ?:[\\/]*)
16345 else if test x$ac_cv_func__getpty = xyes; then 10575 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
16346 rxvt_cv_ptys=SGI4
16347 else if test -c /dev/ttyp20; then
16348 rxvt_cv_ptys=SCO
16349 else if test -c /dev/ptym/clone; then
16350 rxvt_cv_ptys=HPUX
16351 else if test x$rxvt_cv_func_getpt = xyes; then
16352 rxvt_cv_ptys=GLIBC
16353 else if test -c /dev/ptc -a -c /dev/pts; then
16354 rxvt_cv_ptys=PTC
16355 else if test -c /dev/ptc -a -d /dev/pts; then
16356 rxvt_cv_ptys=PTC
16357 else if test -c /dev/ptmx -a -c /dev/pts/0; then
16358 rxvt_cv_ptys=STREAMS
16359 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
16360 rxvt_cv_ptys=STREAMS
16361 else
16362 rxvt_cv_ptys=BSD
16363fi
16364fi
16365fi
16366fi
16367fi
16368fi
16369fi
16370fi
16371fi
16372
16373fi
16374echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16375echo "${ECHO_T}$rxvt_cv_ptys" >&6
16376
16377if test x$rxvt_cv_ptys = xOPENPTY; then
16378
16379cat >>confdefs.h <<\_ACEOF
16380#define PTYS_ARE_OPENPTY 1
16381_ACEOF
16382
16383fi
16384if test x$rxvt_cv_ptys = xSCO; then
16385
16386cat >>confdefs.h <<\_ACEOF
16387#define PTYS_ARE_NUMERIC 1
16388_ACEOF
16389
16390fi
16391if test x$rxvt_cv_ptys = xSTREAMS; then
16392
16393cat >>confdefs.h <<\_ACEOF
16394#define PTYS_ARE_PTMX 1
16395_ACEOF
16396
16397fi
16398if test x$rxvt_cv_ptys = xPTC; then
16399
16400cat >>confdefs.h <<\_ACEOF
16401#define PTYS_ARE_PTC 1
16402_ACEOF
16403
16404fi
16405if test x$rxvt_cv_ptys = xSGI4; then
16406
16407cat >>confdefs.h <<\_ACEOF
16408#define PTYS_ARE__GETPTY 1
16409_ACEOF
16410
16411fi
16412if test x$rxvt_cv_ptys = xCONVEX; then
16413
16414cat >>confdefs.h <<\_ACEOF
16415#define PTYS_ARE_GETPTY 1
16416_ACEOF
16417
16418fi
16419if test x$rxvt_cv_ptys = xGLIBC; then
16420
16421cat >>confdefs.h <<\_ACEOF
16422#define PTYS_ARE_GETPT 1
16423_ACEOF
16424
16425fi
16426if test x$rxvt_cv_ptys = xHPUX; then
16427
16428cat >>confdefs.h <<\_ACEOF
16429#define PTYS_ARE_CLONE 1
16430_ACEOF
16431
16432fi
16433if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16434
16435cat >>confdefs.h <<\_ACEOF
16436#define PTYS_ARE_SEARCHED 1
16437_ACEOF
16438
16439fi
16440
16441
16442{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
16443echo "$as_me: checking for pty ranges..." >&6;}
16444ptys=`echo /dev/pty??`
16445pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16446pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16447if test x$pch1 != x; then
16448
16449cat >>confdefs.h <<_ACEOF
16450#define PTYCHAR1 "$pch1"
16451_ACEOF
16452
16453fi
16454if test x$pch2 != x; then
16455
16456cat >>confdefs.h <<_ACEOF
16457#define PTYCHAR2 "$pch2"
16458_ACEOF
16459
16460fi
16461
16462if test x$support_iso14755 = xyes; then
16463
16464cat >>confdefs.h <<\_ACEOF
16465#define ISO_14755 1
16466_ACEOF
16467
16468fi
16469if test x$support_8bitctrls = xyes; then
16470
16471cat >>confdefs.h <<\_ACEOF
16472#define EIGHT_BIT_CONTROLS 1
16473_ACEOF
16474
16475fi
16476if test x$support_fading = xyes; then
16477
16478cat >>confdefs.h <<\_ACEOF
16479#define OFF_FOCUS_FADING 1
16480_ACEOF
16481
16482fi
16483if test x$support_tinting = xyes; then
16484
16485cat >>confdefs.h <<\_ACEOF
16486#define TINTING 1
16487_ACEOF
16488
16489fi
16490if test x$support_inheritpixmap = xyes; then
16491
16492cat >>confdefs.h <<\_ACEOF
16493#define TRANSPARENT 1
16494_ACEOF
16495
16496fi
16497if test x$support_keepscrolling = xno; then
16498
16499cat >>confdefs.h <<\_ACEOF
16500#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16501_ACEOF
16502
16503fi
16504if test x$support_selectionscrolling = xyes; then
16505
16506cat >>confdefs.h <<\_ACEOF
16507#define SELECTION_SCROLLING 1
16508_ACEOF
16509
16510fi
16511if test x$support_menubar = xyes; then
16512
16513cat >>confdefs.h <<\_ACEOF
16514#define MENUBAR 1
16515_ACEOF
16516
16517fi
16518if test x$support_frills = xyes; then
16519
16520cat >>confdefs.h <<\_ACEOF
16521#define ENABLE_FRILLS 1
16522_ACEOF
16523
16524fi
16525if test x$support_linespace = xno; then
16526
16527cat >>confdefs.h <<\_ACEOF
16528#define NO_LINESPACE 1
16529_ACEOF
16530
16531fi
16532if test x$support_24bit = xyes; then
16533
16534cat >>confdefs.h <<\_ACEOF
16535#define PREFER_24BIT 1
16536_ACEOF
16537
16538fi
16539if test x$support_mousewheel = xyes; then
16540
16541cat >>confdefs.h <<\_ACEOF
16542#define MOUSE_WHEEL 1
16543_ACEOF
16544
16545fi
16546if test x$support_mouseslipwheel = xyes; then
16547
16548cat >>confdefs.h <<\_ACEOF
16549#define MOUSE_SLIP_WHEELING 1
16550_ACEOF
16551
16552fi
16553if test x$support_utmp = xyes; then
16554
16555cat >>confdefs.h <<\_ACEOF
16556#define UTMP_SUPPORT 1
16557_ACEOF
16558
16559fi
16560if test x$support_wtmp = xyes; then
16561
16562cat >>confdefs.h <<\_ACEOF
16563#define WTMP_SUPPORT 1
16564_ACEOF
16565
16566fi
16567if test x$support_lastlog = xyes; then
16568
16569cat >>confdefs.h <<\_ACEOF
16570#define LASTLOG_SUPPORT 1
16571_ACEOF
16572
16573fi
16574if test x$support_xim = xyes -o x$multichar_set = xyes; then
16575 if test x$rxvt_cv_func_xlocale = xyes; then
16576
16577cat >>confdefs.h <<\_ACEOF
16578#define USE_XIM 1
16579_ACEOF
16580
16581 fi
16582fi
16583if test x$support_xpm = xyes; then
16584
16585cat >>confdefs.h <<\_ACEOF
16586#define XPM_BACKGROUND 1
16587_ACEOF
16588
16589fi
16590if test x$support_scroll_rxvt = xyes; then
16591
16592cat >>confdefs.h <<\_ACEOF
16593#define RXVT_SCROLLBAR 1
16594_ACEOF
16595
16596 scrolltypes="rxvt"
16597fi
16598if test x$support_scroll_next = xyes; then
16599
16600cat >>confdefs.h <<\_ACEOF
16601#define NEXT_SCROLLBAR 1
16602_ACEOF
16603
16604 scrolltypes="$scrolltypes next"
16605fi
16606if test x$support_scroll_xterm = xyes; then
16607
16608cat >>confdefs.h <<\_ACEOF
16609#define XTERM_SCROLLBAR 1
16610_ACEOF
16611
16612 scrolltypes="$scrolltypes xterm"
16613fi
16614if test x$support_scroll_plain = xyes; then
16615
16616cat >>confdefs.h <<\_ACEOF
16617#define PLAIN_SCROLLBAR 1
16618_ACEOF
16619
16620 scrolltypes="$scrolltypes plain"
16621fi
16622if test x$support_pointer_blank = xyes; then
16623
16624cat >>confdefs.h <<\_ACEOF
16625#define POINTER_BLANK 1
16626_ACEOF
16627
16628fi
16629if test x$support_cursor_blink = xyes; then
16630
16631cat >>confdefs.h <<\_ACEOF
16632#define CURSOR_BLINK 1
16633_ACEOF
16634
16635fi
16636if test x$support_text_blink = xyes; then
16637
16638cat >>confdefs.h <<\_ACEOF
16639#define TEXT_BLINK 1
16640_ACEOF
16641
16642fi
16643if test x$support_unicode3 = xyes; then
16644
16645cat >>confdefs.h <<\_ACEOF
16646#define UNICODE_3 1
16647_ACEOF
16648
16649fi
16650if test x$support_combining = xyes; then
16651
16652cat >>confdefs.h <<\_ACEOF
16653#define ENABLE_COMBINING 1
16654_ACEOF
16655
16656fi
16657if test x$codesets = xall; then
16658 codesets=jp,jp-ext,kr,cn,cn-ext
16659fi
16660
16661cat >>confdefs.h <<\_ACEOF
16662#define ENCODING_EU 1
16663_ACEOF
16664
16665
16666cat >>confdefs.h <<\_ACEOF
16667#define ENCODING_VN 1
16668_ACEOF
16669
16670for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16671 case "$codeset" in
16672 JP )
16673cat >>confdefs.h <<\_ACEOF
16674#define ENCODING_JP 1
16675_ACEOF
16676 ;; 10576 ;;
16677 JP_EXT ) 10577 *)
16678cat >>confdefs.h <<\_ACEOF 10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16679#define ENCODING_JP_EXT 1 10579for as_dir in $PATH
16680_ACEOF 10580do
16681 ;; 10581 IFS=$as_save_IFS
16682 KR ) 10582 test -z "$as_dir" && as_dir=.
16683cat >>confdefs.h <<\_ACEOF 10583 for ac_exec_ext in '' $ac_executable_extensions; do
16684#define ENCODING_KR 1 10584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16685_ACEOF 10585 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16686 ;; 10586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16687 CN ) 10587 break 2
16688cat >>confdefs.h <<\_ACEOF 10588 fi
16689#define ENCODING_CN 1
16690_ACEOF
16691 ;;
16692 CN_EXT )
16693cat >>confdefs.h <<\_ACEOF
16694#define ENCODING_CN_EXT 1
16695_ACEOF
16696 ;;
16697 esac
16698done 10589done
10590done
16699 10591
16700 10592 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
16701CFLAGS=${CFLAGS--O} 10593 ;;
16702LDFLAGS=${LDFLAGS--O} 10594esac
16703
16704CPPFLAGS="$CPPFLAGS"
16705
16706
16707
16708
16709
16710
16711
16712if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16713 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16714 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16715 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16716 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16717 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16718fi 10595fi
10596XFT_CONFIG=$ac_cv_path_XFT_CONFIG
16719 10597
16720 10598if test -n "$XFT_CONFIG"; then
16721 10599 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
16722 10600echo "${ECHO_T}$XFT_CONFIG" >&6
16723 10601else
16724if test x$support_addstrings = xno; then 10602 echo "$as_me:$LINENO: result: no" >&5
16725 10603echo "${ECHO_T}no" >&6
16726cat >>confdefs.h <<\_ACEOF
16727#define NO_STRINGS 1
16728_ACEOF
16729
16730fi 10604fi
16731 10605
16732MCOMMON=./autoconf/Make.common 10606 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
16733 10607 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
16734 10608 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
16735test "$program_prefix" != NONE &&
16736 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16737# Use a double $ so make ignores it.
16738test "$program_suffix" != NONE &&
16739 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16740# Double any \ or $. echo might interpret backslashes.
16741# By default was `s,x,x', remove it if useless.
16742cat <<\_ACEOF >conftest.sed
16743s/[\\$]/&&/g;s/;s,x,x,$//
16744_ACEOF
16745program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16746rm conftest.sed
16747
16748
16749
16750
16751
16752if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16753 include_stdint_h="#include <stdint.h>"
16754else 10609 else
16755 include_stdint_h="/* #include <stdint.h> */" 10610 if test $XFT_CONFIG != no; then
16756fi 10611 LIBS="$LIBS `$XFT_CONFIG --libs`"
16757if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then 10612 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
16758 include_stdarg_h="#include <cstdarg>" 10613 fi
16759else 10614 fi
16760 include_stdarg_h="/* #include <cstdarg> */"
16761fi
16762if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16763 include_stdlib_h="#include <cstdlib>"
16764else
16765 include_stdlib_h="/* #include <cstdlib> */"
16766fi
16767if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16768 include_unistd_h="#include <unistd.h>"
16769else
16770 include_unistd_h="/* #include <unistd.h> */"
16771fi
16772if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16773 include_string_h="#include <cstring>"
16774else
16775 include_string_h="/* #include <cstring> */"
16776fi
16777if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16778 include_fcntl_h="#include <fcntl.h>"
16779else
16780 include_fcntl_h="/* #include <fcntl.h> */"
16781fi
16782if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16783 include_util_h="#include <util.h>"
16784else
16785 include_util_h="/* #include <util.h> */"
16786fi
16787if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16788 include_assert_h="#include <assert.h>"
16789else
16790 include_assert_h="/* #include <assert.h> */"
16791fi
16792if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16793 include_sys_ioctl_h="#include <sys/ioctl.h>"
16794else
16795 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16796fi
16797if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16798 include_sys_select_h="#include <sys/select.h>"
16799else
16800 include_sys_select_h="/* #include <sys/select.h> */"
16801fi
16802if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16803 include_sys_strredir_h="#include <sys/strredir.h>"
16804else
16805 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16806fi
16807if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16808 include_sys_time_h="#include <sys/time.h>"
16809else
16810 include_sys_time_h="/* #include <sys/time.h> */"
16811fi
16812if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16813 include_time_h="#include <time.h>"
16814else
16815 include_time_h="/* #include <time.h> */"
16816fi
16817
16818if test x$support_xft = xyes; then
16819 LIBS="$LIBS `pkg-config xft --libs`"
16820 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16821 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16822 10615
16823 10616
16824for ac_header in X11/Xft/Xft.h 10617for ac_header in X11/Xft/Xft.h
16825do 10618do
16826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17053#define XFT 1 10846#define XFT 1
17054_ACEOF 10847_ACEOF
17055 10848
17056 fi 10849 fi
17057fi 10850fi
10851if test x$support_styles = xyes; then
17058 10852
10853cat >>confdefs.h <<\_ACEOF
10854#define ENABLE_STYLES 1
10855_ACEOF
10856
10857fi
10858if test x$support_iso14755 = xyes; then
10859
10860cat >>confdefs.h <<\_ACEOF
10861#define ISO_14755 1
10862_ACEOF
10863
10864fi
10865if test x$support_8bitctrls = xyes; then
10866
10867cat >>confdefs.h <<\_ACEOF
10868#define EIGHT_BIT_CONTROLS 1
10869_ACEOF
10870
10871fi
10872if test x$support_fading = xyes; then
10873
10874cat >>confdefs.h <<\_ACEOF
10875#define OFF_FOCUS_FADING 1
10876_ACEOF
10877
10878fi
10879if test x$support_tinting = xyes; then
10880
10881cat >>confdefs.h <<\_ACEOF
10882#define TINTING 1
10883_ACEOF
10884
10885fi
10886if test x$support_inheritpixmap = xyes; then
10887
10888cat >>confdefs.h <<\_ACEOF
10889#define TRANSPARENT 1
10890_ACEOF
10891
10892fi
10893if test x$support_keepscrolling = xno; then
10894
10895cat >>confdefs.h <<\_ACEOF
10896#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
10897_ACEOF
10898
10899fi
10900if test x$support_selectionscrolling = xyes; then
10901
10902cat >>confdefs.h <<\_ACEOF
10903#define SELECTION_SCROLLING 1
10904_ACEOF
10905
10906fi
10907if test x$support_frills = xyes; then
10908
10909cat >>confdefs.h <<\_ACEOF
10910#define ENABLE_FRILLS 1
10911_ACEOF
10912
10913fi
10914if test x$support_24bit = xyes; then
10915
10916cat >>confdefs.h <<\_ACEOF
10917#define PREFER_24BIT 1
10918_ACEOF
10919
10920fi
10921if test x$support_mousewheel = xyes; then
10922
10923cat >>confdefs.h <<\_ACEOF
10924#define MOUSE_WHEEL 1
10925_ACEOF
10926
10927fi
10928if test x$support_mouseslipwheel = xyes; then
10929
10930cat >>confdefs.h <<\_ACEOF
10931#define MOUSE_SLIP_WHEELING 1
10932_ACEOF
10933
10934fi
10935if test x$support_utmp = xyes; then
10936
10937cat >>confdefs.h <<\_ACEOF
10938#define UTMP_SUPPORT 1
10939_ACEOF
10940
10941fi
10942if test x$support_wtmp = xyes; then
10943
10944cat >>confdefs.h <<\_ACEOF
10945#define WTMP_SUPPORT 1
10946_ACEOF
10947
10948fi
10949if test x$support_lastlog = xyes; then
10950
10951cat >>confdefs.h <<\_ACEOF
10952#define LASTLOG_SUPPORT 1
10953_ACEOF
10954
10955fi
10956if test x$support_xim = xyes -o x$multichar_set = xyes; then
10957 if test x$rxvt_cv_func_xlocale = xyes; then
10958
10959cat >>confdefs.h <<\_ACEOF
10960#define USE_XIM 1
10961_ACEOF
10962
10963 fi
10964fi
10965if test x$support_xpm = xyes; then
10966
10967cat >>confdefs.h <<\_ACEOF
10968#define XPM_BACKGROUND 1
10969_ACEOF
10970
10971fi
10972if test x$support_scroll_rxvt = xyes; then
10973
10974cat >>confdefs.h <<\_ACEOF
10975#define RXVT_SCROLLBAR 1
10976_ACEOF
10977
10978 scrolltypes="rxvt"
10979fi
10980if test x$support_scroll_next = xyes; then
10981
10982cat >>confdefs.h <<\_ACEOF
10983#define NEXT_SCROLLBAR 1
10984_ACEOF
10985
10986 scrolltypes="$scrolltypes next"
10987fi
10988if test x$support_scroll_xterm = xyes; then
10989
10990cat >>confdefs.h <<\_ACEOF
10991#define XTERM_SCROLLBAR 1
10992_ACEOF
10993
10994 scrolltypes="$scrolltypes xterm"
10995fi
10996if test x$support_scroll_plain = xyes; then
10997
10998cat >>confdefs.h <<\_ACEOF
10999#define PLAIN_SCROLLBAR 1
11000_ACEOF
11001
11002 scrolltypes="$scrolltypes plain"
11003fi
11004if test x$support_pointer_blank = xyes; then
11005
11006cat >>confdefs.h <<\_ACEOF
11007#define POINTER_BLANK 1
11008_ACEOF
11009
11010fi
11011if test x$support_text_blink = xyes; then
11012
11013cat >>confdefs.h <<\_ACEOF
11014#define TEXT_BLINK 1
11015_ACEOF
11016
11017fi
11018if test x$support_unicode3 = xyes; then
11019
11020cat >>confdefs.h <<\_ACEOF
11021#define UNICODE_3 1
11022_ACEOF
11023
11024fi
11025if test x$support_combining = xyes; then
11026
11027cat >>confdefs.h <<\_ACEOF
11028#define ENABLE_COMBINING 1
11029_ACEOF
11030
11031fi
11032if test x$codesets = xall; then
11033 codesets=jp,jp-ext,kr,zh,zh-ext
11034fi
11035
11036cat >>confdefs.h <<\_ACEOF
11037#define ENCODING_EU 1
11038_ACEOF
11039
11040
11041cat >>confdefs.h <<\_ACEOF
11042#define ENCODING_VN 1
11043_ACEOF
11044
11045for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
11046 case "$codeset" in
11047 JP )
11048cat >>confdefs.h <<\_ACEOF
11049#define ENCODING_JP 1
11050_ACEOF
11051 ;;
11052 JP_EXT )
11053cat >>confdefs.h <<\_ACEOF
11054#define ENCODING_JP_EXT 1
11055_ACEOF
11056 ;;
11057 KR )
11058cat >>confdefs.h <<\_ACEOF
11059#define ENCODING_KR 1
11060_ACEOF
11061 ;;
11062 ZH )
11063cat >>confdefs.h <<\_ACEOF
11064#define ENCODING_ZH 1
11065_ACEOF
11066 ;;
11067 ZH_EXT )
11068cat >>confdefs.h <<\_ACEOF
11069#define ENCODING_ZH_EXT 1
11070_ACEOF
11071 ;;
11072 esac
11073done
11074
11075IF_PERL=\#
11076if test x$support_perl = xyes; then
11077 # Extract the first word of "perl5", so it can be a program name with args.
11078set dummy perl5; ac_word=$2
11079echo "$as_me:$LINENO: checking for $ac_word" >&5
11080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11081if test "${ac_cv_path_PERL+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083else
11084 case $PERL in
11085 [\\/]* | ?:[\\/]*)
11086 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11087 ;;
11088 *)
11089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090for as_dir in $PATH
11091do
11092 IFS=$as_save_IFS
11093 test -z "$as_dir" && as_dir=.
11094 for ac_exec_ext in '' $ac_executable_extensions; do
11095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11096 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11098 break 2
11099 fi
11100done
11101done
11102
11103 ;;
11104esac
11105fi
11106PERL=$ac_cv_path_PERL
11107
11108if test -n "$PERL"; then
11109 echo "$as_me:$LINENO: result: $PERL" >&5
11110echo "${ECHO_T}$PERL" >&6
11111else
11112 echo "$as_me:$LINENO: result: no" >&5
11113echo "${ECHO_T}no" >&6
11114fi
11115
11116 # Extract the first word of "perl", so it can be a program name with args.
11117set dummy perl; ac_word=$2
11118echo "$as_me:$LINENO: checking for $ac_word" >&5
11119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11120if test "${ac_cv_path_PERL+set}" = set; then
11121 echo $ECHO_N "(cached) $ECHO_C" >&6
11122else
11123 case $PERL in
11124 [\\/]* | ?:[\\/]*)
11125 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11126 ;;
11127 *)
11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129for as_dir in $PATH
11130do
11131 IFS=$as_save_IFS
11132 test -z "$as_dir" && as_dir=.
11133 for ac_exec_ext in '' $ac_executable_extensions; do
11134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11135 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11137 break 2
11138 fi
11139done
11140done
11141
11142 ;;
11143esac
11144fi
11145PERL=$ac_cv_path_PERL
11146
11147if test -n "$PERL"; then
11148 echo "$as_me:$LINENO: result: $PERL" >&5
11149echo "${ECHO_T}$PERL" >&6
11150else
11151 echo "$as_me:$LINENO: result: no" >&5
11152echo "${ECHO_T}no" >&6
11153fi
11154
11155
11156 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
11157echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
11158 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
11159
11160 save_CXXFLAGS="$CXXFLAGS"
11161 save_LIBS="$LIBS"
11162 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
11163 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
11164 cat >conftest.$ac_ext <<_ACEOF
11165/* confdefs.h. */
11166_ACEOF
11167cat confdefs.h >>conftest.$ac_ext
11168cat >>conftest.$ac_ext <<_ACEOF
11169/* end confdefs.h. */
11170
11171#include <EXTERN.h>
11172#include <perl.h>
11173#include <XSUB.h>
11174
11175int
11176main ()
11177{
11178
11179 PerlInterpreter *perl = perl_alloc ();
11180
11181 ;
11182 return 0;
11183}
11184_ACEOF
11185rm -f conftest.$ac_objext conftest$ac_exeext
11186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try='test -s conftest$ac_exeext'
11201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11203 ac_status=$?
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 rxvt_perl_link=yes
11207else
11208 echo "$as_me: failed program was:" >&5
11209sed 's/^/| /' conftest.$ac_ext >&5
11210
11211rxvt_perl_link=no
11212fi
11213rm -f conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
11215 CXXFLAGS="$save_CXXFLAGS"
11216 LIBS="$save_LIBS"
11217
11218 if test x$rxvt_perl_link = xyes; then
11219 echo "$as_me:$LINENO: result: ok" >&5
11220echo "${ECHO_T}ok" >&6
11221
11222cat >>confdefs.h <<\_ACEOF
11223#define ENABLE_PERL 1
11224_ACEOF
11225
11226 IF_PERL=
11227 PERL_O=rxvtperl.o
11228 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
11229 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
11230 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
11231 else
11232 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
11233echo "$as_me: error: no, unable to link" >&2;}
11234 { (exit 1); exit 1; }; }
11235 fi
11236 else
11237 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
11238echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
11239 { (exit 1); exit 1; }; }
11240 fi
11241fi
11242
11243
11244
11245
11246
11247
11248
11249if test x$support_perl = xyes; then
11250 support_frills=yes
11251fi
11252
11253
11254CFLAGS=${CFLAGS--O}
11255LDFLAGS=${LDFLAGS--O}
11256
11257CPPFLAGS="$CPPFLAGS"
11258
11259
11260
11261
11262
11263
11264
11265if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11266 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
11267 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11268 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
11269 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
11270 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
11271fi
11272
11273
11274
11275
11276
11277test "$program_prefix" != NONE &&
11278 program_transform_name="s,^,$program_prefix,;$program_transform_name"
11279# Use a double $ so make ignores it.
11280test "$program_suffix" != NONE &&
11281 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
11282# Double any \ or $. echo might interpret backslashes.
11283# By default was `s,x,x', remove it if useless.
11284cat <<\_ACEOF >conftest.sed
11285s/[\\$]/&&/g;s/;s,x,x,$//
11286_ACEOF
11287program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
11288rm conftest.sed
11289
11290
11291
11292
11293
11294if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
11295 include_stdint_h="#include <stdint.h>"
11296else
11297 include_stdint_h="/* #include <stdint.h> */"
11298fi
11299if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
11300 include_stdarg_h="#include <cstdarg>"
11301else
11302 include_stdarg_h="/* #include <cstdarg> */"
11303fi
11304if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
11305 include_stdlib_h="#include <cstdlib>"
11306else
11307 include_stdlib_h="/* #include <cstdlib> */"
11308fi
11309if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
11310 include_unistd_h="#include <unistd.h>"
11311else
11312 include_unistd_h="/* #include <unistd.h> */"
11313fi
11314if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
11315 include_string_h="#include <cstring>"
11316else
11317 include_string_h="/* #include <cstring> */"
11318fi
11319if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
11320 include_fcntl_h="#include <fcntl.h>"
11321else
11322 include_fcntl_h="/* #include <fcntl.h> */"
11323fi
11324if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
11325 include_util_h="#include <util.h>"
11326else
11327 include_util_h="/* #include <util.h> */"
11328fi
11329if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
11330 include_assert_h="#include <assert.h>"
11331else
11332 include_assert_h="/* #include <assert.h> */"
11333fi
11334if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
11335 include_sys_ioctl_h="#include <sys/ioctl.h>"
11336else
11337 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
11338fi
11339if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
11340 include_sys_select_h="#include <sys/select.h>"
11341else
11342 include_sys_select_h="/* #include <sys/select.h> */"
11343fi
11344if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
11345 include_sys_strredir_h="#include <sys/strredir.h>"
11346else
11347 include_sys_strredir_h="/* #include <sys/strredir.h> */"
11348fi
11349if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
11350 include_sys_time_h="#include <sys/time.h>"
11351else
11352 include_sys_time_h="/* #include <sys/time.h> */"
11353fi
11354if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
11355 include_time_h="#include <time.h>"
11356else
11357 include_time_h="/* #include <time.h> */"
11358fi
11359
17059 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 11360 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
17060 11361
17061cat >confcache <<\_ACEOF 11362cat >confcache <<\_ACEOF
17062# This file is a shell script that caches the results of configure 11363# This file is a shell script that caches the results of configure
17063# tests run on this system so they can be shared between configure 11364# tests run on this system so they can be shared between configure
17064# scripts and configure runs, see configure's option --config-cache. 11365# scripts and configure runs, see configure's option --config-cache.
17581cat >>$CONFIG_STATUS <<\_ACEOF 11882cat >>$CONFIG_STATUS <<\_ACEOF
17582for ac_config_target in $ac_config_targets 11883for ac_config_target in $ac_config_targets
17583do 11884do
17584 case "$ac_config_target" in 11885 case "$ac_config_target" in
17585 # Handling of arguments. 11886 # Handling of arguments.
17586 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17587 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11887 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17588 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 11888 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17589 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 11889 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17590 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17591 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 11890 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17592 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17593 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 11891 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 11892 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17595echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 11893echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17596 { (exit 1); exit 1; }; };; 11894 { (exit 1); exit 1; }; };;
17597 esac 11895 esac
17598done 11896done
17673s,@DEFS@,$DEFS,;t t 11971s,@DEFS@,$DEFS,;t t
17674s,@ECHO_C@,$ECHO_C,;t t 11972s,@ECHO_C@,$ECHO_C,;t t
17675s,@ECHO_N@,$ECHO_N,;t t 11973s,@ECHO_N@,$ECHO_N,;t t
17676s,@ECHO_T@,$ECHO_T,;t t 11974s,@ECHO_T@,$ECHO_T,;t t
17677s,@LIBS@,$LIBS,;t t 11975s,@LIBS@,$LIBS,;t t
11976s,@build@,$build,;t t
11977s,@build_cpu@,$build_cpu,;t t
11978s,@build_vendor@,$build_vendor,;t t
11979s,@build_os@,$build_os,;t t
11980s,@host@,$host,;t t
11981s,@host_cpu@,$host_cpu,;t t
11982s,@host_vendor@,$host_vendor,;t t
11983s,@host_os@,$host_os,;t t
17678s,@VERSION@,$VERSION,;t t 11984s,@VERSION@,$VERSION,;t t
17679s,@DATE@,$DATE,;t t 11985s,@DATE@,$DATE,;t t
17680s,@LSMDATE@,$LSMDATE,;t t 11986s,@LSMDATE@,$LSMDATE,;t t
17681s,@LIBVERSION@,$LIBVERSION,;t t 11987s,@LIBVERSION@,$LIBVERSION,;t t
17682s,@CC@,$CC,;t t 11988s,@CC@,$CC,;t t
17691s,@ac_ct_CXX@,$ac_ct_CXX,;t t 11997s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17692s,@CPP@,$CPP,;t t 11998s,@CPP@,$CPP,;t t
17693s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 11999s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17694s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 12000s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17695s,@INSTALL_DATA@,$INSTALL_DATA,;t t 12001s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17696s,@AWK@,$AWK,;t t 12002s,@EGREP@,$EGREP,;t t
17697s,@LINKER@,$LINKER,;t t 12003s,@LINKER@,$LINKER,;t t
17698s,@CXXCPP@,$CXXCPP,;t t
17699s,@EGREP@,$EGREP,;t t
17700s,@build@,$build,;t t
17701s,@build_cpu@,$build_cpu,;t t
17702s,@build_vendor@,$build_vendor,;t t
17703s,@build_os@,$build_os,;t t
17704s,@host@,$host,;t t
17705s,@host_cpu@,$host_cpu,;t t
17706s,@host_vendor@,$host_vendor,;t t
17707s,@host_os@,$host_os,;t t
17708s,@LN_S@,$LN_S,;t t
17709s,@ECHO@,$ECHO,;t t
17710s,@RANLIB@,$RANLIB,;t t
17711s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17712s,@STRIP@,$STRIP,;t t
17713s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17714s,@LIBTOOL@,$LIBTOOL,;t t
17715s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 12004s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17716s,@RXVTNAME@,$RXVTNAME,;t t 12005s,@RXVTNAME@,$RXVTNAME,;t t
17717s,@MV@,$MV,;t t 12006s,@MV@,$MV,;t t
17718s,@RM@,$RM,;t t 12007s,@RM@,$RM,;t t
17719s,@CP@,$CP,;t t 12008s,@CP@,$CP,;t t
17720s,@LN@,$LN,;t t 12009s,@LN@,$LN,;t t
17721s,@SED@,$SED,;t t 12010s,@SED@,$SED,;t t
12011s,@ECHO@,$ECHO,;t t
17722s,@CMP@,$CMP,;t t 12012s,@CMP@,$CMP,;t t
17723s,@TBL@,$TBL,;t t 12013s,@TIC@,$TIC,;t t
12014s,@CXXCPP@,$CXXCPP,;t t
17724s,@X_CFLAGS@,$X_CFLAGS,;t t 12015s,@X_CFLAGS@,$X_CFLAGS,;t t
17725s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 12016s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17726s,@X_LIBS@,$X_LIBS,;t t 12017s,@X_LIBS@,$X_LIBS,;t t
17727s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 12018s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17728s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 12019s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17732s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 12023s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17733s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 12024s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17734s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 12025s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17735s,@rxvt_intp_define@,$rxvt_intp_define,;t t 12026s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17736s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 12027s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
12028s,@PKG_CONFIG@,$PKG_CONFIG,;t t
12029s,@XFT_CONFIG@,$XFT_CONFIG,;t t
12030s,@PERL@,$PERL,;t t
12031s,@PERLLIB@,$PERLLIB,;t t
12032s,@PERLFLAGS@,$PERLFLAGS,;t t
12033s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
12034s,@IF_PERL@,$IF_PERL,;t t
12035s,@PERL_O@,$PERL_O,;t t
17737s,@DEBUG@,$DEBUG,;t t 12036s,@DEBUG@,$DEBUG,;t t
17738s,@DINCLUDE@,$DINCLUDE,;t t 12037s,@DINCLUDE@,$DINCLUDE,;t t
17739s,@DLIB@,$DLIB,;t t 12038s,@DLIB@,$DLIB,;t t
17740s,@include_stdint_h@,$include_stdint_h,;t t 12039s,@include_stdint_h@,$include_stdint_h,;t t
17741s,@include_stdarg_h@,$include_stdarg_h,;t t 12040s,@include_stdarg_h@,$include_stdarg_h,;t t
17750s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 12049s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17751s,@include_sys_time_h@,$include_sys_time_h,;t t 12050s,@include_sys_time_h@,$include_sys_time_h,;t t
17752s,@include_time_h@,$include_time_h,;t t 12051s,@include_time_h@,$include_time_h,;t t
17753s,@LIBOBJS@,$LIBOBJS,;t t 12052s,@LIBOBJS@,$LIBOBJS,;t t
17754s,@LTLIBOBJS@,$LTLIBOBJS,;t t 12053s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17755/@MCOMMON@/r $MCOMMON
17756s,@MCOMMON@,,;t t
17757CEOF 12054CEOF
17758 12055
17759_ACEOF 12056_ACEOF
17760 12057
17761 cat >>$CONFIG_STATUS <<\_ACEOF 12058 cat >>$CONFIG_STATUS <<\_ACEOF
18271fi 12568fi
18272 12569
18273echo " 12570echo "
18274The following are set in config.h 12571The following are set in config.h
18275" 12572"
18276echo " pty/tty type: "$rxvt_cv_ptys
18277if test x$support_utmp != xyes; then 12573if test x$support_utmp != xyes; then
18278 echo " utmp support: disabled" 12574 echo " utmp support: disabled"
18279 echo 12575 echo
18280else 12576else
18281 echo " utmp support: enabled 12577 echo " utmp support: enabled
18282 utmp file: $rxvt_cv_path_utmp 12578 utmp file: $rxvt_cv_path_utmp
18283 utmpx file: $rxvt_cv_path_utmpx 12579 utmpx file: $rxvt_cv_path_utmpx
18284 wtmp file: $rxvt_cv_path_wtmp 12580 wtmp file: $rxvt_cv_path_wtmp
18285 wtmpx file: $rxvt_cv_path_wtmpx 12581 wtmpx file: $rxvt_cv_path_wtmpx
18286 lastlog file: $rxvt_cv_path_lastlog 12582 lastlog file: $rxvt_cv_path_lastlog
18287 ttys/ttytab file: $rxvt_cv_path_ttytab" 12583 ttys/ttytab file: $rxvt_cv_path_ttytab
12584 embedded perl: $support_perl"
18288 echo 12585 echo
18289fi 12586fi
18290if test x$term != x; then 12587if test x$term != x; then
18291 echo " set TERM to: $term" 12588 echo " set TERM to: $term"
18292fi 12589fi
18297echo " resource class: $RESCLASS" 12594echo " resource class: $RESCLASS"
18298if test x$RESFALLBACK != x; then 12595if test x$RESFALLBACK != x; then
18299 echo " resource class fallback: $RESFALLBACK" 12596 echo " resource class fallback: $RESFALLBACK"
18300fi 12597fi
18301echo 12598echo
18302if test x$rxvt_cv_ptys = xUNKNOWN; then
18303 echo ".----------------------------------------------------------------."
18304 echo ". WARNING: could not determine pty/tty type. Do not build until ."
18305 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
18306 echo ".----------------------------------------------------------------."
18307fi
18308if test x$support_xpm = xneedsmanualspecification; then 12599if test x$support_xpm = xneedsmanualspecification; then
18309 echo ".----------------------------------------------------------------." 12600 echo ".----------------------------------------------------------------."
18310 echo ". WARNING: --enable-xpm-background was specified however the ." 12601 echo ". WARNING: --enable-xpm-background was specified however the ."
18311 echo ". XPM includes files and libraries could not be found. ." 12602 echo ". XPM includes files and libraries could not be found. ."
18312 echo ". XPM backgrounds are now being DISABLED! If you want ." 12603 echo ". XPM backgrounds are now being DISABLED! If you want ."
18321 echo ". functions could not be found. ." 12612 echo ". functions could not be found. ."
18322 echo ". XIM is now being DISABLED! ." 12613 echo ". XIM is now being DISABLED! ."
18323 echo ".----------------------------------------------------------------." 12614 echo ".----------------------------------------------------------------."
18324fi 12615fi
18325 12616
18326echo " *** Please check src/feature.h for further options ***" 12617echo " *** Optionally check src/feature.h for further options ***"
18327echo 12618echo
18328 12619
18329echo ".----------------------------------------------------------------." 12620echo ".----------------------------------------------------------------."
18330echo ". NOTE: most features are disabled by default, try ." 12621echo ". NOTE: some features are disabled by default, try ."
18331echo ". configure --help to get an idea of the optional features ." 12622echo ". configure --help to get an idea of the optional features, ."
12623echo ". or read ./README.configure ."
12624echo ". ."
12625echo ". The script ./reconf gives a reasonable baseline, try it if ."
12626echo ". you do not want to read documentation and still want some ."
12627echo ". useful features. ."
18332echo ".----------------------------------------------------------------." 12628echo ".----------------------------------------------------------------."
18333echo 12629echo
18334 12630

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines