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

Comparing rxvt-unicode/configure (file contents):
Revision 1.26 by root, Sat Jul 10 20:59:38 2004 UTC vs.
Revision 1.94 by root, Wed Jan 25 22:09:33 2006 UTC

239 239
240# CDPATH. 240# CDPATH.
241$as_unset CDPATH 241$as_unset CDPATH
242 242
243 243
244# Find the correct PATH separator. Usually this is `:', but
245# DJGPP uses `;' like DOS.
246if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
248 case X$UNAME in
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
251 esac
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case "X$ECHO" in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running ltconfig again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host. 244# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too. 246# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406 248
465#endif 307#endif
466#if HAVE_UNISTD_H 308#if HAVE_UNISTD_H
467# include <unistd.h> 309# include <unistd.h>
468#endif" 310#endif"
469 311
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV CP LN SED ECHO CMP TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
471ac_subst_files='MCOMMON' 313ac_subst_files=''
472 314
473# Initialize some variables set by options. 315# Initialize some variables set by options.
474ac_init_help= 316ac_init_help=
475ac_init_version=false 317ac_init_version=false
476# The variables have the same names as the options, with 318# The variables have the same names as the options, with
1021 cat <<\_ACEOF 863 cat <<\_ACEOF
1022 864
1023Optional Features: 865Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features 868 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent 869 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
1036 --enable-utmp enable utmp (utmpx) support 874 --enable-font-styles enable bold and italic support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps 875 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds 876 --enable-transparency enable transparent backgrounds
1041 --enable-tinting enable tinting of transparent bg 877 --enable-tinting enable tinting of transparent bg
1042 --enable-menubar enable menubar 878 --enable-fading enable colors fading when off focus
1043 --enable-rxvt-scroll enable rxvt style scrollbar 879 --enable-rxvt-scroll enable rxvt style scrollbar
1044 --enable-next-scroll enable NeXT style scrollbar 880 --enable-next-scroll enable NeXT style scrollbar
1045 --enable-xterm-scroll enable Xterm style scrollbar 881 --enable-xterm-scroll enable Xterm style scrollbar
882 --enable-perl enable embedded perl interpreter
1046 --enable-plain-scroll enable plain style scrollbar 883 --enable-plain-scroll enable plain style scrollbar
1047 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1048 --enable-xim XIM (X Input Method) protocol support 884 --enable-xim XIM (X Input Method) protocol support
1049 --enable-ttygid enable tty setting to group named "tty"
1050 --disable-backspace-key disable handling of the backspace key 885 --disable-backspace-key disable handling of the backspace key
1051 --disable-delete-key disable handling of the delete key 886 --disable-delete-key disable handling of the delete key
1052 --disable-resources disable all resource checking 887 --disable-resources disable all resource checking
1053 --enable-xgetdefault enable resources via X instead of our small version
1054 --enable-8bitctrls enable 8 bit control sequences (not recommended) 888 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1055 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 889 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1056 --enable-strings enable some replacement system functions
1057 --disable-swapscreen disable swap screen support 890 --disable-swapscreen disable swap screen support
891 --enable-iso14755 enable support for extended ISO 14755 modes
1058 --enable-frills enable support for rarely used features 892 --enable-frills enable support for rarely used features
1059 --enable-linespace enable support for linespace
1060 --enable-24bit enable support for using 24bit visuals if available
1061 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 893 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1062 --enable-selectionscrolling enable scrolling during selections 894 --enable-selectionscrolling enable scrolling during selections
1063 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 895 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1064 --enable-slipwheeling enable slip wheel scrolling (requires previous) 896 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1065 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1066 --enable-dlmalloc enable Doug Lea's malloc - for production use
1067 NOTE: enable only one malloc package
1068 --enable-smart-resize enable smart growth/shrink behaviour 897 --enable-smart-resize enable smart growth/shrink behaviour
1069 --enable-256-color enable 256-color support
1070 --enable-cursor-blink enable blinking cursor
1071 --enable-text-blink enable blinking text 898 --enable-text-blink enable blinking text
1072 --enable-pointer-blank enable pointer blank when typing or inactive pointer 899 --enable-pointer-blank enable pointer blank when typing or inactive pointer
900 --enable-utmp enable utmp (utmpx) support
901 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
902 --enable-lastlog enable lastlog support (requires --enable-utmp)
1073 903
1074Optional Packages: 904Optional Packages:
1075 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 905 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1076 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 906 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1077 --with-gnu-ld assume the C compiler uses GNU ld default=no
1078 --with-pic try to use only PIC/non-PIC objects default=use both
1079 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 907 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1080 --with-res-name=NAME use this as default resource name (default: urxvt) 908 --with-res-name=NAME use this as default resource name (default: urxvt)
1081 --with-res-class=CLASS use this as the resource class (default: URxvt) 909 --with-res-class=CLASS use this as the resource class (default: URxvt)
1082 --with-name=NAME set the basename for the installed binaries (default: urxvt) 910 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1083 --with-term=NAME set the terminal to NAME (default: rxvt) 911 --with-term=NAME set the terminal to NAME (default: rxvt)
1084 --with-terminfo=PATH set the path to the terminfo tree to PATH 912 --with-terminfo=PATH set the path to the terminfo tree to PATH
1535 1363
1536 1364
1537 1365
1538 1366
1539 1367
1368
1369
1370 ac_config_headers="$ac_config_headers config.h:config.h.in"
1371
1372
1540ac_aux_dir= 1373ac_aux_dir=
1541for ac_dir in autoconf $srcdir/autoconf; do 1374for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542 if test -f $ac_dir/install-sh; then 1375 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir 1376 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c" 1377 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break 1378 break
1546 elif test -f $ac_dir/install.sh; then 1379 elif test -f $ac_dir/install.sh; then
1552 ac_install_sh="$ac_aux_dir/shtool install -c" 1385 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break 1386 break
1554 fi 1387 fi
1555done 1388done
1556if test -z "$ac_aux_dir"; then 1389if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1390 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1391echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559 { (exit 1); exit 1; }; } 1392 { (exit 1); exit 1; }; }
1560fi 1393fi
1561ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1394ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1395ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1396ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564 1397
1565 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1398# Make sure we can run config.sub.
1399$ac_config_sub sun4 >/dev/null 2>&1 ||
1400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
1403
1404echo "$as_me:$LINENO: checking build system type" >&5
1405echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
1409 ac_cv_build_alias=$build_alias
1410test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412test -z "$ac_cv_build_alias" &&
1413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1420
1421fi
1422echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423echo "${ECHO_T}$ac_cv_build" >&6
1424build=$ac_cv_build
1425build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
1429
1430echo "$as_me:$LINENO: checking host system type" >&5
1431echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432if test "${ac_cv_host+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434else
1435 ac_cv_host_alias=$host_alias
1436test -z "$ac_cv_host_alias" &&
1437 ac_cv_host_alias=$ac_cv_build_alias
1438ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1442
1443fi
1444echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445echo "${ECHO_T}$ac_cv_host" >&6
1446host=$ac_cv_host
1447host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
1566 1451
1567 1452
1568VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1453VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1569DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1454DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1570LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1571LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1572echo "" 1455echo ""
1573echo "configuring for rxvt $VERSION" 1456echo "configuring for rxvt $VERSION"
1574echo "" 1457echo ""
1458
1459orig_CXXFLAGS="$CXXFLAGS"
1575 1460
1576 1461
1577ac_ext=c 1462ac_ext=c
1578ac_cpp='$CPP $CPPFLAGS' 1463ac_cpp='$CPP $CPPFLAGS'
1579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 3045
3161test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3046test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3162 3047
3163test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3048test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3164 3049
3165for ac_prog in gawk mawk nawk awk
3166do
3167 # Extract the first word of "$ac_prog", so it can be a program name with args.
3168set dummy $ac_prog; ac_word=$2
3169echo "$as_me:$LINENO: checking for $ac_word" >&5
3170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3171if test "${ac_cv_prog_AWK+set}" = set; then
3172 echo $ECHO_N "(cached) $ECHO_C" >&6
3173else
3174 if test -n "$AWK"; then
3175 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3176else
3177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178for as_dir in $PATH
3179do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_AWK="$ac_prog"
3185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188done
3189done
3190 3050
3191fi
3192fi
3193AWK=$ac_cv_prog_AWK
3194if test -n "$AWK"; then
3195 echo "$as_me:$LINENO: result: $AWK" >&5
3196echo "${ECHO_T}$AWK" >&6
3197else
3198 echo "$as_me:$LINENO: result: no" >&5
3199echo "${ECHO_T}no" >&6
3200fi
3201
3202 test -n "$AWK" && break
3203done
3204
3205
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211
3212
3213LINKER="$CXX"
3214if test x$GCC = xyes && test x$GXX = xyes; then
3215
3216echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3217echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3218if test "${ac_cv_lib_supcpp_main+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 ac_check_lib_save_LIBS=$LIBS
3222LIBS="-lsupc++ $LIBS"
3223cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
3229
3230
3231int
3232main ()
3233{
3234main ();
3235 ;
3236 return 0;
3237}
3238_ACEOF
3239rm -f conftest.$ac_objext conftest$ac_exeext
3240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3241 (eval $ac_link) 2>conftest.er1
3242 ac_status=$?
3243 grep -v '^ *+' conftest.er1 >conftest.err
3244 rm -f conftest.er1
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } &&
3248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest$ac_exeext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_lib_supcpp_main=yes
3261else
3262 echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265ac_cv_lib_supcpp_main=no
3266fi
3267rm -f conftest.err conftest.$ac_objext \
3268 conftest$ac_exeext conftest.$ac_ext
3269LIBS=$ac_check_lib_save_LIBS
3270fi
3271echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3272echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3273if test $ac_cv_lib_supcpp_main = yes; then
3274
3275 LINKER="$CC"
3276 LIBS="$LIBS -lsupc++"
3277
3278fi
3279
3280fi
3281LINKER=$LINKER
3282
3283
3284CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3285
3286
3287ac_ext=cc
3288ac_cpp='$CXXCPP $CPPFLAGS'
3289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3292
3293
3294
3295ac_ext=cc
3296ac_cpp='$CXXCPP $CPPFLAGS'
3297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3300echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3301echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3302if test -z "$CXXCPP"; then
3303 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305else
3306 # Double quotes because CXXCPP needs to be expanded
3307 for CXXCPP in "$CXX -E" "/lib/cpp"
3308 do
3309 ac_preproc_ok=false
3310for ac_cxx_preproc_warn_flag in '' yes
3311do
3312 # Use a header file that comes with gcc, so configuring glibc
3313 # with a fresh cross-compiler works.
3314 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3315 # <limits.h> exists even on freestanding compilers.
3316 # On the NeXT, cc -E runs the code through the compiler's parser,
3317 # not just through cpp. "Syntax error" is here to catch this case.
3318 cat >conftest.$ac_ext <<_ACEOF
3319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h. */
3324#ifdef __STDC__
3325# include <limits.h>
3326#else
3327# include <assert.h>
3328#endif
3329 Syntax error
3330_ACEOF
3331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } >/dev/null; then
3339 if test -s conftest.err; then
3340 ac_cpp_err=$ac_cxx_preproc_warn_flag
3341 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3342 else
3343 ac_cpp_err=
3344 fi
3345else
3346 ac_cpp_err=yes
3347fi
3348if test -z "$ac_cpp_err"; then
3349 :
3350else
3351 echo "$as_me: failed program was:" >&5
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
3354 # Broken: fails on valid input.
3355continue
3356fi
3357rm -f conftest.err conftest.$ac_ext
3358
3359 # OK, works on sane cases. Now check whether non-existent headers
3360 # can be detected and how.
3361 cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h. */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h. */
3367#include <ac_nonexistent.h>
3368_ACEOF
3369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_cxx_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3380 else
3381 ac_cpp_err=
3382 fi
3383else
3384 ac_cpp_err=yes
3385fi
3386if test -z "$ac_cpp_err"; then
3387 # Broken: success on invalid input.
3388continue
3389else
3390 echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393 # Passes both tests.
3394ac_preproc_ok=:
3395break
3396fi
3397rm -f conftest.err conftest.$ac_ext
3398
3399done
3400# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3401rm -f conftest.err conftest.$ac_ext
3402if $ac_preproc_ok; then
3403 break
3404fi
3405
3406 done
3407 ac_cv_prog_CXXCPP=$CXXCPP
3408
3409fi
3410 CXXCPP=$ac_cv_prog_CXXCPP
3411else
3412 ac_cv_prog_CXXCPP=$CXXCPP
3413fi
3414echo "$as_me:$LINENO: result: $CXXCPP" >&5
3415echo "${ECHO_T}$CXXCPP" >&6
3416ac_preproc_ok=false
3417for ac_cxx_preproc_warn_flag in '' yes
3418do
3419 # Use a header file that comes with gcc, so configuring glibc
3420 # with a fresh cross-compiler works.
3421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3422 # <limits.h> exists even on freestanding compilers.
3423 # On the NeXT, cc -E runs the code through the compiler's parser,
3424 # not just through cpp. "Syntax error" is here to catch this case.
3425 cat >conftest.$ac_ext <<_ACEOF
3426/* confdefs.h. */
3427_ACEOF
3428cat confdefs.h >>conftest.$ac_ext
3429cat >>conftest.$ac_ext <<_ACEOF
3430/* end confdefs.h. */
3431#ifdef __STDC__
3432# include <limits.h>
3433#else
3434# include <assert.h>
3435#endif
3436 Syntax error
3437_ACEOF
3438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_cxx_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3449 else
3450 ac_cpp_err=
3451 fi
3452else
3453 ac_cpp_err=yes
3454fi
3455if test -z "$ac_cpp_err"; then
3456 :
3457else
3458 echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 # Broken: fails on valid input.
3462continue
3463fi
3464rm -f conftest.err conftest.$ac_ext
3465
3466 # OK, works on sane cases. Now check whether non-existent headers
3467 # can be detected and how.
3468 cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h. */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
3473/* end confdefs.h. */
3474#include <ac_nonexistent.h>
3475_ACEOF
3476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3477 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_cxx_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3487 else
3488 ac_cpp_err=
3489 fi
3490else
3491 ac_cpp_err=yes
3492fi
3493if test -z "$ac_cpp_err"; then
3494 # Broken: success on invalid input.
3495continue
3496else
3497 echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 # Passes both tests.
3501ac_preproc_ok=:
3502break
3503fi
3504rm -f conftest.err conftest.$ac_ext
3505
3506done
3507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3508rm -f conftest.err conftest.$ac_ext
3509if $ac_preproc_ok; then
3510 :
3511else
3512 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3513See \`config.log' for more details." >&5
3514echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3515See \`config.log' for more details." >&2;}
3516 { (exit 1); exit 1; }; }
3517fi
3518
3519ac_ext=cc
3520ac_cpp='$CXXCPP $CPPFLAGS'
3521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3524 3051
3525 3052
3526echo "$as_me:$LINENO: checking for egrep" >&5 3053echo "$as_me:$LINENO: checking for egrep" >&5
3527echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3054echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3528if test "${ac_cv_prog_egrep+set}" = set; then 3055if test "${ac_cv_prog_egrep+set}" = set; then
3603 grep -v '^ *+' conftest.er1 >conftest.err 3130 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1 3131 rm -f conftest.er1
3605 cat conftest.err >&5 3132 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && 3134 (exit $ac_status); } &&
3608 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 (eval $ac_try) 2>&5 3137 (eval $ac_try) 2>&5
3611 ac_status=$? 3138 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; } && 3140 (exit $ac_status); }; } &&
3657 grep -v '^ *+' conftest.er1 >conftest.err 3184 grep -v '^ *+' conftest.er1 >conftest.err
3658 rm -f conftest.er1 3185 rm -f conftest.er1
3659 cat conftest.err >&5 3186 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } && 3188 (exit $ac_status); } &&
3662 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5 3191 (eval $ac_try) 2>&5
3665 ac_status=$? 3192 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; } && 3194 (exit $ac_status); }; } &&
3689if test "$ac_cv_search_strerror" != no; then 3216if test "$ac_cv_search_strerror" != no; then
3690 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3217 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3691 3218
3692fi 3219fi
3693 3220
3221ac_ext=cc
3222ac_cpp='$CXXCPP $CPPFLAGS'
3223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3694 3226
3227
3228if test x$GCC = xyes && test x$GXX = xyes; then
3229 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3230echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3231 save_CXX="$CXX"
3232 save_LIBS="$LIBS"
3233 CXX="$CC"
3234 LIBS="$LIBS -lsupc++"
3235 LINKER="$CC"
3236
3237cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */
3243struct test { }; void f() try { throw new test; } catch (...) { throw; }
3244int
3245main ()
3246{
3247
3248 ;
3249 return 0;
3250}
3251_ACEOF
3252rm -f conftest.$ac_objext conftest$ac_exeext
3253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3254 (eval $ac_link) 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } &&
3261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 (eval $ac_try) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; } &&
3267 { ac_try='test -s conftest$ac_exeext'
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 echo "$as_me:$LINENO: result: ok" >&5
3274echo "${ECHO_T}ok" >&6
3275else
3276 echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
3279
3280 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3281echo "${ECHO_T}no, making everything bigger and slower" >&6
3282 LIBS="$save_LIBS"
3283 LINKER="$save_CXX"
3284
3285
3286fi
3287rm -f conftest.err conftest.$ac_objext \
3288 conftest$ac_exeext conftest.$ac_ext
3289 CXX="$save_CXX"
3290fi
3291LINKER=$LINKER
3292
3293
3294ac_ext=cc
3295ac_cpp='$CXXCPP $CPPFLAGS'
3296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3299
3300if test -z "$orig_CXXFLAGS"; then
3301 if test x$GCC = xyes && test "x$GXX" = xyes; then
3302 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3303 cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h. */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h. */
3309
3310int
3311main ()
3312{
3313
3314 ;
3315 return 0;
3316}
3317_ACEOF
3318rm -f conftest.$ac_objext
3319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3320 (eval $ac_compile) 2>conftest.er1
3321 ac_status=$?
3322 grep -v '^ *+' conftest.er1 >conftest.err
3323 rm -f conftest.er1
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } &&
3327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 :
3340else
3341 echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
3344CXXFLAGS="-g -O3"
3345fi
3346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347 else
3348 CXXFLAGS="-O"
3349 fi
3350 CFLAGS="$CXXFLAGS"
3351fi
3352
3353
3354cat >>confdefs.h <<\_ACEOF
3355#define _GNU_SOURCE 1
3356_ACEOF
3357
3358
3359case $host in
3360 *-*-solaris* )
3361
3362cat >>confdefs.h <<\_ACEOF
3363#define _XOPEN_SOURCE_EXTENDED 1
3364_ACEOF
3365
3366
3367cat >>confdefs.h <<\_ACEOF
3368#define _XOPEN_SOURCE 2
3369_ACEOF
3370
3371
3372cat >>confdefs.h <<\_ACEOF
3373#define __EXTENSIONS__ 1
3374_ACEOF
3375
3376 ;;
3377esac
3378
3379
3380echo "$as_me:$LINENO: checking for setlocale" >&5
3381echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3382if test "${ac_cv_func_setlocale+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384else
3385 cat >conftest.$ac_ext <<_ACEOF
3386/* confdefs.h. */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
3390/* end confdefs.h. */
3391/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3393#define setlocale innocuous_setlocale
3394
3395/* System header to define __stub macros and hopefully few prototypes,
3396 which can conflict with char setlocale (); below.
3397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3398 <limits.h> exists even on freestanding compilers. */
3399
3400#ifdef __STDC__
3401# include <limits.h>
3402#else
3403# include <assert.h>
3404#endif
3405
3406#undef setlocale
3407
3408/* Override any gcc2 internal prototype to avoid an error. */
3409#ifdef __cplusplus
3410extern "C"
3411{
3412#endif
3413/* We use char because int might match the return type of a gcc2
3414 builtin and then its argument prototype would still apply. */
3415char setlocale ();
3416/* The GNU C library defines this for functions which it implements
3417 to always fail with ENOSYS. Some functions are actually named
3418 something starting with __ and the normal name is an alias. */
3419#if defined (__stub_setlocale) || defined (__stub___setlocale)
3420choke me
3421#else
3422char (*f) () = setlocale;
3423#endif
3424#ifdef __cplusplus
3425}
3426#endif
3427
3428int
3429main ()
3430{
3431return f != setlocale;
3432 ;
3433 return 0;
3434}
3435_ACEOF
3436rm -f conftest.$ac_objext conftest$ac_exeext
3437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438 (eval $ac_link) 2>conftest.er1
3439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } &&
3451 { ac_try='test -s conftest$ac_exeext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 ac_cv_func_setlocale=yes
3458else
3459 echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462ac_cv_func_setlocale=no
3463fi
3464rm -f conftest.err conftest.$ac_objext \
3465 conftest$ac_exeext conftest.$ac_ext
3466fi
3467echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3468echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3469if test $ac_cv_func_setlocale = yes; then
3470 :
3471else
3695echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 3472 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3696echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 3473echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3697if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then 3474if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6 3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3699else 3476else
3700 ac_check_lib_save_LIBS=$LIBS 3477 ac_check_lib_save_LIBS=$LIBS
3757echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 3534echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3758if test $ac_cv_lib_xpg4_setlocale = yes; then 3535if test $ac_cv_lib_xpg4_setlocale = yes; then
3759 LIBS="$LIBS -lxpg4" 3536 LIBS="$LIBS -lxpg4"
3760fi 3537fi
3761 3538
3539fi
3762 3540
3541
3542echo "$as_me:$LINENO: checking for gethostbyname" >&5
3543echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3544if test "${ac_cv_func_gethostbyname+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546else
3547 cat >conftest.$ac_ext <<_ACEOF
3548/* confdefs.h. */
3549_ACEOF
3550cat confdefs.h >>conftest.$ac_ext
3551cat >>conftest.$ac_ext <<_ACEOF
3552/* end confdefs.h. */
3553/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3555#define gethostbyname innocuous_gethostbyname
3556
3557/* System header to define __stub macros and hopefully few prototypes,
3558 which can conflict with char gethostbyname (); below.
3559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560 <limits.h> exists even on freestanding compilers. */
3561
3562#ifdef __STDC__
3563# include <limits.h>
3564#else
3565# include <assert.h>
3566#endif
3567
3568#undef gethostbyname
3569
3570/* Override any gcc2 internal prototype to avoid an error. */
3571#ifdef __cplusplus
3572extern "C"
3573{
3574#endif
3575/* We use char because int might match the return type of a gcc2
3576 builtin and then its argument prototype would still apply. */
3577char gethostbyname ();
3578/* The GNU C library defines this for functions which it implements
3579 to always fail with ENOSYS. Some functions are actually named
3580 something starting with __ and the normal name is an alias. */
3581#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3582choke me
3583#else
3584char (*f) () = gethostbyname;
3585#endif
3586#ifdef __cplusplus
3587}
3588#endif
3589
3590int
3591main ()
3592{
3593return f != gethostbyname;
3594 ;
3595 return 0;
3596}
3597_ACEOF
3598rm -f conftest.$ac_objext conftest$ac_exeext
3599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3600 (eval $ac_link) 2>conftest.er1
3601 ac_status=$?
3602 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1
3604 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } &&
3607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } &&
3613 { ac_try='test -s conftest$ac_exeext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 ac_cv_func_gethostbyname=yes
3620else
3621 echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624ac_cv_func_gethostbyname=no
3625fi
3626rm -f conftest.err conftest.$ac_objext \
3627 conftest$ac_exeext conftest.$ac_ext
3628fi
3629echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3630echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3631if test $ac_cv_func_gethostbyname = yes; then
3632 :
3633else
3763echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 3634 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3764echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 3635echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3765if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 3636if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6 3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else 3638else
3768 ac_check_lib_save_LIBS=$LIBS 3639 ac_check_lib_save_LIBS=$LIBS
3825echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 3696echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3826if test $ac_cv_lib_nsl_gethostbyname = yes; then 3697if test $ac_cv_lib_nsl_gethostbyname = yes; then
3827 LIBS="$LIBS -lnsl" 3698 LIBS="$LIBS -lnsl"
3828fi 3699fi
3829 3700
3701fi
3702
3703echo "$as_me:$LINENO: checking for socket" >&5
3704echo $ECHO_N "checking for socket... $ECHO_C" >&6
3705if test "${ac_cv_func_socket+set}" = set; then
3706 echo $ECHO_N "(cached) $ECHO_C" >&6
3707else
3708 cat >conftest.$ac_ext <<_ACEOF
3709/* confdefs.h. */
3710_ACEOF
3711cat confdefs.h >>conftest.$ac_ext
3712cat >>conftest.$ac_ext <<_ACEOF
3713/* end confdefs.h. */
3714/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3716#define socket innocuous_socket
3717
3718/* System header to define __stub macros and hopefully few prototypes,
3719 which can conflict with char socket (); below.
3720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3721 <limits.h> exists even on freestanding compilers. */
3722
3723#ifdef __STDC__
3724# include <limits.h>
3725#else
3726# include <assert.h>
3727#endif
3728
3729#undef socket
3730
3731/* Override any gcc2 internal prototype to avoid an error. */
3732#ifdef __cplusplus
3733extern "C"
3734{
3735#endif
3736/* We use char because int might match the return type of a gcc2
3737 builtin and then its argument prototype would still apply. */
3738char socket ();
3739/* The GNU C library defines this for functions which it implements
3740 to always fail with ENOSYS. Some functions are actually named
3741 something starting with __ and the normal name is an alias. */
3742#if defined (__stub_socket) || defined (__stub___socket)
3743choke me
3744#else
3745char (*f) () = socket;
3746#endif
3747#ifdef __cplusplus
3748}
3749#endif
3750
3751int
3752main ()
3753{
3754return f != socket;
3755 ;
3756 return 0;
3757}
3758_ACEOF
3759rm -f conftest.$ac_objext conftest$ac_exeext
3760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3761 (eval $ac_link) 2>conftest.er1
3762 ac_status=$?
3763 grep -v '^ *+' conftest.er1 >conftest.err
3764 rm -f conftest.er1
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; } &&
3774 { ac_try='test -s conftest$ac_exeext'
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 ac_cv_func_socket=yes
3781else
3782 echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
3784
3785ac_cv_func_socket=no
3786fi
3787rm -f conftest.err conftest.$ac_objext \
3788 conftest$ac_exeext conftest.$ac_ext
3789fi
3790echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3791echo "${ECHO_T}$ac_cv_func_socket" >&6
3792if test $ac_cv_func_socket = yes; then
3793 :
3794else
3830echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 3795 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3831echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 3796echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3832if test "${ac_cv_lib_socket_socket+set}" = set; then 3797if test "${ac_cv_lib_socket_socket+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6 3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3834else 3799else
3835 ac_check_lib_save_LIBS=$LIBS 3800 ac_check_lib_save_LIBS=$LIBS
3892echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 3857echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3893if test $ac_cv_lib_socket_socket = yes; then 3858if test $ac_cv_lib_socket_socket = yes; then
3894 LIBS="$LIBS -lsocket" 3859 LIBS="$LIBS -lsocket"
3895fi 3860fi
3896 3861
3897
3898# Check whether --enable-shared or --disable-shared was given.
3899if test "${enable_shared+set}" = set; then
3900 enableval="$enable_shared"
3901 p=${PACKAGE-default}
3902case "$enableval" in
3903yes) enable_shared=yes ;;
3904no) enable_shared=no ;;
3905*)
3906 enable_shared=no
3907 # Look at the argument we got. We use all the common list separators.
3908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3909 for pkg in $enableval; do
3910 if test "X$pkg" = "X$p"; then
3911 enable_shared=yes
3912 fi
3913 done
3914 IFS="$ac_save_ifs"
3915 ;;
3916esac
3917else
3918 enable_shared=no
3919fi; # Check whether --enable-static or --disable-static was given.
3920if test "${enable_static+set}" = set; then
3921 enableval="$enable_static"
3922 p=${PACKAGE-default}
3923case "$enableval" in
3924yes) enable_static=yes ;;
3925no) enable_static=no ;;
3926*)
3927 enable_static=no
3928 # Look at the argument we got. We use all the common list separators.
3929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3930 for pkg in $enableval; do
3931 if test "X$pkg" = "X$p"; then
3932 enable_static=yes
3933 fi
3934 done
3935 IFS="$ac_save_ifs"
3936 ;;
3937esac
3938else
3939 enable_static=yes
3940fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3941if test "${enable_fast_install+set}" = set; then
3942 enableval="$enable_fast_install"
3943 p=${PACKAGE-default}
3944case "$enableval" in
3945yes) enable_fast_install=yes ;;
3946no) enable_fast_install=no ;;
3947*)
3948 enable_fast_install=no
3949 # Look at the argument we got. We use all the common list separators.
3950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3951 for pkg in $enableval; do
3952 if test "X$pkg" = "X$p"; then
3953 enable_fast_install=yes
3954 fi
3955 done
3956 IFS="$ac_save_ifs"
3957 ;;
3958esac
3959else
3960 enable_fast_install=yes
3961fi; 3862fi
3962# Make sure we can run config.sub.
3963$ac_config_sub sun4 >/dev/null 2>&1 ||
3964 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3965echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3966 { (exit 1); exit 1; }; }
3967 3863
3968echo "$as_me:$LINENO: checking build system type" >&5
3969echo $ECHO_N "checking build system type... $ECHO_C" >&6
3970if test "${ac_cv_build+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
3973 ac_cv_build_alias=$build_alias
3974test -z "$ac_cv_build_alias" &&
3975 ac_cv_build_alias=`$ac_config_guess`
3976test -z "$ac_cv_build_alias" &&
3977 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3978echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3979 { (exit 1); exit 1; }; }
3980ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3981 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3982echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3983 { (exit 1); exit 1; }; }
3984 3864
3985fi
3986echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3987echo "${ECHO_T}$ac_cv_build" >&6
3988build=$ac_cv_build
3989build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3990build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3991build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3992
3993
3994echo "$as_me:$LINENO: checking host system type" >&5
3995echo $ECHO_N "checking host system type... $ECHO_C" >&6
3996if test "${ac_cv_host+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998else
3999 ac_cv_host_alias=$host_alias
4000test -z "$ac_cv_host_alias" &&
4001 ac_cv_host_alias=$ac_cv_build_alias
4002ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4003 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4004echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4005 { (exit 1); exit 1; }; }
4006
4007fi
4008echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4009echo "${ECHO_T}$ac_cv_host" >&6
4010host=$ac_cv_host
4011host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4012host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4013host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4014
4015
4016
4017# Check whether --with-gnu-ld or --without-gnu-ld was given.
4018if test "${with_gnu_ld+set}" = set; then
4019 withval="$with_gnu_ld"
4020 test "$withval" = no || with_gnu_ld=yes
4021else
4022 with_gnu_ld=no
4023fi;
4024ac_prog=ld
4025if test "$GCC" = yes; then
4026 # Check if gcc -print-prog-name=ld gives a path.
4027 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4028echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4029 case $host in
4030 *-*-mingw*)
4031 # gcc leaves a trailing carriage return which upsets mingw
4032 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4033 *)
4034 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4035 esac
4036 case "$ac_prog" in
4037 # Accept absolute paths.
4038 [\\/]* | [A-Za-z]:[\\/]*)
4039 re_direlt='/[^/][^/]*/\.\./'
4040 # Canonicalize the path of ld
4041 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4042 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4043 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4044 done
4045 test -z "$LD" && LD="$ac_prog"
4046 ;;
4047 "")
4048 # If it fails, then pretend we aren't using GCC.
4049 ac_prog=ld
4050 ;;
4051 *)
4052 # If it is relative, then search for the first ld in PATH.
4053 with_gnu_ld=unknown
4054 ;;
4055 esac
4056elif test "$with_gnu_ld" = yes; then
4057 echo "$as_me:$LINENO: checking for GNU ld" >&5 3865echo "$as_me:$LINENO: checking for sched_yield" >&5
4058echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3866echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4059else
4060 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4061echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4062fi
4063if test "${lt_cv_path_LD+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066 if test -z "$LD"; then
4067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4068 for ac_dir in $PATH; do
4069 test -z "$ac_dir" && ac_dir=.
4070 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4071 lt_cv_path_LD="$ac_dir/$ac_prog"
4072 # Check to see if the program is GNU ld. I'd rather use --version,
4073 # but apparently some GNU ld's only accept -v.
4074 # Break only if it was the GNU/non-GNU ld that we prefer.
4075 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4076 test "$with_gnu_ld" != no && break
4077 else
4078 test "$with_gnu_ld" != yes && break
4079 fi
4080 fi
4081 done
4082 IFS="$ac_save_ifs"
4083else
4084 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4085fi
4086fi
4087
4088LD="$lt_cv_path_LD"
4089if test -n "$LD"; then
4090 echo "$as_me:$LINENO: result: $LD" >&5
4091echo "${ECHO_T}$LD" >&6
4092else
4093 echo "$as_me:$LINENO: result: no" >&5
4094echo "${ECHO_T}no" >&6
4095fi
4096test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4097echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4098 { (exit 1); exit 1; }; }
4099echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4100echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4101if test "${lt_cv_prog_gnu_ld+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4105if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4106 lt_cv_prog_gnu_ld=yes
4107else
4108 lt_cv_prog_gnu_ld=no
4109fi
4110fi
4111echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4112echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4113with_gnu_ld=$lt_cv_prog_gnu_ld
4114
4115
4116echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4117echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4118if test "${lt_cv_ld_reload_flag+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120else
4121 lt_cv_ld_reload_flag='-r'
4122fi
4123echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4124echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4125reload_flag=$lt_cv_ld_reload_flag
4126test -n "$reload_flag" && reload_flag=" $reload_flag"
4127
4128echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4129echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4130if test "${lt_cv_path_NM+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132else
4133 if test -n "$NM"; then
4134 # Let the user override the test.
4135 lt_cv_path_NM="$NM"
4136else
4137 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4138 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4139 test -z "$ac_dir" && ac_dir=.
4140 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4141 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4142 # Check to see if the nm accepts a BSD-compat flag.
4143 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4144 # nm: unknown option "B" ignored
4145 # Tru64's nm complains that /dev/null is an invalid object file
4146 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4147 lt_cv_path_NM="$tmp_nm -B"
4148 break
4149 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4150 lt_cv_path_NM="$tmp_nm -p"
4151 break
4152 else
4153 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4154 continue # so that we can try to find one that supports BSD flags
4155 fi
4156 fi
4157 done
4158 IFS="$ac_save_ifs"
4159 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4160fi
4161fi
4162
4163NM="$lt_cv_path_NM"
4164echo "$as_me:$LINENO: result: $NM" >&5
4165echo "${ECHO_T}$NM" >&6
4166
4167echo "$as_me:$LINENO: checking whether ln -s works" >&5
4168echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4169LN_S=$as_ln_s
4170if test "$LN_S" = "ln -s"; then
4171 echo "$as_me:$LINENO: result: yes" >&5
4172echo "${ECHO_T}yes" >&6
4173else
4174 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4175echo "${ECHO_T}no, using $LN_S" >&6
4176fi
4177
4178echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4179echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4180if test "${lt_cv_deplibs_check_method+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
4183 lt_cv_file_magic_cmd='$MAGIC_CMD'
4184lt_cv_file_magic_test_file=
4185lt_cv_deplibs_check_method='unknown'
4186# Need to set the preceding variable on all platforms that support
4187# interlibrary dependencies.
4188# 'none' -- dependencies not supported.
4189# `unknown' -- same as none, but documents that we really don't know.
4190# 'pass_all' -- all dependencies passed with no checks.
4191# 'test_compile' -- check by making test program.
4192# ['file_magic [regex]'] -- check by looking for files in library path
4193# which responds to the $file_magic_cmd with a given egrep regex.
4194# If you have `file' or equivalent on your system and you're not sure
4195# whether `pass_all' will *always* work, you probably want this one.
4196
4197case "$host_os" in
4198aix4*)
4199 lt_cv_deplibs_check_method=pass_all
4200 ;;
4201
4202beos*)
4203 lt_cv_deplibs_check_method=pass_all
4204 ;;
4205
4206bsdi4*)
4207 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4208 lt_cv_file_magic_cmd='/usr/bin/file -L'
4209 lt_cv_file_magic_test_file=/shlib/libc.so
4210 ;;
4211
4212cygwin* | mingw* | pw32*)
4213 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4214 lt_cv_file_magic_cmd='$OBJDUMP -f'
4215 ;;
4216
4217darwin*|rhapsody*)
4218 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4219 lt_cv_file_magiic_cmd=/usr/bin/file
4220 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4221 ;;
4222
4223freebsd*)
4224 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4225 case "$host_cpu" in
4226 i*86 )
4227 # Not sure whether the presence of OpenBSD here was a mistake.
4228 # Let's accept both of them until this is cleared up.
4229 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4230 lt_cv_file_magic_cmd=/usr/bin/file
4231 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4232 ;;
4233 esac
4234 else
4235 lt_cv_deplibs_check_method=pass_all
4236 fi
4237 ;;
4238
4239gnu*)
4240 lt_cv_deplibs_check_method=pass_all
4241 ;;
4242
4243hpux10.20*|hpux11*)
4244 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4245 lt_cv_file_magic_cmd=/usr/bin/file
4246 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4247 ;;
4248
4249irix5* | irix6*)
4250 case "$host_os" in
4251 irix5*)
4252 # this will be overridden with pass_all, but let us keep it just in case
4253 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4254 ;;
4255 *)
4256 case "$LD" in
4257 *-32|*"-32 ") libmagic=32-bit;;
4258 *-n32|*"-n32 ") libmagic=N32;;
4259 *-64|*"-64 ") libmagic=64-bit;;
4260 *) libmagic=never-match;;
4261 esac
4262 # this will be overridden with pass_all, but let us keep it just in case
4263 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4264 ;;
4265 esac
4266 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4267 lt_cv_deplibs_check_method=pass_all
4268 ;;
4269
4270# This must be Linux ELF.
4271linux-gnu*)
4272 case "$host_cpu" in
4273 alpha* | i*86 | powerpc* | sparc* | ia64* )
4274 lt_cv_deplibs_check_method=pass_all ;;
4275 *)
4276 # glibc up to 2.1.1 does not perform some relocations on ARM
4277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4278 esac
4279 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4280 ;;
4281
4282netbsd*)
4283 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4284 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4285 else
4286 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4287 fi
4288 lt_cv_file_magic_cmd='/usr/bin/file -L'
4289 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4290 ;;
4291
4292newos6*)
4293 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4294 lt_cv_file_magic_cmd=/usr/bin/file
4295 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4296 ;;
4297
4298osf3* | osf4* | osf5*)
4299 # this will be overridden with pass_all, but let us keep it just in case
4300 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4301 lt_cv_file_magic_test_file=/shlib/libc.so
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305sco3.2v5*)
4306 lt_cv_deplibs_check_method=pass_all
4307 ;;
4308
4309solaris*)
4310 lt_cv_deplibs_check_method=pass_all
4311 lt_cv_file_magic_test_file=/lib/libc.so
4312 ;;
4313
4314sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4315 case "$host_vendor" in
4316 motorola)
4317 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]'
4318 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4319 ;;
4320 ncr)
4321 lt_cv_deplibs_check_method=pass_all
4322 ;;
4323 sequent)
4324 lt_cv_file_magic_cmd='/bin/file'
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4326 ;;
4327 sni)
4328 lt_cv_file_magic_cmd='/bin/file'
4329 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4330 lt_cv_file_magic_test_file=/lib/libc.so
4331 ;;
4332 esac
4333 ;;
4334esac
4335
4336fi
4337echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4338echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4339file_magic_cmd=$lt_cv_file_magic_cmd
4340deplibs_check_method=$lt_cv_deplibs_check_method
4341
4342
4343
4344
4345
4346
4347
4348# Check for command to grab the raw symbol name followed by C symbol from nm.
4349echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4350echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4351if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354
4355# These are sane defaults that work on at least a few old systems.
4356# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4357
4358# Character class describing NM global symbol codes.
4359symcode='[BCDEGRST]'
4360
4361# Regexp to match symbols that can be accessed directly from C.
4362sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4363
4364# Transform the above into a raw symbol and a C symbol.
4365symxfrm='\1 \2\3 \3'
4366
4367# Transform an extracted symbol line into a proper C declaration
4368lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4369
4370# Define system-specific variables.
4371case "$host_os" in
4372aix*)
4373 symcode='[BCDT]'
4374 ;;
4375cygwin* | mingw* | pw32*)
4376 symcode='[ABCDGISTW]'
4377 ;;
4378hpux*) # Its linker distinguishes data from code symbols
4379 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4380 ;;
4381irix*)
4382 symcode='[BCDEGRST]'
4383 ;;
4384solaris* | sysv5*)
4385 symcode='[BDT]'
4386 ;;
4387sysv4)
4388 symcode='[DFNSTU]'
4389 ;;
4390esac
4391
4392# Handle CRLF in mingw tool chain
4393opt_cr=
4394case "$host_os" in
4395mingw*)
4396 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4397 ;;
4398esac
4399
4400# If we're using GNU nm, then use its standard symbol codes.
4401if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4402 symcode='[ABCDGISTW]'
4403fi
4404
4405# Try without a prefix undercore, then with it.
4406for ac_symprfx in "" "_"; do
4407
4408 # Write the raw and C identifiers.
4409lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4410
4411 # Check to see that the pipe works correctly.
4412 pipe_works=no
4413 rm -f conftest*
4414 cat > conftest.$ac_ext <<EOF
4415#ifdef __cplusplus
4416extern "C" {
4417#endif
4418char nm_test_var;
4419void nm_test_func(){}
4420#ifdef __cplusplus
4421}
4422#endif
4423main(){nm_test_var='a';nm_test_func();return(0);}
4424EOF
4425
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; then
4431 # Now try to grab the symbols.
4432 nlist=conftest.nm
4433 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4434 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } && test -s "$nlist"; then
4438 # Try sorting and uniquifying the output.
4439 if sort "$nlist" | uniq > "$nlist"T; then
4440 mv -f "$nlist"T "$nlist"
4441 else
4442 rm -f "$nlist"T
4443 fi
4444
4445 # Make sure that we snagged all the symbols we need.
4446 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4447 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4448 cat <<EOF > conftest.$ac_ext
4449#ifdef __cplusplus
4450extern "C" {
4451#endif
4452
4453EOF
4454 # Now generate the symbol file.
4455 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4456
4457 cat <<EOF >> conftest.$ac_ext
4458#if defined (__STDC__) && __STDC__
4459# define lt_ptr_t void *
4460#else
4461# define lt_ptr_t char *
4462# define const
4463#endif
4464
4465/* The mapping between symbol names and symbols. */
4466const struct {
4467 const char *name;
4468 lt_ptr_t address;
4469}
4470lt_preloaded_symbols[] =
4471{
4472EOF
4473 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4474 cat <<\EOF >> conftest.$ac_ext
4475 {0, (lt_ptr_t) 0}
4476};
4477
4478#ifdef __cplusplus
4479}
4480#endif
4481EOF
4482 # Now try linking the two files.
4483 mv conftest.$ac_objext conftstm.$ac_objext
4484 save_LIBS="$LIBS"
4485 save_CFLAGS="$CFLAGS"
4486 LIBS="conftstm.$ac_objext"
4487 CFLAGS="$CFLAGS$no_builtin_flag"
4488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489 (eval $ac_link) 2>&5
4490 ac_status=$?
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } && test -s conftest; then
4493 pipe_works=yes
4494 fi
4495 LIBS="$save_LIBS"
4496 CFLAGS="$save_CFLAGS"
4497 else
4498 echo "cannot find nm_test_func in $nlist" >&5
4499 fi
4500 else
4501 echo "cannot find nm_test_var in $nlist" >&5
4502 fi
4503 else
4504 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4505 fi
4506 else
4507 echo "$progname: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4509 fi
4510 rm -f conftest* conftst*
4511
4512 # Do not use the global_symbol_pipe unless it works.
4513 if test "$pipe_works" = yes; then
4514 break
4515 else
4516 lt_cv_sys_global_symbol_pipe=
4517 fi
4518done
4519
4520fi
4521
4522global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4523if test -z "$lt_cv_sys_global_symbol_pipe"; then
4524 global_symbol_to_cdecl=
4525else
4526 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4527fi
4528if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4529 echo "$as_me:$LINENO: result: failed" >&5
4530echo "${ECHO_T}failed" >&6
4531else
4532 echo "$as_me:$LINENO: result: ok" >&5
4533echo "${ECHO_T}ok" >&6
4534fi
4535
4536echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4537echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4538if test "${ac_cv_header_stdc+set}" = set; then 3867if test "${ac_cv_func_sched_yield+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6 3868 echo $ECHO_N "(cached) $ECHO_C" >&6
4540else 3869else
4541 cat >conftest.$ac_ext <<_ACEOF 3870 cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h. */ 3871/* confdefs.h. */
4543_ACEOF 3872_ACEOF
4544cat confdefs.h >>conftest.$ac_ext 3873cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF 3874cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h. */ 3875/* end confdefs.h. */
4547#include <stdlib.h>
4548#include <stdarg.h>
4549#include <string.h>
4550#include <float.h>
4551
4552int
4553main ()
4554{
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560rm -f conftest.$ac_objext
4561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562 (eval $ac_compile) 2>conftest.er1
4563 ac_status=$?
4564 grep -v '^ *+' conftest.er1 >conftest.err
4565 rm -f conftest.er1
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } &&
4569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571 (eval $ac_try) 2>&5
4572 ac_status=$?
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; } &&
4575 { ac_try='test -s conftest.$ac_objext'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; }; then
4581 ac_cv_header_stdc=yes
4582else
4583 echo "$as_me: failed program was:" >&5
4584sed 's/^/| /' conftest.$ac_ext >&5
4585
4586ac_cv_header_stdc=no
4587fi
4588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4589
4590if test $ac_cv_header_stdc = yes; then
4591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4592 cat >conftest.$ac_ext <<_ACEOF
4593/* confdefs.h. */
4594_ACEOF
4595cat confdefs.h >>conftest.$ac_ext
4596cat >>conftest.$ac_ext <<_ACEOF
4597/* end confdefs.h. */
4598#include <string.h>
4599
4600_ACEOF
4601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4602 $EGREP "memchr" >/dev/null 2>&1; then
4603 :
4604else
4605 ac_cv_header_stdc=no
4606fi
4607rm -f conftest*
4608
4609fi
4610
4611if test $ac_cv_header_stdc = yes; then
4612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4613 cat >conftest.$ac_ext <<_ACEOF
4614/* confdefs.h. */
4615_ACEOF
4616cat confdefs.h >>conftest.$ac_ext
4617cat >>conftest.$ac_ext <<_ACEOF
4618/* end confdefs.h. */
4619#include <stdlib.h>
4620
4621_ACEOF
4622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623 $EGREP "free" >/dev/null 2>&1; then
4624 :
4625else
4626 ac_cv_header_stdc=no
4627fi
4628rm -f conftest*
4629
4630fi
4631
4632if test $ac_cv_header_stdc = yes; then
4633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4634 if test "$cross_compiling" = yes; then
4635 :
4636else
4637 cat >conftest.$ac_ext <<_ACEOF
4638/* confdefs.h. */
4639_ACEOF
4640cat confdefs.h >>conftest.$ac_ext
4641cat >>conftest.$ac_ext <<_ACEOF
4642/* end confdefs.h. */
4643#include <ctype.h>
4644#if ((' ' & 0x0FF) == 0x020)
4645# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4646# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4647#else
4648# define ISLOWER(c) \
4649 (('a' <= (c) && (c) <= 'i') \
4650 || ('j' <= (c) && (c) <= 'r') \
4651 || ('s' <= (c) && (c) <= 'z'))
4652# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4653#endif
4654
4655#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4656int
4657main ()
4658{
4659 int i;
4660 for (i = 0; i < 256; i++)
4661 if (XOR (islower (i), ISLOWER (i))
4662 || toupper (i) != TOUPPER (i))
4663 exit(2);
4664 exit (0);
4665}
4666_ACEOF
4667rm -f conftest$ac_exeext
4668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4669 (eval $ac_link) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 (eval $ac_try) 2>&5
4675 ac_status=$?
4676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); }; }; then
4678 :
4679else
4680 echo "$as_me: program exited with status $ac_status" >&5
4681echo "$as_me: failed program was:" >&5
4682sed 's/^/| /' conftest.$ac_ext >&5
4683
4684( exit $ac_status )
4685ac_cv_header_stdc=no
4686fi
4687rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4688fi
4689fi
4690fi
4691echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4692echo "${ECHO_T}$ac_cv_header_stdc" >&6
4693if test $ac_cv_header_stdc = yes; then
4694
4695cat >>confdefs.h <<\_ACEOF
4696#define STDC_HEADERS 1
4697_ACEOF
4698
4699fi
4700
4701# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4712 inttypes.h stdint.h unistd.h
4713do
4714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4715echo "$as_me:$LINENO: checking for $ac_header" >&5
4716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4717if eval "test \"\${$as_ac_Header+set}\" = set"; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
4720 cat >conftest.$ac_ext <<_ACEOF
4721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
4725/* end confdefs.h. */
4726$ac_includes_default
4727
4728#include <$ac_header>
4729_ACEOF
4730rm -f conftest.$ac_objext
4731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 (eval $ac_try) 2>&5
4742 ac_status=$?
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; } &&
4745 { ac_try='test -s conftest.$ac_objext'
4746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 (eval $ac_try) 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 eval "$as_ac_Header=yes"
4752else
4753 echo "$as_me: failed program was:" >&5
4754sed 's/^/| /' conftest.$ac_ext >&5
4755
4756eval "$as_ac_Header=no"
4757fi
4758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4759fi
4760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4762if test `eval echo '${'$as_ac_Header'}'` = yes; then
4763 cat >>confdefs.h <<_ACEOF
4764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4765_ACEOF
4766
4767fi
4768
4769done
4770
4771
4772
4773for ac_header in dlfcn.h
4774do
4775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4776if eval "test \"\${$as_ac_Header+set}\" = set"; then
4777 echo "$as_me:$LINENO: checking for $ac_header" >&5
4778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4779if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781fi
4782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4784else
4785 # Is the header compilable?
4786echo "$as_me:$LINENO: checking $ac_header usability" >&5
4787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4788cat >conftest.$ac_ext <<_ACEOF
4789/* confdefs.h. */
4790_ACEOF
4791cat confdefs.h >>conftest.$ac_ext
4792cat >>conftest.$ac_ext <<_ACEOF
4793/* end confdefs.h. */
4794$ac_includes_default
4795#include <$ac_header>
4796_ACEOF
4797rm -f conftest.$ac_objext
4798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799 (eval $ac_compile) 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } &&
4806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808 (eval $ac_try) 2>&5
4809 ac_status=$?
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4814 (eval $ac_try) 2>&5
4815 ac_status=$?
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4818 ac_header_compiler=yes
4819else
4820 echo "$as_me: failed program was:" >&5
4821sed 's/^/| /' conftest.$ac_ext >&5
4822
4823ac_header_compiler=no
4824fi
4825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4827echo "${ECHO_T}$ac_header_compiler" >&6
4828
4829# Is the header present?
4830echo "$as_me:$LINENO: checking $ac_header presence" >&5
4831echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4832cat >conftest.$ac_ext <<_ACEOF
4833/* confdefs.h. */
4834_ACEOF
4835cat confdefs.h >>conftest.$ac_ext
4836cat >>conftest.$ac_ext <<_ACEOF
4837/* end confdefs.h. */
4838#include <$ac_header>
4839_ACEOF
4840if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } >/dev/null; then
4848 if test -s conftest.err; then
4849 ac_cpp_err=$ac_cxx_preproc_warn_flag
4850 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4851 else
4852 ac_cpp_err=
4853 fi
4854else
4855 ac_cpp_err=yes
4856fi
4857if test -z "$ac_cpp_err"; then
4858 ac_header_preproc=yes
4859else
4860 echo "$as_me: failed program was:" >&5
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863 ac_header_preproc=no
4864fi
4865rm -f conftest.err conftest.$ac_ext
4866echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4867echo "${ECHO_T}$ac_header_preproc" >&6
4868
4869# So? What about this header?
4870case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4871 yes:no: )
4872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4873echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4875echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4876 ac_header_preproc=yes
4877 ;;
4878 no:yes:* )
4879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4880echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4882echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4884echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4886echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4888echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4890echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4891 (
4892 cat <<\_ASBOX
4893## ------------------------------------------ ##
4894## Report this to the AC_PACKAGE_NAME lists. ##
4895## ------------------------------------------ ##
4896_ASBOX
4897 ) |
4898 sed "s/^/$as_me: WARNING: /" >&2
4899 ;;
4900esac
4901echo "$as_me:$LINENO: checking for $ac_header" >&5
4902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4903if eval "test \"\${$as_ac_Header+set}\" = set"; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906 eval "$as_ac_Header=\$ac_header_preproc"
4907fi
4908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4910
4911fi
4912if test `eval echo '${'$as_ac_Header'}'` = yes; then
4913 cat >>confdefs.h <<_ACEOF
4914#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4915_ACEOF
4916
4917fi
4918
4919done
4920
4921
4922
4923
4924
4925# Only perform the check for file, if the check method requires it
4926case "$deplibs_check_method" in
4927file_magic*)
4928 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4929 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4930echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4931if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934 case "$MAGIC_CMD" in
4935 /*)
4936 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4937 ;;
4938 ?:/*)
4939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4940 ;;
4941 *)
4942 ac_save_MAGIC_CMD="$MAGIC_CMD"
4943 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4944 ac_dummy="/usr/bin:$PATH"
4945 for ac_dir in $ac_dummy; do
4946 test -z "$ac_dir" && ac_dir=.
4947 if test -f $ac_dir/${ac_tool_prefix}file; then
4948 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4949 if test -n "$file_magic_test_file"; then
4950 case "$deplibs_check_method" in
4951 "file_magic "*)
4952 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4955 egrep "$file_magic_regex" > /dev/null; then
4956 :
4957 else
4958 cat <<EOF 1>&2
4959
4960*** Warning: the command libtool uses to detect shared libraries,
4961*** $file_magic_cmd, produces output that libtool cannot recognize.
4962*** The result is that libtool may fail to recognize shared libraries
4963*** as such. This will affect the creation of libtool libraries that
4964*** depend on shared libraries, but programs linked with such libtool
4965*** libraries will work regardless of this problem. Nevertheless, you
4966*** may want to report the problem to your system manager and/or to
4967*** bug-libtool@gnu.org
4968
4969EOF
4970 fi ;;
4971 esac
4972 fi
4973 break
4974 fi
4975 done
4976 IFS="$ac_save_ifs"
4977 MAGIC_CMD="$ac_save_MAGIC_CMD"
4978 ;;
4979esac
4980fi
4981
4982MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4983if test -n "$MAGIC_CMD"; then
4984 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4985echo "${ECHO_T}$MAGIC_CMD" >&6
4986else
4987 echo "$as_me:$LINENO: result: no" >&5
4988echo "${ECHO_T}no" >&6
4989fi
4990
4991if test -z "$lt_cv_path_MAGIC_CMD"; then
4992 if test -n "$ac_tool_prefix"; then
4993 echo "$as_me:$LINENO: checking for file" >&5
4994echo $ECHO_N "checking for file... $ECHO_C" >&6
4995if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998 case "$MAGIC_CMD" in
4999 /*)
5000 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5001 ;;
5002 ?:/*)
5003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5004 ;;
5005 *)
5006 ac_save_MAGIC_CMD="$MAGIC_CMD"
5007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5008 ac_dummy="/usr/bin:$PATH"
5009 for ac_dir in $ac_dummy; do
5010 test -z "$ac_dir" && ac_dir=.
5011 if test -f $ac_dir/file; then
5012 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5013 if test -n "$file_magic_test_file"; then
5014 case "$deplibs_check_method" in
5015 "file_magic "*)
5016 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5017 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5018 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5019 egrep "$file_magic_regex" > /dev/null; then
5020 :
5021 else
5022 cat <<EOF 1>&2
5023
5024*** Warning: the command libtool uses to detect shared libraries,
5025*** $file_magic_cmd, produces output that libtool cannot recognize.
5026*** The result is that libtool may fail to recognize shared libraries
5027*** as such. This will affect the creation of libtool libraries that
5028*** depend on shared libraries, but programs linked with such libtool
5029*** libraries will work regardless of this problem. Nevertheless, you
5030*** may want to report the problem to your system manager and/or to
5031*** bug-libtool@gnu.org
5032
5033EOF
5034 fi ;;
5035 esac
5036 fi
5037 break
5038 fi
5039 done
5040 IFS="$ac_save_ifs"
5041 MAGIC_CMD="$ac_save_MAGIC_CMD"
5042 ;;
5043esac
5044fi
5045
5046MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5047if test -n "$MAGIC_CMD"; then
5048 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5049echo "${ECHO_T}$MAGIC_CMD" >&6
5050else
5051 echo "$as_me:$LINENO: result: no" >&5
5052echo "${ECHO_T}no" >&6
5053fi
5054
5055 else
5056 MAGIC_CMD=:
5057 fi
5058fi
5059
5060 fi
5061 ;;
5062esac
5063
5064if test -n "$ac_tool_prefix"; then
5065 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5066set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5067echo "$as_me:$LINENO: checking for $ac_word" >&5
5068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5069if test "${ac_cv_prog_RANLIB+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5071else
5072 if test -n "$RANLIB"; then
5073 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5085 fi
5086done
5087done
5088
5089fi
5090fi
5091RANLIB=$ac_cv_prog_RANLIB
5092if test -n "$RANLIB"; then
5093 echo "$as_me:$LINENO: result: $RANLIB" >&5
5094echo "${ECHO_T}$RANLIB" >&6
5095else
5096 echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098fi
5099
5100fi
5101if test -z "$ac_cv_prog_RANLIB"; then
5102 ac_ct_RANLIB=$RANLIB
5103 # Extract the first word of "ranlib", so it can be a program name with args.
5104set dummy ranlib; ac_word=$2
5105echo "$as_me:$LINENO: checking for $ac_word" >&5
5106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5107if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109else
5110 if test -n "$ac_ct_RANLIB"; then
5111 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5112else
5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114for as_dir in $PATH
5115do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_ac_ct_RANLIB="ranlib"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124done
5125done
5126
5127 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5128fi
5129fi
5130ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5131if test -n "$ac_ct_RANLIB"; then
5132 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5133echo "${ECHO_T}$ac_ct_RANLIB" >&6
5134else
5135 echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6
5137fi
5138
5139 RANLIB=$ac_ct_RANLIB
5140else
5141 RANLIB="$ac_cv_prog_RANLIB"
5142fi
5143
5144if test -n "$ac_tool_prefix"; then
5145 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5146set dummy ${ac_tool_prefix}strip; ac_word=$2
5147echo "$as_me:$LINENO: checking for $ac_word" >&5
5148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5149if test "${ac_cv_prog_STRIP+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5151else
5152 if test -n "$STRIP"; then
5153 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5154else
5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158 IFS=$as_save_IFS
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166done
5167done
5168
5169fi
5170fi
5171STRIP=$ac_cv_prog_STRIP
5172if test -n "$STRIP"; then
5173 echo "$as_me:$LINENO: result: $STRIP" >&5
5174echo "${ECHO_T}$STRIP" >&6
5175else
5176 echo "$as_me:$LINENO: result: no" >&5
5177echo "${ECHO_T}no" >&6
5178fi
5179
5180fi
5181if test -z "$ac_cv_prog_STRIP"; then
5182 ac_ct_STRIP=$STRIP
5183 # Extract the first word of "strip", so it can be a program name with args.
5184set dummy strip; ac_word=$2
5185echo "$as_me:$LINENO: checking for $ac_word" >&5
5186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5187if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5189else
5190 if test -n "$ac_ct_STRIP"; then
5191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5192else
5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_STRIP="strip"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204done
5205done
5206
5207 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5208fi
5209fi
5210ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5211if test -n "$ac_ct_STRIP"; then
5212 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5213echo "${ECHO_T}$ac_ct_STRIP" >&6
5214else
5215 echo "$as_me:$LINENO: result: no" >&5
5216echo "${ECHO_T}no" >&6
5217fi
5218
5219 STRIP=$ac_ct_STRIP
5220else
5221 STRIP="$ac_cv_prog_STRIP"
5222fi
5223
5224
5225enable_dlopen=no
5226enable_win32_dll=no
5227
5228# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5229if test "${enable_libtool_lock+set}" = set; then
5230 enableval="$enable_libtool_lock"
5231
5232fi;
5233test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5234
5235# Some flags need to be propagated to the compiler or linker for good
5236# libtool support.
5237case "$host" in
5238*-*-irix6*)
5239 # Find out which ABI we are using.
5240 echo '#line 5240 "configure"' > conftest.$ac_ext
5241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242 (eval $ac_compile) 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; then
5246 case "`/usr/bin/file conftest.$ac_objext`" in
5247 *32-bit*)
5248 LD="${LD-ld} -32"
5249 ;;
5250 *N32*)
5251 LD="${LD-ld} -n32"
5252 ;;
5253 *64-bit*)
5254 LD="${LD-ld} -64"
5255 ;;
5256 esac
5257 fi
5258 rm -rf conftest*
5259 ;;
5260
5261*-*-sco3.2v5*)
5262 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5263 SAVE_CFLAGS="$CFLAGS"
5264 CFLAGS="$CFLAGS -belf"
5265 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5266echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5267if test "${lt_cv_cc_needs_belf+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270
5271
5272 ac_ext=c
5273ac_cpp='$CPP $CPPFLAGS'
5274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276ac_compiler_gnu=$ac_cv_c_compiler_gnu
5277
5278 cat >conftest.$ac_ext <<_ACEOF
5279/* confdefs.h. */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h. */
5284
5285int
5286main ()
5287{
5288
5289 ;
5290 return 0;
5291}
5292_ACEOF
5293rm -f conftest.$ac_objext conftest$ac_exeext
5294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5295 (eval $ac_link) 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } &&
5302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304 (eval $ac_try) 2>&5
5305 ac_status=$?
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; } &&
5308 { ac_try='test -s conftest$ac_exeext'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
5314 lt_cv_cc_needs_belf=yes
5315else
5316 echo "$as_me: failed program was:" >&5
5317sed 's/^/| /' conftest.$ac_ext >&5
5318
5319lt_cv_cc_needs_belf=no
5320fi
5321rm -f conftest.err conftest.$ac_objext \
5322 conftest$ac_exeext conftest.$ac_ext
5323 ac_ext=cc
5324ac_cpp='$CXXCPP $CPPFLAGS'
5325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5328
5329fi
5330echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5331echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5332 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5333 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5334 CFLAGS="$SAVE_CFLAGS"
5335 fi
5336 ;;
5337
5338
5339esac
5340
5341# Sed substitution that helps us do robust quoting. It backslashifies
5342# metacharacters that are still active within double-quoted strings.
5343Xsed='sed -e s/^X//'
5344sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5345
5346# Same as above, but do not quote variable references.
5347double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5348
5349# Sed substitution to delay expansion of an escaped shell variable in a
5350# double_quote_subst'ed string.
5351delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5352
5353# Constants:
5354rm="rm -f"
5355
5356# Global variables:
5357default_ofile=libtool
5358can_build_shared=yes
5359
5360# All known linkers require a `.a' archive for static linking (except M$VC,
5361# which needs '.lib').
5362libext=a
5363ltmain="$ac_aux_dir/ltmain.sh"
5364ofile="$default_ofile"
5365with_gnu_ld="$lt_cv_prog_gnu_ld"
5366need_locks="$enable_libtool_lock"
5367
5368old_CC="$CC"
5369old_CFLAGS="$CFLAGS"
5370
5371# Set sane defaults for various variables
5372test -z "$AR" && AR=ar
5373test -z "$AR_FLAGS" && AR_FLAGS=cru
5374test -z "$AS" && AS=as
5375test -z "$CC" && CC=cc
5376test -z "$DLLTOOL" && DLLTOOL=dlltool
5377test -z "$LD" && LD=ld
5378test -z "$LN_S" && LN_S="ln -s"
5379test -z "$MAGIC_CMD" && MAGIC_CMD=file
5380test -z "$NM" && NM=nm
5381test -z "$OBJDUMP" && OBJDUMP=objdump
5382test -z "$RANLIB" && RANLIB=:
5383test -z "$STRIP" && STRIP=:
5384test -z "$ac_objext" && ac_objext=o
5385
5386if test x"$host" != x"$build"; then
5387 ac_tool_prefix=${host_alias}-
5388else
5389 ac_tool_prefix=
5390fi
5391
5392# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5393case "$host_os" in
5394linux-gnu*) ;;
5395linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5396esac
5397
5398case "$host_os" in
5399aix3*)
5400 # AIX sometimes has problems with the GCC collect2 program. For some
5401 # reason, if we set the COLLECT_NAMES environment variable, the problems
5402 # vanish in a puff of smoke.
5403 if test "X${COLLECT_NAMES+set}" != Xset; then
5404 COLLECT_NAMES=
5405 export COLLECT_NAMES
5406 fi
5407 ;;
5408esac
5409
5410# Determine commands to create old-style static archives.
5411old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5412old_postinstall_cmds='chmod 644 $oldlib'
5413old_postuninstall_cmds=
5414
5415if test -n "$RANLIB"; then
5416 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5417 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5418fi
5419
5420# Allow CC to be a program name with arguments.
5421set dummy $CC
5422compiler="$2"
5423
5424## FIXME: this should be a separate macro
5425##
5426echo "$as_me:$LINENO: checking for objdir" >&5
5427echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5428rm -f .libs 2>/dev/null
5429mkdir .libs 2>/dev/null
5430if test -d .libs; then
5431 objdir=.libs
5432else
5433 # MS-DOS does not allow filenames that begin with a dot.
5434 objdir=_libs
5435fi
5436rmdir .libs 2>/dev/null
5437echo "$as_me:$LINENO: result: $objdir" >&5
5438echo "${ECHO_T}$objdir" >&6
5439##
5440## END FIXME
5441
5442
5443## FIXME: this should be a separate macro
5444##
5445
5446# Check whether --with-pic or --without-pic was given.
5447if test "${with_pic+set}" = set; then
5448 withval="$with_pic"
5449 pic_mode="$withval"
5450else
5451 pic_mode=default
5452fi;
5453test -z "$pic_mode" && pic_mode=default
5454
5455# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5456# in isolation, and that seeing it set (from the cache) indicates that
5457# the associated values are set (in the cache) correctly too.
5458echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5459echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5460if test "${lt_cv_prog_cc_pic+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5462else
5463 lt_cv_prog_cc_pic=
5464 lt_cv_prog_cc_shlib=
5465 lt_cv_prog_cc_wl=
5466 lt_cv_prog_cc_static=
5467 lt_cv_prog_cc_no_builtin=
5468 lt_cv_prog_cc_can_build_shared=$can_build_shared
5469
5470 if test "$GCC" = yes; then
5471 lt_cv_prog_cc_wl='-Wl,'
5472 lt_cv_prog_cc_static='-static'
5473
5474 case "$host_os" in
5475 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5476 # PIC is the default for these OSes.
5477 ;;
5478 aix*)
5479 # Below there is a dirty hack to force normal static linking with -ldl
5480 # The problem is because libdl dynamically linked with both libc and
5481 # libC (AIX C++ library), which obviously doesn't included in libraries
5482 # list by gcc. This cause undefined symbols with -static flags.
5483 # This hack allows C programs to be linked with "-static -ldl", but
5484 # we not sure about C++ programs.
5485 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5486 ;;
5487 cygwin* | mingw* | pw32* | os2*)
5488 # This hack is so that the source file can tell whether it is being
5489 # built for inclusion in a dll (and should export symbols for example).
5490 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5491 ;;
5492 amigaos*)
5493 # FIXME: we need at least 68020 code to build shared libraries, but
5494 # adding the `-m68020' flag to GCC prevents building anything better,
5495 # like `-m68040'.
5496 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5497 ;;
5498 sysv4*MP*)
5499 if test -d /usr/nec; then
5500 lt_cv_prog_cc_pic=-Kconform_pic
5501 fi
5502 ;;
5503 *)
5504 lt_cv_prog_cc_pic='-fPIC'
5505 ;;
5506 esac
5507 else
5508 # PORTME Check for PIC flags for the system compiler.
5509 case "$host_os" in
5510 aix3* | aix4*)
5511 # All AIX code is PIC.
5512 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5513 ;;
5514
5515 hpux9* | hpux10* | hpux11*)
5516 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5517 lt_cv_prog_cc_wl='-Wl,'
5518 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5519 lt_cv_prog_cc_pic='+Z'
5520 ;;
5521
5522 irix5* | irix6*)
5523 lt_cv_prog_cc_wl='-Wl,'
5524 lt_cv_prog_cc_static='-non_shared'
5525 # PIC (with -KPIC) is the default.
5526 ;;
5527
5528 cygwin* | mingw* | pw32* | os2*)
5529 # This hack is so that the source file can tell whether it is being
5530 # built for inclusion in a dll (and should export symbols for example).
5531 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5532 ;;
5533
5534 newsos6)
5535 lt_cv_prog_cc_pic='-KPIC'
5536 lt_cv_prog_cc_static='-Bstatic'
5537 ;;
5538
5539 osf3* | osf4* | osf5*)
5540 # All OSF/1 code is PIC.
5541 lt_cv_prog_cc_wl='-Wl,'
5542 lt_cv_prog_cc_static='-non_shared'
5543 ;;
5544
5545 sco3.2v5*)
5546 lt_cv_prog_cc_pic='-Kpic'
5547 lt_cv_prog_cc_static='-dn'
5548 lt_cv_prog_cc_shlib='-belf'
5549 ;;
5550
5551 solaris*)
5552 lt_cv_prog_cc_pic='-KPIC'
5553 lt_cv_prog_cc_static='-Bstatic'
5554 lt_cv_prog_cc_wl='-Wl,'
5555 ;;
5556
5557 sunos4*)
5558 lt_cv_prog_cc_pic='-PIC'
5559 lt_cv_prog_cc_static='-Bstatic'
5560 lt_cv_prog_cc_wl='-Qoption ld '
5561 ;;
5562
5563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5564 lt_cv_prog_cc_pic='-KPIC'
5565 lt_cv_prog_cc_static='-Bstatic'
5566 if test "x$host_vendor" = xsni; then
5567 lt_cv_prog_cc_wl='-LD'
5568 else
5569 lt_cv_prog_cc_wl='-Wl,'
5570 fi
5571 ;;
5572
5573 uts4*)
5574 lt_cv_prog_cc_pic='-pic'
5575 lt_cv_prog_cc_static='-Bstatic'
5576 ;;
5577
5578 sysv4*MP*)
5579 if test -d /usr/nec ;then
5580 lt_cv_prog_cc_pic='-Kconform_pic'
5581 lt_cv_prog_cc_static='-Bstatic'
5582 fi
5583 ;;
5584
5585 *)
5586 lt_cv_prog_cc_can_build_shared=no
5587 ;;
5588 esac
5589 fi
5590
5591fi
5592
5593if test -z "$lt_cv_prog_cc_pic"; then
5594 echo "$as_me:$LINENO: result: none" >&5
5595echo "${ECHO_T}none" >&6
5596else
5597 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5598echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5599
5600 # Check to make sure the pic_flag actually works.
5601 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5602echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5603 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605else
5606 save_CFLAGS="$CFLAGS"
5607 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5608 cat >conftest.$ac_ext <<_ACEOF
5609/* confdefs.h. */
5610_ACEOF
5611cat confdefs.h >>conftest.$ac_ext
5612cat >>conftest.$ac_ext <<_ACEOF
5613/* end confdefs.h. */
5614
5615int
5616main ()
5617{
5618
5619 ;
5620 return 0;
5621}
5622_ACEOF
5623rm -f conftest.$ac_objext
5624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; } &&
5638 { ac_try='test -s conftest.$ac_objext'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then
5644 case "$host_os" in
5645 hpux9* | hpux10* | hpux11*)
5646 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5647 # they create non-PIC objects. So, if there were any warnings, we
5648 # assume that PIC is not supported.
5649 if test -s conftest.err; then
5650 lt_cv_prog_cc_pic_works=no
5651 else
5652 lt_cv_prog_cc_pic_works=yes
5653 fi
5654 ;;
5655 *)
5656 lt_cv_prog_cc_pic_works=yes
5657 ;;
5658 esac
5659
5660else
5661 echo "$as_me: failed program was:" >&5
5662sed 's/^/| /' conftest.$ac_ext >&5
5663
5664 lt_cv_prog_cc_pic_works=no
5665
5666fi
5667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668 CFLAGS="$save_CFLAGS"
5669
5670fi
5671
5672
5673 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5674 lt_cv_prog_cc_pic=
5675 lt_cv_prog_cc_can_build_shared=no
5676 else
5677 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5678 fi
5679
5680 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5681echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5682fi
5683##
5684## END FIXME
5685
5686# Check for any special shared library compilation flags.
5687if test -n "$lt_cv_prog_cc_shlib"; then
5688 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5689echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5690 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5691 else
5692 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5693echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5694 lt_cv_prog_cc_can_build_shared=no
5695 fi
5696fi
5697
5698## FIXME: this should be a separate macro
5699##
5700echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5701echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5702if test "${lt_cv_prog_cc_static_works+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705 lt_cv_prog_cc_static_works=no
5706 save_LDFLAGS="$LDFLAGS"
5707 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5708 cat >conftest.$ac_ext <<_ACEOF
5709/* confdefs.h. */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h. */
5714
5715int
5716main ()
5717{
5718
5719 ;
5720 return 0;
5721}
5722_ACEOF
5723rm -f conftest.$ac_objext conftest$ac_exeext
5724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5725 (eval $ac_link) 2>conftest.er1
5726 ac_status=$?
5727 grep -v '^ *+' conftest.er1 >conftest.err
5728 rm -f conftest.er1
5729 cat conftest.err >&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 (eval $ac_try) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest$ac_exeext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740 (eval $ac_try) 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 lt_cv_prog_cc_static_works=yes
5745else
5746 echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749fi
5750rm -f conftest.err conftest.$ac_objext \
5751 conftest$ac_exeext conftest.$ac_ext
5752 LDFLAGS="$save_LDFLAGS"
5753
5754fi
5755
5756
5757# Belt *and* braces to stop my trousers falling down:
5758test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5759echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5760echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5761
5762pic_flag="$lt_cv_prog_cc_pic"
5763special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5764wl="$lt_cv_prog_cc_wl"
5765link_static_flag="$lt_cv_prog_cc_static"
5766no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5767can_build_shared="$lt_cv_prog_cc_can_build_shared"
5768##
5769## END FIXME
5770
5771
5772## FIXME: this should be a separate macro
5773##
5774# Check to see if options -o and -c are simultaneously supported by compiler
5775echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5776echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5777$rm -r conftest 2>/dev/null
5778mkdir conftest
5779cd conftest
5780echo "int some_variable = 0;" > conftest.$ac_ext
5781mkdir out
5782# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5783# that will create temporary files in the current directory regardless of
5784# the output directory. Thus, making CWD read-only will cause this test
5785# to fail, enabling locking or at least warning the user not to do parallel
5786# builds.
5787chmod -w .
5788save_CFLAGS="$CFLAGS"
5789CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5790compiler_c_o=no
5791if { (eval echo configure:5791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5792 # The compiler can only warn and ignore the option if not recognized
5793 # So say no if there are warnings
5794 if test -s out/conftest.err; then
5795 compiler_c_o=no
5796 else
5797 compiler_c_o=yes
5798 fi
5799else
5800 # Append any errors to the config.log.
5801 cat out/conftest.err 1>&5
5802 compiler_c_o=no
5803fi
5804echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5805echo "${ECHO_T}$compiler_c_o" >&6
5806CFLAGS="$save_CFLAGS"
5807chmod u+w .
5808$rm conftest* out/*
5809rmdir out
5810cd ..
5811rmdir conftest
5812$rm -r conftest 2>/dev/null
5813
5814if test x"$compiler_c_o" = x"yes"; then
5815 # Check to see if we can write to a .lo
5816 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5817echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5818 compiler_o_lo=no
5819 save_CFLAGS="$CFLAGS"
5820 CFLAGS="$CFLAGS -c -o conftest.lo"
5821 cat >conftest.$ac_ext <<_ACEOF
5822/* confdefs.h. */
5823_ACEOF
5824cat confdefs.h >>conftest.$ac_ext
5825cat >>conftest.$ac_ext <<_ACEOF
5826/* end confdefs.h. */
5827
5828int
5829main ()
5830{
5831int some_variable = 0;
5832 ;
5833 return 0;
5834}
5835_ACEOF
5836rm -f conftest.$ac_objext
5837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; } &&
5851 { ac_try='test -s conftest.$ac_objext'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853 (eval $ac_try) 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 # The compiler can only warn and ignore the option if not recognized
5858 # So say no if there are warnings
5859 if test -s conftest.err; then
5860 compiler_o_lo=no
5861 else
5862 compiler_o_lo=yes
5863 fi
5864
5865else
5866 echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869fi
5870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5871 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5872echo "${ECHO_T}$compiler_c_o" >&6
5873 CFLAGS="$save_CFLAGS"
5874else
5875 compiler_o_lo=no
5876fi
5877##
5878## END FIXME
5879
5880## FIXME: this should be a separate macro
5881##
5882# Check to see if we can do hard links to lock some files if needed
5883hard_links="nottested"
5884if test "$compiler_c_o" = no && test "$need_locks" != no; then
5885 # do not overwrite the value of need_locks provided by the user
5886 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5887echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5888 hard_links=yes
5889 $rm conftest*
5890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5891 touch conftest.a
5892 ln conftest.a conftest.b 2>&5 || hard_links=no
5893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5894 echo "$as_me:$LINENO: result: $hard_links" >&5
5895echo "${ECHO_T}$hard_links" >&6
5896 if test "$hard_links" = no; then
5897 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5898echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5899 need_locks=warn
5900 fi
5901else
5902 need_locks=no
5903fi
5904##
5905## END FIXME
5906
5907## FIXME: this should be a separate macro
5908##
5909if test "$GCC" = yes; then
5910 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5911 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5912echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5913 echo "int some_variable = 0;" > conftest.$ac_ext
5914 save_CFLAGS="$CFLAGS"
5915 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5916 compiler_rtti_exceptions=no
5917 cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h. */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h. */
5923
5924int
5925main ()
5926{
5927int some_variable = 0;
5928 ;
5929 return 0;
5930}
5931_ACEOF
5932rm -f conftest.$ac_objext
5933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5934 (eval $ac_compile) 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } &&
5941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 # The compiler can only warn and ignore the option if not recognized
5954 # So say no if there are warnings
5955 if test -s conftest.err; then
5956 compiler_rtti_exceptions=no
5957 else
5958 compiler_rtti_exceptions=yes
5959 fi
5960
5961else
5962 echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
5964
5965fi
5966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5967 CFLAGS="$save_CFLAGS"
5968 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5969echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5970
5971 if test "$compiler_rtti_exceptions" = "yes"; then
5972 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5973 else
5974 no_builtin_flag=' -fno-builtin'
5975 fi
5976fi
5977##
5978## END FIXME
5979
5980## FIXME: this should be a separate macro
5981##
5982# See if the linker supports building shared libraries.
5983echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5984echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5985
5986allow_undefined_flag=
5987no_undefined_flag=
5988need_lib_prefix=unknown
5989need_version=unknown
5990# when you set need_version to no, make sure it does not cause -set_version
5991# flags to be left without arguments
5992archive_cmds=
5993archive_expsym_cmds=
5994old_archive_from_new_cmds=
5995old_archive_from_expsyms_cmds=
5996export_dynamic_flag_spec=
5997whole_archive_flag_spec=
5998thread_safe_flag_spec=
5999hardcode_into_libs=no
6000hardcode_libdir_flag_spec=
6001hardcode_libdir_separator=
6002hardcode_direct=no
6003hardcode_minus_L=no
6004hardcode_shlibpath_var=unsupported
6005runpath_var=
6006link_all_deplibs=unknown
6007always_export_symbols=no
6008export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6009# include_expsyms should be a list of space-separated symbols to be *always*
6010# included in the symbol list
6011include_expsyms=
6012# exclude_expsyms can be an egrep regular expression of symbols to exclude
6013# it will be wrapped by ` (' and `)$', so one must not match beginning or
6014# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6015# as well as any symbol that contains `d'.
6016exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6017# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6018# platforms (ab)use it in PIC code, but their linkers get confused if
6019# the symbol is explicitly referenced. Since portable code cannot
6020# rely on this symbol name, it's probably fine to never include it in
6021# preloaded symbol tables.
6022extract_expsyms_cmds=
6023
6024case "$host_os" in
6025cygwin* | mingw* | pw32* )
6026 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6027 # When not using gcc, we currently assume that we are using
6028 # Microsoft Visual C++.
6029 if test "$GCC" != yes; then
6030 with_gnu_ld=no
6031 fi
6032 ;;
6033
6034esac
6035
6036ld_shlibs=yes
6037if test "$with_gnu_ld" = yes; then
6038 # If archive_cmds runs LD, not CC, wlarc should be empty
6039 wlarc='${wl}'
6040
6041 # See if GNU ld supports shared libraries.
6042 case "$host_os" in
6043 aix3* | aix4*)
6044 # On AIX, the GNU linker is very broken
6045 ld_shlibs=no
6046 cat <<EOF 1>&2
6047
6048*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6049*** to be unable to reliably create shared libraries on AIX.
6050*** Therefore, libtool is disabling shared libraries support. If you
6051*** really care for shared libraries, you may want to modify your PATH
6052*** so that a non-GNU linker is found, and then restart.
6053
6054EOF
6055 ;;
6056
6057 amigaos*)
6058 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)'
6059 hardcode_libdir_flag_spec='-L$libdir'
6060 hardcode_minus_L=yes
6061
6062 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6063 # that the semantics of dynamic libraries on AmigaOS, at least up
6064 # to version 4, is to share data among multiple programs linked
6065 # with the same dynamic library. Since this doesn't match the
6066 # behavior of shared libraries on other platforms, we can use
6067 # them.
6068 ld_shlibs=no
6069 ;;
6070
6071 beos*)
6072 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6073 allow_undefined_flag=unsupported
6074 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6075 # support --undefined. This deserves some investigation. FIXME
6076 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6077 else
6078 ld_shlibs=no
6079 fi
6080 ;;
6081
6082 cygwin* | mingw* | pw32*)
6083 # hardcode_libdir_flag_spec is actually meaningless, as there is
6084 # no search path for DLLs.
6085 hardcode_libdir_flag_spec='-L$libdir'
6086 allow_undefined_flag=unsupported
6087 always_export_symbols=yes
6088
6089 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6090 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6091 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6092 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6093 else $CC -o impgen impgen.c ; fi)~
6094 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
6095
6096 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6097
6098 # cygwin and mingw dlls have different entry points and sets of symbols
6099 # to exclude.
6100 # FIXME: what about values for MSVC?
6101 dll_entry=__cygwin_dll_entry@12
6102 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6103 case "$host_os" in
6104 mingw*)
6105 # mingw values
6106 dll_entry=_DllMainCRTStartup@12
6107 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6108 ;;
6109 esac
6110
6111 # mingw and cygwin differ, and it's simplest to just exclude the union
6112 # of the two symbol sets.
6113 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6114
6115 # recent cygwin and mingw systems supply a stub DllMain which the user
6116 # can override, but on older systems we have to supply one (in ltdll.c)
6117 if test "x$lt_cv_need_dllmain" = "xyes"; then
6118 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6119 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~
6120 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6121 else
6122 ltdll_obj=
6123 ltdll_cmds=
6124 fi
6125
6126 # Extract the symbol export list from an `--export-all' def file,
6127 # then regenerate the def file from the symbol export list, so that
6128 # the compiled dll only exports the symbol export list.
6129 # Be careful not to strip the DATA tag left be newer dlltools.
6130 export_symbols_cmds="$ltdll_cmds"'
6131 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6132 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6133
6134 # If DATA tags from a recent dlltool are present, honour them!
6135 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
6136 _lt_hint=1;
6137 cat $export_symbols | while read symbol; do
6138 set dummy \$symbol;
6139 case \$# in
6140 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6141 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6142 esac;
6143 _lt_hint=`expr 1 + \$_lt_hint`;
6144 done~
6145 '"$ltdll_cmds"'
6146 $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~
6147 $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~
6148 $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~
6149 $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~
6150 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6151 ;;
6152
6153 netbsd*)
6154 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6155 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6156 wlarc=
6157 else
6158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6159 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6160 fi
6161 ;;
6162
6163 solaris* | sysv5*)
6164 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6165 ld_shlibs=no
6166 cat <<EOF 1>&2
6167
6168*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6169*** create shared libraries on Solaris systems. Therefore, libtool
6170*** is disabling shared libraries support. We urge you to upgrade GNU
6171*** binutils to release 2.9.1 or newer. Another option is to modify
6172*** your PATH or compiler configuration so that the native linker is
6173*** used, and then restart.
6174
6175EOF
6176 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6179 else
6180 ld_shlibs=no
6181 fi
6182 ;;
6183
6184 sunos4*)
6185 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6186 wlarc=
6187 hardcode_direct=yes
6188 hardcode_shlibpath_var=no
6189 ;;
6190
6191 *)
6192 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6195 else
6196 ld_shlibs=no
6197 fi
6198 ;;
6199 esac
6200
6201 if test "$ld_shlibs" = yes; then
6202 runpath_var=LD_RUN_PATH
6203 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6204 export_dynamic_flag_spec='${wl}--export-dynamic'
6205 case $host_os in
6206 cygwin* | mingw* | pw32*)
6207 # dlltool doesn't understand --whole-archive et. al.
6208 whole_archive_flag_spec=
6209 ;;
6210 *)
6211 # ancient GNU ld didn't support --whole-archive et. al.
6212 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6213 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6214 else
6215 whole_archive_flag_spec=
6216 fi
6217 ;;
6218 esac
6219 fi
6220else
6221 # PORTME fill in a description of your system's linker (not GNU ld)
6222 case "$host_os" in
6223 aix3*)
6224 allow_undefined_flag=unsupported
6225 always_export_symbols=yes
6226 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'
6227 # Note: this linker hardcodes the directories in LIBPATH if there
6228 # are no directories specified by -L.
6229 hardcode_minus_L=yes
6230 if test "$GCC" = yes && test -z "$link_static_flag"; then
6231 # Neither direct hardcoding nor static linking is supported with a
6232 # broken collect2.
6233 hardcode_direct=unsupported
6234 fi
6235 ;;
6236
6237 aix4*)
6238 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6239 hardcode_libdir_separator=':'
6240 if test "$GCC" = yes; then
6241 collect2name=`${CC} -print-prog-name=collect2`
6242 if test -f "$collect2name" && \
6243 strings "$collect2name" | grep resolve_lib_name >/dev/null
6244 then
6245 # We have reworked collect2
6246 hardcode_direct=yes
6247 else
6248 # We have old collect2
6249 hardcode_direct=unsupported
6250 # It fails to find uninstalled libraries when the uninstalled
6251 # path is not listed in the libpath. Setting hardcode_minus_L
6252 # to unsupported forces relinking
6253 hardcode_minus_L=yes
6254 hardcode_libdir_flag_spec='-L$libdir'
6255 hardcode_libdir_separator=
6256 fi
6257 shared_flag='-shared'
6258 else
6259 shared_flag='${wl}-bM:SRE'
6260 hardcode_direct=yes
6261 fi
6262 allow_undefined_flag=' ${wl}-berok'
6263 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6264 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6265 case "$host_os" in aix4.[01]|aix4.[01].*)
6266 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6267 always_export_symbols=yes ;;
6268 esac
6269
6270 # We don't want to build shared libraries on unknown CPU types.
6271 case $host_cpu in
6272 powerpc | rs6000) ;;
6273 *) ld_shlibs=no ;;
6274 esac
6275 ;;
6276
6277 amigaos*)
6278 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)'
6279 hardcode_libdir_flag_spec='-L$libdir'
6280 hardcode_minus_L=yes
6281 # see comment about different semantics on the GNU ld section
6282 ld_shlibs=no
6283 ;;
6284
6285 cygwin* | mingw* | pw32*)
6286 # When not using gcc, we currently assume that we are using
6287 # Microsoft Visual C++.
6288 # hardcode_libdir_flag_spec is actually meaningless, as there is
6289 # no search path for DLLs.
6290 hardcode_libdir_flag_spec=' '
6291 allow_undefined_flag=unsupported
6292 # Tell ltmain to make .lib files, not .a files.
6293 libext=lib
6294 # FIXME: Setting linknames here is a bad hack.
6295 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6296 # The linker will automatically build a .lib file if we build a DLL.
6297 old_archive_from_new_cmds='true'
6298 # FIXME: Should let the user specify the lib program.
6299 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6300 fix_srcfile_path='`cygpath -w "$srcfile"`'
6301 ;;
6302
6303 darwin* | rhapsody*)
6304 allow_undefined_flag='-undefined warning'
6305 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6306 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6307 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6308 ## What we need is to hardcode the path to the library, not the search path
6309 #hardcode_direct=yes
6310 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6311 hardcode_shlibpath_var=no
6312 whole_archive_flag_spec='-all_load'
6313 ;;
6314
6315 freebsd1*)
6316 ld_shlibs=no
6317 ;;
6318
6319 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6320 # support. Future versions do this automatically, but an explicit c++rt0.o
6321 # does not break anything, and helps significantly (at the cost of a little
6322 # extra space).
6323 freebsd2.2*)
6324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6325 hardcode_libdir_flag_spec='-R$libdir'
6326 hardcode_direct=yes
6327 hardcode_shlibpath_var=no
6328 ;;
6329
6330 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6331 freebsd2*)
6332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6333 hardcode_direct=yes
6334 hardcode_minus_L=yes
6335 hardcode_shlibpath_var=no
6336 ;;
6337
6338 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6339 freebsd*)
6340 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6341 hardcode_libdir_flag_spec='-R$libdir'
6342 hardcode_direct=yes
6343 hardcode_shlibpath_var=no
6344 ;;
6345
6346 hpux9* | hpux10* | hpux11*)
6347 case "$host_os" in
6348 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' ;;
6349 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6350 esac
6351 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6352 hardcode_libdir_separator=:
6353 hardcode_direct=yes
6354 hardcode_minus_L=yes # Not in the search PATH, but as the default
6355 # location of the library.
6356 export_dynamic_flag_spec='${wl}-E'
6357 ;;
6358
6359 irix5* | irix6*)
6360 if test "$GCC" = yes; then
6361 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'
6362 else
6363 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'
6364 fi
6365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6366 hardcode_libdir_separator=:
6367 link_all_deplibs=yes
6368 ;;
6369
6370 netbsd*)
6371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6372 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6373 else
6374 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6375 fi
6376 hardcode_libdir_flag_spec='-R$libdir'
6377 hardcode_direct=yes
6378 hardcode_shlibpath_var=no
6379 ;;
6380
6381 newsos6)
6382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6383 hardcode_direct=yes
6384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6385 hardcode_libdir_separator=:
6386 hardcode_shlibpath_var=no
6387 ;;
6388
6389 openbsd*)
6390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6391 hardcode_libdir_flag_spec='-R$libdir'
6392 hardcode_direct=yes
6393 hardcode_shlibpath_var=no
6394 ;;
6395
6396 os2*)
6397 hardcode_libdir_flag_spec='-L$libdir'
6398 hardcode_minus_L=yes
6399 allow_undefined_flag=unsupported
6400 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'
6401 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6402 ;;
6403
6404 osf3*)
6405 if test "$GCC" = yes; then
6406 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6407 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'
6408 else
6409 allow_undefined_flag=' -expect_unresolved \*'
6410 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'
6411 fi
6412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6413 hardcode_libdir_separator=:
6414 ;;
6415
6416 osf4* | osf5*) # as osf3* with the addition of -msym flag
6417 if test "$GCC" = yes; then
6418 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6419 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'
6420 else
6421 allow_undefined_flag=' -expect_unresolved \*'
6422 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'
6423 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6424 $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'
6425 fi
6426#Both c and cxx compiler support -rpath directly
6427 hardcode_libdir_flag_spec='-rpath $libdir'
6428 hardcode_libdir_separator=:
6429 ;;
6430
6431 sco3.2v5*)
6432 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6433 hardcode_shlibpath_var=no
6434 runpath_var=LD_RUN_PATH
6435 hardcode_runpath_var=yes
6436 ;;
6437
6438 solaris*)
6439 no_undefined_flag=' -z text'
6440 # $CC -shared without GNU ld will not create a library from C++
6441 # object files and a static libstdc++, better avoid it by now
6442 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6443 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6444 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6445 hardcode_libdir_flag_spec='-R$libdir'
6446 hardcode_shlibpath_var=no
6447 case "$host_os" in
6448 solaris2.[0-5] | solaris2.[0-5].*) ;;
6449 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6450 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6451 esac
6452 link_all_deplibs=yes
6453 ;;
6454
6455 sunos4*)
6456 if test "x$host_vendor" = xsequent; then
6457 # Use $CC to link under sequent, because it throws in some extra .o
6458 # files that make .init and .fini sections work.
6459 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6460 else
6461 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6462 fi
6463 hardcode_libdir_flag_spec='-L$libdir'
6464 hardcode_direct=yes
6465 hardcode_minus_L=yes
6466 hardcode_shlibpath_var=no
6467 ;;
6468
6469 sysv4)
6470 if test "x$host_vendor" = xsno; then
6471 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6472 hardcode_direct=yes # is this really true???
6473 else
6474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6475 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6476 fi
6477 runpath_var='LD_RUN_PATH'
6478 hardcode_shlibpath_var=no
6479 ;;
6480
6481 sysv4.3*)
6482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6483 hardcode_shlibpath_var=no
6484 export_dynamic_flag_spec='-Bexport'
6485 ;;
6486
6487 sysv5*)
6488 no_undefined_flag=' -z text'
6489 # $CC -shared without GNU ld will not create a library from C++
6490 # object files and a static libstdc++, better avoid it by now
6491 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6492 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6493 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6494 hardcode_libdir_flag_spec=
6495 hardcode_shlibpath_var=no
6496 runpath_var='LD_RUN_PATH'
6497 ;;
6498
6499 uts4*)
6500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6501 hardcode_libdir_flag_spec='-L$libdir'
6502 hardcode_shlibpath_var=no
6503 ;;
6504
6505 dgux*)
6506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6507 hardcode_libdir_flag_spec='-L$libdir'
6508 hardcode_shlibpath_var=no
6509 ;;
6510
6511 sysv4*MP*)
6512 if test -d /usr/nec; then
6513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6514 hardcode_shlibpath_var=no
6515 runpath_var=LD_RUN_PATH
6516 hardcode_runpath_var=yes
6517 ld_shlibs=yes
6518 fi
6519 ;;
6520
6521 sysv4.2uw2*)
6522 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6523 hardcode_direct=yes
6524 hardcode_minus_L=no
6525 hardcode_shlibpath_var=no
6526 hardcode_runpath_var=yes
6527 runpath_var=LD_RUN_PATH
6528 ;;
6529
6530 unixware7*)
6531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6532 runpath_var='LD_RUN_PATH'
6533 hardcode_shlibpath_var=no
6534 ;;
6535
6536 *)
6537 ld_shlibs=no
6538 ;;
6539 esac
6540fi
6541echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6542echo "${ECHO_T}$ld_shlibs" >&6
6543test "$ld_shlibs" = no && can_build_shared=no
6544##
6545## END FIXME
6546
6547## FIXME: this should be a separate macro
6548##
6549# Check hardcoding attributes.
6550echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6551echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6552hardcode_action=
6553if test -n "$hardcode_libdir_flag_spec" || \
6554 test -n "$runpath_var"; then
6555
6556 # We can hardcode non-existant directories.
6557 if test "$hardcode_direct" != no &&
6558 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6559 # have to relink, otherwise we might link with an installed library
6560 # when we should be linking with a yet-to-be-installed one
6561 ## test "$hardcode_shlibpath_var" != no &&
6562 test "$hardcode_minus_L" != no; then
6563 # Linking always hardcodes the temporary library directory.
6564 hardcode_action=relink
6565 else
6566 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6567 hardcode_action=immediate
6568 fi
6569else
6570 # We cannot hardcode anything, or else we can only hardcode existing
6571 # directories.
6572 hardcode_action=unsupported
6573fi
6574echo "$as_me:$LINENO: result: $hardcode_action" >&5
6575echo "${ECHO_T}$hardcode_action" >&6
6576##
6577## END FIXME
6578
6579## FIXME: this should be a separate macro
6580##
6581striplib=
6582old_striplib=
6583echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6584echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6585if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6586 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6587 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6588 echo "$as_me:$LINENO: result: yes" >&5
6589echo "${ECHO_T}yes" >&6
6590else
6591 echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6
6593fi
6594##
6595## END FIXME
6596
6597reload_cmds='$LD$reload_flag -o $output$reload_objs'
6598test -z "$deplibs_check_method" && deplibs_check_method=unknown
6599
6600## FIXME: this should be a separate macro
6601##
6602# PORTME Fill in your ld.so characteristics
6603echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6604echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6605library_names_spec=
6606libname_spec='lib$name'
6607soname_spec=
6608postinstall_cmds=
6609postuninstall_cmds=
6610finish_cmds=
6611finish_eval=
6612shlibpath_var=
6613shlibpath_overrides_runpath=unknown
6614version_type=none
6615dynamic_linker="$host_os ld.so"
6616sys_lib_dlsearch_path_spec="/lib /usr/lib"
6617sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6618
6619case "$host_os" in
6620aix3*)
6621 version_type=linux
6622 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6623 shlibpath_var=LIBPATH
6624
6625 # AIX has no versioning support, so we append a major version to the name.
6626 soname_spec='${libname}${release}.so$major'
6627 ;;
6628
6629aix4*)
6630 version_type=linux
6631 # AIX has no versioning support, so currently we can not hardcode correct
6632 # soname into executable. Probably we can add versioning support to
6633 # collect2, so additional links can be useful in future.
6634 # We preserve .a as extension for shared libraries though AIX4.2
6635 # and later linker supports .so
6636 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6637 shlibpath_var=LIBPATH
6638 ;;
6639
6640amigaos*)
6641 library_names_spec='$libname.ixlibrary $libname.a'
6642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6643 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'
6644 ;;
6645
6646beos*)
6647 library_names_spec='${libname}.so'
6648 dynamic_linker="$host_os ld.so"
6649 shlibpath_var=LIBRARY_PATH
6650 ;;
6651
6652bsdi4*)
6653 version_type=linux
6654 need_version=no
6655 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6656 soname_spec='${libname}${release}.so$major'
6657 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6658 shlibpath_var=LD_LIBRARY_PATH
6659 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6660 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6661 export_dynamic_flag_spec=-rdynamic
6662 # the default ld.so.conf also contains /usr/contrib/lib and
6663 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6664 # libtool to hard-code these into programs
6665 ;;
6666
6667cygwin* | mingw* | pw32*)
6668 version_type=windows
6669 need_version=no
6670 need_lib_prefix=no
6671 if test "$GCC" = yes; then
6672 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6673 else
6674 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6675 fi
6676 dynamic_linker='Win32 ld.exe'
6677 # FIXME: first we should search . and the directory the executable is in
6678 shlibpath_var=PATH
6679 ;;
6680
6681darwin* | rhapsody*)
6682 need_lib_prefix=no
6683 need_version=no
6684 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6685 shlibpath_overrides_runpath=yes
6686 shlibpath_var=DYLD_LIBRARY_PATH
6687 postinstall_cmds='chmod +x $lib'
6688 ;;
6689
6690freebsd1*)
6691 dynamic_linker=no
6692 ;;
6693
6694freebsd*)
6695 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6696 version_type=freebsd-$objformat
6697 case "$version_type" in
6698 freebsd-elf*)
6699 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6700 need_version=no
6701 need_lib_prefix=no
6702 ;;
6703 freebsd-*)
6704 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6705 need_version=yes
6706 ;;
6707 esac
6708 shlibpath_var=LD_LIBRARY_PATH
6709 case "$host_os" in
6710 freebsd2*)
6711 shlibpath_overrides_runpath=yes
6712 ;;
6713 *)
6714 shlibpath_overrides_runpath=no
6715 hardcode_into_libs=yes
6716 ;;
6717 esac
6718 ;;
6719
6720gnu*)
6721 version_type=linux
6722 need_lib_prefix=no
6723 need_version=no
6724 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6725 soname_spec='${libname}${release}.so$major'
6726 shlibpath_var=LD_LIBRARY_PATH
6727 hardcode_into_libs=yes
6728 ;;
6729
6730hpux9* | hpux10* | hpux11*)
6731 # Give a soname corresponding to the major version so that dld.sl refuses to
6732 # link against other versions.
6733 dynamic_linker="$host_os dld.sl"
6734 version_type=sunos
6735 need_lib_prefix=no
6736 need_version=no
6737 shlibpath_var=SHLIB_PATH
6738 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6739 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6740 soname_spec='${libname}${release}.sl$major'
6741 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6742 postinstall_cmds='chmod 555 $lib'
6743 ;;
6744
6745irix5* | irix6*)
6746 version_type=irix
6747 need_lib_prefix=no
6748 need_version=no
6749 soname_spec='${libname}${release}.so$major'
6750 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6751 case "$host_os" in
6752 irix5*)
6753 libsuff= shlibsuff=
6754 ;;
6755 *)
6756 case "$LD" in # libtool.m4 will add one of these switches to LD
6757 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6758 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6759 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6760 *) libsuff= shlibsuff= libmagic=never-match;;
6761 esac
6762 ;;
6763 esac
6764 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6765 shlibpath_overrides_runpath=no
6766 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6767 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6768 ;;
6769
6770# No shared lib support for Linux oldld, aout, or coff.
6771linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6772 dynamic_linker=no
6773 ;;
6774
6775# This must be Linux ELF.
6776linux-gnu*)
6777 version_type=linux
6778 need_lib_prefix=no
6779 need_version=no
6780 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6781 soname_spec='${libname}${release}.so$major'
6782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6783 shlibpath_var=LD_LIBRARY_PATH
6784 shlibpath_overrides_runpath=no
6785 # This implies no fast_install, which is unacceptable.
6786 # Some rework will be needed to allow for fast_install
6787 # before this can be enabled.
6788 hardcode_into_libs=yes
6789
6790 # We used to test for /lib/ld.so.1 and disable shared libraries on
6791 # powerpc, because MkLinux only supported shared libraries with the
6792 # GNU dynamic linker. Since this was broken with cross compilers,
6793 # most powerpc-linux boxes support dynamic linking these days and
6794 # people can always --disable-shared, the test was removed, and we
6795 # assume the GNU/Linux dynamic linker is in use.
6796 dynamic_linker='GNU/Linux ld.so'
6797 ;;
6798
6799netbsd*)
6800 version_type=sunos
6801 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6802 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6803 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6804 dynamic_linker='NetBSD (a.out) ld.so'
6805 else
6806 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6807 soname_spec='${libname}${release}.so$major'
6808 dynamic_linker='NetBSD ld.elf_so'
6809 fi
6810 shlibpath_var=LD_LIBRARY_PATH
6811 shlibpath_overrides_runpath=yes
6812 hardcode_into_libs=yes
6813 ;;
6814
6815newsos6)
6816 version_type=linux
6817 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6818 shlibpath_var=LD_LIBRARY_PATH
6819 shlibpath_overrides_runpath=yes
6820 ;;
6821
6822openbsd*)
6823 version_type=sunos
6824 if test "$with_gnu_ld" = yes; then
6825 need_lib_prefix=no
6826 need_version=no
6827 fi
6828 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6830 shlibpath_var=LD_LIBRARY_PATH
6831 ;;
6832
6833os2*)
6834 libname_spec='$name'
6835 need_lib_prefix=no
6836 library_names_spec='$libname.dll $libname.a'
6837 dynamic_linker='OS/2 ld.exe'
6838 shlibpath_var=LIBPATH
6839 ;;
6840
6841osf3* | osf4* | osf5*)
6842 version_type=osf
6843 need_version=no
6844 soname_spec='${libname}${release}.so'
6845 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6846 shlibpath_var=LD_LIBRARY_PATH
6847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6849 ;;
6850
6851sco3.2v5*)
6852 version_type=osf
6853 soname_spec='${libname}${release}.so$major'
6854 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6855 shlibpath_var=LD_LIBRARY_PATH
6856 ;;
6857
6858solaris*)
6859 version_type=linux
6860 need_lib_prefix=no
6861 need_version=no
6862 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6863 soname_spec='${libname}${release}.so$major'
6864 shlibpath_var=LD_LIBRARY_PATH
6865 shlibpath_overrides_runpath=yes
6866 hardcode_into_libs=yes
6867 # ldd complains unless libraries are executable
6868 postinstall_cmds='chmod +x $lib'
6869 ;;
6870
6871sunos4*)
6872 version_type=sunos
6873 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6875 shlibpath_var=LD_LIBRARY_PATH
6876 shlibpath_overrides_runpath=yes
6877 if test "$with_gnu_ld" = yes; then
6878 need_lib_prefix=no
6879 fi
6880 need_version=yes
6881 ;;
6882
6883sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6884 version_type=linux
6885 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6886 soname_spec='${libname}${release}.so$major'
6887 shlibpath_var=LD_LIBRARY_PATH
6888 case "$host_vendor" in
6889 sni)
6890 shlibpath_overrides_runpath=no
6891 ;;
6892 motorola)
6893 need_lib_prefix=no
6894 need_version=no
6895 shlibpath_overrides_runpath=no
6896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6897 ;;
6898 esac
6899 ;;
6900
6901uts4*)
6902 version_type=linux
6903 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6904 soname_spec='${libname}${release}.so$major'
6905 shlibpath_var=LD_LIBRARY_PATH
6906 ;;
6907
6908dgux*)
6909 version_type=linux
6910 need_lib_prefix=no
6911 need_version=no
6912 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6913 soname_spec='${libname}${release}.so$major'
6914 shlibpath_var=LD_LIBRARY_PATH
6915 ;;
6916
6917sysv4*MP*)
6918 if test -d /usr/nec ;then
6919 version_type=linux
6920 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6921 soname_spec='$libname.so.$major'
6922 shlibpath_var=LD_LIBRARY_PATH
6923 fi
6924 ;;
6925
6926*)
6927 dynamic_linker=no
6928 ;;
6929esac
6930echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6931echo "${ECHO_T}$dynamic_linker" >&6
6932test "$dynamic_linker" = no && can_build_shared=no
6933##
6934## END FIXME
6935
6936## FIXME: this should be a separate macro
6937##
6938# Report the final consequences.
6939echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6940echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6941echo "$as_me:$LINENO: result: $can_build_shared" >&5
6942echo "${ECHO_T}$can_build_shared" >&6
6943##
6944## END FIXME
6945
6946if test "$hardcode_action" = relink; then
6947 # Fast installation is not supported
6948 enable_fast_install=no
6949elif test "$shlibpath_overrides_runpath" = yes ||
6950 test "$enable_shared" = no; then
6951 # Fast installation is not necessary
6952 enable_fast_install=needless
6953fi
6954
6955variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6956if test "$GCC" = yes; then
6957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6958fi
6959
6960if test "x$enable_dlopen" != xyes; then
6961 enable_dlopen=unknown
6962 enable_dlopen_self=unknown
6963 enable_dlopen_self_static=unknown
6964else
6965 lt_cv_dlopen=no
6966 lt_cv_dlopen_libs=
6967
6968 case "$host_os" in
6969 beos*)
6970 lt_cv_dlopen="load_add_on"
6971 lt_cv_dlopen_libs=
6972 lt_cv_dlopen_self=yes
6973 ;;
6974
6975 cygwin* | mingw* | pw32*)
6976 lt_cv_dlopen="LoadLibrary"
6977 lt_cv_dlopen_libs=
6978 ;;
6979
6980 *)
6981 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6982echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6983if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 ac_check_lib_save_LIBS=$LIBS
6987LIBS="-ldl $LIBS"
6988cat >conftest.$ac_ext <<_ACEOF
6989/* confdefs.h. */
6990_ACEOF
6991cat confdefs.h >>conftest.$ac_ext
6992cat >>conftest.$ac_ext <<_ACEOF
6993/* end confdefs.h. */
6994
6995/* Override any gcc2 internal prototype to avoid an error. */
6996#ifdef __cplusplus
6997extern "C"
6998#endif
6999/* We use char because int might match the return type of a gcc2
7000 builtin and then its argument prototype would still apply. */
7001char dlopen ();
7002int
7003main ()
7004{
7005dlopen ();
7006 ;
7007 return 0;
7008}
7009_ACEOF
7010rm -f conftest.$ac_objext conftest$ac_exeext
7011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012 (eval $ac_link) 2>conftest.er1
7013 ac_status=$?
7014 grep -v '^ *+' conftest.er1 >conftest.err
7015 rm -f conftest.er1
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } &&
7019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try='test -s conftest$ac_exeext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 (eval $ac_try) 2>&5
7028 ac_status=$?
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 ac_cv_lib_dl_dlopen=yes
7032else
7033 echo "$as_me: failed program was:" >&5
7034sed 's/^/| /' conftest.$ac_ext >&5
7035
7036ac_cv_lib_dl_dlopen=no
7037fi
7038rm -f conftest.err conftest.$ac_objext \
7039 conftest$ac_exeext conftest.$ac_ext
7040LIBS=$ac_check_lib_save_LIBS
7041fi
7042echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7043echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7044if test $ac_cv_lib_dl_dlopen = yes; then
7045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7046else
7047 echo "$as_me:$LINENO: checking for dlopen" >&5
7048echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7049if test "${ac_cv_func_dlopen+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052 cat >conftest.$ac_ext <<_ACEOF
7053/* confdefs.h. */
7054_ACEOF
7055cat confdefs.h >>conftest.$ac_ext
7056cat >>conftest.$ac_ext <<_ACEOF
7057/* end confdefs.h. */
7058/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 3876/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
7059 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7060#define dlopen innocuous_dlopen 3878#define sched_yield innocuous_sched_yield
7061 3879
7062/* System header to define __stub macros and hopefully few prototypes, 3880/* System header to define __stub macros and hopefully few prototypes,
7063 which can conflict with char dlopen (); below. 3881 which can conflict with char sched_yield (); below.
7064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7065 <limits.h> exists even on freestanding compilers. */ 3883 <limits.h> exists even on freestanding compilers. */
7066 3884
7067#ifdef __STDC__ 3885#ifdef __STDC__
7068# include <limits.h> 3886# include <limits.h>
7069#else 3887#else
7070# include <assert.h> 3888# include <assert.h>
7071#endif 3889#endif
7072 3890
7073#undef dlopen 3891#undef sched_yield
7074 3892
7075/* Override any gcc2 internal prototype to avoid an error. */ 3893/* Override any gcc2 internal prototype to avoid an error. */
7076#ifdef __cplusplus 3894#ifdef __cplusplus
7077extern "C" 3895extern "C"
7078{ 3896{
7079#endif 3897#endif
7080/* We use char because int might match the return type of a gcc2 3898/* We use char because int might match the return type of a gcc2
7081 builtin and then its argument prototype would still apply. */ 3899 builtin and then its argument prototype would still apply. */
7082char dlopen (); 3900char sched_yield ();
7083/* The GNU C library defines this for functions which it implements 3901/* The GNU C library defines this for functions which it implements
7084 to always fail with ENOSYS. Some functions are actually named 3902 to always fail with ENOSYS. Some functions are actually named
7085 something starting with __ and the normal name is an alias. */ 3903 something starting with __ and the normal name is an alias. */
7086#if defined (__stub_dlopen) || defined (__stub___dlopen) 3904#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
7087choke me 3905choke me
7088#else 3906#else
7089char (*f) () = dlopen; 3907char (*f) () = sched_yield;
7090#endif 3908#endif
7091#ifdef __cplusplus 3909#ifdef __cplusplus
7092} 3910}
7093#endif 3911#endif
7094 3912
7095int 3913int
7096main () 3914main ()
7097{ 3915{
7098return f != dlopen; 3916return f != sched_yield;
7099 ; 3917 ;
7100 return 0; 3918 return 0;
7101} 3919}
7102_ACEOF 3920_ACEOF
7103rm -f conftest.$ac_objext conftest$ac_exeext 3921rm -f conftest.$ac_objext conftest$ac_exeext
7119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 (eval $ac_try) 2>&5 3938 (eval $ac_try) 2>&5
7121 ac_status=$? 3939 ac_status=$?
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; }; then 3941 (exit $ac_status); }; }; then
7124 ac_cv_func_dlopen=yes 3942 ac_cv_func_sched_yield=yes
7125else 3943else
7126 echo "$as_me: failed program was:" >&5 3944 echo "$as_me: failed program was:" >&5
7127sed 's/^/| /' conftest.$ac_ext >&5 3945sed 's/^/| /' conftest.$ac_ext >&5
7128 3946
7129ac_cv_func_dlopen=no 3947ac_cv_func_sched_yield=no
7130fi 3948fi
7131rm -f conftest.err conftest.$ac_objext \ 3949rm -f conftest.err conftest.$ac_objext \
7132 conftest$ac_exeext conftest.$ac_ext 3950 conftest$ac_exeext conftest.$ac_ext
7133fi 3951fi
7134echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 3952echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
7135echo "${ECHO_T}$ac_cv_func_dlopen" >&6 3953echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
7136if test $ac_cv_func_dlopen = yes; then 3954if test $ac_cv_func_sched_yield = yes; then
7137 lt_cv_dlopen="dlopen" 3955 :
7138else 3956else
7139 echo "$as_me:$LINENO: checking for shl_load" >&5 3957 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
7140echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 3958echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
7141if test "${ac_cv_func_shl_load+set}" = set; then 3959if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
7142 echo $ECHO_N "(cached) $ECHO_C" >&6 3960 echo $ECHO_N "(cached) $ECHO_C" >&6
7143else 3961else
7144 cat >conftest.$ac_ext <<_ACEOF
7145/* confdefs.h. */
7146_ACEOF
7147cat confdefs.h >>conftest.$ac_ext
7148cat >>conftest.$ac_ext <<_ACEOF
7149/* end confdefs.h. */
7150/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7152#define shl_load innocuous_shl_load
7153
7154/* System header to define __stub macros and hopefully few prototypes,
7155 which can conflict with char shl_load (); below.
7156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7157 <limits.h> exists even on freestanding compilers. */
7158
7159#ifdef __STDC__
7160# include <limits.h>
7161#else
7162# include <assert.h>
7163#endif
7164
7165#undef shl_load
7166
7167/* Override any gcc2 internal prototype to avoid an error. */
7168#ifdef __cplusplus
7169extern "C"
7170{
7171#endif
7172/* We use char because int might match the return type of a gcc2
7173 builtin and then its argument prototype would still apply. */
7174char shl_load ();
7175/* The GNU C library defines this for functions which it implements
7176 to always fail with ENOSYS. Some functions are actually named
7177 something starting with __ and the normal name is an alias. */
7178#if defined (__stub_shl_load) || defined (__stub___shl_load)
7179choke me
7180#else
7181char (*f) () = shl_load;
7182#endif
7183#ifdef __cplusplus
7184}
7185#endif
7186
7187int
7188main ()
7189{
7190return f != shl_load;
7191 ;
7192 return 0;
7193}
7194_ACEOF
7195rm -f conftest.$ac_objext conftest$ac_exeext
7196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7197 (eval $ac_link) 2>conftest.er1
7198 ac_status=$?
7199 grep -v '^ *+' conftest.er1 >conftest.err
7200 rm -f conftest.er1
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } &&
7204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; } &&
7210 { ac_try='test -s conftest$ac_exeext'
7211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7212 (eval $ac_try) 2>&5
7213 ac_status=$?
7214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); }; }; then
7216 ac_cv_func_shl_load=yes
7217else
7218 echo "$as_me: failed program was:" >&5
7219sed 's/^/| /' conftest.$ac_ext >&5
7220
7221ac_cv_func_shl_load=no
7222fi
7223rm -f conftest.err conftest.$ac_objext \
7224 conftest$ac_exeext conftest.$ac_ext
7225fi
7226echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7227echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7228if test $ac_cv_func_shl_load = yes; then
7229 lt_cv_dlopen="shl_load"
7230else
7231 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7232echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7233if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7235else
7236 ac_check_lib_save_LIBS=$LIBS 3962 ac_check_lib_save_LIBS=$LIBS
7237LIBS="-lsvld $LIBS" 3963LIBS="-lrt $LIBS"
7238cat >conftest.$ac_ext <<_ACEOF 3964cat >conftest.$ac_ext <<_ACEOF
7239/* confdefs.h. */ 3965/* confdefs.h. */
7240_ACEOF 3966_ACEOF
7241cat confdefs.h >>conftest.$ac_ext 3967cat confdefs.h >>conftest.$ac_ext
7242cat >>conftest.$ac_ext <<_ACEOF 3968cat >>conftest.$ac_ext <<_ACEOF
7246#ifdef __cplusplus 3972#ifdef __cplusplus
7247extern "C" 3973extern "C"
7248#endif 3974#endif
7249/* We use char because int might match the return type of a gcc2 3975/* We use char because int might match the return type of a gcc2
7250 builtin and then its argument prototype would still apply. */ 3976 builtin and then its argument prototype would still apply. */
7251char dlopen (); 3977char sched_yield ();
7252int 3978int
7253main () 3979main ()
7254{ 3980{
7255dlopen (); 3981sched_yield ();
7256 ; 3982 ;
7257 return 0; 3983 return 0;
7258} 3984}
7259_ACEOF 3985_ACEOF
7260rm -f conftest.$ac_objext conftest$ac_exeext 3986rm -f conftest.$ac_objext conftest$ac_exeext
7276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 (eval $ac_try) 2>&5 4003 (eval $ac_try) 2>&5
7278 ac_status=$? 4004 ac_status=$?
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; }; then 4006 (exit $ac_status); }; }; then
7281 ac_cv_lib_svld_dlopen=yes 4007 ac_cv_lib_rt_sched_yield=yes
7282else 4008else
7283 echo "$as_me: failed program was:" >&5 4009 echo "$as_me: failed program was:" >&5
7284sed 's/^/| /' conftest.$ac_ext >&5 4010sed 's/^/| /' conftest.$ac_ext >&5
7285 4011
7286ac_cv_lib_svld_dlopen=no 4012ac_cv_lib_rt_sched_yield=no
7287fi 4013fi
7288rm -f conftest.err conftest.$ac_objext \ 4014rm -f conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext 4015 conftest$ac_exeext conftest.$ac_ext
7290LIBS=$ac_check_lib_save_LIBS 4016LIBS=$ac_check_lib_save_LIBS
7291fi 4017fi
7292echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 4018echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
7293echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 4019echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
7294if test $ac_cv_lib_svld_dlopen = yes; then 4020if test $ac_cv_lib_rt_sched_yield = yes; then
7295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 4021 LIBS="$LIBS -lrt"
7296else 4022fi
4023
4024fi
4025
4026
7297 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 4027echo "$as_me:$LINENO: checking for sched_yield support" >&5
7298echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 4028echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
7299if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
7302 ac_check_lib_save_LIBS=$LIBS
7303LIBS="-ldld $LIBS"
7304cat >conftest.$ac_ext <<_ACEOF 4029cat >conftest.$ac_ext <<_ACEOF
7305/* confdefs.h. */ 4030/* confdefs.h. */
7306_ACEOF 4031_ACEOF
7307cat confdefs.h >>conftest.$ac_ext 4032cat confdefs.h >>conftest.$ac_ext
7308cat >>conftest.$ac_ext <<_ACEOF 4033cat >>conftest.$ac_ext <<_ACEOF
7309/* end confdefs.h. */ 4034/* end confdefs.h. */
7310 4035#include <sched.h>
7311/* Override any gcc2 internal prototype to avoid an error. */
7312#ifdef __cplusplus
7313extern "C"
7314#endif
7315/* We use char because int might match the return type of a gcc2
7316 builtin and then its argument prototype would still apply. */
7317char shl_load ();
7318int 4036int
7319main () 4037main ()
7320{ 4038{
7321shl_load (); 4039sched_yield ()
7322 ; 4040 ;
7323 return 0; 4041 return 0;
7324} 4042}
7325_ACEOF 4043_ACEOF
7326rm -f conftest.$ac_objext conftest$ac_exeext 4044rm -f conftest.$ac_objext conftest$ac_exeext
7342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7343 (eval $ac_try) 2>&5 4061 (eval $ac_try) 2>&5
7344 ac_status=$? 4062 ac_status=$?
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then 4064 (exit $ac_status); }; }; then
7347 ac_cv_lib_dld_shl_load=yes 4065 echo "$as_me:$LINENO: result: yes" >&5
4066echo "${ECHO_T}yes" >&6
4067
4068cat >>confdefs.h <<\_ACEOF
4069#define HAVE_SCHED_YIELD 1
4070_ACEOF
4071
7348else 4072else
7349 echo "$as_me: failed program was:" >&5 4073 echo "$as_me: failed program was:" >&5
7350sed 's/^/| /' conftest.$ac_ext >&5 4074sed 's/^/| /' conftest.$ac_ext >&5
7351 4075
7352ac_cv_lib_dld_shl_load=no 4076echo "$as_me:$LINENO: result: no" >&5
4077echo "${ECHO_T}no" >&6
7353fi 4078fi
7354rm -f conftest.err conftest.$ac_objext \ 4079rm -f conftest.err conftest.$ac_objext \
7355 conftest$ac_exeext conftest.$ac_ext 4080 conftest$ac_exeext conftest.$ac_ext
7356LIBS=$ac_check_lib_save_LIBS
7357fi
7358echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7359echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7360if test $ac_cv_lib_dld_shl_load = yes; then
7361 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7362fi
7363 4081
7364 4082
7365fi
7366
7367
7368fi
7369
7370
7371fi
7372
7373
7374fi
7375
7376 ;;
7377 esac
7378
7379 if test "x$lt_cv_dlopen" != xno; then
7380 enable_dlopen=yes
7381 else
7382 enable_dlopen=no
7383 fi
7384
7385 case "$lt_cv_dlopen" in
7386 dlopen)
7387 save_CPPFLAGS="$CPP_FLAGS"
7388 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7389
7390 save_LDFLAGS="$LDFLAGS"
7391 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7392
7393 save_LIBS="$LIBS"
7394 LIBS="$lt_cv_dlopen_libs $LIBS"
7395
7396 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7397echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7398if test "${lt_cv_dlopen_self+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401 if test "$cross_compiling" = yes; then :
7402 lt_cv_dlopen_self=cross
7403else
7404 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7405 lt_status=$lt_dlunknown
7406 cat > conftest.$ac_ext <<EOF
7407#line 7407 "configure"
7408#include "confdefs.h"
7409
7410#if HAVE_DLFCN_H
7411#include <dlfcn.h>
7412#endif
7413
7414#include <stdio.h>
7415
7416#ifdef RTLD_GLOBAL
7417# define LT_DLGLOBAL RTLD_GLOBAL
7418#else
7419# ifdef DL_GLOBAL
7420# define LT_DLGLOBAL DL_GLOBAL
7421# else
7422# define LT_DLGLOBAL 0
7423# endif
7424#endif
7425
7426/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7427 find out it does not work in some platform. */
7428#ifndef LT_DLLAZY_OR_NOW
7429# ifdef RTLD_LAZY
7430# define LT_DLLAZY_OR_NOW RTLD_LAZY
7431# else
7432# ifdef DL_LAZY
7433# define LT_DLLAZY_OR_NOW DL_LAZY
7434# else
7435# ifdef RTLD_NOW
7436# define LT_DLLAZY_OR_NOW RTLD_NOW
7437# else
7438# ifdef DL_NOW
7439# define LT_DLLAZY_OR_NOW DL_NOW
7440# else
7441# define LT_DLLAZY_OR_NOW 0
7442# endif
7443# endif
7444# endif
7445# endif
7446#endif
7447
7448#ifdef __cplusplus
7449extern "C" void exit (int);
7450#endif
7451
7452fnord() { int i=42;}
7453main ()
7454{
7455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7456 int status = $lt_dlunknown;
7457
7458 if (self)
7459 {
7460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7461 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7462 /* dlclose (self); */
7463 }
7464
7465 exit (status);
7466}
7467EOF
7468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7469 (eval $ac_link) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7473 (./conftest; exit; ) 2>/dev/null
7474 lt_status=$?
7475 case x$lt_status in
7476 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7477 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7478 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7479 esac
7480 else :
7481 # compilation failed
7482 lt_cv_dlopen_self=no
7483 fi
7484fi
7485rm -fr conftest*
7486
7487
7488fi
7489echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7490echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7491
7492 if test "x$lt_cv_dlopen_self" = xyes; then
7493 LDFLAGS="$LDFLAGS $link_static_flag"
7494 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7495echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7496if test "${lt_cv_dlopen_self_static+set}" = set; then
7497 echo $ECHO_N "(cached) $ECHO_C" >&6
7498else
7499 if test "$cross_compiling" = yes; then :
7500 lt_cv_dlopen_self_static=cross
7501else
7502 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7503 lt_status=$lt_dlunknown
7504 cat > conftest.$ac_ext <<EOF
7505#line 7505 "configure"
7506#include "confdefs.h"
7507
7508#if HAVE_DLFCN_H
7509#include <dlfcn.h>
7510#endif
7511
7512#include <stdio.h>
7513
7514#ifdef RTLD_GLOBAL
7515# define LT_DLGLOBAL RTLD_GLOBAL
7516#else
7517# ifdef DL_GLOBAL
7518# define LT_DLGLOBAL DL_GLOBAL
7519# else
7520# define LT_DLGLOBAL 0
7521# endif
7522#endif
7523
7524/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7525 find out it does not work in some platform. */
7526#ifndef LT_DLLAZY_OR_NOW
7527# ifdef RTLD_LAZY
7528# define LT_DLLAZY_OR_NOW RTLD_LAZY
7529# else
7530# ifdef DL_LAZY
7531# define LT_DLLAZY_OR_NOW DL_LAZY
7532# else
7533# ifdef RTLD_NOW
7534# define LT_DLLAZY_OR_NOW RTLD_NOW
7535# else
7536# ifdef DL_NOW
7537# define LT_DLLAZY_OR_NOW DL_NOW
7538# else
7539# define LT_DLLAZY_OR_NOW 0
7540# endif
7541# endif
7542# endif
7543# endif
7544#endif
7545
7546#ifdef __cplusplus
7547extern "C" void exit (int);
7548#endif
7549
7550fnord() { int i=42;}
7551main ()
7552{
7553 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7554 int status = $lt_dlunknown;
7555
7556 if (self)
7557 {
7558 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7559 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7560 /* dlclose (self); */
7561 }
7562
7563 exit (status);
7564}
7565EOF
7566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7567 (eval $ac_link) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7571 (./conftest; exit; ) 2>/dev/null
7572 lt_status=$?
7573 case x$lt_status in
7574 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7575 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7576 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7577 esac
7578 else :
7579 # compilation failed
7580 lt_cv_dlopen_self_static=no
7581 fi
7582fi
7583rm -fr conftest*
7584
7585
7586fi
7587echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7588echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7589 fi
7590
7591 CPPFLAGS="$save_CPPFLAGS"
7592 LDFLAGS="$save_LDFLAGS"
7593 LIBS="$save_LIBS"
7594 ;;
7595 esac
7596
7597 case "$lt_cv_dlopen_self" in
7598 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7599 *) enable_dlopen_self=unknown ;;
7600 esac
7601
7602 case "$lt_cv_dlopen_self_static" in
7603 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7604 *) enable_dlopen_self_static=unknown ;;
7605 esac
7606fi
7607
7608
7609## FIXME: this should be a separate macro
7610##
7611if test "$enable_shared" = yes && test "$GCC" = yes; then
7612 case "$archive_cmds" in
7613 *'~'*)
7614 # FIXME: we may have to deal with multi-command sequences.
7615 ;;
7616 '$CC '*)
7617 # Test whether the compiler implicitly links with -lc since on some
7618 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7619 # to ld, don't add -lc before -lgcc.
7620 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7621echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7622 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7624else
7625 $rm conftest*
7626 echo 'static int dummy;' > conftest.$ac_ext
7627
7628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7629 (eval $ac_compile) 2>&5
7630 ac_status=$?
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; then
7633 soname=conftest
7634 lib=conftest
7635 libobjs=conftest.$ac_objext
7636 deplibs=
7637 wl=$lt_cv_prog_cc_wl
7638 compiler_flags=-v
7639 linker_flags=-v
7640 verstring=
7641 output_objdir=.
7642 libname=conftest
7643 save_allow_undefined_flag=$allow_undefined_flag
7644 allow_undefined_flag=
7645 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7646 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7647 ac_status=$?
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); }
7650 then
7651 lt_cv_archive_cmds_need_lc=no
7652 else
7653 lt_cv_archive_cmds_need_lc=yes
7654 fi
7655 allow_undefined_flag=$save_allow_undefined_flag
7656 else
7657 cat conftest.err 1>&5
7658 fi
7659fi
7660
7661 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7662echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7663 ;;
7664 esac
7665fi
7666need_lc=${lt_cv_archive_cmds_need_lc-yes}
7667##
7668## END FIXME
7669
7670## FIXME: this should be a separate macro
7671##
7672# The second clause should only fire when bootstrapping the
7673# libtool distribution, otherwise you forgot to ship ltmain.sh
7674# with your package, and you will get complaints that there are
7675# no rules to generate ltmain.sh.
7676if test -f "$ltmain"; then
7677 :
7678else
7679 # If there is no Makefile yet, we rely on a make rule to execute
7680 # `config.status --recheck' to rerun these tests and create the
7681 # libtool script then.
7682 test -f Makefile && make "$ltmain"
7683fi
7684
7685if test -f "$ltmain"; then
7686 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7687 $rm -f "${ofile}T"
7688
7689 echo creating $ofile
7690
7691 # Now quote all the things that may contain metacharacters while being
7692 # careful not to overquote the AC_SUBSTed values. We take copies of the
7693 # variables and quote the copies for generation of the libtool script.
7694 for var in echo old_CC old_CFLAGS \
7695 AR AR_FLAGS CC LD LN_S NM SHELL \
7696 reload_flag reload_cmds wl \
7697 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7698 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7699 library_names_spec soname_spec \
7700 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7701 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7702 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7703 old_striplib striplib file_magic_cmd export_symbols_cmds \
7704 deplibs_check_method allow_undefined_flag no_undefined_flag \
7705 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7706 hardcode_libdir_flag_spec hardcode_libdir_separator \
7707 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7708 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7709
7710 case "$var" in
7711 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7712 old_postinstall_cmds | old_postuninstall_cmds | \
7713 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7714 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7715 postinstall_cmds | postuninstall_cmds | \
7716 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7717 # Double-quote double-evaled strings.
7718 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7719 ;;
7720 *)
7721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7722 ;;
7723 esac
7724 done
7725
7726 cat <<__EOF__ > "${ofile}T"
7727#! $SHELL
7728
7729# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7730# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7731# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7732#
7733# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7734# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7735#
7736# This program is free software; you can redistribute it and/or modify
7737# it under the terms of the GNU General Public License as published by
7738# the Free Software Foundation; either version 2 of the License, or
7739# (at your option) any later version.
7740#
7741# This program is distributed in the hope that it will be useful, but
7742# WITHOUT ANY WARRANTY; without even the implied warranty of
7743# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7744# General Public License for more details.
7745#
7746# You should have received a copy of the GNU General Public License
7747# along with this program; if not, write to the Free Software
7748# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7749#
7750# As a special exception to the GNU General Public License, if you
7751# distribute this file as part of a program that contains a
7752# configuration script generated by Autoconf, you may include it under
7753# the same distribution terms that you use for the rest of that program.
7754
7755# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7756Xsed="sed -e s/^X//"
7757
7758# The HP-UX ksh and POSIX shell print the target directory to stdout
7759# if CDPATH is set.
7760if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7761
7762# ### BEGIN LIBTOOL CONFIG
7763
7764# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7765
7766# Shell to use when invoking shell scripts.
7767SHELL=$lt_SHELL
7768
7769# Whether or not to build shared libraries.
7770build_libtool_libs=$enable_shared
7771
7772# Whether or not to add -lc for building shared libraries.
7773build_libtool_need_lc=$need_lc
7774
7775# Whether or not to build static libraries.
7776build_old_libs=$enable_static
7777
7778# Whether or not to optimize for fast installation.
7779fast_install=$enable_fast_install
7780
7781# The host system.
7782host_alias=$host_alias
7783host=$host
7784
7785# An echo program that does not interpret backslashes.
7786echo=$lt_echo
7787
7788# The archiver.
7789AR=$lt_AR
7790AR_FLAGS=$lt_AR_FLAGS
7791
7792# The default C compiler.
7793CC=$lt_CC
7794
7795# Is the compiler the GNU C compiler?
7796with_gcc=$GCC
7797
7798# The linker used to build libraries.
7799LD=$lt_LD
7800
7801# Whether we need hard or soft links.
7802LN_S=$lt_LN_S
7803
7804# A BSD-compatible nm program.
7805NM=$lt_NM
7806
7807# A symbol stripping program
7808STRIP=$STRIP
7809
7810# Used to examine libraries when file_magic_cmd begins "file"
7811MAGIC_CMD=$MAGIC_CMD
7812
7813# Used on cygwin: DLL creation program.
7814DLLTOOL="$DLLTOOL"
7815
7816# Used on cygwin: object dumper.
7817OBJDUMP="$OBJDUMP"
7818
7819# Used on cygwin: assembler.
7820AS="$AS"
7821
7822# The name of the directory that contains temporary libtool files.
7823objdir=$objdir
7824
7825# How to create reloadable object files.
7826reload_flag=$lt_reload_flag
7827reload_cmds=$lt_reload_cmds
7828
7829# How to pass a linker flag through the compiler.
7830wl=$lt_wl
7831
7832# Object file suffix (normally "o").
7833objext="$ac_objext"
7834
7835# Old archive suffix (normally "a").
7836libext="$libext"
7837
7838# Executable file suffix (normally "").
7839exeext="$exeext"
7840
7841# Additional compiler flags for building library objects.
7842pic_flag=$lt_pic_flag
7843pic_mode=$pic_mode
7844
7845# Does compiler simultaneously support -c and -o options?
7846compiler_c_o=$lt_compiler_c_o
7847
7848# Can we write directly to a .lo ?
7849compiler_o_lo=$lt_compiler_o_lo
7850
7851# Must we lock files when doing compilation ?
7852need_locks=$lt_need_locks
7853
7854# Do we need the lib prefix for modules?
7855need_lib_prefix=$need_lib_prefix
7856
7857# Do we need a version for libraries?
7858need_version=$need_version
7859
7860# Whether dlopen is supported.
7861dlopen_support=$enable_dlopen
7862
7863# Whether dlopen of programs is supported.
7864dlopen_self=$enable_dlopen_self
7865
7866# Whether dlopen of statically linked programs is supported.
7867dlopen_self_static=$enable_dlopen_self_static
7868
7869# Compiler flag to prevent dynamic linking.
7870link_static_flag=$lt_link_static_flag
7871
7872# Compiler flag to turn off builtin functions.
7873no_builtin_flag=$lt_no_builtin_flag
7874
7875# Compiler flag to allow reflexive dlopens.
7876export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7877
7878# Compiler flag to generate shared objects directly from archives.
7879whole_archive_flag_spec=$lt_whole_archive_flag_spec
7880
7881# Compiler flag to generate thread-safe objects.
7882thread_safe_flag_spec=$lt_thread_safe_flag_spec
7883
7884# Library versioning type.
7885version_type=$version_type
7886
7887# Format of library name prefix.
7888libname_spec=$lt_libname_spec
7889
7890# List of archive names. First name is the real one, the rest are links.
7891# The last name is the one that the linker finds with -lNAME.
7892library_names_spec=$lt_library_names_spec
7893
7894# The coded name of the library, if different from the real name.
7895soname_spec=$lt_soname_spec
7896
7897# Commands used to build and install an old-style archive.
7898RANLIB=$lt_RANLIB
7899old_archive_cmds=$lt_old_archive_cmds
7900old_postinstall_cmds=$lt_old_postinstall_cmds
7901old_postuninstall_cmds=$lt_old_postuninstall_cmds
7902
7903# Create an old-style archive from a shared archive.
7904old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7905
7906# Create a temporary old-style archive to link instead of a shared archive.
7907old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7908
7909# Commands used to build and install a shared archive.
7910archive_cmds=$lt_archive_cmds
7911archive_expsym_cmds=$lt_archive_expsym_cmds
7912postinstall_cmds=$lt_postinstall_cmds
7913postuninstall_cmds=$lt_postuninstall_cmds
7914
7915# Commands to strip libraries.
7916old_striplib=$lt_old_striplib
7917striplib=$lt_striplib
7918
7919# Method to check whether dependent libraries are shared objects.
7920deplibs_check_method=$lt_deplibs_check_method
7921
7922# Command to use when deplibs_check_method == file_magic.
7923file_magic_cmd=$lt_file_magic_cmd
7924
7925# Flag that allows shared libraries with undefined symbols to be built.
7926allow_undefined_flag=$lt_allow_undefined_flag
7927
7928# Flag that forces no undefined symbols.
7929no_undefined_flag=$lt_no_undefined_flag
7930
7931# Commands used to finish a libtool library installation in a directory.
7932finish_cmds=$lt_finish_cmds
7933
7934# Same as above, but a single script fragment to be evaled but not shown.
7935finish_eval=$lt_finish_eval
7936
7937# Take the output of nm and produce a listing of raw symbols and C names.
7938global_symbol_pipe=$lt_global_symbol_pipe
7939
7940# Transform the output of nm in a proper C declaration
7941global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7942
7943# This is the shared library runtime path variable.
7944runpath_var=$runpath_var
7945
7946# This is the shared library path variable.
7947shlibpath_var=$shlibpath_var
7948
7949# Is shlibpath searched before the hard-coded library search path?
7950shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7951
7952# How to hardcode a shared library path into an executable.
7953hardcode_action=$hardcode_action
7954
7955# Whether we should hardcode library paths into libraries.
7956hardcode_into_libs=$hardcode_into_libs
7957
7958# Flag to hardcode \$libdir into a binary during linking.
7959# This must work even if \$libdir does not exist.
7960hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7961
7962# Whether we need a single -rpath flag with a separated argument.
7963hardcode_libdir_separator=$lt_hardcode_libdir_separator
7964
7965# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7966# resulting binary.
7967hardcode_direct=$hardcode_direct
7968
7969# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7970# resulting binary.
7971hardcode_minus_L=$hardcode_minus_L
7972
7973# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7974# the resulting binary.
7975hardcode_shlibpath_var=$hardcode_shlibpath_var
7976
7977# Variables whose values should be saved in libtool wrapper scripts and
7978# restored at relink time.
7979variables_saved_for_relink="$variables_saved_for_relink"
7980
7981# Whether libtool must link a program against all its dependency libraries.
7982link_all_deplibs=$link_all_deplibs
7983
7984# Compile-time system search path for libraries
7985sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7986
7987# Run-time system search path for libraries
7988sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7989
7990# Fix the shell variable \$srcfile for the compiler.
7991fix_srcfile_path="$fix_srcfile_path"
7992
7993# Set to yes if exported symbols are required.
7994always_export_symbols=$always_export_symbols
7995
7996# The commands to list exported symbols.
7997export_symbols_cmds=$lt_export_symbols_cmds
7998
7999# The commands to extract the exported symbol list from a shared archive.
8000extract_expsyms_cmds=$lt_extract_expsyms_cmds
8001
8002# Symbols that should not be listed in the preloaded symbols.
8003exclude_expsyms=$lt_exclude_expsyms
8004
8005# Symbols that must always be exported.
8006include_expsyms=$lt_include_expsyms
8007
8008# ### END LIBTOOL CONFIG
8009
8010__EOF__
8011
8012 case "$host_os" in
8013 aix3*)
8014 cat <<\EOF >> "${ofile}T"
8015
8016# AIX sometimes has problems with the GCC collect2 program. For some
8017# reason, if we set the COLLECT_NAMES environment variable, the problems
8018# vanish in a puff of smoke.
8019if test "X${COLLECT_NAMES+set}" != Xset; then
8020 COLLECT_NAMES=
8021 export COLLECT_NAMES
8022fi
8023EOF
8024 ;;
8025 esac
8026
8027 case "$host_os" in
8028 cygwin* | mingw* | pw32* | os2*)
8029 cat <<'EOF' >> "${ofile}T"
8030 # This is a source program that is used to create dlls on Windows
8031 # Don't remove nor modify the starting and closing comments
8032# /* ltdll.c starts here */
8033# #define WIN32_LEAN_AND_MEAN
8034# #include <windows.h>
8035# #undef WIN32_LEAN_AND_MEAN
8036# #include <stdio.h>
8037#
8038# #ifndef __CYGWIN__
8039# # ifdef __CYGWIN32__
8040# # define __CYGWIN__ __CYGWIN32__
8041# # endif
8042# #endif
8043#
8044# #ifdef __cplusplus
8045# extern "C" {
8046# #endif
8047# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8048# #ifdef __cplusplus
8049# }
8050# #endif
8051#
8052# #ifdef __CYGWIN__
8053# #include <cygwin/cygwin_dll.h>
8054# DECLARE_CYGWIN_DLL( DllMain );
8055# #endif
8056# HINSTANCE __hDllInstance_base;
8057#
8058# BOOL APIENTRY
8059# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8060# {
8061# __hDllInstance_base = hInst;
8062# return TRUE;
8063# }
8064# /* ltdll.c ends here */
8065 # This is a source program that is used to create import libraries
8066 # on Windows for dlls which lack them. Don't remove nor modify the
8067 # starting and closing comments
8068# /* impgen.c starts here */
8069# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8070#
8071# This file is part of GNU libtool.
8072#
8073# This program is free software; you can redistribute it and/or modify
8074# it under the terms of the GNU General Public License as published by
8075# the Free Software Foundation; either version 2 of the License, or
8076# (at your option) any later version.
8077#
8078# This program is distributed in the hope that it will be useful,
8079# but WITHOUT ANY WARRANTY; without even the implied warranty of
8080# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8081# GNU General Public License for more details.
8082#
8083# You should have received a copy of the GNU General Public License
8084# along with this program; if not, write to the Free Software
8085# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8086# */
8087#
8088# #include <stdio.h> /* for printf() */
8089# #include <unistd.h> /* for open(), lseek(), read() */
8090# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8091# #include <string.h> /* for strdup() */
8092#
8093# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8094# #ifndef O_BINARY
8095# #define O_BINARY 0
8096# #endif
8097#
8098# static unsigned int
8099# pe_get16 (fd, offset)
8100# int fd;
8101# int offset;
8102# {
8103# unsigned char b[2];
8104# lseek (fd, offset, SEEK_SET);
8105# read (fd, b, 2);
8106# return b[0] + (b[1]<<8);
8107# }
8108#
8109# static unsigned int
8110# pe_get32 (fd, offset)
8111# int fd;
8112# int offset;
8113# {
8114# unsigned char b[4];
8115# lseek (fd, offset, SEEK_SET);
8116# read (fd, b, 4);
8117# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8118# }
8119#
8120# static unsigned int
8121# pe_as32 (ptr)
8122# void *ptr;
8123# {
8124# unsigned char *b = ptr;
8125# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8126# }
8127#
8128# int
8129# main (argc, argv)
8130# int argc;
8131# char *argv[];
8132# {
8133# int dll;
8134# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8135# unsigned long export_rva, export_size, nsections, secptr, expptr;
8136# unsigned long name_rvas, nexp;
8137# unsigned char *expdata, *erva;
8138# char *filename, *dll_name;
8139#
8140# filename = argv[1];
8141#
8142# dll = open(filename, O_RDONLY|O_BINARY);
8143# if (!dll)
8144# return 1;
8145#
8146# dll_name = filename;
8147#
8148# for (i=0; filename[i]; i++)
8149# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8150# dll_name = filename + i +1;
8151#
8152# pe_header_offset = pe_get32 (dll, 0x3c);
8153# opthdr_ofs = pe_header_offset + 4 + 20;
8154# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8155#
8156# if (num_entries < 1) /* no exports */
8157# return 1;
8158#
8159# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8160# export_size = pe_get32 (dll, opthdr_ofs + 100);
8161# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8162# secptr = (pe_header_offset + 4 + 20 +
8163# pe_get16 (dll, pe_header_offset + 4 + 16));
8164#
8165# expptr = 0;
8166# for (i = 0; i < nsections; i++)
8167# {
8168# char sname[8];
8169# unsigned long secptr1 = secptr + 40 * i;
8170# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8171# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8172# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8173# lseek(dll, secptr1, SEEK_SET);
8174# read(dll, sname, 8);
8175# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8176# {
8177# expptr = fptr + (export_rva - vaddr);
8178# if (export_rva + export_size > vaddr + vsize)
8179# export_size = vsize - (export_rva - vaddr);
8180# break;
8181# }
8182# }
8183#
8184# expdata = (unsigned char*)malloc(export_size);
8185# lseek (dll, expptr, SEEK_SET);
8186# read (dll, expdata, export_size);
8187# erva = expdata - export_rva;
8188#
8189# nexp = pe_as32 (expdata+24);
8190# name_rvas = pe_as32 (expdata+32);
8191#
8192# printf ("EXPORTS\n");
8193# for (i = 0; i<nexp; i++)
8194# {
8195# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8196# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8197# }
8198#
8199# return 0;
8200# }
8201# /* impgen.c ends here */
8202
8203EOF
8204 ;;
8205 esac
8206
8207 # We use sed instead of cat because bash on DJGPP gets confused if
8208 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8209 # text mode, it properly converts lines to CR/LF. This bash problem
8210 # is reportedly fixed, but why not run on old versions too?
8211 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8212
8213 mv -f "${ofile}T" "$ofile" || \
8214 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8215 chmod +x "$ofile"
8216fi
8217##
8218## END FIXME
8219
8220
8221
8222
8223
8224# This can be used to rebuild libtool when needed
8225LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8226
8227# Always use our own libtool.
8228LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8229
8230# Prevent multiple expansion
8231
8232
8233MALLOC_TYPE=S
8234support_addstrings=no
8235support_frills=no 4083support_frills=yes
8236support_linespace=no
8237support_inheritpixmap=no 4084support_inheritpixmap=yes
8238support_tinting=no 4085support_tinting=yes
4086support_fading=yes
8239support_keepscrolling=no 4087support_keepscrolling=yes
8240support_selectionscrolling=no 4088support_selectionscrolling=yes
8241support_menubar=no
8242support_mousewheel=no 4089support_mousewheel=yes
8243support_mouseslipwheel=no 4090support_mouseslipwheel=yes
8244support_utmp=no
8245support_wtmp=no
8246support_lastlog=no
8247support_cursor_blink=no
8248support_text_blink=no 4091support_text_blink=yes
8249support_pointer_blank=no 4092support_pointer_blank=yes
8250support_scroll_rxvt=no 4093support_scroll_rxvt=yes
8251support_scroll_next=no 4094support_scroll_next=yes
8252support_scroll_xterm=no 4095support_scroll_xterm=yes
8253support_scroll_plain=no 4096support_scroll_plain=yes
8254support_xim=no 4097support_xim=yes
8255support_xpm=no 4098support_xpm=yes
8256support_xft=no 4099support_xft=yes
8257support_unicode3=no 4100support_unicode3=no
8258support_combining=no 4101support_combining=yes
8259support_8bitctrls=no 4102support_8bitctrls=no
4103support_iso14755=yes
4104support_styles=yes
4105support_perl=yes
8260codesets= 4106codesets=all
8261 4107
8262 4108
8263if test "x$enable_shared" = xyes; then 4109if test "x$enable_shared" = xyes; then
8264 4110
8265cat >>confdefs.h <<\_ACEOF 4111cat >>confdefs.h <<\_ACEOF
8271 4117
8272 4118
8273# Check whether --enable-everything or --disable-everything was given. 4119# Check whether --enable-everything or --disable-everything was given.
8274if test "${enable_everything+set}" = set; then 4120if test "${enable_everything+set}" = set; then
8275 enableval="$enable_everything" 4121 enableval="$enable_everything"
4122
4123 if test x$enableval = xno; then
4124 support_frills=no
4125 support_inheritpixmap=no
4126 support_tinting=no
4127 support_fading=no
4128 support_keepscrolling=no
4129 support_selectionscrolling=no
4130 support_lastlog=no
4131 support_mousewheel=no
4132 support_mouseslipwheel=no
4133 support_text_blink=no
4134 support_pointer_blank=no
4135 support_scroll_rxvt=no
4136 support_scroll_next=no
4137 support_scroll_xterm=no
4138 support_scroll_plain=no
4139 support_utmp=no
4140 support_wtmp=no
4141 support_xim=no
4142 support_xpm=no
4143 support_xft=no
4144 support_unicode3=no
4145 support_combining=no
4146 support_8bitctrls=no
4147 support_iso14755=no
4148 support_styles=no
4149 support_perl=no
4150 codesets=
4151 fi
8276 if test x$enableval = xyes; then 4152 if test x$enableval = xyes; then
8277 support_24bit=yes
8278 support_frills=yes 4153 support_frills=yes
8279 support_linespace=yes
8280 support_inheritpixmap=yes 4154 support_inheritpixmap=yes
8281 support_tinting=yes 4155 support_tinting=yes
4156 support_fading=yes
8282 support_keepscrolling=yes 4157 support_keepscrolling=yes
8283 support_selectionscrolling=yes 4158 support_selectionscrolling=yes
8284 support_lastlog=yes 4159 support_lastlog=yes
8285 support_menubar=yes
8286 support_mousewheel=yes 4160 support_mousewheel=yes
8287 support_mouseslipwheel=yes 4161 support_mouseslipwheel=yes
8288 support_cursor_blink=yes
8289 support_text_blink=yes 4162 support_text_blink=yes
8290 support_pointer_blank=yes 4163 support_pointer_blank=yes
8291 support_scroll_rxvt=yes 4164 support_scroll_rxvt=yes
8292 support_scroll_next=yes 4165 support_scroll_next=yes
8293 support_scroll_xterm=yes 4166 support_scroll_xterm=yes
8294 support_scroll_plain=yes 4167 support_scroll_plain=yes
8295 support_utmp=yes 4168 support_utmp=yes
8296 support_wtmp=yes 4169 support_wtmp=yes
8297 support_xim=yes 4170 support_xim=yes
8298 support_xpm=yes 4171 support_xpm=yes
8299 support_xft=yes 4172 support_xft=yes
8300 support_unicode3=yes 4173 support_unicode3=yes
8301 support_combining=yes 4174 support_combining=yes
8302 #support_8bitctrls=yes 4175 #support_8bitctrls=yes
4176 support_iso14755=yes
4177 support_styles=yes
4178 support_perl=yes
8303 codesets=all 4179 codesets=all
8304 fi 4180 fi
4181
8305fi; 4182fi;
8306 4183
8307# Check whether --enable-unicode3 or --disable-unicode3 was given. 4184# Check whether --enable-unicode3 or --disable-unicode3 was given.
8308if test "${enable_unicode3+set}" = set; then 4185if test "${enable_unicode3+set}" = set; then
8309 enableval="$enable_unicode3" 4186 enableval="$enable_unicode3"
8310 if test x$enableval = xyes -o x$enableval = xno; then 4187 if test x$enableval = xyes -o x$enableval = xno; then
8311 support_unicode3=yes 4188 support_unicode3=$enableval
8312 fi 4189 fi
8313fi; 4190fi;
8314 4191
8315# Check whether --enable-combining or --disable-combining was given. 4192# Check whether --enable-combining or --disable-combining was given.
8316if test "${enable_combining+set}" = set; then 4193if test "${enable_combining+set}" = set; then
8317 enableval="$enable_combining" 4194 enableval="$enable_combining"
8318 if test x$enableval = xyes -o x$enableval = xno; then 4195 if test x$enableval = xyes -o x$enableval = xno; then
8319 support_combining=yes 4196 support_combining=$enableval
8320 fi 4197 fi
8321fi; 4198fi;
8322 4199
8323# Check whether --enable-xft or --disable-xft was given. 4200# Check whether --enable-xft or --disable-xft was given.
8324if test "${enable_xft+set}" = set; then 4201if test "${enable_xft+set}" = set; then
8325 enableval="$enable_xft" 4202 enableval="$enable_xft"
8326 if test x$enableval = xyes -o x$enableval = xno; then 4203 if test x$enableval = xyes -o x$enableval = xno; then
8327 support_xft=yes 4204 support_xft=$enableval
8328 fi 4205 fi
8329fi; 4206fi;
8330 4207
8331# Check whether --enable-utmp or --disable-utmp was given. 4208# Check whether --enable-font-styles or --disable-font-styles was given.
8332if test "${enable_utmp+set}" = set; then 4209if test "${enable_font_styles+set}" = set; then
8333 enableval="$enable_utmp" 4210 enableval="$enable_font_styles"
8334 if test x$enableval = xyes -o x$enableval = xno; then 4211 if test x$enableval = xyes -o x$enableval = xno; then
8335 support_utmp=$enableval
8336 fi
8337fi;
8338
8339# Check whether --enable-wtmp or --disable-wtmp was given.
8340if test "${enable_wtmp+set}" = set; then
8341 enableval="$enable_wtmp"
8342 if test x$enableval = xyes -o x$enableval = xno; then
8343 support_wtmp=$enableval
8344 fi
8345fi;
8346
8347# Check whether --enable-lastlog or --disable-lastlog was given.
8348if test "${enable_lastlog+set}" = set; then
8349 enableval="$enable_lastlog"
8350 if test x$enableval = xyes -o x$enableval = xno; then
8351 support_lastlog=$enableval 4212 support_styles=$enableval
8352 fi 4213 fi
8353fi; 4214fi;
8354 4215
8355# Check whether --enable-xpm-background or --disable-xpm-background was given. 4216# Check whether --enable-xpm-background or --disable-xpm-background was given.
8356if test "${enable_xpm_background+set}" = set; then 4217if test "${enable_xpm_background+set}" = set; then
8374 if test x$enableval = xyes -o x$enableval = xno; then 4235 if test x$enableval = xyes -o x$enableval = xno; then
8375 support_tinting=$enableval 4236 support_tinting=$enableval
8376 fi 4237 fi
8377fi; 4238fi;
8378 4239
8379# Check whether --enable-menubar or --disable-menubar was given. 4240# Check whether --enable-fading or --disable-fading was given.
8380if test "${enable_menubar+set}" = set; then 4241if test "${enable_fading+set}" = set; then
8381 enableval="$enable_menubar" 4242 enableval="$enable_fading"
8382 if test x$enableval = xyes -o x$enableval = xno; then 4243 if test x$enableval = xyes -o x$enableval = xno; then
8383 support_menubar=$enableval 4244 support_fading=$enableval
8384 fi 4245 fi
8385fi; 4246fi;
8386 4247
8387# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4248# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8388if test "${enable_rxvt_scroll+set}" = set; then 4249if test "${enable_rxvt_scroll+set}" = set; then
8406 if test x$enableval = xyes -o x$enableval = xno; then 4267 if test x$enableval = xyes -o x$enableval = xno; then
8407 support_scroll_xterm=$enableval 4268 support_scroll_xterm=$enableval
8408 fi 4269 fi
8409fi; 4270fi;
8410 4271
4272# Check whether --enable-perl or --disable-perl was given.
4273if test "${enable_perl+set}" = set; then
4274 enableval="$enable_perl"
4275 if test x$enableval = xyes -o x$enableval = xno; then
4276 support_perl=$enableval
4277 fi
4278fi;
4279
8411# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4280# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8412if test "${enable_plain_scroll+set}" = set; then 4281if test "${enable_plain_scroll+set}" = set; then
8413 enableval="$enable_plain_scroll" 4282 enableval="$enable_plain_scroll"
8414 if test x$enableval = xyes -o x$enableval = xno; then 4283 if test x$enableval = xyes -o x$enableval = xno; then
8415 support_scroll_plain=$enableval 4284 support_scroll_plain=$enableval
8416 fi 4285 fi
8417fi; 4286fi;
8418 4287
8419# Check whether --enable-half-shadow or --disable-half-shadow was given.
8420if test "${enable_half_shadow+set}" = set; then
8421 enableval="$enable_half_shadow"
8422 if test x$enableval = xyes; then
8423
8424cat >>confdefs.h <<\_ACEOF
8425#define HALFSHADOW 1
8426_ACEOF
8427
8428 fi
8429fi;
8430 4288
8431 4289
8432# Check whether --with-codesets or --without-codesets was given. 4290# Check whether --with-codesets or --without-codesets was given.
8433if test "${with_codesets+set}" = set; then 4291if test "${with_codesets+set}" = set; then
8434 withval="$with_codesets" 4292 withval="$with_codesets"
8441 if test x$enableval = xyes -o x$enableval = xno; then 4299 if test x$enableval = xyes -o x$enableval = xno; then
8442 support_xim=$enableval 4300 support_xim=$enableval
8443 fi 4301 fi
8444fi; 4302fi;
8445 4303
8446# Check whether --enable-ttygid or --disable-ttygid was given.
8447if test "${enable_ttygid+set}" = set; then
8448 enableval="$enable_ttygid"
8449 if test x$enableval = xyes; then
8450
8451cat >>confdefs.h <<\_ACEOF
8452#define TTY_GID_SUPPORT 1
8453_ACEOF
8454
8455 fi
8456fi;
8457
8458# Check whether --enable-backspace-key or --disable-backspace-key was given. 4304# Check whether --enable-backspace-key or --disable-backspace-key was given.
8459if test "${enable_backspace_key+set}" = set; then 4305if test "${enable_backspace_key+set}" = set; then
8460 enableval="$enable_backspace_key" 4306 enableval="$enable_backspace_key"
8461 if test x$enableval = xno; then 4307 if test x$enableval = xno; then
8462 4308
8489_ACEOF 4335_ACEOF
8490 4336
8491 fi 4337 fi
8492fi; 4338fi;
8493 4339
8494# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
8495if test "${enable_xgetdefault+set}" = set; then
8496 enableval="$enable_xgetdefault"
8497 if test x$enableval = xyes; then
8498
8499cat >>confdefs.h <<\_ACEOF
8500#define USE_XGETDEFAULT 1
8501_ACEOF
8502
8503 fi
8504fi;
8505
8506# Check whether --enable-8bitctrls or --disable-8bitctrls was given. 4340# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8507if test "${enable_8bitctrls+set}" = set; then 4341if test "${enable_8bitctrls+set}" = set; then
8508 enableval="$enable_8bitctrls" 4342 enableval="$enable_8bitctrls"
8509 if test x$enableval = xyes -o x$enableval = xno; then 4343 if test x$enableval = xyes -o x$enableval = xno; then
8510 support_8bitctrls=yes 4344 support_8bitctrls=$enableval
8511 fi 4345 fi
8512fi; 4346fi;
8513 4347
8514RESFALLBACK=Rxvt 4348RESFALLBACK=Rxvt
8515# Check whether --enable-fallback or --disable-fallback was given. 4349# Check whether --enable-fallback or --disable-fallback was given.
8562if test "${with_name+set}" = set; then 4396if test "${with_name+set}" = set; then
8563 withval="$with_name" 4397 withval="$with_name"
8564 RXVTNAME="$withval" 4398 RXVTNAME="$withval"
8565fi; 4399fi;
8566 4400
4401cat >>confdefs.h <<_ACEOF
4402#define RXVTNAME "$RXVTNAME"
4403_ACEOF
4404
4405
8567RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4406RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8568 4407
8569
8570# Check whether --enable-strings or --disable-strings was given.
8571if test "${enable_strings+set}" = set; then
8572 enableval="$enable_strings"
8573 if test x$enableval = xyes -o x$enableval = xno; then
8574 support_addstrings=$enableval
8575 fi
8576fi;
8577 4408
8578# Check whether --enable-swapscreen or --disable-swapscreen was given. 4409# Check whether --enable-swapscreen or --disable-swapscreen was given.
8579if test "${enable_swapscreen+set}" = set; then 4410if test "${enable_swapscreen+set}" = set; then
8580 enableval="$enable_swapscreen" 4411 enableval="$enable_swapscreen"
8581 if test x$enableval = xno; then 4412 if test x$enableval = xno; then
8582 4413
8583cat >>confdefs.h <<\_ACEOF 4414cat >>confdefs.h <<\_ACEOF
8584#define NO_SECONDARY_SCREEN 1 4415#define NO_SECONDARY_SCREEN 1
8585_ACEOF 4416_ACEOF
8586 4417
4418 fi
4419fi;
4420
4421# Check whether --enable-iso14755 or --disable-iso14755 was given.
4422if test "${enable_iso14755+set}" = set; then
4423 enableval="$enable_iso14755"
4424 if test x$enableval = xyes -o x$enableval = xno; then
4425 support_iso14755=$enableval
8587 fi 4426 fi
8588fi; 4427fi;
8589 4428
8590# Check whether --enable-frills or --disable-frills was given. 4429# Check whether --enable-frills or --disable-frills was given.
8591if test "${enable_frills+set}" = set; then 4430if test "${enable_frills+set}" = set; then
8593 if test x$enableval = xyes -o x$enableval = xno; then 4432 if test x$enableval = xyes -o x$enableval = xno; then
8594 support_frills=$enableval 4433 support_frills=$enableval
8595 fi 4434 fi
8596fi; 4435fi;
8597 4436
8598# Check whether --enable-linespace or --disable-linespace was given.
8599if test "${enable_linespace+set}" = set; then
8600 enableval="$enable_linespace"
8601 if test x$enableval = xyes -o x$enableval = xno; then
8602 support_linespace=$enableval
8603 fi
8604fi;
8605
8606# Check whether --enable-24bit or --disable-24bit was given.
8607if test "${enable_24bit+set}" = set; then
8608 enableval="$enable_24bit"
8609 if test x$enableval = xyes -o x$enableval = xno; then
8610 support_24bit=$enableval
8611 fi
8612fi;
8613
8614# Check whether --enable-keepscrolling or --disable-keepscrolling was given. 4437# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
8615if test "${enable_keepscrolling+set}" = set; then 4438if test "${enable_keepscrolling+set}" = set; then
8616 enableval="$enable_keepscrolling" 4439 enableval="$enable_keepscrolling"
8617 if test x$enableval = xyes -o x$enableval = xno; then 4440 if test x$enableval = xyes -o x$enableval = xno; then
8618 support_keepscrolling=$enableval 4441 support_keepscrolling=$enableval
8641 if test x$enableval = xyes -o x$enableval = xno; then 4464 if test x$enableval = xyes -o x$enableval = xno; then
8642 support_mouseslipwheel=$enableval 4465 support_mouseslipwheel=$enableval
8643 fi 4466 fi
8644fi; 4467fi;
8645 4468
8646# Check whether --enable-dmalloc or --disable-dmalloc was given.
8647if test "${enable_dmalloc+set}" = set; then
8648 enableval="$enable_dmalloc"
8649 if test x$enableval = xyes; then
8650 MALLOC_TYPE=G
8651 DEBUG=-DDEBUG_MALLOC
8652 DLIB="-L/usr/local/lib -ldmalloc"
8653 DINCLUDE=-I/usr/local/include
8654 fi
8655fi;
8656
8657# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
8658if test "${enable_dlmalloc+set}" = set; then
8659 enableval="$enable_dlmalloc"
8660 if test x$enableval = xyes; then
8661 MALLOC_TYPE=D
8662 DEBUG=
8663 DLIB="-L/usr/local/lib -ldlmalloc"
8664 DINCLUDE=
8665 fi
8666fi;
8667
8668# Check whether --enable-smart-resize or --disable-smart-resize was given. 4469# Check whether --enable-smart-resize or --disable-smart-resize was given.
8669if test "${enable_smart_resize+set}" = set; then 4470if test "${enable_smart_resize+set}" = set; then
8670 enableval="$enable_smart_resize" 4471 enableval="$enable_smart_resize"
8671 if test x$enableval = xyes; then 4472 if test x$enableval = xyes; then
8672 4473
8673cat >>confdefs.h <<\_ACEOF 4474cat >>confdefs.h <<\_ACEOF
8674#define SMART_RESIZE 1 4475#define SMART_RESIZE 1
8675_ACEOF 4476_ACEOF
8676 4477
8677 fi
8678fi;
8679
8680# Check whether --enable-256-color or --disable-256-color was given.
8681if test "${enable_256_color+set}" = set; then
8682 enableval="$enable_256_color"
8683 if test x$enableval = xyes; then
8684
8685cat >>confdefs.h <<\_ACEOF
8686#define TTY_256COLOR 1
8687_ACEOF
8688
8689 fi
8690fi;
8691
8692# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8693if test "${enable_cursor_blink+set}" = set; then
8694 enableval="$enable_cursor_blink"
8695 if test x$enableval = xyes -o x$enableval = xno; then
8696 support_cursor_blink=$enableval
8697 fi 4478 fi
8698fi; 4479fi;
8699 4480
8700# Check whether --enable-text-blink or --disable-text-blink was given. 4481# Check whether --enable-text-blink or --disable-text-blink was given.
8701if test "${enable_text_blink+set}" = set; then 4482if test "${enable_text_blink+set}" = set; then
8737_ACEOF 4518_ACEOF
8738 terminfo="$withval" 4519 terminfo="$withval"
8739 fi 4520 fi
8740fi; 4521fi;
8741 4522
8742
8743
8744cat >>confdefs.h <<\_ACEOF
8745#define PROTOTYPES 1
8746_ACEOF
8747
8748
8749if test -z "$CFLAGS"; then
8750 if test -z "$CCOPTS"; then
8751 CCOPTS='-O'
8752 fi
8753 CFLAGS="$CCOPTS"
8754fi
8755 4523
8756# Extract the first word of "mv", so it can be a program name with args. 4524# Extract the first word of "mv", so it can be a program name with args.
8757set dummy mv; ac_word=$2 4525set dummy mv; ac_word=$2
8758echo "$as_me:$LINENO: checking for $ac_word" >&5 4526echo "$as_me:$LINENO: checking for $ac_word" >&5
8759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8791else 4559else
8792 echo "$as_me:$LINENO: result: no" >&5 4560 echo "$as_me:$LINENO: result: no" >&5
8793echo "${ECHO_T}no" >&6 4561echo "${ECHO_T}no" >&6
8794fi 4562fi
8795 4563
8796# Extract the first word of "rm", so it can be a program name with args.
8797set dummy rm; ac_word=$2
8798echo "$as_me:$LINENO: checking for $ac_word" >&5
8799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8800if test "${ac_cv_path_RM+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8802else
8803 case $RM in
8804 [\\/]* | ?:[\\/]*)
8805 ac_cv_path_RM="$RM" # Let the user override the test with a path.
8806 ;;
8807 *)
8808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in $PATH
8810do
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8815 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8817 break 2
8818 fi
8819done
8820done
8821
8822 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
8823 ;;
8824esac
8825fi
8826RM=$ac_cv_path_RM
8827
8828if test -n "$RM"; then
8829 echo "$as_me:$LINENO: result: $RM" >&5
8830echo "${ECHO_T}$RM" >&6
8831else
8832 echo "$as_me:$LINENO: result: no" >&5
8833echo "${ECHO_T}no" >&6
8834fi
8835
8836# Extract the first word of "cp", so it can be a program name with args. 4564# Extract the first word of "cp", so it can be a program name with args.
8837set dummy cp; ac_word=$2 4565set dummy cp; ac_word=$2
8838echo "$as_me:$LINENO: checking for $ac_word" >&5 4566echo "$as_me:$LINENO: checking for $ac_word" >&5
8839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8840if test "${ac_cv_path_CP+set}" = set; then 4568if test "${ac_cv_path_CP+set}" = set; then
9031else 4759else
9032 echo "$as_me:$LINENO: result: no" >&5 4760 echo "$as_me:$LINENO: result: no" >&5
9033echo "${ECHO_T}no" >&6 4761echo "${ECHO_T}no" >&6
9034fi 4762fi
9035 4763
9036# Extract the first word of "tbl", so it can be a program name with args. 4764# Extract the first word of "tic", so it can be a program name with args.
9037set dummy tbl; ac_word=$2 4765set dummy tic; ac_word=$2
9038echo "$as_me:$LINENO: checking for $ac_word" >&5 4766echo "$as_me:$LINENO: checking for $ac_word" >&5
9039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9040if test "${ac_cv_path_TBL+set}" = set; then 4768if test "${ac_cv_path_TIC+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6 4769 echo $ECHO_N "(cached) $ECHO_C" >&6
9042else 4770else
9043 case $TBL in 4771 case $TIC in
9044 [\\/]* | ?:[\\/]*) 4772 [\\/]* | ?:[\\/]*)
9045 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 4773 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
9046 ;; 4774 ;;
9047 *) 4775 *)
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049for as_dir in $PATH 4777for as_dir in $PATH
9050do 4778do
9051 IFS=$as_save_IFS 4779 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=. 4780 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do 4781 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" 4783 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
9056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2 4785 break 2
9058 fi 4786 fi
9059done 4787done
9060done 4788done
9061 4789
9062 ;; 4790 ;;
9063esac 4791esac
9064fi 4792fi
9065TBL=$ac_cv_path_TBL 4793TIC=$ac_cv_path_TIC
9066 4794
9067if test -n "$TBL"; then 4795if test -n "$TIC"; then
9068 echo "$as_me:$LINENO: result: $TBL" >&5 4796 echo "$as_me:$LINENO: result: $TIC" >&5
9069echo "${ECHO_T}$TBL" >&6 4797echo "${ECHO_T}$TIC" >&6
9070else 4798else
9071 echo "$as_me:$LINENO: result: no" >&5 4799 echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6 4800echo "${ECHO_T}no" >&6
9073fi 4801fi
9074 4802
9075 4803
4804
4805
4806ac_ext=cc
4807ac_cpp='$CXXCPP $CPPFLAGS'
4808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4811echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4812echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4813if test -z "$CXXCPP"; then
4814 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816else
4817 # Double quotes because CXXCPP needs to be expanded
4818 for CXXCPP in "$CXX -E" "/lib/cpp"
4819 do
4820 ac_preproc_ok=false
4821for ac_cxx_preproc_warn_flag in '' yes
4822do
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h. */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h. */
4835#ifdef __STDC__
4836# include <limits.h>
4837#else
4838# include <assert.h>
4839#endif
4840 Syntax error
4841_ACEOF
4842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4843 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null; then
4850 if test -s conftest.err; then
4851 ac_cpp_err=$ac_cxx_preproc_warn_flag
4852 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4853 else
4854 ac_cpp_err=
4855 fi
4856else
4857 ac_cpp_err=yes
4858fi
4859if test -z "$ac_cpp_err"; then
4860 :
4861else
4862 echo "$as_me: failed program was:" >&5
4863sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 # Broken: fails on valid input.
4866continue
4867fi
4868rm -f conftest.err conftest.$ac_ext
4869
4870 # OK, works on sane cases. Now check whether non-existent headers
4871 # can be detected and how.
4872 cat >conftest.$ac_ext <<_ACEOF
4873/* confdefs.h. */
4874_ACEOF
4875cat confdefs.h >>conftest.$ac_ext
4876cat >>conftest.$ac_ext <<_ACEOF
4877/* end confdefs.h. */
4878#include <ac_nonexistent.h>
4879_ACEOF
4880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev/null; then
4888 if test -s conftest.err; then
4889 ac_cpp_err=$ac_cxx_preproc_warn_flag
4890 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4891 else
4892 ac_cpp_err=
4893 fi
4894else
4895 ac_cpp_err=yes
4896fi
4897if test -z "$ac_cpp_err"; then
4898 # Broken: success on invalid input.
4899continue
4900else
4901 echo "$as_me: failed program was:" >&5
4902sed 's/^/| /' conftest.$ac_ext >&5
4903
4904 # Passes both tests.
4905ac_preproc_ok=:
4906break
4907fi
4908rm -f conftest.err conftest.$ac_ext
4909
4910done
4911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4912rm -f conftest.err conftest.$ac_ext
4913if $ac_preproc_ok; then
4914 break
4915fi
4916
4917 done
4918 ac_cv_prog_CXXCPP=$CXXCPP
4919
4920fi
4921 CXXCPP=$ac_cv_prog_CXXCPP
4922else
4923 ac_cv_prog_CXXCPP=$CXXCPP
4924fi
4925echo "$as_me:$LINENO: result: $CXXCPP" >&5
4926echo "${ECHO_T}$CXXCPP" >&6
4927ac_preproc_ok=false
4928for ac_cxx_preproc_warn_flag in '' yes
4929do
4930 # Use a header file that comes with gcc, so configuring glibc
4931 # with a fresh cross-compiler works.
4932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933 # <limits.h> exists even on freestanding compilers.
4934 # On the NeXT, cc -E runs the code through the compiler's parser,
4935 # not just through cpp. "Syntax error" is here to catch this case.
4936 cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h. */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h. */
4942#ifdef __STDC__
4943# include <limits.h>
4944#else
4945# include <assert.h>
4946#endif
4947 Syntax error
4948_ACEOF
4949if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null; then
4957 if test -s conftest.err; then
4958 ac_cpp_err=$ac_cxx_preproc_warn_flag
4959 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4960 else
4961 ac_cpp_err=
4962 fi
4963else
4964 ac_cpp_err=yes
4965fi
4966if test -z "$ac_cpp_err"; then
4967 :
4968else
4969 echo "$as_me: failed program was:" >&5
4970sed 's/^/| /' conftest.$ac_ext >&5
4971
4972 # Broken: fails on valid input.
4973continue
4974fi
4975rm -f conftest.err conftest.$ac_ext
4976
4977 # OK, works on sane cases. Now check whether non-existent headers
4978 # can be detected and how.
4979 cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h. */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h. */
4985#include <ac_nonexistent.h>
4986_ACEOF
4987if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null; then
4995 if test -s conftest.err; then
4996 ac_cpp_err=$ac_cxx_preproc_warn_flag
4997 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4998 else
4999 ac_cpp_err=
5000 fi
5001else
5002 ac_cpp_err=yes
5003fi
5004if test -z "$ac_cpp_err"; then
5005 # Broken: success on invalid input.
5006continue
5007else
5008 echo "$as_me: failed program was:" >&5
5009sed 's/^/| /' conftest.$ac_ext >&5
5010
5011 # Passes both tests.
5012ac_preproc_ok=:
5013break
5014fi
5015rm -f conftest.err conftest.$ac_ext
5016
5017done
5018# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5019rm -f conftest.err conftest.$ac_ext
5020if $ac_preproc_ok; then
5021 :
5022else
5023 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5024See \`config.log' for more details." >&5
5025echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5026See \`config.log' for more details." >&2;}
5027 { (exit 1); exit 1; }; }
5028fi
5029
5030ac_ext=cc
5031ac_cpp='$CXXCPP $CPPFLAGS'
5032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9076 5035
9077 5036
9078 5037
9079if test "x$ac_path_x_has_been_run" != xyes; then 5038if test "x$ac_path_x_has_been_run" != xyes; then
9080 echo "$as_me:$LINENO: checking for X" >&5 5039 echo "$as_me:$LINENO: checking for X" >&5
9179/* confdefs.h. */ 5138/* confdefs.h. */
9180_ACEOF 5139_ACEOF
9181cat confdefs.h >>conftest.$ac_ext 5140cat confdefs.h >>conftest.$ac_ext
9182cat >>conftest.$ac_ext <<_ACEOF 5141cat >>conftest.$ac_ext <<_ACEOF
9183/* end confdefs.h. */ 5142/* end confdefs.h. */
9184#include <X11/Intrinsic.h> 5143#include <X11/Xlib.h>
9185_ACEOF 5144_ACEOF
9186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9188 ac_status=$? 5147 ac_status=$?
9189 grep -v '^ *+' conftest.er1 >conftest.err 5148 grep -v '^ *+' conftest.er1 >conftest.err
9206else 5165else
9207 echo "$as_me: failed program was:" >&5 5166 echo "$as_me: failed program was:" >&5
9208sed 's/^/| /' conftest.$ac_ext >&5 5167sed 's/^/| /' conftest.$ac_ext >&5
9209 5168
9210 for ac_dir in $ac_x_header_dirs; do 5169 for ac_dir in $ac_x_header_dirs; do
9211 if test -r "$ac_dir/X11/Intrinsic.h"; then 5170 if test -r "$ac_dir/X11/Xlib.h"; then
9212 ac_x_includes=$ac_dir 5171 ac_x_includes=$ac_dir
9213 break 5172 break
9214 fi 5173 fi
9215done 5174done
9216fi 5175fi
9220if test "$ac_x_libraries" = no; then 5179if test "$ac_x_libraries" = no; then
9221 # Check for the libraries. 5180 # Check for the libraries.
9222 # See if we find them without any special options. 5181 # See if we find them without any special options.
9223 # Don't add to $LIBS permanently. 5182 # Don't add to $LIBS permanently.
9224 ac_save_LIBS=$LIBS 5183 ac_save_LIBS=$LIBS
9225 LIBS="-lXt $LIBS" 5184 LIBS="-lX11 $LIBS"
9226 cat >conftest.$ac_ext <<_ACEOF 5185 cat >conftest.$ac_ext <<_ACEOF
9227/* confdefs.h. */ 5186/* confdefs.h. */
9228_ACEOF 5187_ACEOF
9229cat confdefs.h >>conftest.$ac_ext 5188cat confdefs.h >>conftest.$ac_ext
9230cat >>conftest.$ac_ext <<_ACEOF 5189cat >>conftest.$ac_ext <<_ACEOF
9231/* end confdefs.h. */ 5190/* end confdefs.h. */
9232#include <X11/Intrinsic.h> 5191#include <X11/Xlib.h>
9233int 5192int
9234main () 5193main ()
9235{ 5194{
9236XtMalloc (0) 5195XrmInitialize ()
9237 ; 5196 ;
9238 return 0; 5197 return 0;
9239} 5198}
9240_ACEOF 5199_ACEOF
9241rm -f conftest.$ac_objext conftest$ac_exeext 5200rm -f conftest.$ac_objext conftest$ac_exeext
9269LIBS=$ac_save_LIBS 5228LIBS=$ac_save_LIBS
9270for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5229for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9271do 5230do
9272 # Don't even attempt the hair of trying to link an X program! 5231 # Don't even attempt the hair of trying to link an X program!
9273 for ac_extension in a so sl; do 5232 for ac_extension in a so sl; do
9274 if test -r $ac_dir/libXt.$ac_extension; then 5233 if test -r $ac_dir/libX11.$ac_extension; then
9275 ac_x_libraries=$ac_dir 5234 ac_x_libraries=$ac_dir
9276 break 2 5235 break 2
9277 fi 5236 fi
9278 done 5237 done
9279done 5238done
10881#define HAVE_SYS_WAIT_H 1 6840#define HAVE_SYS_WAIT_H 1
10882_ACEOF 6841_ACEOF
10883 6842
10884fi 6843fi
10885 6844
6845echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6846echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6847if test "${ac_cv_header_stdc+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 cat >conftest.$ac_ext <<_ACEOF
6851/* confdefs.h. */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h. */
6856#include <stdlib.h>
6857#include <stdarg.h>
6858#include <string.h>
6859#include <float.h>
6860
6861int
6862main ()
6863{
6864
6865 ;
6866 return 0;
6867}
6868_ACEOF
6869rm -f conftest.$ac_objext
6870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>conftest.er1
6872 ac_status=$?
6873 grep -v '^ *+' conftest.er1 >conftest.err
6874 rm -f conftest.er1
6875 cat conftest.err >&5
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); } &&
6878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 (eval $ac_try) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); }; } &&
6884 { ac_try='test -s conftest.$ac_objext'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6890 ac_cv_header_stdc=yes
6891else
6892 echo "$as_me: failed program was:" >&5
6893sed 's/^/| /' conftest.$ac_ext >&5
6894
6895ac_cv_header_stdc=no
6896fi
6897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6898
6899if test $ac_cv_header_stdc = yes; then
6900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6901 cat >conftest.$ac_ext <<_ACEOF
6902/* confdefs.h. */
6903_ACEOF
6904cat confdefs.h >>conftest.$ac_ext
6905cat >>conftest.$ac_ext <<_ACEOF
6906/* end confdefs.h. */
6907#include <string.h>
6908
6909_ACEOF
6910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911 $EGREP "memchr" >/dev/null 2>&1; then
6912 :
6913else
6914 ac_cv_header_stdc=no
6915fi
6916rm -f conftest*
6917
6918fi
6919
6920if test $ac_cv_header_stdc = yes; then
6921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6922 cat >conftest.$ac_ext <<_ACEOF
6923/* confdefs.h. */
6924_ACEOF
6925cat confdefs.h >>conftest.$ac_ext
6926cat >>conftest.$ac_ext <<_ACEOF
6927/* end confdefs.h. */
6928#include <stdlib.h>
6929
6930_ACEOF
6931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6932 $EGREP "free" >/dev/null 2>&1; then
6933 :
6934else
6935 ac_cv_header_stdc=no
6936fi
6937rm -f conftest*
6938
6939fi
6940
6941if test $ac_cv_header_stdc = yes; then
6942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6943 if test "$cross_compiling" = yes; then
6944 :
6945else
6946 cat >conftest.$ac_ext <<_ACEOF
6947/* confdefs.h. */
6948_ACEOF
6949cat confdefs.h >>conftest.$ac_ext
6950cat >>conftest.$ac_ext <<_ACEOF
6951/* end confdefs.h. */
6952#include <ctype.h>
6953#if ((' ' & 0x0FF) == 0x020)
6954# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6955# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6956#else
6957# define ISLOWER(c) \
6958 (('a' <= (c) && (c) <= 'i') \
6959 || ('j' <= (c) && (c) <= 'r') \
6960 || ('s' <= (c) && (c) <= 'z'))
6961# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6962#endif
6963
6964#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6965int
6966main ()
6967{
6968 int i;
6969 for (i = 0; i < 256; i++)
6970 if (XOR (islower (i), ISLOWER (i))
6971 || toupper (i) != TOUPPER (i))
6972 exit(2);
6973 exit (0);
6974}
6975_ACEOF
6976rm -f conftest$ac_exeext
6977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6978 (eval $ac_link) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 (eval $ac_try) 2>&5
6984 ac_status=$?
6985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); }; }; then
6987 :
6988else
6989 echo "$as_me: program exited with status $ac_status" >&5
6990echo "$as_me: failed program was:" >&5
6991sed 's/^/| /' conftest.$ac_ext >&5
6992
6993( exit $ac_status )
6994ac_cv_header_stdc=no
6995fi
6996rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6997fi
6998fi
6999fi
7000echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7001echo "${ECHO_T}$ac_cv_header_stdc" >&6
7002if test $ac_cv_header_stdc = yes; then
7003
7004cat >>confdefs.h <<\_ACEOF
7005#define STDC_HEADERS 1
7006_ACEOF
7007
7008fi
7009
7010# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7021 inttypes.h stdint.h unistd.h
7022do
7023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024echo "$as_me:$LINENO: checking for $ac_header" >&5
7025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7026if eval "test \"\${$as_ac_Header+set}\" = set"; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028else
7029 cat >conftest.$ac_ext <<_ACEOF
7030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
7034/* end confdefs.h. */
7035$ac_includes_default
7036
7037#include <$ac_header>
7038_ACEOF
7039rm -f conftest.$ac_objext
7040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7041 (eval $ac_compile) 2>conftest.er1
7042 ac_status=$?
7043 grep -v '^ *+' conftest.er1 >conftest.err
7044 rm -f conftest.er1
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } &&
7054 { ac_try='test -s conftest.$ac_objext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060 eval "$as_ac_Header=yes"
7061else
7062 echo "$as_me: failed program was:" >&5
7063sed 's/^/| /' conftest.$ac_ext >&5
7064
7065eval "$as_ac_Header=no"
7066fi
7067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7068fi
7069echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7070echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7071if test `eval echo '${'$as_ac_Header'}'` = yes; then
7072 cat >>confdefs.h <<_ACEOF
7073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7074_ACEOF
7075
7076fi
7077
7078done
10886 7079
10887 7080
10888 7081
10889 7082
10890 7083
10903 7096
10904 7097
10905for ac_header in \ 7098for ac_header in \
10906 assert.h \ 7099 assert.h \
10907 fcntl.h \ 7100 fcntl.h \
10908 grp.h \
10909 libc.h \
10910 lastlog.h \
10911 stdarg.h \ 7101 stdarg.h \
10912 stdlib.h \ 7102 stdlib.h \
10913 string.h \ 7103 string.h \
10914 termios.h \ 7104 termios.h \
10915 unistd.h \ 7105 unistd.h \
10917 sys/ioctl.h \ 7107 sys/ioctl.h \
10918 sys/select.h \ 7108 sys/select.h \
10919 sys/sockio.h \ 7109 sys/sockio.h \
10920 sys/strredir.h \ 7110 sys/strredir.h \
10921 sys/time.h \ 7111 sys/time.h \
10922 utmp.h \ 7112 stdint.h \
10923 utmpx.h \ 7113 wchar.h \
10924 stdint.h \ 7114 cwchar \
7115 clocale \
10925 7116
10926do 7117do
10927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10928if eval "test \"\${$as_ac_Header+set}\" = set"; then 7119if eval "test \"\${$as_ac_Header+set}\" = set"; then
10929 echo "$as_me:$LINENO: checking for $ac_header" >&5 7120 echo "$as_me:$LINENO: checking for $ac_header" >&5
11713_ACEOF 7904_ACEOF
11714 7905
11715fi 7906fi
11716 7907
11717 7908
11718
11719echo "$as_me:$LINENO: checking for char" >&5
11720echo $ECHO_N "checking for char... $ECHO_C" >&6
11721if test "${ac_cv_type_char+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724 cat >conftest.$ac_ext <<_ACEOF
11725/* confdefs.h. */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h. */
11730$ac_includes_default
11731int
11732main ()
11733{
11734if ((char *) 0)
11735 return 0;
11736if (sizeof (char))
11737 return 0;
11738 ;
11739 return 0;
11740}
11741_ACEOF
11742rm -f conftest.$ac_objext
11743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11744 (eval $ac_compile) 2>conftest.er1
11745 ac_status=$?
11746 grep -v '^ *+' conftest.er1 >conftest.err
11747 rm -f conftest.er1
11748 cat conftest.err >&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); } &&
11751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11754 ac_status=$?
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; } &&
11757 { ac_try='test -s conftest.$ac_objext'
11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11759 (eval $ac_try) 2>&5
11760 ac_status=$?
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 ac_cv_type_char=yes
11764else
11765 echo "$as_me: failed program was:" >&5
11766sed 's/^/| /' conftest.$ac_ext >&5
11767
11768ac_cv_type_char=no
11769fi
11770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11771fi
11772echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11773echo "${ECHO_T}$ac_cv_type_char" >&6
11774
11775echo "$as_me:$LINENO: checking size of char" >&5
11776echo $ECHO_N "checking size of char... $ECHO_C" >&6
11777if test "${ac_cv_sizeof_char+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11779else
11780 if test "$ac_cv_type_char" = yes; then
11781 # The cast to unsigned long works around a bug in the HP C Compiler
11782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11784 # This bug is HP SR number 8606223364.
11785 if test "$cross_compiling" = yes; then
11786 # Depending upon the size, compute the lo and hi bounds.
11787cat >conftest.$ac_ext <<_ACEOF
11788/* confdefs.h. */
11789_ACEOF
11790cat confdefs.h >>conftest.$ac_ext
11791cat >>conftest.$ac_ext <<_ACEOF
11792/* end confdefs.h. */
11793$ac_includes_default
11794int
11795main ()
11796{
11797static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11798test_array [0] = 0
11799
11800 ;
11801 return 0;
11802}
11803_ACEOF
11804rm -f conftest.$ac_objext
11805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11806 (eval $ac_compile) 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; } &&
11819 { ac_try='test -s conftest.$ac_objext'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 ac_lo=0 ac_mid=0
11826 while :; do
11827 cat >conftest.$ac_ext <<_ACEOF
11828/* confdefs.h. */
11829_ACEOF
11830cat confdefs.h >>conftest.$ac_ext
11831cat >>conftest.$ac_ext <<_ACEOF
11832/* end confdefs.h. */
11833$ac_includes_default
11834int
11835main ()
11836{
11837static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11838test_array [0] = 0
11839
11840 ;
11841 return 0;
11842}
11843_ACEOF
11844rm -f conftest.$ac_objext
11845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11846 (eval $ac_compile) 2>conftest.er1
11847 ac_status=$?
11848 grep -v '^ *+' conftest.er1 >conftest.err
11849 rm -f conftest.er1
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11862 ac_status=$?
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_hi=$ac_mid; break
11866else
11867 echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870ac_lo=`expr $ac_mid + 1`
11871 if test $ac_lo -le $ac_mid; then
11872 ac_lo= ac_hi=
11873 break
11874 fi
11875 ac_mid=`expr 2 '*' $ac_mid + 1`
11876fi
11877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11878 done
11879else
11880 echo "$as_me: failed program was:" >&5
11881sed 's/^/| /' conftest.$ac_ext >&5
11882
11883cat >conftest.$ac_ext <<_ACEOF
11884/* confdefs.h. */
11885_ACEOF
11886cat confdefs.h >>conftest.$ac_ext
11887cat >>conftest.$ac_ext <<_ACEOF
11888/* end confdefs.h. */
11889$ac_includes_default
11890int
11891main ()
11892{
11893static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11894test_array [0] = 0
11895
11896 ;
11897 return 0;
11898}
11899_ACEOF
11900rm -f conftest.$ac_objext
11901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; } &&
11915 { ac_try='test -s conftest.$ac_objext'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11921 ac_hi=-1 ac_mid=-1
11922 while :; do
11923 cat >conftest.$ac_ext <<_ACEOF
11924/* confdefs.h. */
11925_ACEOF
11926cat confdefs.h >>conftest.$ac_ext
11927cat >>conftest.$ac_ext <<_ACEOF
11928/* end confdefs.h. */
11929$ac_includes_default
11930int
11931main ()
11932{
11933static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11934test_array [0] = 0
11935
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940rm -f conftest.$ac_objext
11941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11942 (eval $ac_compile) 2>conftest.er1
11943 ac_status=$?
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
11949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11952 ac_status=$?
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); }; } &&
11955 { ac_try='test -s conftest.$ac_objext'
11956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11957 (eval $ac_try) 2>&5
11958 ac_status=$?
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 ac_lo=$ac_mid; break
11962else
11963 echo "$as_me: failed program was:" >&5
11964sed 's/^/| /' conftest.$ac_ext >&5
11965
11966ac_hi=`expr '(' $ac_mid ')' - 1`
11967 if test $ac_mid -le $ac_hi; then
11968 ac_lo= ac_hi=
11969 break
11970 fi
11971 ac_mid=`expr 2 '*' $ac_mid`
11972fi
11973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11974 done
11975else
11976 echo "$as_me: failed program was:" >&5
11977sed 's/^/| /' conftest.$ac_ext >&5
11978
11979ac_lo= ac_hi=
11980fi
11981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11982fi
11983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11984# Binary search between lo and hi bounds.
11985while test "x$ac_lo" != "x$ac_hi"; do
11986 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11987 cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */
11993$ac_includes_default
11994int
11995main ()
11996{
11997static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11998test_array [0] = 0
11999
12000 ;
12001 return 0;
12002}
12003_ACEOF
12004rm -f conftest.$ac_objext
12005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12006 (eval $ac_compile) 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } &&
12013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12016 ac_status=$?
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; } &&
12019 { ac_try='test -s conftest.$ac_objext'
12020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12021 (eval $ac_try) 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 ac_hi=$ac_mid
12026else
12027 echo "$as_me: failed program was:" >&5
12028sed 's/^/| /' conftest.$ac_ext >&5
12029
12030ac_lo=`expr '(' $ac_mid ')' + 1`
12031fi
12032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12033done
12034case $ac_lo in
12035?*) ac_cv_sizeof_char=$ac_lo;;
12036'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12037See \`config.log' for more details." >&5
12038echo "$as_me: error: cannot compute sizeof (char), 77
12039See \`config.log' for more details." >&2;}
12040 { (exit 1); exit 1; }; } ;;
12041esac
12042else
12043 if test "$cross_compiling" = yes; then
12044 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12045echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12046 { (exit 1); exit 1; }; }
12047else
12048 cat >conftest.$ac_ext <<_ACEOF
12049/* confdefs.h. */
12050_ACEOF
12051cat confdefs.h >>conftest.$ac_ext
12052cat >>conftest.$ac_ext <<_ACEOF
12053/* end confdefs.h. */
12054$ac_includes_default
12055long longval () { return (long) (sizeof (char)); }
12056unsigned long ulongval () { return (long) (sizeof (char)); }
12057#include <stdio.h>
12058#include <stdlib.h>
12059int
12060main ()
12061{
12062
12063 FILE *f = fopen ("conftest.val", "w");
12064 if (! f)
12065 exit (1);
12066 if (((long) (sizeof (char))) < 0)
12067 {
12068 long i = longval ();
12069 if (i != ((long) (sizeof (char))))
12070 exit (1);
12071 fprintf (f, "%ld\n", i);
12072 }
12073 else
12074 {
12075 unsigned long i = ulongval ();
12076 if (i != ((long) (sizeof (char))))
12077 exit (1);
12078 fprintf (f, "%lu\n", i);
12079 }
12080 exit (ferror (f) || fclose (f) != 0);
12081
12082 ;
12083 return 0;
12084}
12085_ACEOF
12086rm -f conftest$ac_exeext
12087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12088 (eval $ac_link) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12093 (eval $ac_try) 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; }; then
12097 ac_cv_sizeof_char=`cat conftest.val`
12098else
12099 echo "$as_me: program exited with status $ac_status" >&5
12100echo "$as_me: failed program was:" >&5
12101sed 's/^/| /' conftest.$ac_ext >&5
12102
12103( exit $ac_status )
12104{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12105See \`config.log' for more details." >&5
12106echo "$as_me: error: cannot compute sizeof (char), 77
12107See \`config.log' for more details." >&2;}
12108 { (exit 1); exit 1; }; }
12109fi
12110rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12111fi
12112fi
12113rm -f conftest.val
12114else
12115 ac_cv_sizeof_char=0
12116fi
12117fi
12118echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12119echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12120cat >>confdefs.h <<_ACEOF
12121#define SIZEOF_CHAR $ac_cv_sizeof_char
12122_ACEOF
12123
12124
12125echo "$as_me:$LINENO: checking for short" >&5 7909echo "$as_me:$LINENO: checking for short" >&5
12126echo $ECHO_N "checking for short... $ECHO_C" >&6 7910echo $ECHO_N "checking for short... $ECHO_C" >&6
12127if test "${ac_cv_type_short+set}" = set; then 7911if test "${ac_cv_type_short+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6 7912 echo $ECHO_N "(cached) $ECHO_C" >&6
12129else 7913else
12932cat >>confdefs.h <<_ACEOF 8716cat >>confdefs.h <<_ACEOF
12933#define SIZEOF_INT $ac_cv_sizeof_int 8717#define SIZEOF_INT $ac_cv_sizeof_int
12934_ACEOF 8718_ACEOF
12935 8719
12936 8720
12937echo "$as_me:$LINENO: checking for long" >&5
12938echo $ECHO_N "checking for long... $ECHO_C" >&6
12939if test "${ac_cv_type_long+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941else
12942 cat >conftest.$ac_ext <<_ACEOF
12943/* confdefs.h. */
12944_ACEOF
12945cat confdefs.h >>conftest.$ac_ext
12946cat >>conftest.$ac_ext <<_ACEOF
12947/* end confdefs.h. */
12948$ac_includes_default
12949int
12950main ()
12951{
12952if ((long *) 0)
12953 return 0;
12954if (sizeof (long))
12955 return 0;
12956 ;
12957 return 0;
12958}
12959_ACEOF
12960rm -f conftest.$ac_objext
12961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>conftest.er1
12963 ac_status=$?
12964 grep -v '^ *+' conftest.er1 >conftest.err
12965 rm -f conftest.er1
12966 cat conftest.err >&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } &&
12969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest.$ac_objext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_cv_type_long=yes
12982else
12983 echo "$as_me: failed program was:" >&5
12984sed 's/^/| /' conftest.$ac_ext >&5
12985
12986ac_cv_type_long=no
12987fi
12988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12989fi
12990echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12991echo "${ECHO_T}$ac_cv_type_long" >&6
12992
12993echo "$as_me:$LINENO: checking size of long" >&5
12994echo $ECHO_N "checking size of long... $ECHO_C" >&6
12995if test "${ac_cv_sizeof_long+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12997else
12998 if test "$ac_cv_type_long" = yes; then
12999 # The cast to unsigned long works around a bug in the HP C Compiler
13000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13002 # This bug is HP SR number 8606223364.
13003 if test "$cross_compiling" = yes; then
13004 # Depending upon the size, compute the lo and hi bounds.
13005cat >conftest.$ac_ext <<_ACEOF
13006/* confdefs.h. */
13007_ACEOF
13008cat confdefs.h >>conftest.$ac_ext
13009cat >>conftest.$ac_ext <<_ACEOF
13010/* end confdefs.h. */
13011$ac_includes_default
13012int
13013main ()
13014{
13015static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13016test_array [0] = 0
13017
13018 ;
13019 return 0;
13020}
13021_ACEOF
13022rm -f conftest.$ac_objext
13023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13024 (eval $ac_compile) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
13043 ac_lo=0 ac_mid=0
13044 while :; do
13045 cat >conftest.$ac_ext <<_ACEOF
13046/* confdefs.h. */
13047_ACEOF
13048cat confdefs.h >>conftest.$ac_ext
13049cat >>conftest.$ac_ext <<_ACEOF
13050/* end confdefs.h. */
13051$ac_includes_default
13052int
13053main ()
13054{
13055static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13056test_array [0] = 0
13057
13058 ;
13059 return 0;
13060}
13061_ACEOF
13062rm -f conftest.$ac_objext
13063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13064 (eval $ac_compile) 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } &&
13071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } &&
13077 { ac_try='test -s conftest.$ac_objext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13080 ac_status=$?
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 ac_hi=$ac_mid; break
13084else
13085 echo "$as_me: failed program was:" >&5
13086sed 's/^/| /' conftest.$ac_ext >&5
13087
13088ac_lo=`expr $ac_mid + 1`
13089 if test $ac_lo -le $ac_mid; then
13090 ac_lo= ac_hi=
13091 break
13092 fi
13093 ac_mid=`expr 2 '*' $ac_mid + 1`
13094fi
13095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13096 done
13097else
13098 echo "$as_me: failed program was:" >&5
13099sed 's/^/| /' conftest.$ac_ext >&5
13100
13101cat >conftest.$ac_ext <<_ACEOF
13102/* confdefs.h. */
13103_ACEOF
13104cat confdefs.h >>conftest.$ac_ext
13105cat >>conftest.$ac_ext <<_ACEOF
13106/* end confdefs.h. */
13107$ac_includes_default
13108int
13109main ()
13110{
13111static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13112test_array [0] = 0
13113
13114 ;
13115 return 0;
13116}
13117_ACEOF
13118rm -f conftest.$ac_objext
13119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13120 (eval $ac_compile) 2>conftest.er1
13121 ac_status=$?
13122 grep -v '^ *+' conftest.er1 >conftest.err
13123 rm -f conftest.er1
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest.$ac_objext'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_hi=-1 ac_mid=-1
13140 while :; do
13141 cat >conftest.$ac_ext <<_ACEOF
13142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h. */
13147$ac_includes_default
13148int
13149main ()
13150{
13151static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13152test_array [0] = 0
13153
13154 ;
13155 return 0;
13156}
13157_ACEOF
13158rm -f conftest.$ac_objext
13159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13160 (eval $ac_compile) 2>conftest.er1
13161 ac_status=$?
13162 grep -v '^ *+' conftest.er1 >conftest.err
13163 rm -f conftest.er1
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
13167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; } &&
13173 { ac_try='test -s conftest.$ac_objext'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; }; then
13179 ac_lo=$ac_mid; break
13180else
13181 echo "$as_me: failed program was:" >&5
13182sed 's/^/| /' conftest.$ac_ext >&5
13183
13184ac_hi=`expr '(' $ac_mid ')' - 1`
13185 if test $ac_mid -le $ac_hi; then
13186 ac_lo= ac_hi=
13187 break
13188 fi
13189 ac_mid=`expr 2 '*' $ac_mid`
13190fi
13191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13192 done
13193else
13194 echo "$as_me: failed program was:" >&5
13195sed 's/^/| /' conftest.$ac_ext >&5
13196
13197ac_lo= ac_hi=
13198fi
13199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13200fi
13201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13202# Binary search between lo and hi bounds.
13203while test "x$ac_lo" != "x$ac_hi"; do
13204 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13205 cat >conftest.$ac_ext <<_ACEOF
13206/* confdefs.h. */
13207_ACEOF
13208cat confdefs.h >>conftest.$ac_ext
13209cat >>conftest.$ac_ext <<_ACEOF
13210/* end confdefs.h. */
13211$ac_includes_default
13212int
13213main ()
13214{
13215static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13216test_array [0] = 0
13217
13218 ;
13219 return 0;
13220}
13221_ACEOF
13222rm -f conftest.$ac_objext
13223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13224 (eval $ac_compile) 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233 (eval $ac_try) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; } &&
13237 { ac_try='test -s conftest.$ac_objext'
13238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239 (eval $ac_try) 2>&5
13240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 ac_hi=$ac_mid
13244else
13245 echo "$as_me: failed program was:" >&5
13246sed 's/^/| /' conftest.$ac_ext >&5
13247
13248ac_lo=`expr '(' $ac_mid ')' + 1`
13249fi
13250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13251done
13252case $ac_lo in
13253?*) ac_cv_sizeof_long=$ac_lo;;
13254'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13255See \`config.log' for more details." >&5
13256echo "$as_me: error: cannot compute sizeof (long), 77
13257See \`config.log' for more details." >&2;}
13258 { (exit 1); exit 1; }; } ;;
13259esac
13260else
13261 if test "$cross_compiling" = yes; then
13262 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13263echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13264 { (exit 1); exit 1; }; }
13265else
13266 cat >conftest.$ac_ext <<_ACEOF
13267/* confdefs.h. */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h. */
13272$ac_includes_default
13273long longval () { return (long) (sizeof (long)); }
13274unsigned long ulongval () { return (long) (sizeof (long)); }
13275#include <stdio.h>
13276#include <stdlib.h>
13277int
13278main ()
13279{
13280
13281 FILE *f = fopen ("conftest.val", "w");
13282 if (! f)
13283 exit (1);
13284 if (((long) (sizeof (long))) < 0)
13285 {
13286 long i = longval ();
13287 if (i != ((long) (sizeof (long))))
13288 exit (1);
13289 fprintf (f, "%ld\n", i);
13290 }
13291 else
13292 {
13293 unsigned long i = ulongval ();
13294 if (i != ((long) (sizeof (long))))
13295 exit (1);
13296 fprintf (f, "%lu\n", i);
13297 }
13298 exit (ferror (f) || fclose (f) != 0);
13299
13300 ;
13301 return 0;
13302}
13303_ACEOF
13304rm -f conftest$ac_exeext
13305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13306 (eval $ac_link) 2>&5
13307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 ac_cv_sizeof_long=`cat conftest.val`
13316else
13317 echo "$as_me: program exited with status $ac_status" >&5
13318echo "$as_me: failed program was:" >&5
13319sed 's/^/| /' conftest.$ac_ext >&5
13320
13321( exit $ac_status )
13322{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13323See \`config.log' for more details." >&5
13324echo "$as_me: error: cannot compute sizeof (long), 77
13325See \`config.log' for more details." >&2;}
13326 { (exit 1); exit 1; }; }
13327fi
13328rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13329fi
13330fi
13331rm -f conftest.val
13332else
13333 ac_cv_sizeof_long=0
13334fi
13335fi
13336echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13337echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13338cat >>confdefs.h <<_ACEOF
13339#define SIZEOF_LONG $ac_cv_sizeof_long
13340_ACEOF
13341
13342
13343echo "$as_me:$LINENO: checking for long long" >&5 8721echo "$as_me:$LINENO: checking for long long" >&5
13344echo $ECHO_N "checking for long long... $ECHO_C" >&6 8722echo $ECHO_N "checking for long long... $ECHO_C" >&6
13345if test "${ac_cv_type_long_long+set}" = set; then 8723if test "${ac_cv_type_long_long+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6 8724 echo $ECHO_N "(cached) $ECHO_C" >&6
13347else 8725else
14198 rxvt_cv_int16_t=yes 9576 rxvt_cv_int16_t=yes
14199else 9577else
14200 echo "$as_me: failed program was:" >&5 9578 echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5 9579sed 's/^/| /' conftest.$ac_ext >&5
14202 9580
14203if test $ac_cv_sizeof_char -ge 2; then 9581if test "$ac_cv_sizeof_char" -ge 2; then
14204 rxvt_cv_int16_t=" char" 9582 rxvt_cv_int16_t=" char"
14205else 9583else
14206 if test $ac_cv_sizeof_short -ge 2; then 9584 if test "$ac_cv_sizeof_short" -ge 2; then
14207 rxvt_cv_int16_t=" short" 9585 rxvt_cv_int16_t=" short"
14208 else 9586 else
14209 if test $ac_cv_sizeof_int -ge 2; then 9587 if test "$ac_cv_sizeof_int" -ge 2; then
14210 rxvt_cv_int16_t=" int" 9588 rxvt_cv_int16_t=" int"
14211 else 9589 else
14212 if test $ac_cv_sizeof_long -ge 2; then 9590 if test "$ac_cv_sizeof_long" -ge 2; then
14213 rxvt_cv_int16_t=" long" 9591 rxvt_cv_int16_t=" long"
14214 else 9592 else
14215 if test $ac_cv_sizeof_long_long -ge 2; then 9593 if test "$ac_cv_sizeof_long_long" -ge 2; then
14216 rxvt_cv_int16_t=" long long" 9594 rxvt_cv_int16_t=" long long"
14217 else 9595 else
14218 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9596 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14219 fi 9597 fi
14220 fi 9598 fi
14280 rxvt_cv_uint16_t=yes 9658 rxvt_cv_uint16_t=yes
14281else 9659else
14282 echo "$as_me: failed program was:" >&5 9660 echo "$as_me: failed program was:" >&5
14283sed 's/^/| /' conftest.$ac_ext >&5 9661sed 's/^/| /' conftest.$ac_ext >&5
14284 9662
14285if test $ac_cv_sizeof_char -ge 2; then 9663if test "$ac_cv_sizeof_char" -ge 2; then
14286 rxvt_cv_uint16_t="unsigned char" 9664 rxvt_cv_uint16_t="unsigned char"
14287else 9665else
14288 if test $ac_cv_sizeof_short -ge 2; then 9666 if test "$ac_cv_sizeof_short" -ge 2; then
14289 rxvt_cv_uint16_t="unsigned short" 9667 rxvt_cv_uint16_t="unsigned short"
14290 else 9668 else
14291 if test $ac_cv_sizeof_int -ge 2; then 9669 if test "$ac_cv_sizeof_int" -ge 2; then
14292 rxvt_cv_uint16_t="unsigned int" 9670 rxvt_cv_uint16_t="unsigned int"
14293 else 9671 else
14294 if test $ac_cv_sizeof_long -ge 2; then 9672 if test "$ac_cv_sizeof_long" -ge 2; then
14295 rxvt_cv_uint16_t="unsigned long" 9673 rxvt_cv_uint16_t="unsigned long"
14296 else 9674 else
14297 if test $ac_cv_sizeof_long_long -ge 2; then 9675 if test "$ac_cv_sizeof_long_long" -ge 2; then
14298 rxvt_cv_uint16_t="unsigned long long" 9676 rxvt_cv_uint16_t="unsigned long long"
14299 else 9677 else
14300 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9678 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14301 fi 9679 fi
14302 fi 9680 fi
14362 rxvt_cv_int32_t=yes 9740 rxvt_cv_int32_t=yes
14363else 9741else
14364 echo "$as_me: failed program was:" >&5 9742 echo "$as_me: failed program was:" >&5
14365sed 's/^/| /' conftest.$ac_ext >&5 9743sed 's/^/| /' conftest.$ac_ext >&5
14366 9744
14367if test $ac_cv_sizeof_char -ge 4; then 9745if test "$ac_cv_sizeof_char" -ge 4; then
14368 rxvt_cv_int32_t=" char" 9746 rxvt_cv_int32_t=" char"
14369else 9747else
14370 if test $ac_cv_sizeof_short -ge 4; then 9748 if test "$ac_cv_sizeof_short" -ge 4; then
14371 rxvt_cv_int32_t=" short" 9749 rxvt_cv_int32_t=" short"
14372 else 9750 else
14373 if test $ac_cv_sizeof_int -ge 4; then 9751 if test "$ac_cv_sizeof_int" -ge 4; then
14374 rxvt_cv_int32_t=" int" 9752 rxvt_cv_int32_t=" int"
14375 else 9753 else
14376 if test $ac_cv_sizeof_long -ge 4; then 9754 if test "$ac_cv_sizeof_long" -ge 4; then
14377 rxvt_cv_int32_t=" long" 9755 rxvt_cv_int32_t=" long"
14378 else 9756 else
14379 if test $ac_cv_sizeof_long_long -ge 4; then 9757 if test "$ac_cv_sizeof_long_long" -ge 4; then
14380 rxvt_cv_int32_t=" long long" 9758 rxvt_cv_int32_t=" long long"
14381 else 9759 else
14382 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9760 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14383 fi 9761 fi
14384 fi 9762 fi
14444 rxvt_cv_uint32_t=yes 9822 rxvt_cv_uint32_t=yes
14445else 9823else
14446 echo "$as_me: failed program was:" >&5 9824 echo "$as_me: failed program was:" >&5
14447sed 's/^/| /' conftest.$ac_ext >&5 9825sed 's/^/| /' conftest.$ac_ext >&5
14448 9826
14449if test $ac_cv_sizeof_char -ge 4; then 9827if test "$ac_cv_sizeof_char" -ge 4; then
14450 rxvt_cv_uint32_t="unsigned char" 9828 rxvt_cv_uint32_t="unsigned char"
14451else 9829else
14452 if test $ac_cv_sizeof_short -ge 4; then 9830 if test "$ac_cv_sizeof_short" -ge 4; then
14453 rxvt_cv_uint32_t="unsigned short" 9831 rxvt_cv_uint32_t="unsigned short"
14454 else 9832 else
14455 if test $ac_cv_sizeof_int -ge 4; then 9833 if test "$ac_cv_sizeof_int" -ge 4; then
14456 rxvt_cv_uint32_t="unsigned int" 9834 rxvt_cv_uint32_t="unsigned int"
14457 else 9835 else
14458 if test $ac_cv_sizeof_long -ge 4; then 9836 if test "$ac_cv_sizeof_long" -ge 4; then
14459 rxvt_cv_uint32_t="unsigned long" 9837 rxvt_cv_uint32_t="unsigned long"
14460 else 9838 else
14461 if test $ac_cv_sizeof_long_long -ge 4; then 9839 if test "$ac_cv_sizeof_long_long" -ge 4; then
14462 rxvt_cv_uint32_t="unsigned long long" 9840 rxvt_cv_uint32_t="unsigned long long"
14463 else 9841 else
14464 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9842 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14465 fi 9843 fi
14466 fi 9844 fi
14480 else 9858 else
14481 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9859 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14482 fi 9860 fi
14483fi 9861fi
14484 9862
14485if test $ac_cv_sizeof_int_p -eq 8; then 9863if test "$ac_cv_sizeof_int_p" -eq 8; then
14486 rxvt_intp_define="#define intp_t int64_t" 9864 rxvt_intp_define="#define intp_t int64_t"
14487 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9865 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14488else 9866else
14489 if test $ac_cv_sizeof_int_p -eq 4; then 9867 if test "$ac_cv_sizeof_int_p" -eq 4; then
14490 rxvt_intp_define="#define intp_t int32_t" 9868 rxvt_intp_define="#define intp_t int32_t"
14491 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9869 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14492 else 9870 else
14493 if test $ac_cv_sizeof_int_p -eq 2; then 9871 if test "$ac_cv_sizeof_int_p" -eq 2; then
14494 rxvt_intp_define="#define intp_t int16_t" 9872 rxvt_intp_define="#define intp_t int16_t"
14495 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9873 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14496 else 9874 else
14497 rxvt_intp_define="#error set intp_t" 9875 rxvt_intp_define="#error set intp_t"
14498 rxvt_u_intp_define="#error set u_intp_t" 9876 rxvt_u_intp_define="#error set u_intp_t"
14569#define RETSIGTYPE $ac_cv_type_signal 9947#define RETSIGTYPE $ac_cv_type_signal
14570_ACEOF 9948_ACEOF
14571 9949
14572 9950
14573 9951
14574case "$host_alias" in
14575 *ultrix) ac_cv_func_setsid='no' ;;
14576 *) break;;
14577esac
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594 9952
14595 9953
14596 9954
14597for ac_func in \ 9955for ac_func in \
14598 atexit \
14599 revoke \
14600 unsetenv \ 9956 unsetenv \
14601 setutent \ 9957 setutent \
14602 seteuid \
14603 setreuid \
14604 setsid \
14605 setpgrp \
14606 setpgid \
14607 openpty \
14608 _getpty \
14609 grantpt \
14610 unlockpt \
14611 isastream \
14612 on_exit \ 9958 on_exit \
14613 nanosleep \
14614 updwtmp \
14615 ttyslot \
14616 9959
14617do 9960do
14618as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14619echo "$as_me:$LINENO: checking for $ac_func" >&5 9962echo "$as_me:$LINENO: checking for $ac_func" >&5
14620echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14709 cat >>confdefs.h <<_ACEOF 10052 cat >>confdefs.h <<_ACEOF
14710#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14711_ACEOF 10054_ACEOF
14712 10055
14713fi 10056fi
10057done
10058
10059
10060
10061support_utmp=yes
10062support_wtmp=yes
10063support_lastlog=yes
10064
10065# Check whether --enable-utmp or --disable-utmp was given.
10066if test "${enable_utmp+set}" = set; then
10067 enableval="$enable_utmp"
10068 if test x$enableval = xyes -o x$enableval = xno; then
10069 support_utmp=$enableval
10070 fi
10071fi;
10072
10073# Check whether --enable-wtmp or --disable-wtmp was given.
10074if test "${enable_wtmp+set}" = set; then
10075 enableval="$enable_wtmp"
10076 if test x$enableval = xyes -o x$enableval = xno; then
10077 support_wtmp=$enableval
10078 fi
10079fi;
10080
10081# Check whether --enable-lastlog or --disable-lastlog was given.
10082if test "${enable_lastlog+set}" = set; then
10083 enableval="$enable_lastlog"
10084 if test x$enableval = xyes -o x$enableval = xno; then
10085 support_lastlog=$enableval
10086 fi
10087fi;
10088
10089if test x$support_utmp = xyes; then
10090
10091cat >>confdefs.h <<\_ACEOF
10092#define UTMP_SUPPORT 1
10093_ACEOF
10094
10095fi
10096if test x$support_wtmp = xyes; then
10097
10098cat >>confdefs.h <<\_ACEOF
10099#define WTMP_SUPPORT 1
10100_ACEOF
10101
10102fi
10103if test x$support_lastlog = xyes; then
10104
10105cat >>confdefs.h <<\_ACEOF
10106#define LASTLOG_SUPPORT 1
10107_ACEOF
10108
10109fi
10110
10111
10112
10113
10114for ac_func in \
10115 ttyslot \
10116 updwtmp \
10117 updwtmpx \
10118
10119do
10120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10121echo "$as_me:$LINENO: checking for $ac_func" >&5
10122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10123if eval "test \"\${$as_ac_var+set}\" = set"; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
10126 cat >conftest.$ac_ext <<_ACEOF
10127/* confdefs.h. */
10128_ACEOF
10129cat confdefs.h >>conftest.$ac_ext
10130cat >>conftest.$ac_ext <<_ACEOF
10131/* end confdefs.h. */
10132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10134#define $ac_func innocuous_$ac_func
10135
10136/* System header to define __stub macros and hopefully few prototypes,
10137 which can conflict with char $ac_func (); below.
10138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10139 <limits.h> exists even on freestanding compilers. */
10140
10141#ifdef __STDC__
10142# include <limits.h>
10143#else
10144# include <assert.h>
10145#endif
10146
10147#undef $ac_func
10148
10149/* Override any gcc2 internal prototype to avoid an error. */
10150#ifdef __cplusplus
10151extern "C"
10152{
10153#endif
10154/* We use char because int might match the return type of a gcc2
10155 builtin and then its argument prototype would still apply. */
10156char $ac_func ();
10157/* The GNU C library defines this for functions which it implements
10158 to always fail with ENOSYS. Some functions are actually named
10159 something starting with __ and the normal name is an alias. */
10160#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10161choke me
10162#else
10163char (*f) () = $ac_func;
10164#endif
10165#ifdef __cplusplus
10166}
10167#endif
10168
10169int
10170main ()
10171{
10172return f != $ac_func;
10173 ;
10174 return 0;
10175}
10176_ACEOF
10177rm -f conftest.$ac_objext conftest$ac_exeext
10178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10179 (eval $ac_link) 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
10186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188 (eval $ac_try) 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; } &&
10192 { ac_try='test -s conftest$ac_exeext'
10193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194 (eval $ac_try) 2>&5
10195 ac_status=$?
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); }; }; then
10198 eval "$as_ac_var=yes"
10199else
10200 echo "$as_me: failed program was:" >&5
10201sed 's/^/| /' conftest.$ac_ext >&5
10202
10203eval "$as_ac_var=no"
10204fi
10205rm -f conftest.err conftest.$ac_objext \
10206 conftest$ac_exeext conftest.$ac_ext
10207fi
10208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10209echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10210if test `eval echo '${'$as_ac_var'}'` = yes; then
10211 cat >>confdefs.h <<_ACEOF
10212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10213_ACEOF
10214
10215fi
10216done
10217
10218
10219
10220
10221
10222for ac_header in \
10223 utmp.h \
10224 utmpx.h \
10225 lastlog.h \
10226
10227do
10228as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10229if eval "test \"\${$as_ac_Header+set}\" = set"; then
10230 echo "$as_me:$LINENO: checking for $ac_header" >&5
10231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10232if eval "test \"\${$as_ac_Header+set}\" = set"; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234fi
10235echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10236echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10237else
10238 # Is the header compilable?
10239echo "$as_me:$LINENO: checking $ac_header usability" >&5
10240echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10241cat >conftest.$ac_ext <<_ACEOF
10242/* confdefs.h. */
10243_ACEOF
10244cat confdefs.h >>conftest.$ac_ext
10245cat >>conftest.$ac_ext <<_ACEOF
10246/* end confdefs.h. */
10247$ac_includes_default
10248#include <$ac_header>
10249_ACEOF
10250rm -f conftest.$ac_objext
10251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252 (eval $ac_compile) 2>conftest.er1
10253 ac_status=$?
10254 grep -v '^ *+' conftest.er1 >conftest.err
10255 rm -f conftest.er1
10256 cat conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } &&
10259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10262 ac_status=$?
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; } &&
10265 { ac_try='test -s conftest.$ac_objext'
10266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10267 (eval $ac_try) 2>&5
10268 ac_status=$?
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 ac_header_compiler=yes
10272else
10273 echo "$as_me: failed program was:" >&5
10274sed 's/^/| /' conftest.$ac_ext >&5
10275
10276ac_header_compiler=no
10277fi
10278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10280echo "${ECHO_T}$ac_header_compiler" >&6
10281
10282# Is the header present?
10283echo "$as_me:$LINENO: checking $ac_header presence" >&5
10284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10285cat >conftest.$ac_ext <<_ACEOF
10286/* confdefs.h. */
10287_ACEOF
10288cat confdefs.h >>conftest.$ac_ext
10289cat >>conftest.$ac_ext <<_ACEOF
10290/* end confdefs.h. */
10291#include <$ac_header>
10292_ACEOF
10293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } >/dev/null; then
10301 if test -s conftest.err; then
10302 ac_cpp_err=$ac_cxx_preproc_warn_flag
10303 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10304 else
10305 ac_cpp_err=
10306 fi
10307else
10308 ac_cpp_err=yes
10309fi
10310if test -z "$ac_cpp_err"; then
10311 ac_header_preproc=yes
10312else
10313 echo "$as_me: failed program was:" >&5
10314sed 's/^/| /' conftest.$ac_ext >&5
10315
10316 ac_header_preproc=no
10317fi
10318rm -f conftest.err conftest.$ac_ext
10319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10320echo "${ECHO_T}$ac_header_preproc" >&6
10321
10322# So? What about this header?
10323case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10324 yes:no: )
10325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10329 ac_header_preproc=yes
10330 ;;
10331 no:yes:* )
10332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10344 (
10345 cat <<\_ASBOX
10346## ------------------------------------------ ##
10347## Report this to the AC_PACKAGE_NAME lists. ##
10348## ------------------------------------------ ##
10349_ASBOX
10350 ) |
10351 sed "s/^/$as_me: WARNING: /" >&2
10352 ;;
10353esac
10354echo "$as_me:$LINENO: checking for $ac_header" >&5
10355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10356if eval "test \"\${$as_ac_Header+set}\" = set"; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10358else
10359 eval "$as_ac_Header=\$ac_header_preproc"
10360fi
10361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10363
10364fi
10365if test `eval echo '${'$as_ac_Header'}'` = yes; then
10366 cat >>confdefs.h <<_ACEOF
10367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10368_ACEOF
10369
10370fi
10371
14714done 10372done
14715 10373
14716 10374
14717 10375
14718if test "${ac_cv_header_utmp_h+set}" = set; then 10376if test "${ac_cv_header_utmp_h+set}" = set; then
14852 10510
14853fi 10511fi
14854if test $ac_cv_header_utmp_h = yes; then 10512if test $ac_cv_header_utmp_h = yes; then
14855 echo "$as_me:$LINENO: checking for struct utmp" >&5 10513 echo "$as_me:$LINENO: checking for struct utmp" >&5
14856echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10514echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14857if test "${rxvt_cv_struct_utmp+set}" = set; then 10515if test "${struct_utmp+set}" = set; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6 10516 echo $ECHO_N "(cached) $ECHO_C" >&6
14859else 10517else
14860 cat >conftest.$ac_ext <<_ACEOF 10518 cat >conftest.$ac_ext <<_ACEOF
14861/* confdefs.h. */ 10519/* confdefs.h. */
14862_ACEOF 10520_ACEOF
14863cat confdefs.h >>conftest.$ac_ext 10521cat confdefs.h >>conftest.$ac_ext
14864cat >>conftest.$ac_ext <<_ACEOF 10522cat >>conftest.$ac_ext <<_ACEOF
14865/* end confdefs.h. */ 10523/* end confdefs.h. */
14866#include <sys/types.h> 10524#include <sys/types.h>
14867#include <stdint.h>
14868#include <utmp.h> 10525#include <utmp.h>
14869int 10526int
14870main () 10527main ()
14871{ 10528{
14872struct utmp ut; 10529struct utmp ut;
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5 10551 (eval $ac_try) 2>&5
14895 ac_status=$? 10552 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then 10554 (exit $ac_status); }; }; then
14898 rxvt_cv_struct_utmp=yes 10555 struct_utmp=yes
14899else 10556else
14900 echo "$as_me: failed program was:" >&5 10557 echo "$as_me: failed program was:" >&5
14901sed 's/^/| /' conftest.$ac_ext >&5 10558sed 's/^/| /' conftest.$ac_ext >&5
14902 10559
14903rxvt_cv_struct_utmp=no 10560struct_utmp=no
14904fi 10561fi
14905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14906fi 10563fi
14907echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10564echo "$as_me:$LINENO: result: $struct_utmp" >&5
14908echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10565echo "${ECHO_T}$struct_utmp" >&6
14909if test x$rxvt_cv_struct_utmp = xyes; then 10566if test x$struct_utmp = xyes; then
14910 10567
14911cat >>confdefs.h <<\_ACEOF 10568cat >>confdefs.h <<\_ACEOF
14912#define HAVE_STRUCT_UTMP 1 10569#define HAVE_STRUCT_UTMP 1
14913_ACEOF 10570_ACEOF
14914 10571
14915fi 10572fi
14916 10573
14917 10574
14918echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10575echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14919echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10576echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14920if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10577if test "${struct_utmp_host+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6 10578 echo $ECHO_N "(cached) $ECHO_C" >&6
14922else 10579else
14923 cat >conftest.$ac_ext <<_ACEOF 10580 cat >conftest.$ac_ext <<_ACEOF
14924/* confdefs.h. */ 10581/* confdefs.h. */
14925_ACEOF 10582_ACEOF
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5 10613 (eval $ac_try) 2>&5
14957 ac_status=$? 10614 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then 10616 (exit $ac_status); }; }; then
14960 rxvt_cv_struct_utmp_host=yes 10617 struct_utmp_host=yes
14961else 10618else
14962 echo "$as_me: failed program was:" >&5 10619 echo "$as_me: failed program was:" >&5
14963sed 's/^/| /' conftest.$ac_ext >&5 10620sed 's/^/| /' conftest.$ac_ext >&5
14964 10621
14965rxvt_cv_struct_utmp_host=no 10622struct_utmp_host=no
14966fi 10623fi
14967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14968fi 10625fi
14969echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10626echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
14970echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10627echo "${ECHO_T}$struct_utmp_host" >&6
14971if test x$rxvt_cv_struct_utmp_host = xyes; then 10628if test x$struct_utmp_host = xyes; then
14972 10629
14973cat >>confdefs.h <<\_ACEOF 10630cat >>confdefs.h <<\_ACEOF
14974#define HAVE_UTMP_HOST 1 10631#define HAVE_UTMP_HOST 1
14975_ACEOF 10632_ACEOF
14976 10633
14977fi 10634fi
14978 10635
14979echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10636echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
14980echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10637echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
14981if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10638if test "${struct_utmp_pid+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6 10639 echo $ECHO_N "(cached) $ECHO_C" >&6
14983else 10640else
14984 cat >conftest.$ac_ext <<_ACEOF 10641 cat >conftest.$ac_ext <<_ACEOF
14985/* confdefs.h. */ 10642/* confdefs.h. */
14986_ACEOF 10643_ACEOF
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5 10674 (eval $ac_try) 2>&5
15018 ac_status=$? 10675 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then 10677 (exit $ac_status); }; }; then
15021 rxvt_cv_struct_utmp_pid=yes 10678 struct_utmp_pid=yes
15022else 10679else
15023 echo "$as_me: failed program was:" >&5 10680 echo "$as_me: failed program was:" >&5
15024sed 's/^/| /' conftest.$ac_ext >&5 10681sed 's/^/| /' conftest.$ac_ext >&5
15025 10682
15026rxvt_cv_struct_utmp_pid=no 10683struct_utmp_pid=no
15027fi 10684fi
15028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15029fi 10686fi
15030echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10687echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
15031echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10688echo "${ECHO_T}$struct_utmp_pid" >&6
15032if test x$rxvt_cv_struct_utmp_pid = xyes; then 10689if test x$struct_utmp_pid = xyes; then
15033 10690
15034cat >>confdefs.h <<\_ACEOF 10691cat >>confdefs.h <<\_ACEOF
15035#define HAVE_UTMP_PID 1 10692#define HAVE_UTMP_PID 1
15036_ACEOF 10693_ACEOF
15037 10694
15178 10835
15179fi 10836fi
15180if test $ac_cv_header_utmpx_h = yes; then 10837if test $ac_cv_header_utmpx_h = yes; then
15181 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10838 echo "$as_me:$LINENO: checking for struct utmpx" >&5
15182echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10839echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
15183if test "${rxvt_cv_struct_utmpx+set}" = set; then 10840if test "${struct_utmpx+set}" = set; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6 10841 echo $ECHO_N "(cached) $ECHO_C" >&6
15185else 10842else
15186 cat >conftest.$ac_ext <<_ACEOF 10843 cat >conftest.$ac_ext <<_ACEOF
15187/* confdefs.h. */ 10844/* confdefs.h. */
15188_ACEOF 10845_ACEOF
15218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15219 (eval $ac_try) 2>&5 10876 (eval $ac_try) 2>&5
15220 ac_status=$? 10877 ac_status=$?
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; }; then 10879 (exit $ac_status); }; }; then
15223 rxvt_cv_struct_utmpx=yes 10880 struct_utmpx=yes
15224else 10881else
15225 echo "$as_me: failed program was:" >&5 10882 echo "$as_me: failed program was:" >&5
15226sed 's/^/| /' conftest.$ac_ext >&5 10883sed 's/^/| /' conftest.$ac_ext >&5
15227 10884
15228rxvt_cv_struct_utmpx=no 10885struct_utmpx=no
15229fi 10886fi
15230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15231fi 10888fi
15232echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10889echo "$as_me:$LINENO: result: $struct_utmpx" >&5
15233echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10890echo "${ECHO_T}$struct_utmpx" >&6
15234if test x$rxvt_cv_struct_utmpx = xyes; then 10891if test x$struct_utmpx = xyes; then
15235 10892
15236cat >>confdefs.h <<\_ACEOF 10893cat >>confdefs.h <<\_ACEOF
15237#define HAVE_STRUCT_UTMPX 1 10894#define HAVE_STRUCT_UTMPX 1
15238_ACEOF 10895_ACEOF
15239 10896
15240fi 10897fi
15241 10898
15242 10899
15243echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10900echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
15244echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10901echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
15245if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10902if test "${struct_utmpx_host+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6 10903 echo $ECHO_N "(cached) $ECHO_C" >&6
15247else 10904else
15248 cat >conftest.$ac_ext <<_ACEOF 10905 cat >conftest.$ac_ext <<_ACEOF
15249/* confdefs.h. */ 10906/* confdefs.h. */
15250_ACEOF 10907_ACEOF
15280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281 (eval $ac_try) 2>&5 10938 (eval $ac_try) 2>&5
15282 ac_status=$? 10939 ac_status=$?
15283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284 (exit $ac_status); }; }; then 10941 (exit $ac_status); }; }; then
15285 rxvt_cv_struct_utmpx_host=yes 10942 struct_utmpx_host=yes
15286else 10943else
15287 echo "$as_me: failed program was:" >&5 10944 echo "$as_me: failed program was:" >&5
15288sed 's/^/| /' conftest.$ac_ext >&5 10945sed 's/^/| /' conftest.$ac_ext >&5
15289 10946
15290rxvt_cv_struct_utmpx_host=no 10947struct_utmpx_host=no
15291fi 10948fi
15292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15293fi 10950fi
15294echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 10951echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
15295echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 10952echo "${ECHO_T}$struct_utmpx_host" >&6
15296if test x$rxvt_cv_struct_utmpx_host = xyes; then 10953if test x$struct_utmpx_host = xyes; then
15297 10954
15298cat >>confdefs.h <<\_ACEOF 10955cat >>confdefs.h <<\_ACEOF
15299#define HAVE_UTMPX_HOST 1 10956#define HAVE_UTMPX_HOST 1
15300_ACEOF 10957_ACEOF
15301 10958
15302fi 10959fi
15303 10960
15304fi 10961echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10962echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10963if test "${struct_utmpx_session+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965else
10966 cat >conftest.$ac_ext <<_ACEOF
10967/* confdefs.h. */
10968_ACEOF
10969cat confdefs.h >>conftest.$ac_ext
10970cat >>conftest.$ac_ext <<_ACEOF
10971/* end confdefs.h. */
10972#include <sys/types.h>
10973#include <utmpx.h>
10974int
10975main ()
10976{
10977struct utmpx utx; utx.ut_session;
10978 ;
10979 return 0;
10980}
10981_ACEOF
10982rm -f conftest.$ac_objext
10983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984 (eval $ac_compile) 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } &&
10991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993 (eval $ac_try) 2>&5
10994 ac_status=$?
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); }; } &&
10997 { ac_try='test -s conftest.$ac_objext'
10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999 (eval $ac_try) 2>&5
11000 ac_status=$?
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; }; then
11003 struct_utmpx_session=yes
11004else
11005 echo "$as_me: failed program was:" >&5
11006sed 's/^/| /' conftest.$ac_ext >&5
15305 11007
11008struct_utmpx_session=no
11009fi
11010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11011fi
11012echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
11013echo "${ECHO_T}$struct_utmpx_session" >&6
11014if test x$struct_utmpx_session = xyes; then
11015
11016cat >>confdefs.h <<\_ACEOF
11017#define HAVE_UTMPX_SESSION 1
11018_ACEOF
11019
11020fi
11021
11022fi
15306 11023
15307 11024
15308echo "$as_me:$LINENO: checking for struct lastlog" >&5 11025echo "$as_me:$LINENO: checking for struct lastlog" >&5
15309echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 11026echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15310if test "${rxvt_cv_struct_lastlog+set}" = set; then 11027if test "${struct_lastlog+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6 11028 echo $ECHO_N "(cached) $ECHO_C" >&6
15312else 11029else
15313 cat >conftest.$ac_ext <<_ACEOF 11030 cat >conftest.$ac_ext <<_ACEOF
15314/* confdefs.h. */ 11031/* confdefs.h. */
15315_ACEOF 11032_ACEOF
15349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15350 (eval $ac_try) 2>&5 11067 (eval $ac_try) 2>&5
15351 ac_status=$? 11068 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); }; }; then 11070 (exit $ac_status); }; }; then
15354 rxvt_cv_struct_lastlog=yes 11071 struct_lastlog=yes
15355else 11072else
15356 echo "$as_me: failed program was:" >&5 11073 echo "$as_me: failed program was:" >&5
15357sed 's/^/| /' conftest.$ac_ext >&5 11074sed 's/^/| /' conftest.$ac_ext >&5
15358 11075
15359rxvt_cv_struct_lastlog=no 11076struct_lastlog=no
15360fi 11077fi
15361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15362fi 11079fi
15363echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 11080echo "$as_me:$LINENO: result: $struct_lastlog" >&5
15364echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 11081echo "${ECHO_T}$struct_lastlog" >&6
15365if test x$rxvt_cv_struct_lastlog = xyes; then 11082if test x$struct_lastlog = xyes; then
15366 11083
15367cat >>confdefs.h <<\_ACEOF 11084cat >>confdefs.h <<\_ACEOF
15368#define HAVE_STRUCT_LASTLOG 1 11085#define HAVE_STRUCT_LASTLOG 1
15369_ACEOF 11086_ACEOF
15370 11087
15371fi 11088fi
15372 11089
15373echo "$as_me:$LINENO: checking for struct lastlogx" >&5 11090echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15374echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 11091echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15375if test "${rxvt_cv_struct_lastlogx+set}" = set; then 11092if test "${struct_lastlogx+set}" = set; then
15376 echo $ECHO_N "(cached) $ECHO_C" >&6 11093 echo $ECHO_N "(cached) $ECHO_C" >&6
15377else 11094else
15378 cat >conftest.$ac_ext <<_ACEOF 11095 cat >conftest.$ac_ext <<_ACEOF
15379/* confdefs.h. */ 11096/* confdefs.h. */
15380_ACEOF 11097_ACEOF
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5 11132 (eval $ac_try) 2>&5
15416 ac_status=$? 11133 ac_status=$?
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then 11135 (exit $ac_status); }; }; then
15419 rxvt_cv_struct_lastlogx=yes 11136 struct_lastlogx=yes
15420else 11137else
15421 echo "$as_me: failed program was:" >&5 11138 echo "$as_me: failed program was:" >&5
15422sed 's/^/| /' conftest.$ac_ext >&5 11139sed 's/^/| /' conftest.$ac_ext >&5
15423 11140
15424rxvt_cv_struct_lastlogx=no 11141struct_lastlogx=no
15425fi 11142fi
15426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15427fi 11144fi
15428echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 11145echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
15429echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 11146echo "${ECHO_T}$struct_lastlogx" >&6
15430if test x$rxvt_cv_struct_lastlogx = xyes; then 11147if test x$struct_lastlogx = xyes; then
15431 11148
15432cat >>confdefs.h <<\_ACEOF 11149cat >>confdefs.h <<\_ACEOF
15433#define HAVE_STRUCT_LASTLOGX 1 11150#define HAVE_STRUCT_LASTLOGX 1
15434_ACEOF 11151_ACEOF
15435 11152
15436fi 11153fi
15437 11154
15438 11155
15439echo "$as_me:$LINENO: checking where utmp is located" >&5 11156echo "$as_me:$LINENO: checking where utmp is located" >&5
15440echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 11157echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15441if test "${rxvt_cv_path_utmp+set}" = set; then 11158if test "${path_utmp+set}" = set; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6 11159 echo $ECHO_N "(cached) $ECHO_C" >&6
15443else 11160else
15444 if test "$cross_compiling" = yes; then 11161 if test "$cross_compiling" = yes; then
15445 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 11162 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
15446echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 11163echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
15447else 11164else
15448 cat >conftest.$ac_ext <<_ACEOF 11165 cat >conftest.$ac_ext <<_ACEOF
15449/* confdefs.h. */ 11166/* confdefs.h. */
15450_ACEOF 11167_ACEOF
15451cat confdefs.h >>conftest.$ac_ext 11168cat confdefs.h >>conftest.$ac_ext
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5 11205 (eval $ac_try) 2>&5
15489 ac_status=$? 11206 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then 11208 (exit $ac_status); }; }; then
15492 rxvt_cv_path_utmp=`cat conftestval` 11209 path_utmp=`cat conftestval`
15493else 11210else
15494 echo "$as_me: program exited with status $ac_status" >&5 11211 echo "$as_me: program exited with status $ac_status" >&5
15495echo "$as_me: failed program was:" >&5 11212echo "$as_me: failed program was:" >&5
15496sed 's/^/| /' conftest.$ac_ext >&5 11213sed 's/^/| /' conftest.$ac_ext >&5
15497 11214
15498( exit $ac_status ) 11215( exit $ac_status )
15499rxvt_cv_path_utmp= 11216path_utmp=
15500fi 11217fi
15501rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11218rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15502fi 11219fi
15503fi 11220fi
15504echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11221echo "$as_me:$LINENO: result: $path_utmp" >&5
15505echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11222echo "${ECHO_T}$path_utmp" >&6
15506if test x$rxvt_cv_path_utmp != x; then 11223if test x$path_utmp != x; then
15507 11224
15508cat >>confdefs.h <<_ACEOF 11225cat >>confdefs.h <<_ACEOF
15509#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11226#define UTMP_FILE "$path_utmp"
15510_ACEOF 11227_ACEOF
15511 11228
15512fi 11229fi
15513 11230
15514 11231
15515echo "$as_me:$LINENO: checking where utmpx is located" >&5 11232echo "$as_me:$LINENO: checking where utmpx is located" >&5
15516echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11233echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15517if test "${rxvt_cv_path_utmpx+set}" = set; then 11234if test "${path_utmpx+set}" = set; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6 11235 echo $ECHO_N "(cached) $ECHO_C" >&6
15519else 11236else
15520 if test "$cross_compiling" = yes; then 11237 if test "$cross_compiling" = yes; then
15521 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11238 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
15522echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11239echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
15523else 11240else
15524 cat >conftest.$ac_ext <<_ACEOF 11241 cat >conftest.$ac_ext <<_ACEOF
15525/* confdefs.h. */ 11242/* confdefs.h. */
15526_ACEOF 11243_ACEOF
15527cat confdefs.h >>conftest.$ac_ext 11244cat confdefs.h >>conftest.$ac_ext
15573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15574 (eval $ac_try) 2>&5 11291 (eval $ac_try) 2>&5
15575 ac_status=$? 11292 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then 11294 (exit $ac_status); }; }; then
15578 rxvt_cv_path_utmpx=`cat conftestval` 11295 path_utmpx=`cat conftestval`
15579else 11296else
15580 echo "$as_me: program exited with status $ac_status" >&5 11297 echo "$as_me: program exited with status $ac_status" >&5
15581echo "$as_me: failed program was:" >&5 11298echo "$as_me: failed program was:" >&5
15582sed 's/^/| /' conftest.$ac_ext >&5 11299sed 's/^/| /' conftest.$ac_ext >&5
15583 11300
15584( exit $ac_status ) 11301( exit $ac_status )
15585rxvt_cv_path_utmpx= 11302path_utmpx=
15586fi 11303fi
15587rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11304rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15588fi 11305fi
15589fi 11306fi
15590echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11307echo "$as_me:$LINENO: result: $path_utmpx" >&5
15591echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11308echo "${ECHO_T}$path_utmpx" >&6
15592if test x$rxvt_cv_path_utmpx != x; then 11309if test x$path_utmpx != x; then
15593 11310
15594cat >>confdefs.h <<_ACEOF 11311cat >>confdefs.h <<_ACEOF
15595#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11312#define UTMPX_FILE "$path_utmpx"
15596_ACEOF 11313_ACEOF
15597 11314
15598fi 11315fi
15599 11316
15600 11317
15601echo "$as_me:$LINENO: checking where wtmp is located" >&5 11318echo "$as_me:$LINENO: checking where wtmp is located" >&5
15602echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11319echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15603if test "${rxvt_cv_path_wtmp+set}" = set; then 11320if test "${path_wtmp+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6 11321 echo $ECHO_N "(cached) $ECHO_C" >&6
15605else 11322else
15606 if test "$cross_compiling" = yes; then 11323 if test "$cross_compiling" = yes; then
15607 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11324 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
15608echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11325echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
15609else 11326else
15610 cat >conftest.$ac_ext <<_ACEOF 11327 cat >conftest.$ac_ext <<_ACEOF
15611/* confdefs.h. */ 11328/* confdefs.h. */
15612_ACEOF 11329_ACEOF
15613cat confdefs.h >>conftest.$ac_ext 11330cat confdefs.h >>conftest.$ac_ext
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5 11369 (eval $ac_try) 2>&5
15653 ac_status=$? 11370 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; }; then 11372 (exit $ac_status); }; }; then
15656 rxvt_cv_path_wtmp=`cat conftestval` 11373 path_wtmp=`cat conftestval`
15657else 11374else
15658 echo "$as_me: program exited with status $ac_status" >&5 11375 echo "$as_me: program exited with status $ac_status" >&5
15659echo "$as_me: failed program was:" >&5 11376echo "$as_me: failed program was:" >&5
15660sed 's/^/| /' conftest.$ac_ext >&5 11377sed 's/^/| /' conftest.$ac_ext >&5
15661 11378
15662( exit $ac_status ) 11379( exit $ac_status )
15663rxvt_cv_path_wtmp= 11380path_wtmp=
15664fi 11381fi
15665rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11382rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15666fi 11383fi
15667fi 11384fi
15668echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11385echo "$as_me:$LINENO: result: $path_wtmp" >&5
15669echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11386echo "${ECHO_T}$path_wtmp" >&6
15670if test x$rxvt_cv_path_wtmp != x; then 11387if test x$path_wtmp != x; then
15671 11388
15672cat >>confdefs.h <<_ACEOF 11389cat >>confdefs.h <<_ACEOF
15673#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11390#define WTMP_FILE "$path_wtmp"
15674_ACEOF 11391_ACEOF
15675 11392
15676fi 11393fi
15677 11394
15678echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11395echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15679echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11396echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15680if test "${rxvt_cv_path_wtmpx+set}" = set; then 11397if test "${path_wtmpx+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6 11398 echo $ECHO_N "(cached) $ECHO_C" >&6
15682else 11399else
15683 if test "$cross_compiling" = yes; then 11400 if test "$cross_compiling" = yes; then
15684 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11401 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
15685echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11402echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
15686else 11403else
15687 cat >conftest.$ac_ext <<_ACEOF 11404 cat >conftest.$ac_ext <<_ACEOF
15688/* confdefs.h. */ 11405/* confdefs.h. */
15689_ACEOF 11406_ACEOF
15690cat confdefs.h >>conftest.$ac_ext 11407cat confdefs.h >>conftest.$ac_ext
15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15728 (eval $ac_try) 2>&5 11445 (eval $ac_try) 2>&5
15729 ac_status=$? 11446 ac_status=$?
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; }; then 11448 (exit $ac_status); }; }; then
15732 rxvt_cv_path_wtmpx=`cat conftestval` 11449 path_wtmpx=`cat conftestval`
15733else 11450else
15734 echo "$as_me: program exited with status $ac_status" >&5 11451 echo "$as_me: program exited with status $ac_status" >&5
15735echo "$as_me: failed program was:" >&5 11452echo "$as_me: failed program was:" >&5
15736sed 's/^/| /' conftest.$ac_ext >&5 11453sed 's/^/| /' conftest.$ac_ext >&5
15737 11454
15738( exit $ac_status ) 11455( exit $ac_status )
15739rxvt_cv_path_wtmpx= 11456path_wtmpx=
15740fi 11457fi
15741rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11458rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15742fi 11459fi
15743fi 11460fi
15744echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11461echo "$as_me:$LINENO: result: $path_wtmpx" >&5
15745echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11462echo "${ECHO_T}$path_wtmpx" >&6
15746if test x$rxvt_cv_path_wtmpx != x; then 11463if test x$path_wtmpx != x; then
15747 11464
15748cat >>confdefs.h <<_ACEOF 11465cat >>confdefs.h <<_ACEOF
15749#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11466#define WTMPX_FILE "$path_wtmpx"
15750_ACEOF 11467_ACEOF
15751 11468
15752fi 11469fi
15753 11470
15754echo "$as_me:$LINENO: checking where lastlog is located" >&5 11471echo "$as_me:$LINENO: checking where lastlog is located" >&5
15755echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11472echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15756if test "${rxvt_cv_path_lastlog+set}" = set; then 11473if test "${path_lastlog+set}" = set; then
15757 echo $ECHO_N "(cached) $ECHO_C" >&6 11474 echo $ECHO_N "(cached) $ECHO_C" >&6
15758else 11475else
15759 if test "$cross_compiling" = yes; then 11476 if test "$cross_compiling" = yes; then
15760 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11477 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
15761echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11478echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
15762else 11479else
15763 cat >conftest.$ac_ext <<_ACEOF 11480 cat >conftest.$ac_ext <<_ACEOF
15764/* confdefs.h. */ 11481/* confdefs.h. */
15765_ACEOF 11482_ACEOF
15766cat confdefs.h >>conftest.$ac_ext 11483cat confdefs.h >>conftest.$ac_ext
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5 11526 (eval $ac_try) 2>&5
15810 ac_status=$? 11527 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; }; then 11529 (exit $ac_status); }; }; then
15813 rxvt_cv_path_lastlog=`cat conftestval` 11530 path_lastlog=`cat conftestval`
15814else 11531else
15815 echo "$as_me: program exited with status $ac_status" >&5 11532 echo "$as_me: program exited with status $ac_status" >&5
15816echo "$as_me: failed program was:" >&5 11533echo "$as_me: failed program was:" >&5
15817sed 's/^/| /' conftest.$ac_ext >&5 11534sed 's/^/| /' conftest.$ac_ext >&5
15818 11535
15819( exit $ac_status ) 11536( exit $ac_status )
15820rxvt_cv_path_lastlog= 11537path_lastlog=
15821fi 11538fi
15822rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11539rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15823fi 11540fi
15824fi 11541fi
15825echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11542echo "$as_me:$LINENO: result: $path_lastlog" >&5
15826echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11543echo "${ECHO_T}$path_lastlog" >&6
15827if test x$rxvt_cv_path_lastlog != x; then 11544if test x$path_lastlog != x; then
15828 11545
15829cat >>confdefs.h <<_ACEOF 11546cat >>confdefs.h <<_ACEOF
15830#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11547#define LASTLOG_FILE "$path_lastlog"
15831_ACEOF 11548_ACEOF
15832 11549
15833 if test -d "$rxvt_cv_path_lastlog"; then 11550 if test -d "$path_lastlog"; then
15834 11551
15835cat >>confdefs.h <<\_ACEOF 11552cat >>confdefs.h <<\_ACEOF
15836#define LASTLOG_IS_DIR 1 11553#define LASTLOG_IS_DIR 1
15837_ACEOF 11554_ACEOF
15838 11555
15839 fi 11556 fi
15840fi 11557fi
15841 11558
15842echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11559echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15843echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11560echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15844if test "${rxvt_cv_path_lastlogx+set}" = set; then 11561if test "${path_lastlogx+set}" = set; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6 11562 echo $ECHO_N "(cached) $ECHO_C" >&6
15846else 11563else
15847 if test "$cross_compiling" = yes; then 11564 if test "$cross_compiling" = yes; then
15848 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11565 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
15849echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11566echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
15850else 11567else
15851 cat >conftest.$ac_ext <<_ACEOF 11568 cat >conftest.$ac_ext <<_ACEOF
15852/* confdefs.h. */ 11569/* confdefs.h. */
15853_ACEOF 11570_ACEOF
15854cat confdefs.h >>conftest.$ac_ext 11571cat confdefs.h >>conftest.$ac_ext
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5 11608 (eval $ac_try) 2>&5
15892 ac_status=$? 11609 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then 11611 (exit $ac_status); }; }; then
15895 rxvt_cv_path_lastlogx=`cat conftestval` 11612 path_lastlogx=`cat conftestval`
15896else 11613else
15897 echo "$as_me: program exited with status $ac_status" >&5 11614 echo "$as_me: program exited with status $ac_status" >&5
15898echo "$as_me: failed program was:" >&5 11615echo "$as_me: failed program was:" >&5
15899sed 's/^/| /' conftest.$ac_ext >&5 11616sed 's/^/| /' conftest.$ac_ext >&5
15900 11617
15901( exit $ac_status ) 11618( exit $ac_status )
15902rxvt_cv_path_lastlogx= 11619path_lastlogx=
15903fi 11620fi
15904rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11621rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15905fi 11622fi
15906fi 11623fi
15907echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11624echo "$as_me:$LINENO: result: $path_lastlogx" >&5
15908echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11625echo "${ECHO_T}$path_lastlogx" >&6
15909if test x$rxvt_cv_path_lastlogx != x; then 11626if test x$path_lastlogx != x; then
15910 11627
15911cat >>confdefs.h <<_ACEOF 11628cat >>confdefs.h <<_ACEOF
15912#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11629#define LASTLOGX_FILE "$path_lastlogx"
15913_ACEOF 11630_ACEOF
15914 11631
15915fi 11632fi
11633
11634if test x$support_utmp != xyes; then
11635 echo " utmp support: disabled"
11636 echo
11637else
11638 echo " utmp support: enabled
11639 utmp file: $path_utmp
11640 utmpx file: $path_utmpx
11641 wtmp file: $path_wtmp
11642 wtmpx file: $path_wtmpx
11643 lastlog file: $path_lastlog
11644 lastlogx file: $path_lastlogx"
11645fi
11646
15916 11647
15917 11648
15918echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11649echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15919echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11650echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15920if test "${rxvt_cv_path_ttytab+set}" = set; then 11651if test "${rxvt_cv_path_ttytab+set}" = set; then
16187#define HAVE_NL_LANGINFO 1 11918#define HAVE_NL_LANGINFO 1
16188_ACEOF 11919_ACEOF
16189 11920
16190fi 11921fi
16191 11922
16192echo "$as_me:$LINENO: checking for getpt" >&5 11923
16193echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11924echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
16194if test "${rxvt_cv_func_getpt+set}" = set; then 11925echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11926if test "${can_pass_fds+set}" = set; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6 11927 echo $ECHO_N "(cached) $ECHO_C" >&6
16196else 11928else
16197 cat >conftest.$ac_ext <<_ACEOF 11929 cat >conftest.$ac_ext <<_ACEOF
16198/* confdefs.h. */ 11930/* confdefs.h. */
16199_ACEOF 11931_ACEOF
16200cat confdefs.h >>conftest.$ac_ext 11932cat confdefs.h >>conftest.$ac_ext
16201cat >>conftest.$ac_ext <<_ACEOF 11933cat >>conftest.$ac_ext <<_ACEOF
16202/* end confdefs.h. */ 11934/* end confdefs.h. */
16203#define _GNU_SOURCE 11935
16204#ifdef HAVE_STDLIB_H 11936#include <cstddef> // broken bsds (is that redundant?) need this
16205# include <cstdlib> 11937#include <sys/types.h>
16206#endif 11938#include <sys/socket.h>
11939#include <sys/uio.h>
11940
16207int 11941int
16208main () 11942main ()
16209{ 11943{
16210(void)getpt(); 11944
11945{
11946 msghdr msg;
11947 iovec iov;
11948 char buf [100];
11949 char data = 0;
11950
11951 iov.iov_base = &data;
11952 iov.iov_len = 1;
11953
11954 msg.msg_iov = &iov;
11955 msg.msg_iovlen = 1;
11956 msg.msg_control = buf;
11957 msg.msg_controllen = sizeof buf;
11958
11959 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11960 cmsg->cmsg_level = SOL_SOCKET;
11961 cmsg->cmsg_type = SCM_RIGHTS;
11962 cmsg->cmsg_len = 100;
11963
11964 *(int *)CMSG_DATA (cmsg) = 5;
11965
11966 return sendmsg (3, &msg, 0);
11967}
11968
16211 ; 11969 ;
16212 return 0; 11970 return 0;
16213} 11971}
16214_ACEOF 11972_ACEOF
16215rm -f conftest.$ac_objext conftest$ac_exeext 11973rm -f conftest.$ac_objext conftest$ac_exeext
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5 11990 (eval $ac_try) 2>&5
16233 ac_status=$? 11991 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; }; then 11993 (exit $ac_status); }; }; then
16236 rxvt_cv_func_getpt=yes 11994 can_pass_fds=yes
16237else 11995else
16238 echo "$as_me: failed program was:" >&5 11996 echo "$as_me: failed program was:" >&5
16239sed 's/^/| /' conftest.$ac_ext >&5 11997sed 's/^/| /' conftest.$ac_ext >&5
16240 11998
16241rxvt_cv_func_getpt=no 11999can_pass_fds=no
16242fi 12000fi
16243rm -f conftest.err conftest.$ac_objext \ 12001rm -f conftest.err conftest.$ac_objext \
16244 conftest$ac_exeext conftest.$ac_ext 12002 conftest$ac_exeext conftest.$ac_ext
16245fi 12003fi
16246echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 12004echo "$as_me:$LINENO: result: $can_pass_fds" >&5
16247echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 12005echo "${ECHO_T}$can_pass_fds" >&6
16248if test x$rxvt_cv_func_getpt = xyes; then 12006if test x$can_pass_fds = xyes; then
16249 12007
16250cat >>confdefs.h <<\_ACEOF 12008cat >>confdefs.h <<\_ACEOF
16251#define HAVE_GETPT 1 12009#define HAVE_UNIX_FDPASS 1
16252_ACEOF 12010_ACEOF
16253 12011
12012else
12013 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12014echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12015 { (exit 1); exit 1; }; }
16254fi 12016fi
16255 12017
16256echo "$as_me:$LINENO: checking for pty/tty type" >&5 12018
12019echo "$as_me:$LINENO: checking for broken XIM callback" >&5
16257echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 12020echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
16258if test "${rxvt_cv_ptys+set}" = set; then 12021if test "${rxvt_broken_ximcb+set}" = set; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6 12022 echo $ECHO_N "(cached) $ECHO_C" >&6
16260else 12023else
16261 if test x$ac_cv_func_openpty = xyes; then 12024 cat >conftest.$ac_ext <<_ACEOF
16262 rxvt_cv_ptys=OPENPTY 12025
16263 else if test x$ac_cv_func__getpty = xyes; then 12026#include <X11/Xlib.h>
16264 rxvt_cv_ptys=SGI4 12027
16265 else if test -c /dev/ttyp20; then 12028void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
16266 rxvt_cv_ptys=SCO 12029
16267 else if test -c /dev/ptym/clone; then 12030void f() {
16268 rxvt_cv_ptys=HPUX 12031 XIMCallback cb;
16269 else if test x$rxvt_cv_func_getpt = xyes; then 12032 cb.callback = im_destroy_cb;
16270 rxvt_cv_ptys=GLIBC 12033}
16271 else if test -c /dev/ptc -a -c /dev/pts; then 12034
16272 rxvt_cv_ptys=PTC 12035_ACEOF
16273 else if test -c /dev/ptc -a -d /dev/pts; then 12036rm -f conftest.$ac_objext
16274 rxvt_cv_ptys=PTC 12037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16275 else if test -c /dev/ptmx -a -c /dev/pts/0; then 12038 (eval $ac_compile) 2>conftest.er1
16276 rxvt_cv_ptys=STREAMS 12039 ac_status=$?
16277 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then 12040 grep -v '^ *+' conftest.er1 >conftest.err
16278 rxvt_cv_ptys=STREAMS 12041 rm -f conftest.er1
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } &&
12045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; } &&
12051 { ac_try='test -s conftest.$ac_objext'
12052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12054 ac_status=$?
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 rxvt_broken_ximcb=yes
16279 else 12058else
16280 rxvt_cv_ptys=BSD 12059 echo "$as_me: failed program was:" >&5
16281fi 12060sed 's/^/| /' conftest.$ac_ext >&5
16282fi
16283fi
16284fi
16285fi
16286fi
16287fi
16288fi
16289fi
16290 12061
12062rxvt_broken_ximcb=no
16291fi 12063fi
12064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12065fi
16292echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 12066echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
16293echo "${ECHO_T}$rxvt_cv_ptys" >&6 12067echo "${ECHO_T}$rxvt_broken_ximcb" >&6
16294 12068
16295if test x$rxvt_cv_ptys = xOPENPTY; then 12069if test x$rxvt_broken_ximcb = xyes; then
16296 12070
16297cat >>confdefs.h <<\_ACEOF 12071cat >>confdefs.h <<\_ACEOF
16298#define PTYS_ARE_OPENPTY 1 12072#define XIMCB_PROTO_BROKEN 1
16299_ACEOF 12073_ACEOF
16300 12074
16301fi 12075fi
16302if test x$rxvt_cv_ptys = xSCO; then
16303 12076
16304cat >>confdefs.h <<\_ACEOF
16305#define PTYS_ARE_NUMERIC 1
16306_ACEOF
16307 12077
16308fi
16309if test x$rxvt_cv_ptys = xSTREAMS; then
16310 12078
16311cat >>confdefs.h <<\_ACEOF
16312#define PTYS_ARE_PTMX 1
16313_ACEOF
16314 12079
16315fi
16316if test x$rxvt_cv_ptys = xPTC; then
16317 12080
16318cat >>confdefs.h <<\_ACEOF
16319#define PTYS_ARE_PTC 1
16320_ACEOF
16321 12081
16322fi
16323if test x$rxvt_cv_ptys = xSGI4; then
16324 12082
16325cat >>confdefs.h <<\_ACEOF 12083for ac_header in \
16326#define PTYS_ARE__GETPTY 1 12084 pty.h \
16327_ACEOF 12085 util.h \
12086 libutil.h \
12087 sys/ioctl.h \
12088 sys/stropts.h \
16328 12089
16329fi
16330if test x$rxvt_cv_ptys = xCONVEX; then
16331
16332cat >>confdefs.h <<\_ACEOF
16333#define PTYS_ARE_GETPTY 1
16334_ACEOF
16335
16336fi
16337if test x$rxvt_cv_ptys = xGLIBC; then
16338
16339cat >>confdefs.h <<\_ACEOF
16340#define PTYS_ARE_GETPT 1
16341_ACEOF
16342
16343fi
16344if test x$rxvt_cv_ptys = xHPUX; then
16345
16346cat >>confdefs.h <<\_ACEOF
16347#define PTYS_ARE_CLONE 1
16348_ACEOF
16349
16350fi
16351if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16352
16353cat >>confdefs.h <<\_ACEOF
16354#define PTYS_ARE_SEARCHED 1
16355_ACEOF
16356
16357fi
16358
16359
16360{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
16361echo "$as_me: checking for pty ranges..." >&6;}
16362ptys=`echo /dev/pty??`
16363pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16364pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16365if test x$pch1 != x; then
16366
16367cat >>confdefs.h <<_ACEOF
16368#define PTYCHAR1 "$pch1"
16369_ACEOF
16370
16371fi
16372if test x$pch2 != x; then
16373
16374cat >>confdefs.h <<_ACEOF
16375#define PTYCHAR2 "$pch2"
16376_ACEOF
16377
16378fi
16379
16380if test x$support_8bitctrls = xyes; then
16381
16382cat >>confdefs.h <<\_ACEOF
16383#define EIGHT_BIT_CONTROLS 1
16384_ACEOF
16385
16386fi
16387if test x$support_tinting = xyes; then
16388
16389cat >>confdefs.h <<\_ACEOF
16390#define TINTING 1
16391_ACEOF
16392
16393fi
16394if test x$support_inheritpixmap = xyes; then
16395
16396cat >>confdefs.h <<\_ACEOF
16397#define TRANSPARENT 1
16398_ACEOF
16399
16400fi
16401if test x$support_keepscrolling = xno; then
16402
16403cat >>confdefs.h <<\_ACEOF
16404#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16405_ACEOF
16406
16407fi
16408if test x$support_selectionscrolling = xyes; then
16409
16410cat >>confdefs.h <<\_ACEOF
16411#define SELECTION_SCROLLING 1
16412_ACEOF
16413
16414fi
16415if test x$support_menubar = xyes; then
16416
16417cat >>confdefs.h <<\_ACEOF
16418#define MENUBAR 1
16419_ACEOF
16420
16421fi
16422if test x$support_frills = xno; then
16423
16424cat >>confdefs.h <<\_ACEOF
16425#define NO_FRILLS 1
16426_ACEOF
16427
16428fi
16429if test x$support_linespace = xno; then
16430
16431cat >>confdefs.h <<\_ACEOF
16432#define NO_LINESPACE 1
16433_ACEOF
16434
16435fi
16436if test x$support_24bit = xyes; then
16437
16438cat >>confdefs.h <<\_ACEOF
16439#define PREFER_24BIT 1
16440_ACEOF
16441
16442fi
16443if test x$support_mousewheel = xyes; then
16444
16445cat >>confdefs.h <<\_ACEOF
16446#define MOUSE_WHEEL 1
16447_ACEOF
16448
16449fi
16450if test x$support_mouseslipwheel = xyes; then
16451
16452cat >>confdefs.h <<\_ACEOF
16453#define MOUSE_SLIP_WHEELING 1
16454_ACEOF
16455
16456fi
16457if test x$support_utmp = xyes; then
16458
16459cat >>confdefs.h <<\_ACEOF
16460#define UTMP_SUPPORT 1
16461_ACEOF
16462
16463fi
16464if test x$support_wtmp = xyes; then
16465
16466cat >>confdefs.h <<\_ACEOF
16467#define WTMP_SUPPORT 1
16468_ACEOF
16469
16470fi
16471if test x$support_lastlog = xyes; then
16472
16473cat >>confdefs.h <<\_ACEOF
16474#define LASTLOG_SUPPORT 1
16475_ACEOF
16476
16477fi
16478if test x$support_xim = xyes -o x$multichar_set = xyes; then
16479 if test x$rxvt_cv_func_xlocale = xyes; then
16480
16481cat >>confdefs.h <<\_ACEOF
16482#define USE_XIM 1
16483_ACEOF
16484
16485 fi
16486fi
16487if test x$support_xpm = xyes; then
16488
16489cat >>confdefs.h <<\_ACEOF
16490#define XPM_BACKGROUND 1
16491_ACEOF
16492
16493fi
16494if test x$support_scroll_rxvt = xyes; then
16495
16496cat >>confdefs.h <<\_ACEOF
16497#define RXVT_SCROLLBAR 1
16498_ACEOF
16499
16500 scrolltypes="rxvt"
16501fi
16502if test x$support_scroll_next = xyes; then
16503
16504cat >>confdefs.h <<\_ACEOF
16505#define NEXT_SCROLLBAR 1
16506_ACEOF
16507
16508 scrolltypes="$scrolltypes next"
16509fi
16510if test x$support_scroll_xterm = xyes; then
16511
16512cat >>confdefs.h <<\_ACEOF
16513#define XTERM_SCROLLBAR 1
16514_ACEOF
16515
16516 scrolltypes="$scrolltypes xterm"
16517fi
16518if test x$support_scroll_plain = xyes; then
16519
16520cat >>confdefs.h <<\_ACEOF
16521#define PLAIN_SCROLLBAR 1
16522_ACEOF
16523
16524 scrolltypes="$scrolltypes plain"
16525fi
16526if test x$support_pointer_blank = xyes; then
16527
16528cat >>confdefs.h <<\_ACEOF
16529#define POINTER_BLANK 1
16530_ACEOF
16531
16532fi
16533if test x$support_cursor_blink = xyes; then
16534
16535cat >>confdefs.h <<\_ACEOF
16536#define CURSOR_BLINK 1
16537_ACEOF
16538
16539fi
16540if test x$support_text_blink = xyes; then
16541
16542cat >>confdefs.h <<\_ACEOF
16543#define TEXT_BLINK 1
16544_ACEOF
16545
16546fi
16547if test x$support_unicode3 = xyes; then
16548
16549cat >>confdefs.h <<\_ACEOF
16550#define UNICODE_3 1
16551_ACEOF
16552
16553fi
16554if test x$support_combining = xyes; then
16555
16556cat >>confdefs.h <<\_ACEOF
16557#define ENABLE_COMBINING 1
16558_ACEOF
16559
16560fi
16561if test x$codesets = xall; then
16562 codesets=jp,jp-ext,kr,cn,cn-ext
16563fi
16564for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16565
16566cat >>confdefs.h <<\_ACEOF
16567#define ENCODING_EU 1
16568_ACEOF
16569
16570
16571cat >>confdefs.h <<\_ACEOF
16572#define ENCODING_VN 1
16573_ACEOF
16574
16575 case "$codeset" in
16576 JP )
16577cat >>confdefs.h <<\_ACEOF
16578#define ENCODING_JP 1
16579_ACEOF
16580 ;;
16581 JP_EXT )
16582cat >>confdefs.h <<\_ACEOF
16583#define ENCODING_JP_EXT 1
16584_ACEOF
16585 ;;
16586 KR )
16587cat >>confdefs.h <<\_ACEOF
16588#define ENCODING_KR 1
16589_ACEOF
16590 ;;
16591 CN )
16592cat >>confdefs.h <<\_ACEOF
16593#define ENCODING_CN 1
16594_ACEOF
16595 ;;
16596 CN_EXT )
16597cat >>confdefs.h <<\_ACEOF
16598#define ENCODING_CN_EXT 1
16599_ACEOF
16600 ;;
16601 esac
16602done
16603
16604
16605CFLAGS=${CFLAGS--O}
16606LDFLAGS=${LDFLAGS--O}
16607
16608CPPFLAGS="$CPPFLAGS"
16609
16610
16611
16612
16613
16614
16615
16616if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16617 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16618 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16619 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16620 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16621 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16622fi
16623
16624
16625
16626
16627
16628if test x$support_addstrings = xno; then
16629
16630cat >>confdefs.h <<\_ACEOF
16631#define NO_STRINGS 1
16632_ACEOF
16633
16634fi
16635
16636MCOMMON=./autoconf/Make.common
16637
16638
16639test "$program_prefix" != NONE &&
16640 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16641# Use a double $ so make ignores it.
16642test "$program_suffix" != NONE &&
16643 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16644# Double any \ or $. echo might interpret backslashes.
16645# By default was `s,x,x', remove it if useless.
16646cat <<\_ACEOF >conftest.sed
16647s/[\\$]/&&/g;s/;s,x,x,$//
16648_ACEOF
16649program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16650rm conftest.sed
16651
16652
16653
16654
16655
16656if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16657 include_stdint_h="#include <stdint.h>"
16658else
16659 include_stdint_h="/* #include <stdint.h> */"
16660fi
16661if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16662 include_stdarg_h="#include <cstdarg>"
16663else
16664 include_stdarg_h="/* #include <cstdarg> */"
16665fi
16666if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16667 include_stdlib_h="#include <cstdlib>"
16668else
16669 include_stdlib_h="/* #include <cstdlib> */"
16670fi
16671if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16672 include_unistd_h="#include <unistd.h>"
16673else
16674 include_unistd_h="/* #include <unistd.h> */"
16675fi
16676if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16677 include_string_h="#include <cstring>"
16678else
16679 include_string_h="/* #include <cstring> */"
16680fi
16681if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16682 include_fcntl_h="#include <fcntl.h>"
16683else
16684 include_fcntl_h="/* #include <fcntl.h> */"
16685fi
16686if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16687 include_util_h="#include <util.h>"
16688else
16689 include_util_h="/* #include <util.h> */"
16690fi
16691if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16692 include_assert_h="#include <assert.h>"
16693else
16694 include_assert_h="/* #include <assert.h> */"
16695fi
16696if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16697 include_sys_ioctl_h="#include <sys/ioctl.h>"
16698else
16699 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16700fi
16701if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16702 include_sys_select_h="#include <sys/select.h>"
16703else
16704 include_sys_select_h="/* #include <sys/select.h> */"
16705fi
16706if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16707 include_sys_strredir_h="#include <sys/strredir.h>"
16708else
16709 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16710fi
16711if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16712 include_sys_time_h="#include <sys/time.h>"
16713else
16714 include_sys_time_h="/* #include <sys/time.h> */"
16715fi
16716if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16717 include_time_h="#include <time.h>"
16718else
16719 include_time_h="/* #include <time.h> */"
16720fi
16721
16722if test x$support_xft = xyes; then
16723 LIBS="$LIBS `pkg-config xft --libs`"
16724 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16725 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16726
16727
16728for ac_header in X11/Xft/Xft.h
16729do 12090do
16730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16731if eval "test \"\${$as_ac_Header+set}\" = set"; then 12092if eval "test \"\${$as_ac_Header+set}\" = set"; then
16732 echo "$as_me:$LINENO: checking for $ac_header" >&5 12093 echo "$as_me:$LINENO: checking for $ac_header" >&5
16733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16867if test `eval echo '${'$as_ac_Header'}'` = yes; then 12228if test `eval echo '${'$as_ac_Header'}'` = yes; then
16868 cat >>confdefs.h <<_ACEOF 12229 cat >>confdefs.h <<_ACEOF
16869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16870_ACEOF 12231_ACEOF
16871 12232
12233fi
12234
12235done
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247for ac_func in \
12248 revoke \
12249 _getpty \
12250 getpt \
12251 posix_openpt \
12252 isastream \
12253 setuid \
12254 seteuid \
12255 setreuid \
12256 setresuid \
12257
12258do
12259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12260echo "$as_me:$LINENO: checking for $ac_func" >&5
12261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12262if eval "test \"\${$as_ac_var+set}\" = set"; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264else
12265 cat >conftest.$ac_ext <<_ACEOF
12266/* confdefs.h. */
12267_ACEOF
12268cat confdefs.h >>conftest.$ac_ext
12269cat >>conftest.$ac_ext <<_ACEOF
12270/* end confdefs.h. */
12271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12273#define $ac_func innocuous_$ac_func
12274
12275/* System header to define __stub macros and hopefully few prototypes,
12276 which can conflict with char $ac_func (); below.
12277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12278 <limits.h> exists even on freestanding compilers. */
12279
12280#ifdef __STDC__
12281# include <limits.h>
12282#else
12283# include <assert.h>
12284#endif
12285
12286#undef $ac_func
12287
12288/* Override any gcc2 internal prototype to avoid an error. */
12289#ifdef __cplusplus
12290extern "C"
12291{
12292#endif
12293/* We use char because int might match the return type of a gcc2
12294 builtin and then its argument prototype would still apply. */
12295char $ac_func ();
12296/* The GNU C library defines this for functions which it implements
12297 to always fail with ENOSYS. Some functions are actually named
12298 something starting with __ and the normal name is an alias. */
12299#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12300choke me
12301#else
12302char (*f) () = $ac_func;
12303#endif
12304#ifdef __cplusplus
12305}
12306#endif
12307
12308int
12309main ()
12310{
12311return f != $ac_func;
12312 ;
12313 return 0;
12314}
12315_ACEOF
12316rm -f conftest.$ac_objext conftest$ac_exeext
12317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12318 (eval $ac_link) 2>conftest.er1
12319 ac_status=$?
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try='test -s conftest$ac_exeext'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12337 eval "$as_ac_var=yes"
12338else
12339 echo "$as_me: failed program was:" >&5
12340sed 's/^/| /' conftest.$ac_ext >&5
12341
12342eval "$as_ac_var=no"
12343fi
12344rm -f conftest.err conftest.$ac_objext \
12345 conftest$ac_exeext conftest.$ac_ext
12346fi
12347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12348echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12349if test `eval echo '${'$as_ac_var'}'` = yes; then
12350 cat >>confdefs.h <<_ACEOF
12351#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12352_ACEOF
12353
12354fi
12355done
12356
12357
12358have_clone=no
12359
12360echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12361echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12362if test -e /dev/ptym/clone; then
12363 echo "$as_me:$LINENO: result: yes" >&5
12364echo "${ECHO_T}yes" >&6
12365
12366cat >>confdefs.h <<\_ACEOF
12367#define HAVE_DEV_CLONE 1
12368_ACEOF
12369
12370
12371cat >>confdefs.h <<\_ACEOF
12372#define CLONE_DEVICE "/dev/ptym/clone"
12373_ACEOF
12374
12375 have_clone=yes
12376else
12377 echo "$as_me:$LINENO: result: no" >&5
12378echo "${ECHO_T}no" >&6
12379fi
12380
12381echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12382echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12383if test -e /dev/ptc; then
12384 echo "$as_me:$LINENO: result: yes" >&5
12385echo "${ECHO_T}yes" >&6
12386
12387cat >>confdefs.h <<\_ACEOF
12388#define HAVE_DEV_PTC 1
12389_ACEOF
12390
12391
12392cat >>confdefs.h <<\_ACEOF
12393#define CLONE_DEVICE "/dev/ptc"
12394_ACEOF
12395
12396 have_clone=yes
12397else
12398 echo "$as_me:$LINENO: result: no" >&5
12399echo "${ECHO_T}no" >&6
12400fi
12401
12402case $host in
12403 *-*-cygwin*)
12404 have_clone=yes
12405
12406cat >>confdefs.h <<\_ACEOF
12407#define CLONE_DEVICE "/dev/ptmx"
12408_ACEOF
12409
12410 ;;
12411 *)
12412 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12413echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12414 if test -e /dev/ptmx; then
12415 echo "$as_me:$LINENO: result: yes" >&5
12416echo "${ECHO_T}yes" >&6
12417
12418cat >>confdefs.h <<\_ACEOF
12419#define HAVE_DEV_PTMX 1
12420_ACEOF
12421
12422
12423cat >>confdefs.h <<\_ACEOF
12424#define CLONE_DEVICE "/dev/ptmx"
12425_ACEOF
12426
12427 have_clone=yes
12428 else
12429 echo "$as_me:$LINENO: result: no" >&5
12430echo "${ECHO_T}no" >&6
12431 fi
12432 ;;
12433esac
12434
12435if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12436 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12437echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12438 cat >conftest.$ac_ext <<_ACEOF
12439/* confdefs.h. */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
12443/* end confdefs.h. */
12444#include <stdlib.h>
12445int
12446main ()
12447{
12448grantpt(0);unlockpt(0);ptsname(0);
12449 ;
12450 return 0;
12451}
12452_ACEOF
12453rm -f conftest.$ac_objext conftest$ac_exeext
12454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12455 (eval $ac_link) 2>conftest.er1
12456 ac_status=$?
12457 grep -v '^ *+' conftest.er1 >conftest.err
12458 rm -f conftest.er1
12459 cat conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } &&
12462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12465 ac_status=$?
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; } &&
12468 { ac_try='test -s conftest$ac_exeext'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12471 ac_status=$?
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 unix98_pty=yes
12475
12476cat >>confdefs.h <<\_ACEOF
12477#define UNIX98_PTY 1
12478_ACEOF
12479
12480 echo "$as_me:$LINENO: result: yes" >&5
12481echo "${ECHO_T}yes" >&6
12482else
12483 echo "$as_me: failed program was:" >&5
12484sed 's/^/| /' conftest.$ac_ext >&5
12485
12486echo "$as_me:$LINENO: result: no" >&5
12487echo "${ECHO_T}no" >&6
12488fi
12489rm -f conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491fi
12492
12493if test -z "$unix98_pty"; then
12494
12495for ac_func in openpty
12496do
12497as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12498echo "$as_me:$LINENO: checking for $ac_func" >&5
12499echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12500if eval "test \"\${$as_ac_var+set}\" = set"; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12502else
12503 cat >conftest.$ac_ext <<_ACEOF
12504/* confdefs.h. */
12505_ACEOF
12506cat confdefs.h >>conftest.$ac_ext
12507cat >>conftest.$ac_ext <<_ACEOF
12508/* end confdefs.h. */
12509/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12511#define $ac_func innocuous_$ac_func
12512
12513/* System header to define __stub macros and hopefully few prototypes,
12514 which can conflict with char $ac_func (); below.
12515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12516 <limits.h> exists even on freestanding compilers. */
12517
12518#ifdef __STDC__
12519# include <limits.h>
12520#else
12521# include <assert.h>
12522#endif
12523
12524#undef $ac_func
12525
12526/* Override any gcc2 internal prototype to avoid an error. */
12527#ifdef __cplusplus
12528extern "C"
12529{
12530#endif
12531/* We use char because int might match the return type of a gcc2
12532 builtin and then its argument prototype would still apply. */
12533char $ac_func ();
12534/* The GNU C library defines this for functions which it implements
12535 to always fail with ENOSYS. Some functions are actually named
12536 something starting with __ and the normal name is an alias. */
12537#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12538choke me
12539#else
12540char (*f) () = $ac_func;
12541#endif
12542#ifdef __cplusplus
12543}
12544#endif
12545
12546int
12547main ()
12548{
12549return f != $ac_func;
12550 ;
12551 return 0;
12552}
12553_ACEOF
12554rm -f conftest.$ac_objext conftest$ac_exeext
12555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12556 (eval $ac_link) 2>conftest.er1
12557 ac_status=$?
12558 grep -v '^ *+' conftest.er1 >conftest.err
12559 rm -f conftest.er1
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12565 (eval $ac_try) 2>&5
12566 ac_status=$?
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571 (eval $ac_try) 2>&5
12572 ac_status=$?
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 eval "$as_ac_var=yes"
12576else
12577 echo "$as_me: failed program was:" >&5
12578sed 's/^/| /' conftest.$ac_ext >&5
12579
12580eval "$as_ac_var=no"
12581fi
12582rm -f conftest.err conftest.$ac_objext \
12583 conftest$ac_exeext conftest.$ac_ext
12584fi
12585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12586echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12587if test `eval echo '${'$as_ac_var'}'` = yes; then
12588 cat >>confdefs.h <<_ACEOF
12589#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12590_ACEOF
12591
12592else
12593 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12594echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12595if test "${ac_cv_lib_util_openpty+set}" = set; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12597else
12598 ac_check_lib_save_LIBS=$LIBS
12599LIBS="-lutil $LIBS"
12600cat >conftest.$ac_ext <<_ACEOF
12601/* confdefs.h. */
12602_ACEOF
12603cat confdefs.h >>conftest.$ac_ext
12604cat >>conftest.$ac_ext <<_ACEOF
12605/* end confdefs.h. */
12606
12607/* Override any gcc2 internal prototype to avoid an error. */
12608#ifdef __cplusplus
12609extern "C"
12610#endif
12611/* We use char because int might match the return type of a gcc2
12612 builtin and then its argument prototype would still apply. */
12613char openpty ();
12614int
12615main ()
12616{
12617openpty ();
12618 ;
12619 return 0;
12620}
12621_ACEOF
12622rm -f conftest.$ac_objext conftest$ac_exeext
12623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12624 (eval $ac_link) 2>conftest.er1
12625 ac_status=$?
12626 grep -v '^ *+' conftest.er1 >conftest.err
12627 rm -f conftest.er1
12628 cat conftest.err >&5
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); } &&
12631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12633 (eval $ac_try) 2>&5
12634 ac_status=$?
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; } &&
12637 { ac_try='test -s conftest$ac_exeext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12643 ac_cv_lib_util_openpty=yes
12644else
12645 echo "$as_me: failed program was:" >&5
12646sed 's/^/| /' conftest.$ac_ext >&5
12647
12648ac_cv_lib_util_openpty=no
12649fi
12650rm -f conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
12652LIBS=$ac_check_lib_save_LIBS
12653fi
12654echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12655echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12656if test $ac_cv_lib_util_openpty = yes; then
12657 cat >>confdefs.h <<\_ACEOF
12658#define HAVE_OPENPTY 1
12659_ACEOF
12660 LIBS="$LIBS -lutil"
12661fi
12662
12663fi
12664done
12665
12666fi
12667
12668
12669
12670echo "$as_me:$LINENO: checking for tty group" >&5
12671echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12672if test "${tty_group+set}" = set; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12674else
12675 if test "$cross_compiling" = yes; then
12676 tty_group=no
12677else
12678 cat >conftest.$ac_ext <<_ACEOF
12679/* confdefs.h. */
12680_ACEOF
12681cat confdefs.h >>conftest.$ac_ext
12682cat >>conftest.$ac_ext <<_ACEOF
12683/* end confdefs.h. */
12684
12685#include <sys/types.h>
12686#include <sys/stat.h>
12687#include <unistd.h>
12688#include <grp.h>
12689
12690main()
12691{
12692 struct stat st;
12693 struct group *gr;
12694 char *tty;
12695 gr = getgrnam("tty");
12696 tty = ttyname(0);
12697 if (gr != 0
12698 && tty != 0
12699 && (stat(tty, &st)) == 0
12700 && st.st_gid == gr->gr_gid)
12701 return 0;
12702 else
12703 return 1;
12704}
12705_ACEOF
12706rm -f conftest$ac_exeext
12707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12708 (eval $ac_link) 2>&5
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 tty_group=yes
12718else
12719 echo "$as_me: program exited with status $ac_status" >&5
12720echo "$as_me: failed program was:" >&5
12721sed 's/^/| /' conftest.$ac_ext >&5
12722
12723( exit $ac_status )
12724tty_group=no
12725fi
12726rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12727fi
12728fi
12729echo "$as_me:$LINENO: result: $tty_group" >&5
12730echo "${ECHO_T}$tty_group" >&6
12731if test x$tty_group = xyes; then
12732
12733cat >>confdefs.h <<\_ACEOF
12734#define TTY_GID_SUPPORT 1
12735_ACEOF
12736
12737fi
12738
12739if test x$support_xft = xyes; then
12740 # Extract the first word of "pkg-config", so it can be a program name with args.
12741set dummy pkg-config; ac_word=$2
12742echo "$as_me:$LINENO: checking for $ac_word" >&5
12743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12744if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12745 echo $ECHO_N "(cached) $ECHO_C" >&6
12746else
12747 case $PKG_CONFIG in
12748 [\\/]* | ?:[\\/]*)
12749 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12750 ;;
12751 *)
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753for as_dir in $PATH
12754do
12755 IFS=$as_save_IFS
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12759 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12761 break 2
12762 fi
12763done
12764done
12765
12766 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12767 ;;
12768esac
12769fi
12770PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12771
12772if test -n "$PKG_CONFIG"; then
12773 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12774echo "${ECHO_T}$PKG_CONFIG" >&6
12775else
12776 echo "$as_me:$LINENO: result: no" >&5
12777echo "${ECHO_T}no" >&6
12778fi
12779
12780 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12781 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12782 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12783 else
12784 # Extract the first word of "xft-config", so it can be a program name with args.
12785set dummy xft-config; ac_word=$2
12786echo "$as_me:$LINENO: checking for $ac_word" >&5
12787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12788if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12789 echo $ECHO_N "(cached) $ECHO_C" >&6
12790else
12791 case $XFT_CONFIG in
12792 [\\/]* | ?:[\\/]*)
12793 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12794 ;;
12795 *)
12796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12797for as_dir in $PATH
12798do
12799 IFS=$as_save_IFS
12800 test -z "$as_dir" && as_dir=.
12801 for ac_exec_ext in '' $ac_executable_extensions; do
12802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12803 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12805 break 2
12806 fi
12807done
12808done
12809
12810 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12811 ;;
12812esac
12813fi
12814XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12815
12816if test -n "$XFT_CONFIG"; then
12817 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12818echo "${ECHO_T}$XFT_CONFIG" >&6
12819else
12820 echo "$as_me:$LINENO: result: no" >&5
12821echo "${ECHO_T}no" >&6
12822fi
12823
12824 if test $XFT_CONFIG != no; then
12825 LIBS="$LIBS `$XFT_CONFIG --libs`"
12826 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12827 fi
12828 fi
12829
12830
12831for ac_header in X11/Xft/Xft.h
12832do
12833as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12834if eval "test \"\${$as_ac_Header+set}\" = set"; then
12835 echo "$as_me:$LINENO: checking for $ac_header" >&5
12836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12837if eval "test \"\${$as_ac_Header+set}\" = set"; then
12838 echo $ECHO_N "(cached) $ECHO_C" >&6
12839fi
12840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12841echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12842else
12843 # Is the header compilable?
12844echo "$as_me:$LINENO: checking $ac_header usability" >&5
12845echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12846cat >conftest.$ac_ext <<_ACEOF
12847/* confdefs.h. */
12848_ACEOF
12849cat confdefs.h >>conftest.$ac_ext
12850cat >>conftest.$ac_ext <<_ACEOF
12851/* end confdefs.h. */
12852$ac_includes_default
12853#include <$ac_header>
12854_ACEOF
12855rm -f conftest.$ac_objext
12856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12857 (eval $ac_compile) 2>conftest.er1
12858 ac_status=$?
12859 grep -v '^ *+' conftest.er1 >conftest.err
12860 rm -f conftest.er1
12861 cat conftest.err >&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
12864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12867 ac_status=$?
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; } &&
12870 { ac_try='test -s conftest.$ac_objext'
12871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872 (eval $ac_try) 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
12876 ac_header_compiler=yes
12877else
12878 echo "$as_me: failed program was:" >&5
12879sed 's/^/| /' conftest.$ac_ext >&5
12880
12881ac_header_compiler=no
12882fi
12883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12885echo "${ECHO_T}$ac_header_compiler" >&6
12886
12887# Is the header present?
12888echo "$as_me:$LINENO: checking $ac_header presence" >&5
12889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12890cat >conftest.$ac_ext <<_ACEOF
12891/* confdefs.h. */
12892_ACEOF
12893cat confdefs.h >>conftest.$ac_ext
12894cat >>conftest.$ac_ext <<_ACEOF
12895/* end confdefs.h. */
12896#include <$ac_header>
12897_ACEOF
12898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } >/dev/null; then
12906 if test -s conftest.err; then
12907 ac_cpp_err=$ac_cxx_preproc_warn_flag
12908 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12909 else
12910 ac_cpp_err=
12911 fi
12912else
12913 ac_cpp_err=yes
12914fi
12915if test -z "$ac_cpp_err"; then
12916 ac_header_preproc=yes
12917else
12918 echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
12921 ac_header_preproc=no
12922fi
12923rm -f conftest.err conftest.$ac_ext
12924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12925echo "${ECHO_T}$ac_header_preproc" >&6
12926
12927# So? What about this header?
12928case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12929 yes:no: )
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12934 ac_header_preproc=yes
12935 ;;
12936 no:yes:* )
12937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12940echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12944echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12949 (
12950 cat <<\_ASBOX
12951## ------------------------------------------ ##
12952## Report this to the AC_PACKAGE_NAME lists. ##
12953## ------------------------------------------ ##
12954_ASBOX
12955 ) |
12956 sed "s/^/$as_me: WARNING: /" >&2
12957 ;;
12958esac
12959echo "$as_me:$LINENO: checking for $ac_header" >&5
12960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12961if eval "test \"\${$as_ac_Header+set}\" = set"; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12963else
12964 eval "$as_ac_Header=\$ac_header_preproc"
12965fi
12966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12968
12969fi
12970if test `eval echo '${'$as_ac_Header'}'` = yes; then
12971 cat >>confdefs.h <<_ACEOF
12972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12973_ACEOF
12974
16872else 12975else
16873 support_xft=no 12976 support_xft=no
16874fi 12977fi
16875 12978
16876done 12979done
16957#define XFT 1 13060#define XFT 1
16958_ACEOF 13061_ACEOF
16959 13062
16960 fi 13063 fi
16961fi 13064fi
13065if test x$support_styles = xyes; then
16962 13066
13067cat >>confdefs.h <<\_ACEOF
13068#define ENABLE_STYLES 1
13069_ACEOF
13070
13071fi
13072if test x$support_iso14755 = xyes; then
13073
13074cat >>confdefs.h <<\_ACEOF
13075#define ISO_14755 1
13076_ACEOF
13077
13078fi
13079if test x$support_8bitctrls = xyes; then
13080
13081cat >>confdefs.h <<\_ACEOF
13082#define EIGHT_BIT_CONTROLS 1
13083_ACEOF
13084
13085fi
13086if test x$support_fading = xyes; then
13087
13088cat >>confdefs.h <<\_ACEOF
13089#define OFF_FOCUS_FADING 1
13090_ACEOF
13091
13092fi
13093if test x$support_tinting = xyes; then
13094
13095cat >>confdefs.h <<\_ACEOF
13096#define TINTING 1
13097_ACEOF
13098
13099fi
13100if test x$support_inheritpixmap = xyes; then
13101
13102cat >>confdefs.h <<\_ACEOF
13103#define TRANSPARENT 1
13104_ACEOF
13105
13106fi
13107if test x$support_keepscrolling = xno; then
13108
13109cat >>confdefs.h <<\_ACEOF
13110#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
13111_ACEOF
13112
13113fi
13114if test x$support_selectionscrolling = xyes; then
13115
13116cat >>confdefs.h <<\_ACEOF
13117#define SELECTION_SCROLLING 1
13118_ACEOF
13119
13120fi
13121if test x$support_frills = xyes; then
13122
13123cat >>confdefs.h <<\_ACEOF
13124#define ENABLE_FRILLS 1
13125_ACEOF
13126
13127fi
13128if test x$support_mousewheel = xyes; then
13129
13130cat >>confdefs.h <<\_ACEOF
13131#define MOUSE_WHEEL 1
13132_ACEOF
13133
13134fi
13135if test x$support_mouseslipwheel = xyes; then
13136
13137cat >>confdefs.h <<\_ACEOF
13138#define MOUSE_SLIP_WHEELING 1
13139_ACEOF
13140
13141fi
13142if test x$support_xim = xyes -o x$multichar_set = xyes; then
13143 if test x$rxvt_cv_func_xlocale = xyes; then
13144
13145cat >>confdefs.h <<\_ACEOF
13146#define USE_XIM 1
13147_ACEOF
13148
13149 fi
13150fi
13151if test x$support_xpm = xyes; then
13152
13153cat >>confdefs.h <<\_ACEOF
13154#define XPM_BACKGROUND 1
13155_ACEOF
13156
13157fi
13158if test x$support_scroll_rxvt = xyes; then
13159
13160cat >>confdefs.h <<\_ACEOF
13161#define RXVT_SCROLLBAR 1
13162_ACEOF
13163
13164 scrolltypes="rxvt"
13165fi
13166if test x$support_scroll_next = xyes; then
13167
13168cat >>confdefs.h <<\_ACEOF
13169#define NEXT_SCROLLBAR 1
13170_ACEOF
13171
13172 scrolltypes="$scrolltypes next"
13173fi
13174if test x$support_scroll_xterm = xyes; then
13175
13176cat >>confdefs.h <<\_ACEOF
13177#define XTERM_SCROLLBAR 1
13178_ACEOF
13179
13180 scrolltypes="$scrolltypes xterm"
13181fi
13182if test x$support_scroll_plain = xyes; then
13183
13184cat >>confdefs.h <<\_ACEOF
13185#define PLAIN_SCROLLBAR 1
13186_ACEOF
13187
13188 scrolltypes="$scrolltypes plain"
13189fi
13190if test x$support_pointer_blank = xyes; then
13191
13192cat >>confdefs.h <<\_ACEOF
13193#define POINTER_BLANK 1
13194_ACEOF
13195
13196fi
13197if test x$support_text_blink = xyes; then
13198
13199cat >>confdefs.h <<\_ACEOF
13200#define TEXT_BLINK 1
13201_ACEOF
13202
13203fi
13204if test x$support_unicode3 = xyes; then
13205
13206cat >>confdefs.h <<\_ACEOF
13207#define UNICODE_3 1
13208_ACEOF
13209
13210fi
13211if test x$support_combining = xyes; then
13212
13213cat >>confdefs.h <<\_ACEOF
13214#define ENABLE_COMBINING 1
13215_ACEOF
13216
13217fi
13218if test x$codesets = xall; then
13219 codesets=jp,jp-ext,kr,zh,zh-ext
13220fi
13221
13222cat >>confdefs.h <<\_ACEOF
13223#define ENCODING_EU 1
13224_ACEOF
13225
13226
13227cat >>confdefs.h <<\_ACEOF
13228#define ENCODING_VN 1
13229_ACEOF
13230
13231for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13232 case "$codeset" in
13233 JP )
13234cat >>confdefs.h <<\_ACEOF
13235#define ENCODING_JP 1
13236_ACEOF
13237 ;;
13238 JP_EXT )
13239cat >>confdefs.h <<\_ACEOF
13240#define ENCODING_JP_EXT 1
13241_ACEOF
13242 ;;
13243 KR )
13244cat >>confdefs.h <<\_ACEOF
13245#define ENCODING_KR 1
13246_ACEOF
13247 ;;
13248 ZH )
13249cat >>confdefs.h <<\_ACEOF
13250#define ENCODING_ZH 1
13251_ACEOF
13252 ;;
13253 ZH_EXT )
13254cat >>confdefs.h <<\_ACEOF
13255#define ENCODING_ZH_EXT 1
13256_ACEOF
13257 ;;
13258 esac
13259done
13260
13261IF_PERL=\#
13262if test x$support_perl = xyes; then
13263 # Extract the first word of "perl5", so it can be a program name with args.
13264set dummy perl5; ac_word=$2
13265echo "$as_me:$LINENO: checking for $ac_word" >&5
13266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13267if test "${ac_cv_path_PERL+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13269else
13270 case $PERL in
13271 [\\/]* | ?:[\\/]*)
13272 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13273 ;;
13274 *)
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276for as_dir in $PATH
13277do
13278 IFS=$as_save_IFS
13279 test -z "$as_dir" && as_dir=.
13280 for ac_exec_ext in '' $ac_executable_extensions; do
13281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13282 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13284 break 2
13285 fi
13286done
13287done
13288
13289 ;;
13290esac
13291fi
13292PERL=$ac_cv_path_PERL
13293
13294if test -n "$PERL"; then
13295 echo "$as_me:$LINENO: result: $PERL" >&5
13296echo "${ECHO_T}$PERL" >&6
13297else
13298 echo "$as_me:$LINENO: result: no" >&5
13299echo "${ECHO_T}no" >&6
13300fi
13301
13302 # Extract the first word of "perl", so it can be a program name with args.
13303set dummy perl; ac_word=$2
13304echo "$as_me:$LINENO: checking for $ac_word" >&5
13305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13306if test "${ac_cv_path_PERL+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308else
13309 case $PERL in
13310 [\\/]* | ?:[\\/]*)
13311 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13312 ;;
13313 *)
13314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13315for as_dir in $PATH
13316do
13317 IFS=$as_save_IFS
13318 test -z "$as_dir" && as_dir=.
13319 for ac_exec_ext in '' $ac_executable_extensions; do
13320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13321 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13323 break 2
13324 fi
13325done
13326done
13327
13328 ;;
13329esac
13330fi
13331PERL=$ac_cv_path_PERL
13332
13333if test -n "$PERL"; then
13334 echo "$as_me:$LINENO: result: $PERL" >&5
13335echo "${ECHO_T}$PERL" >&6
13336else
13337 echo "$as_me:$LINENO: result: no" >&5
13338echo "${ECHO_T}no" >&6
13339fi
13340
13341
13342 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13343echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13344 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13345
13346 save_CXXFLAGS="$CXXFLAGS"
13347 save_LIBS="$LIBS"
13348 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13349 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13350 cat >conftest.$ac_ext <<_ACEOF
13351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
13356
13357#include <EXTERN.h>
13358#include <perl.h>
13359#include <XSUB.h>
13360
13361int
13362main ()
13363{
13364
13365 PerlInterpreter *perl = perl_alloc ();
13366
13367 ;
13368 return 0;
13369}
13370_ACEOF
13371rm -f conftest.$ac_objext conftest$ac_exeext
13372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13373 (eval $ac_link) 2>conftest.er1
13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13382 (eval $ac_try) 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; } &&
13386 { ac_try='test -s conftest$ac_exeext'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13389 ac_status=$?
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392 rxvt_perl_link=yes
13393else
13394 echo "$as_me: failed program was:" >&5
13395sed 's/^/| /' conftest.$ac_ext >&5
13396
13397rxvt_perl_link=no
13398fi
13399rm -f conftest.err conftest.$ac_objext \
13400 conftest$ac_exeext conftest.$ac_ext
13401 CXXFLAGS="$save_CXXFLAGS"
13402 LIBS="$save_LIBS"
13403
13404 if test x$rxvt_perl_link = xyes; then
13405 echo "$as_me:$LINENO: result: ok" >&5
13406echo "${ECHO_T}ok" >&6
13407
13408cat >>confdefs.h <<\_ACEOF
13409#define ENABLE_PERL 1
13410_ACEOF
13411
13412 IF_PERL=
13413 PERL_O=rxvtperl.o
13414 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13415 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13416 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13417 else
13418 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13419echo "$as_me: error: no, unable to link" >&2;}
13420 { (exit 1); exit 1; }; }
13421 fi
13422 else
13423 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13424echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13425 { (exit 1); exit 1; }; }
13426 fi
13427fi
13428
13429
13430
13431
13432
13433
13434
13435if test x$support_perl = xyes; then
13436 support_frills=yes
13437fi
13438
13439
13440CFLAGS=${CFLAGS--O}
13441LDFLAGS=${LDFLAGS--O}
13442
13443CPPFLAGS="$CPPFLAGS"
13444
13445
13446
13447
13448
13449
13450
13451if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13452 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13453 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13454 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13455 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13456 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13457fi
13458
13459
13460
13461
13462
13463test "$program_prefix" != NONE &&
13464 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13465# Use a double $ so make ignores it.
13466test "$program_suffix" != NONE &&
13467 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13468# Double any \ or $. echo might interpret backslashes.
13469# By default was `s,x,x', remove it if useless.
13470cat <<\_ACEOF >conftest.sed
13471s/[\\$]/&&/g;s/;s,x,x,$//
13472_ACEOF
13473program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13474rm conftest.sed
13475
13476
13477
13478
13479
13480if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13481 include_stdint_h="#include <stdint.h>"
13482else
13483 include_stdint_h="/* #include <stdint.h> */"
13484fi
13485if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13486 include_stdarg_h="#include <cstdarg>"
13487else
13488 include_stdarg_h="/* #include <cstdarg> */"
13489fi
13490if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13491 include_stdlib_h="#include <cstdlib>"
13492else
13493 include_stdlib_h="/* #include <cstdlib> */"
13494fi
13495if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13496 include_unistd_h="#include <unistd.h>"
13497else
13498 include_unistd_h="/* #include <unistd.h> */"
13499fi
13500if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13501 include_string_h="#include <cstring>"
13502else
13503 include_string_h="/* #include <cstring> */"
13504fi
13505if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13506 include_fcntl_h="#include <fcntl.h>"
13507else
13508 include_fcntl_h="/* #include <fcntl.h> */"
13509fi
13510if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13511 include_util_h="#include <util.h>"
13512else
13513 include_util_h="/* #include <util.h> */"
13514fi
13515if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13516 include_assert_h="#include <assert.h>"
13517else
13518 include_assert_h="/* #include <assert.h> */"
13519fi
13520if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13521 include_sys_ioctl_h="#include <sys/ioctl.h>"
13522else
13523 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13524fi
13525if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13526 include_sys_select_h="#include <sys/select.h>"
13527else
13528 include_sys_select_h="/* #include <sys/select.h> */"
13529fi
13530if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13531 include_sys_strredir_h="#include <sys/strredir.h>"
13532else
13533 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13534fi
13535if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13536 include_sys_time_h="#include <sys/time.h>"
13537else
13538 include_sys_time_h="/* #include <sys/time.h> */"
13539fi
13540if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13541 include_time_h="#include <time.h>"
13542else
13543 include_time_h="/* #include <time.h> */"
13544fi
13545
16963 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13546 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13547
16964cat >confcache <<\_ACEOF 13548cat >confcache <<\_ACEOF
16965# This file is a shell script that caches the results of configure 13549# This file is a shell script that caches the results of configure
16966# tests run on this system so they can be shared between configure 13550# tests run on this system so they can be shared between configure
16967# scripts and configure runs, see configure's option --config-cache. 13551# scripts and configure runs, see configure's option --config-cache.
16968# It is not useful on other systems. If it contains results you don't 13552# It is not useful on other systems. If it contains results you don't
17484cat >>$CONFIG_STATUS <<\_ACEOF 14068cat >>$CONFIG_STATUS <<\_ACEOF
17485for ac_config_target in $ac_config_targets 14069for ac_config_target in $ac_config_targets
17486do 14070do
17487 case "$ac_config_target" in 14071 case "$ac_config_target" in
17488 # Handling of arguments. 14072 # Handling of arguments.
17489 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17490 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14073 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17491 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14074 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17492 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14075 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17493 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17494 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 14076 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17495 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17496 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 14077 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17497 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14078 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17498echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14079echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17499 { (exit 1); exit 1; }; };; 14080 { (exit 1); exit 1; }; };;
17500 esac 14081 esac
17501done 14082done
17576s,@DEFS@,$DEFS,;t t 14157s,@DEFS@,$DEFS,;t t
17577s,@ECHO_C@,$ECHO_C,;t t 14158s,@ECHO_C@,$ECHO_C,;t t
17578s,@ECHO_N@,$ECHO_N,;t t 14159s,@ECHO_N@,$ECHO_N,;t t
17579s,@ECHO_T@,$ECHO_T,;t t 14160s,@ECHO_T@,$ECHO_T,;t t
17580s,@LIBS@,$LIBS,;t t 14161s,@LIBS@,$LIBS,;t t
14162s,@build@,$build,;t t
14163s,@build_cpu@,$build_cpu,;t t
14164s,@build_vendor@,$build_vendor,;t t
14165s,@build_os@,$build_os,;t t
14166s,@host@,$host,;t t
14167s,@host_cpu@,$host_cpu,;t t
14168s,@host_vendor@,$host_vendor,;t t
14169s,@host_os@,$host_os,;t t
17581s,@VERSION@,$VERSION,;t t 14170s,@VERSION@,$VERSION,;t t
17582s,@DATE@,$DATE,;t t 14171s,@DATE@,$DATE,;t t
17583s,@LSMDATE@,$LSMDATE,;t t 14172s,@LSMDATE@,$LSMDATE,;t t
17584s,@LIBVERSION@,$LIBVERSION,;t t 14173s,@LIBVERSION@,$LIBVERSION,;t t
17585s,@CC@,$CC,;t t 14174s,@CC@,$CC,;t t
17594s,@ac_ct_CXX@,$ac_ct_CXX,;t t 14183s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17595s,@CPP@,$CPP,;t t 14184s,@CPP@,$CPP,;t t
17596s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14185s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17597s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14186s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17598s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14187s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17599s,@AWK@,$AWK,;t t 14188s,@EGREP@,$EGREP,;t t
17600s,@LINKER@,$LINKER,;t t 14189s,@LINKER@,$LINKER,;t t
17601s,@CXXCPP@,$CXXCPP,;t t
17602s,@EGREP@,$EGREP,;t t
17603s,@build@,$build,;t t
17604s,@build_cpu@,$build_cpu,;t t
17605s,@build_vendor@,$build_vendor,;t t
17606s,@build_os@,$build_os,;t t
17607s,@host@,$host,;t t
17608s,@host_cpu@,$host_cpu,;t t
17609s,@host_vendor@,$host_vendor,;t t
17610s,@host_os@,$host_os,;t t
17611s,@LN_S@,$LN_S,;t t
17612s,@ECHO@,$ECHO,;t t
17613s,@RANLIB@,$RANLIB,;t t
17614s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17615s,@STRIP@,$STRIP,;t t
17616s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17617s,@LIBTOOL@,$LIBTOOL,;t t
17618s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 14190s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17619s,@RXVTNAME@,$RXVTNAME,;t t 14191s,@RXVTNAME@,$RXVTNAME,;t t
17620s,@MV@,$MV,;t t 14192s,@MV@,$MV,;t t
17621s,@RM@,$RM,;t t
17622s,@CP@,$CP,;t t 14193s,@CP@,$CP,;t t
17623s,@LN@,$LN,;t t 14194s,@LN@,$LN,;t t
17624s,@SED@,$SED,;t t 14195s,@SED@,$SED,;t t
14196s,@ECHO@,$ECHO,;t t
17625s,@CMP@,$CMP,;t t 14197s,@CMP@,$CMP,;t t
17626s,@TBL@,$TBL,;t t 14198s,@TIC@,$TIC,;t t
14199s,@CXXCPP@,$CXXCPP,;t t
17627s,@X_CFLAGS@,$X_CFLAGS,;t t 14200s,@X_CFLAGS@,$X_CFLAGS,;t t
17628s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 14201s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17629s,@X_LIBS@,$X_LIBS,;t t 14202s,@X_LIBS@,$X_LIBS,;t t
17630s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 14203s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17631s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 14204s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17635s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 14208s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17636s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 14209s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17637s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 14210s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17638s,@rxvt_intp_define@,$rxvt_intp_define,;t t 14211s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17639s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 14212s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
14213s,@PKG_CONFIG@,$PKG_CONFIG,;t t
14214s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14215s,@PERL@,$PERL,;t t
14216s,@PERLLIB@,$PERLLIB,;t t
14217s,@PERLFLAGS@,$PERLFLAGS,;t t
14218s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14219s,@IF_PERL@,$IF_PERL,;t t
14220s,@PERL_O@,$PERL_O,;t t
17640s,@DEBUG@,$DEBUG,;t t 14221s,@DEBUG@,$DEBUG,;t t
17641s,@DINCLUDE@,$DINCLUDE,;t t 14222s,@DINCLUDE@,$DINCLUDE,;t t
17642s,@DLIB@,$DLIB,;t t 14223s,@DLIB@,$DLIB,;t t
17643s,@include_stdint_h@,$include_stdint_h,;t t 14224s,@include_stdint_h@,$include_stdint_h,;t t
17644s,@include_stdarg_h@,$include_stdarg_h,;t t 14225s,@include_stdarg_h@,$include_stdarg_h,;t t
17653s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14234s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17654s,@include_sys_time_h@,$include_sys_time_h,;t t 14235s,@include_sys_time_h@,$include_sys_time_h,;t t
17655s,@include_time_h@,$include_time_h,;t t 14236s,@include_time_h@,$include_time_h,;t t
17656s,@LIBOBJS@,$LIBOBJS,;t t 14237s,@LIBOBJS@,$LIBOBJS,;t t
17657s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14238s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17658/@MCOMMON@/r $MCOMMON
17659s,@MCOMMON@,,;t t
17660CEOF 14239CEOF
17661 14240
17662_ACEOF 14241_ACEOF
17663 14242
17664 cat >>$CONFIG_STATUS <<\_ACEOF 14243 cat >>$CONFIG_STATUS <<\_ACEOF
18157 Install path: ${prefix}/bin 14736 Install path: ${prefix}/bin
18158 Compiler: $CXX 14737 Compiler: $CXX
18159 Compiler flags: $CFLAGS 14738 Compiler flags: $CFLAGS
18160 Linker: $LINKER" 14739 Linker: $LINKER"
18161 14740
18162if test "$MALLOC_TYPE" = S; then
18163 echo " malloc support: system default"
18164fi
18165if test "$MALLOC_TYPE" = G; then
18166 echo " malloc support: Gray Watson's dmalloc"
18167fi
18168if test "$MALLOC_TYPE" = D; then
18169 echo " malloc support: Doug Lea's malloc"
18170fi
18171
18172if test x$support_xpm = xyes; then 14741if test x$support_xpm = xyes; then
18173 echo " Xpm library: $XPM_LIBS" 14742 echo " Xpm library: $XPM_LIBS"
18174fi 14743fi
18175 14744
18176echo "
18177The following are set in config.h
18178"
18179echo " pty/tty type: "$rxvt_cv_ptys
18180if test x$support_utmp != xyes; then
18181 echo " utmp support: disabled"
18182 echo
18183else
18184 echo " utmp support: enabled
18185 utmp file: $rxvt_cv_path_utmp
18186 utmpx file: $rxvt_cv_path_utmpx
18187 wtmp file: $rxvt_cv_path_wtmp
18188 wtmpx file: $rxvt_cv_path_wtmpx
18189 lastlog file: $rxvt_cv_path_lastlog
18190 ttys/ttytab file: $rxvt_cv_path_ttytab"
18191 echo
18192fi
18193if test x$term != x; then 14745if test x$term != x; then
18194 echo " set TERM to: $term" 14746 echo " set TERM to: $term"
18195fi 14747fi
18196if test x$terminfo != x; then 14748if test x$terminfo != x; then
18197 echo " set TERMINFO to: $terminfo" 14749 echo " set TERMINFO to: $terminfo"
18200echo " resource class: $RESCLASS" 14752echo " resource class: $RESCLASS"
18201if test x$RESFALLBACK != x; then 14753if test x$RESFALLBACK != x; then
18202 echo " resource class fallback: $RESFALLBACK" 14754 echo " resource class fallback: $RESFALLBACK"
18203fi 14755fi
18204echo 14756echo
18205if test x$rxvt_cv_ptys = xUNKNOWN; then 14757echo " embedded perl: $support_perl"
18206 echo ".----------------------------------------------------------------." 14758echo
18207 echo ". WARNING: could not determine pty/tty type. Do not build until ."
18208 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
18209 echo ".----------------------------------------------------------------."
18210fi
18211if test x$support_xpm = xneedsmanualspecification; then 14759if test x$support_xpm = xneedsmanualspecification; then
18212 echo ".----------------------------------------------------------------." 14760 echo ".----------------------------------------------------------------."
18213 echo ". WARNING: --enable-xpm-background was specified however the ." 14761 echo ". WARNING: --enable-xpm-background was specified however the ."
18214 echo ". XPM includes files and libraries could not be found. ." 14762 echo ". XPM includes files and libraries could not be found. ."
18215 echo ". XPM backgrounds are now being DISABLED! If you want ." 14763 echo ". XPM backgrounds are now being DISABLED! If you want ."
18224 echo ". functions could not be found. ." 14772 echo ". functions could not be found. ."
18225 echo ". XIM is now being DISABLED! ." 14773 echo ". XIM is now being DISABLED! ."
18226 echo ".----------------------------------------------------------------." 14774 echo ".----------------------------------------------------------------."
18227fi 14775fi
18228 14776
18229echo " *** Please check src/feature.h for further options ***" 14777echo " *** Optionally check src/feature.h for further options ***"
18230echo 14778echo
18231 14779
18232echo ".----------------------------------------------------------------." 14780echo ".----------------------------------------------------------------."
18233echo ". NOTE: most features are disabled by default, try ." 14781echo ". NOTE: some features are disabled by default, try ."
18234echo ". configure --help to get an idea of the optional features ." 14782echo ". configure --help to get an idea of the optional features, ."
14783echo ". or read ./README.configure ."
14784echo ". ."
14785echo ". The script ./reconf gives a reasonable baseline, try it if ."
14786echo ". you do not want to read documentation and still want some ."
14787echo ". useful features. ."
18235echo ".----------------------------------------------------------------." 14788echo ".----------------------------------------------------------------."
18236echo 14789echo
18237 14790

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines