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

Comparing rxvt-unicode/configure (file contents):
Revision 1.24 by pcg, Fri Apr 2 17:59:49 2004 UTC vs.
Revision 1.90 by root, Sun Jan 22 17:10:01 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 RM CP LN SED ECHO CMP TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
471ac_subst_files='MCOMMON' 313ac_subst_files=''
472 314
473# Initialize some variables set by options. 315# Initialize some variables set by options.
474ac_init_help= 316ac_init_help=
475ac_init_version=false 317ac_init_version=false
476# The variables have the same names as the options, with 318# The variables have the same names as the options, with
1021 cat <<\_ACEOF 863 cat <<\_ACEOF
1022 864
1023Optional Features: 865Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features 868 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent 869 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
874 --enable-font-styles enable bold and italic support
1036 --enable-utmp enable utmp (utmpx) support 875 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 876 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp) 877 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps 878 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds 879 --enable-transparency enable transparent backgrounds
1041 --enable-tinting enable tinting of transparent bg 880 --enable-tinting enable tinting of transparent bg
1042 --enable-menubar enable menubar 881 --enable-fading enable colors fading when off focus
1043 --enable-rxvt-scroll enable rxvt style scrollbar 882 --enable-rxvt-scroll enable rxvt style scrollbar
1044 --enable-next-scroll enable NeXT style scrollbar 883 --enable-next-scroll enable NeXT style scrollbar
1045 --enable-xterm-scroll enable Xterm style scrollbar 884 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter
1046 --enable-plain-scroll enable plain style scrollbar 886 --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 887 --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 888 --disable-backspace-key disable handling of the backspace key
1051 --disable-delete-key disable handling of the delete key 889 --disable-delete-key disable handling of the delete key
1052 --disable-resources disable all resource checking 890 --disable-resources disable all resource checking
1053 --enable-xgetdefault enable resources via X instead of our small version 891 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1054 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 892 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1055 --enable-strings enable some replacement system functions
1056 --disable-swapscreen disable swap screen support 893 --disable-swapscreen disable swap screen support
894 --enable-iso14755 enable support for extended ISO 14755 modes
1057 --enable-frills enable support for rarely used features 895 --enable-frills enable support for rarely used features
1058 --enable-linespace enable support for linespace
1059 --enable-24bit enable support for using 24bit visuals if available 896 --enable-24bit enable support for using 24bit visuals if available
1060 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 897 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1061 --enable-selectionscrolling enable scrolling during selections 898 --enable-selectionscrolling enable scrolling during selections
1062 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 899 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1063 --enable-slipwheeling enable slip wheel scrolling (requires previous) 900 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1064 --enable-dmalloc enable Gray Watson's malloc - for debugging use 901 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1065 --enable-dlmalloc enable Doug Lea's malloc - for production use 902 --enable-dlmalloc enable Doug Lea's malloc - for production use
1066 NOTE: enable only one malloc package 903 NOTE: enable only one malloc package
1067 --enable-smart-resize enable smart growth/shrink behaviour 904 --enable-smart-resize enable smart growth/shrink behaviour
1068 --enable-256-color enable 256-color support
1069 --enable-cursor-blink enable blinking cursor
1070 --enable-text-blink enable blinking text 905 --enable-text-blink enable blinking text
1071 --enable-pointer-blank enable pointer blank when typing or inactive pointer 906 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1072 907
1073Optional Packages: 908Optional Packages:
1074 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1075 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1076 --with-gnu-ld assume the C compiler uses GNU ld default=no
1077 --with-pic try to use only PIC/non-PIC objects default=use both
1078 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 911 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1079 --with-res-name=NAME use this as default resource name (default: urxvt) 912 --with-res-name=NAME use this as default resource name (default: urxvt)
1080 --with-res-class=CLASS use this as the resource class (default: URxvt) 913 --with-res-class=CLASS use this as the resource class (default: URxvt)
1081 --with-name=NAME set the basename for the installed binaries (default: urxvt) 914 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1082 --with-term=NAME set the terminal to NAME (default: rxvt) 915 --with-term=NAME set the terminal to NAME (default: rxvt)
1083 --with-terminfo=PATH set the path to the terminfo tree to PATH 916 --with-terminfo=PATH set the path to the terminfo tree to PATH
1534 1367
1535 1368
1536 1369
1537 1370
1538 1371
1372
1373
1374 ac_config_headers="$ac_config_headers config.h:config.h.in"
1375
1376
1539ac_aux_dir= 1377ac_aux_dir=
1540for ac_dir in autoconf $srcdir/autoconf; do 1378for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1541 if test -f $ac_dir/install-sh; then 1379 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir 1380 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c" 1381 ac_install_sh="$ac_aux_dir/install-sh -c"
1544 break 1382 break
1545 elif test -f $ac_dir/install.sh; then 1383 elif test -f $ac_dir/install.sh; then
1551 ac_install_sh="$ac_aux_dir/shtool install -c" 1389 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break 1390 break
1553 fi 1391 fi
1554done 1392done
1555if test -z "$ac_aux_dir"; then 1393if test -z "$ac_aux_dir"; then
1556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1394 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1557echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1395echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1558 { (exit 1); exit 1; }; } 1396 { (exit 1); exit 1; }; }
1559fi 1397fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1398ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1399ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1400ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563 1401
1564 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1402# Make sure we can run config.sub.
1403$ac_config_sub sun4 >/dev/null 2>&1 ||
1404 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1405echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1406 { (exit 1); exit 1; }; }
1407
1408echo "$as_me:$LINENO: checking build system type" >&5
1409echo $ECHO_N "checking build system type... $ECHO_C" >&6
1410if test "${ac_cv_build+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1412else
1413 ac_cv_build_alias=$build_alias
1414test -z "$ac_cv_build_alias" &&
1415 ac_cv_build_alias=`$ac_config_guess`
1416test -z "$ac_cv_build_alias" &&
1417 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1418echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1419 { (exit 1); exit 1; }; }
1420ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1421 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1422echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1423 { (exit 1); exit 1; }; }
1424
1425fi
1426echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1427echo "${ECHO_T}$ac_cv_build" >&6
1428build=$ac_cv_build
1429build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1430build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1431build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1432
1433
1434echo "$as_me:$LINENO: checking host system type" >&5
1435echo $ECHO_N "checking host system type... $ECHO_C" >&6
1436if test "${ac_cv_host+set}" = set; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438else
1439 ac_cv_host_alias=$host_alias
1440test -z "$ac_cv_host_alias" &&
1441 ac_cv_host_alias=$ac_cv_build_alias
1442ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1443 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1444echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1445 { (exit 1); exit 1; }; }
1446
1447fi
1448echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1449echo "${ECHO_T}$ac_cv_host" >&6
1450host=$ac_cv_host
1451host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1452host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1453host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454
1565 1455
1566 1456
1567VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1457VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1568DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1458DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1569LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1570LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1571echo "" 1459echo ""
1572echo "configuring for rxvt $VERSION" 1460echo "configuring for rxvt $VERSION"
1573echo "" 1461echo ""
1462
1463orig_CXXFLAGS="$CXXFLAGS"
1574 1464
1575 1465
1576ac_ext=c 1466ac_ext=c
1577ac_cpp='$CPP $CPPFLAGS' 1467ac_cpp='$CPP $CPPFLAGS'
1578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3159 3049
3160test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3050test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3161 3051
3162test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3052test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3163 3053
3164for ac_prog in gawk mawk nawk awk
3165do
3166 # Extract the first word of "$ac_prog", so it can be a program name with args.
3167set dummy $ac_prog; ac_word=$2
3168echo "$as_me:$LINENO: checking for $ac_word" >&5
3169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3170if test "${ac_cv_prog_AWK+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172else
3173 if test -n "$AWK"; then
3174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3175else
3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177for as_dir in $PATH
3178do
3179 IFS=$as_save_IFS
3180 test -z "$as_dir" && as_dir=.
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_prog_AWK="$ac_prog"
3184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 break 2
3186 fi
3187done
3188done
3189 3054
3190fi
3191fi
3192AWK=$ac_cv_prog_AWK
3193if test -n "$AWK"; then
3194 echo "$as_me:$LINENO: result: $AWK" >&5
3195echo "${ECHO_T}$AWK" >&6
3196else
3197 echo "$as_me:$LINENO: result: no" >&5
3198echo "${ECHO_T}no" >&6
3199fi
3200
3201 test -n "$AWK" && break
3202done
3203
3204
3205ac_ext=c
3206ac_cpp='$CPP $CPPFLAGS'
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
3211
3212LINKER="$CXX"
3213if test x$GCC = xyes && test x$GXX = xyes; then
3214
3215echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3216echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3217if test "${ac_cv_lib_supcpp_main+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 ac_check_lib_save_LIBS=$LIBS
3221LIBS="-lsupc++ $LIBS"
3222cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
3228
3229
3230int
3231main ()
3232{
3233main ();
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext conftest$ac_exeext
3239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3240 (eval $ac_link) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest$ac_exeext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 ac_cv_lib_supcpp_main=yes
3260else
3261 echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264ac_cv_lib_supcpp_main=no
3265fi
3266rm -f conftest.err conftest.$ac_objext \
3267 conftest$ac_exeext conftest.$ac_ext
3268LIBS=$ac_check_lib_save_LIBS
3269fi
3270echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3271echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3272if test $ac_cv_lib_supcpp_main = yes; then
3273
3274 LINKER="$CC"
3275 LIBS="$LIBS -lsupc++"
3276
3277fi
3278
3279fi
3280LINKER=$LINKER
3281
3282
3283CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
3284
3285
3286ac_ext=cc
3287ac_cpp='$CXXCPP $CPPFLAGS'
3288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3291
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
3299echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3300echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3301if test -z "$CXXCPP"; then
3302 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304else
3305 # Double quotes because CXXCPP needs to be expanded
3306 for CXXCPP in "$CXX -E" "/lib/cpp"
3307 do
3308 ac_preproc_ok=false
3309for ac_cxx_preproc_warn_flag in '' yes
3310do
3311 # Use a header file that comes with gcc, so configuring glibc
3312 # with a fresh cross-compiler works.
3313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3314 # <limits.h> exists even on freestanding compilers.
3315 # On the NeXT, cc -E runs the code through the compiler's parser,
3316 # not just through cpp. "Syntax error" is here to catch this case.
3317 cat >conftest.$ac_ext <<_ACEOF
3318/* confdefs.h. */
3319_ACEOF
3320cat confdefs.h >>conftest.$ac_ext
3321cat >>conftest.$ac_ext <<_ACEOF
3322/* end confdefs.h. */
3323#ifdef __STDC__
3324# include <limits.h>
3325#else
3326# include <assert.h>
3327#endif
3328 Syntax error
3329_ACEOF
3330if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } >/dev/null; then
3338 if test -s conftest.err; then
3339 ac_cpp_err=$ac_cxx_preproc_warn_flag
3340 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3341 else
3342 ac_cpp_err=
3343 fi
3344else
3345 ac_cpp_err=yes
3346fi
3347if test -z "$ac_cpp_err"; then
3348 :
3349else
3350 echo "$as_me: failed program was:" >&5
3351sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 # Broken: fails on valid input.
3354continue
3355fi
3356rm -f conftest.err conftest.$ac_ext
3357
3358 # OK, works on sane cases. Now check whether non-existent headers
3359 # can be detected and how.
3360 cat >conftest.$ac_ext <<_ACEOF
3361/* confdefs.h. */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h. */
3366#include <ac_nonexistent.h>
3367_ACEOF
3368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } >/dev/null; then
3376 if test -s conftest.err; then
3377 ac_cpp_err=$ac_cxx_preproc_warn_flag
3378 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3379 else
3380 ac_cpp_err=
3381 fi
3382else
3383 ac_cpp_err=yes
3384fi
3385if test -z "$ac_cpp_err"; then
3386 # Broken: success on invalid input.
3387continue
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 # Passes both tests.
3393ac_preproc_ok=:
3394break
3395fi
3396rm -f conftest.err conftest.$ac_ext
3397
3398done
3399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3400rm -f conftest.err conftest.$ac_ext
3401if $ac_preproc_ok; then
3402 break
3403fi
3404
3405 done
3406 ac_cv_prog_CXXCPP=$CXXCPP
3407
3408fi
3409 CXXCPP=$ac_cv_prog_CXXCPP
3410else
3411 ac_cv_prog_CXXCPP=$CXXCPP
3412fi
3413echo "$as_me:$LINENO: result: $CXXCPP" >&5
3414echo "${ECHO_T}$CXXCPP" >&6
3415ac_preproc_ok=false
3416for ac_cxx_preproc_warn_flag in '' yes
3417do
3418 # Use a header file that comes with gcc, so configuring glibc
3419 # with a fresh cross-compiler works.
3420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3421 # <limits.h> exists even on freestanding compilers.
3422 # On the NeXT, cc -E runs the code through the compiler's parser,
3423 # not just through cpp. "Syntax error" is here to catch this case.
3424 cat >conftest.$ac_ext <<_ACEOF
3425/* confdefs.h. */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
3429/* end confdefs.h. */
3430#ifdef __STDC__
3431# include <limits.h>
3432#else
3433# include <assert.h>
3434#endif
3435 Syntax error
3436_ACEOF
3437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3438 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_cxx_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3448 else
3449 ac_cpp_err=
3450 fi
3451else
3452 ac_cpp_err=yes
3453fi
3454if test -z "$ac_cpp_err"; then
3455 :
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 # Broken: fails on valid input.
3461continue
3462fi
3463rm -f conftest.err conftest.$ac_ext
3464
3465 # OK, works on sane cases. Now check whether non-existent headers
3466 # can be detected and how.
3467 cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h. */
3469_ACEOF
3470cat confdefs.h >>conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h. */
3473#include <ac_nonexistent.h>
3474_ACEOF
3475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3477 ac_status=$?
3478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_cxx_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3486 else
3487 ac_cpp_err=
3488 fi
3489else
3490 ac_cpp_err=yes
3491fi
3492if test -z "$ac_cpp_err"; then
3493 # Broken: success on invalid input.
3494continue
3495else
3496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
3499 # Passes both tests.
3500ac_preproc_ok=:
3501break
3502fi
3503rm -f conftest.err conftest.$ac_ext
3504
3505done
3506# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3507rm -f conftest.err conftest.$ac_ext
3508if $ac_preproc_ok; then
3509 :
3510else
3511 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3512See \`config.log' for more details." >&5
3513echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3514See \`config.log' for more details." >&2;}
3515 { (exit 1); exit 1; }; }
3516fi
3517
3518ac_ext=cc
3519ac_cpp='$CXXCPP $CPPFLAGS'
3520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3523 3055
3524 3056
3525echo "$as_me:$LINENO: checking for egrep" >&5 3057echo "$as_me:$LINENO: checking for egrep" >&5
3526echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3058echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3527if test "${ac_cv_prog_egrep+set}" = set; then 3059if test "${ac_cv_prog_egrep+set}" = set; then
3602 grep -v '^ *+' conftest.er1 >conftest.err 3134 grep -v '^ *+' conftest.er1 >conftest.err
3603 rm -f conftest.er1 3135 rm -f conftest.er1
3604 cat conftest.err >&5 3136 cat conftest.err >&5
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); } && 3138 (exit $ac_status); } &&
3607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5 3141 (eval $ac_try) 2>&5
3610 ac_status=$? 3142 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; } && 3144 (exit $ac_status); }; } &&
3656 grep -v '^ *+' conftest.er1 >conftest.err 3188 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1 3189 rm -f conftest.er1
3658 cat conftest.err >&5 3190 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } && 3192 (exit $ac_status); } &&
3661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5 3195 (eval $ac_try) 2>&5
3664 ac_status=$? 3196 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } && 3198 (exit $ac_status); }; } &&
3688if test "$ac_cv_search_strerror" != no; then 3220if test "$ac_cv_search_strerror" != no; then
3689 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3221 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3690 3222
3691fi 3223fi
3692 3224
3693
3694# Check whether --enable-shared or --disable-shared was given.
3695if test "${enable_shared+set}" = set; then
3696 enableval="$enable_shared"
3697 p=${PACKAGE-default}
3698case "$enableval" in
3699yes) enable_shared=yes ;;
3700no) enable_shared=no ;;
3701*)
3702 enable_shared=no
3703 # Look at the argument we got. We use all the common list separators.
3704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3705 for pkg in $enableval; do
3706 if test "X$pkg" = "X$p"; then
3707 enable_shared=yes
3708 fi
3709 done
3710 IFS="$ac_save_ifs"
3711 ;;
3712esac
3713else
3714 enable_shared=no
3715fi; # Check whether --enable-static or --disable-static was given.
3716if test "${enable_static+set}" = set; then
3717 enableval="$enable_static"
3718 p=${PACKAGE-default}
3719case "$enableval" in
3720yes) enable_static=yes ;;
3721no) enable_static=no ;;
3722*)
3723 enable_static=no
3724 # Look at the argument we got. We use all the common list separators.
3725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3726 for pkg in $enableval; do
3727 if test "X$pkg" = "X$p"; then
3728 enable_static=yes
3729 fi
3730 done
3731 IFS="$ac_save_ifs"
3732 ;;
3733esac
3734else
3735 enable_static=yes
3736fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3737if test "${enable_fast_install+set}" = set; then
3738 enableval="$enable_fast_install"
3739 p=${PACKAGE-default}
3740case "$enableval" in
3741yes) enable_fast_install=yes ;;
3742no) enable_fast_install=no ;;
3743*)
3744 enable_fast_install=no
3745 # Look at the argument we got. We use all the common list separators.
3746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3747 for pkg in $enableval; do
3748 if test "X$pkg" = "X$p"; then
3749 enable_fast_install=yes
3750 fi
3751 done
3752 IFS="$ac_save_ifs"
3753 ;;
3754esac
3755else
3756 enable_fast_install=yes
3757fi;
3758# Make sure we can run config.sub.
3759$ac_config_sub sun4 >/dev/null 2>&1 ||
3760 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3761echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3762 { (exit 1); exit 1; }; }
3763
3764echo "$as_me:$LINENO: checking build system type" >&5
3765echo $ECHO_N "checking build system type... $ECHO_C" >&6
3766if test "${ac_cv_build+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769 ac_cv_build_alias=$build_alias
3770test -z "$ac_cv_build_alias" &&
3771 ac_cv_build_alias=`$ac_config_guess`
3772test -z "$ac_cv_build_alias" &&
3773 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3774echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3775 { (exit 1); exit 1; }; }
3776ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3777 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3778echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3779 { (exit 1); exit 1; }; }
3780
3781fi
3782echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3783echo "${ECHO_T}$ac_cv_build" >&6
3784build=$ac_cv_build
3785build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3786build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3787build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3788
3789
3790echo "$as_me:$LINENO: checking host system type" >&5
3791echo $ECHO_N "checking host system type... $ECHO_C" >&6
3792if test "${ac_cv_host+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794else
3795 ac_cv_host_alias=$host_alias
3796test -z "$ac_cv_host_alias" &&
3797 ac_cv_host_alias=$ac_cv_build_alias
3798ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3799 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3800echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3801 { (exit 1); exit 1; }; }
3802
3803fi
3804echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3805echo "${ECHO_T}$ac_cv_host" >&6
3806host=$ac_cv_host
3807host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3808host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3809host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3810
3811
3812
3813# Check whether --with-gnu-ld or --without-gnu-ld was given.
3814if test "${with_gnu_ld+set}" = set; then
3815 withval="$with_gnu_ld"
3816 test "$withval" = no || with_gnu_ld=yes
3817else
3818 with_gnu_ld=no
3819fi;
3820ac_prog=ld
3821if test "$GCC" = yes; then
3822 # Check if gcc -print-prog-name=ld gives a path.
3823 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3824echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3825 case $host in
3826 *-*-mingw*)
3827 # gcc leaves a trailing carriage return which upsets mingw
3828 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3829 *)
3830 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3831 esac
3832 case "$ac_prog" in
3833 # Accept absolute paths.
3834 [\\/]* | [A-Za-z]:[\\/]*)
3835 re_direlt='/[^/][^/]*/\.\./'
3836 # Canonicalize the path of ld
3837 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3838 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3839 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3840 done
3841 test -z "$LD" && LD="$ac_prog"
3842 ;;
3843 "")
3844 # If it fails, then pretend we aren't using GCC.
3845 ac_prog=ld
3846 ;;
3847 *)
3848 # If it is relative, then search for the first ld in PATH.
3849 with_gnu_ld=unknown
3850 ;;
3851 esac
3852elif test "$with_gnu_ld" = yes; then
3853 echo "$as_me:$LINENO: checking for GNU ld" >&5
3854echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3855else
3856 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3857echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3858fi
3859if test "${lt_cv_path_LD+set}" = set; then
3860 echo $ECHO_N "(cached) $ECHO_C" >&6
3861else
3862 if test -z "$LD"; then
3863 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3864 for ac_dir in $PATH; do
3865 test -z "$ac_dir" && ac_dir=.
3866 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3867 lt_cv_path_LD="$ac_dir/$ac_prog"
3868 # Check to see if the program is GNU ld. I'd rather use --version,
3869 # but apparently some GNU ld's only accept -v.
3870 # Break only if it was the GNU/non-GNU ld that we prefer.
3871 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3872 test "$with_gnu_ld" != no && break
3873 else
3874 test "$with_gnu_ld" != yes && break
3875 fi
3876 fi
3877 done
3878 IFS="$ac_save_ifs"
3879else
3880 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3881fi
3882fi
3883
3884LD="$lt_cv_path_LD"
3885if test -n "$LD"; then
3886 echo "$as_me:$LINENO: result: $LD" >&5
3887echo "${ECHO_T}$LD" >&6
3888else
3889 echo "$as_me:$LINENO: result: no" >&5
3890echo "${ECHO_T}no" >&6
3891fi
3892test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3893echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3894 { (exit 1); exit 1; }; }
3895echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3896echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3897if test "${lt_cv_prog_gnu_ld+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899else
3900 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3901if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3902 lt_cv_prog_gnu_ld=yes
3903else
3904 lt_cv_prog_gnu_ld=no
3905fi
3906fi
3907echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3908echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3909with_gnu_ld=$lt_cv_prog_gnu_ld
3910
3911
3912echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3913echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3914if test "${lt_cv_ld_reload_flag+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917 lt_cv_ld_reload_flag='-r'
3918fi
3919echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3920echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3921reload_flag=$lt_cv_ld_reload_flag
3922test -n "$reload_flag" && reload_flag=" $reload_flag"
3923
3924echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3925echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3926if test "${lt_cv_path_NM+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928else
3929 if test -n "$NM"; then
3930 # Let the user override the test.
3931 lt_cv_path_NM="$NM"
3932else
3933 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3934 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3935 test -z "$ac_dir" && ac_dir=.
3936 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3937 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3938 # Check to see if the nm accepts a BSD-compat flag.
3939 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3940 # nm: unknown option "B" ignored
3941 # Tru64's nm complains that /dev/null is an invalid object file
3942 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3943 lt_cv_path_NM="$tmp_nm -B"
3944 break
3945 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3946 lt_cv_path_NM="$tmp_nm -p"
3947 break
3948 else
3949 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3950 continue # so that we can try to find one that supports BSD flags
3951 fi
3952 fi
3953 done
3954 IFS="$ac_save_ifs"
3955 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3956fi
3957fi
3958
3959NM="$lt_cv_path_NM"
3960echo "$as_me:$LINENO: result: $NM" >&5
3961echo "${ECHO_T}$NM" >&6
3962
3963echo "$as_me:$LINENO: checking whether ln -s works" >&5
3964echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3965LN_S=$as_ln_s
3966if test "$LN_S" = "ln -s"; then
3967 echo "$as_me:$LINENO: result: yes" >&5
3968echo "${ECHO_T}yes" >&6
3969else
3970 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3971echo "${ECHO_T}no, using $LN_S" >&6
3972fi
3973
3974echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3975echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3976if test "${lt_cv_deplibs_check_method+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978else
3979 lt_cv_file_magic_cmd='$MAGIC_CMD'
3980lt_cv_file_magic_test_file=
3981lt_cv_deplibs_check_method='unknown'
3982# Need to set the preceding variable on all platforms that support
3983# interlibrary dependencies.
3984# 'none' -- dependencies not supported.
3985# `unknown' -- same as none, but documents that we really don't know.
3986# 'pass_all' -- all dependencies passed with no checks.
3987# 'test_compile' -- check by making test program.
3988# ['file_magic [regex]'] -- check by looking for files in library path
3989# which responds to the $file_magic_cmd with a given egrep regex.
3990# If you have `file' or equivalent on your system and you're not sure
3991# whether `pass_all' will *always* work, you probably want this one.
3992
3993case "$host_os" in
3994aix4*)
3995 lt_cv_deplibs_check_method=pass_all
3996 ;;
3997
3998beos*)
3999 lt_cv_deplibs_check_method=pass_all
4000 ;;
4001
4002bsdi4*)
4003 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4004 lt_cv_file_magic_cmd='/usr/bin/file -L'
4005 lt_cv_file_magic_test_file=/shlib/libc.so
4006 ;;
4007
4008cygwin* | mingw* | pw32*)
4009 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4010 lt_cv_file_magic_cmd='$OBJDUMP -f'
4011 ;;
4012
4013darwin*|rhapsody*)
4014 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4015 lt_cv_file_magiic_cmd=/usr/bin/file
4016 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4017 ;;
4018
4019freebsd*)
4020 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4021 case "$host_cpu" in
4022 i*86 )
4023 # Not sure whether the presence of OpenBSD here was a mistake.
4024 # Let's accept both of them until this is cleared up.
4025 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4026 lt_cv_file_magic_cmd=/usr/bin/file
4027 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4028 ;;
4029 esac
4030 else
4031 lt_cv_deplibs_check_method=pass_all
4032 fi
4033 ;;
4034
4035gnu*)
4036 lt_cv_deplibs_check_method=pass_all
4037 ;;
4038
4039hpux10.20*|hpux11*)
4040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4041 lt_cv_file_magic_cmd=/usr/bin/file
4042 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4043 ;;
4044
4045irix5* | irix6*)
4046 case "$host_os" in
4047 irix5*)
4048 # this will be overridden with pass_all, but let us keep it just in case
4049 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4050 ;;
4051 *)
4052 case "$LD" in
4053 *-32|*"-32 ") libmagic=32-bit;;
4054 *-n32|*"-n32 ") libmagic=N32;;
4055 *-64|*"-64 ") libmagic=64-bit;;
4056 *) libmagic=never-match;;
4057 esac
4058 # this will be overridden with pass_all, but let us keep it just in case
4059 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4060 ;;
4061 esac
4062 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4063 lt_cv_deplibs_check_method=pass_all
4064 ;;
4065
4066# This must be Linux ELF.
4067linux-gnu*)
4068 case "$host_cpu" in
4069 alpha* | i*86 | powerpc* | sparc* | ia64* )
4070 lt_cv_deplibs_check_method=pass_all ;;
4071 *)
4072 # glibc up to 2.1.1 does not perform some relocations on ARM
4073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4074 esac
4075 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4076 ;;
4077
4078netbsd*)
4079 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4080 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4081 else
4082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4083 fi
4084 lt_cv_file_magic_cmd='/usr/bin/file -L'
4085 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4086 ;;
4087
4088newos6*)
4089 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4090 lt_cv_file_magic_cmd=/usr/bin/file
4091 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4092 ;;
4093
4094osf3* | osf4* | osf5*)
4095 # this will be overridden with pass_all, but let us keep it just in case
4096 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4097 lt_cv_file_magic_test_file=/shlib/libc.so
4098 lt_cv_deplibs_check_method=pass_all
4099 ;;
4100
4101sco3.2v5*)
4102 lt_cv_deplibs_check_method=pass_all
4103 ;;
4104
4105solaris*)
4106 lt_cv_deplibs_check_method=pass_all
4107 lt_cv_file_magic_test_file=/lib/libc.so
4108 ;;
4109
4110sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4111 case "$host_vendor" in
4112 motorola)
4113 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]'
4114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4115 ;;
4116 ncr)
4117 lt_cv_deplibs_check_method=pass_all
4118 ;;
4119 sequent)
4120 lt_cv_file_magic_cmd='/bin/file'
4121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4122 ;;
4123 sni)
4124 lt_cv_file_magic_cmd='/bin/file'
4125 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4126 lt_cv_file_magic_test_file=/lib/libc.so
4127 ;;
4128 esac
4129 ;;
4130esac
4131
4132fi
4133echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4134echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4135file_magic_cmd=$lt_cv_file_magic_cmd
4136deplibs_check_method=$lt_cv_deplibs_check_method
4137
4138
4139
4140
4141
4142
4143
4144# Check for command to grab the raw symbol name followed by C symbol from nm.
4145echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4146echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4147if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4149else
4150
4151# These are sane defaults that work on at least a few old systems.
4152# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4153
4154# Character class describing NM global symbol codes.
4155symcode='[BCDEGRST]'
4156
4157# Regexp to match symbols that can be accessed directly from C.
4158sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4159
4160# Transform the above into a raw symbol and a C symbol.
4161symxfrm='\1 \2\3 \3'
4162
4163# Transform an extracted symbol line into a proper C declaration
4164lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4165
4166# Define system-specific variables.
4167case "$host_os" in
4168aix*)
4169 symcode='[BCDT]'
4170 ;;
4171cygwin* | mingw* | pw32*)
4172 symcode='[ABCDGISTW]'
4173 ;;
4174hpux*) # Its linker distinguishes data from code symbols
4175 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4176 ;;
4177irix*)
4178 symcode='[BCDEGRST]'
4179 ;;
4180solaris* | sysv5*)
4181 symcode='[BDT]'
4182 ;;
4183sysv4)
4184 symcode='[DFNSTU]'
4185 ;;
4186esac
4187
4188# Handle CRLF in mingw tool chain
4189opt_cr=
4190case "$host_os" in
4191mingw*)
4192 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4193 ;;
4194esac
4195
4196# If we're using GNU nm, then use its standard symbol codes.
4197if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4198 symcode='[ABCDGISTW]'
4199fi
4200
4201# Try without a prefix undercore, then with it.
4202for ac_symprfx in "" "_"; do
4203
4204 # Write the raw and C identifiers.
4205lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4206
4207 # Check to see that the pipe works correctly.
4208 pipe_works=no
4209 rm -f conftest*
4210 cat > conftest.$ac_ext <<EOF
4211#ifdef __cplusplus
4212extern "C" {
4213#endif
4214char nm_test_var;
4215void nm_test_func(){}
4216#ifdef __cplusplus
4217}
4218#endif
4219main(){nm_test_var='a';nm_test_func();return(0);}
4220EOF
4221
4222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4223 (eval $ac_compile) 2>&5
4224 ac_status=$?
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; then
4227 # Now try to grab the symbols.
4228 nlist=conftest.nm
4229 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4230 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); } && test -s "$nlist"; then
4234 # Try sorting and uniquifying the output.
4235 if sort "$nlist" | uniq > "$nlist"T; then
4236 mv -f "$nlist"T "$nlist"
4237 else
4238 rm -f "$nlist"T
4239 fi
4240
4241 # Make sure that we snagged all the symbols we need.
4242 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4243 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4244 cat <<EOF > conftest.$ac_ext
4245#ifdef __cplusplus
4246extern "C" {
4247#endif
4248
4249EOF
4250 # Now generate the symbol file.
4251 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4252
4253 cat <<EOF >> conftest.$ac_ext
4254#if defined (__STDC__) && __STDC__
4255# define lt_ptr_t void *
4256#else
4257# define lt_ptr_t char *
4258# define const
4259#endif
4260
4261/* The mapping between symbol names and symbols. */
4262const struct {
4263 const char *name;
4264 lt_ptr_t address;
4265}
4266lt_preloaded_symbols[] =
4267{
4268EOF
4269 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4270 cat <<\EOF >> conftest.$ac_ext
4271 {0, (lt_ptr_t) 0}
4272};
4273
4274#ifdef __cplusplus
4275}
4276#endif
4277EOF
4278 # Now try linking the two files.
4279 mv conftest.$ac_objext conftstm.$ac_objext
4280 save_LIBS="$LIBS"
4281 save_CFLAGS="$CFLAGS"
4282 LIBS="conftstm.$ac_objext"
4283 CFLAGS="$CFLAGS$no_builtin_flag"
4284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285 (eval $ac_link) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && test -s conftest; then
4289 pipe_works=yes
4290 fi
4291 LIBS="$save_LIBS"
4292 CFLAGS="$save_CFLAGS"
4293 else
4294 echo "cannot find nm_test_func in $nlist" >&5
4295 fi
4296 else
4297 echo "cannot find nm_test_var in $nlist" >&5
4298 fi
4299 else
4300 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4301 fi
4302 else
4303 echo "$progname: failed program was:" >&5
4304 cat conftest.$ac_ext >&5
4305 fi
4306 rm -f conftest* conftst*
4307
4308 # Do not use the global_symbol_pipe unless it works.
4309 if test "$pipe_works" = yes; then
4310 break
4311 else
4312 lt_cv_sys_global_symbol_pipe=
4313 fi
4314done
4315
4316fi
4317
4318global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4319if test -z "$lt_cv_sys_global_symbol_pipe"; then
4320 global_symbol_to_cdecl=
4321else
4322 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4323fi
4324if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4325 echo "$as_me:$LINENO: result: failed" >&5
4326echo "${ECHO_T}failed" >&6
4327else
4328 echo "$as_me:$LINENO: result: ok" >&5
4329echo "${ECHO_T}ok" >&6
4330fi
4331
4332echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4333echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4334if test "${ac_cv_header_stdc+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4336else
4337 cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343#include <stdlib.h>
4344#include <stdarg.h>
4345#include <string.h>
4346#include <float.h>
4347
4348int
4349main ()
4350{
4351
4352 ;
4353 return 0;
4354}
4355_ACEOF
4356rm -f conftest.$ac_objext
4357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358 (eval $ac_compile) 2>conftest.er1
4359 ac_status=$?
4360 grep -v '^ *+' conftest.er1 >conftest.err
4361 rm -f conftest.er1
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } &&
4365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 (eval $ac_try) 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }; } &&
4371 { ac_try='test -s conftest.$ac_objext'
4372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373 (eval $ac_try) 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; }; then
4377 ac_cv_header_stdc=yes
4378else
4379 echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382ac_cv_header_stdc=no
4383fi
4384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385
4386if test $ac_cv_header_stdc = yes; then
4387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4388 cat >conftest.$ac_ext <<_ACEOF
4389/* confdefs.h. */
4390_ACEOF
4391cat confdefs.h >>conftest.$ac_ext
4392cat >>conftest.$ac_ext <<_ACEOF
4393/* end confdefs.h. */
4394#include <string.h>
4395
4396_ACEOF
4397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4398 $EGREP "memchr" >/dev/null 2>&1; then
4399 :
4400else
4401 ac_cv_header_stdc=no
4402fi
4403rm -f conftest*
4404
4405fi
4406
4407if test $ac_cv_header_stdc = yes; then
4408 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4409 cat >conftest.$ac_ext <<_ACEOF
4410/* confdefs.h. */
4411_ACEOF
4412cat confdefs.h >>conftest.$ac_ext
4413cat >>conftest.$ac_ext <<_ACEOF
4414/* end confdefs.h. */
4415#include <stdlib.h>
4416
4417_ACEOF
4418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4419 $EGREP "free" >/dev/null 2>&1; then
4420 :
4421else
4422 ac_cv_header_stdc=no
4423fi
4424rm -f conftest*
4425
4426fi
4427
4428if test $ac_cv_header_stdc = yes; then
4429 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4430 if test "$cross_compiling" = yes; then
4431 :
4432else
4433 cat >conftest.$ac_ext <<_ACEOF
4434/* confdefs.h. */
4435_ACEOF
4436cat confdefs.h >>conftest.$ac_ext
4437cat >>conftest.$ac_ext <<_ACEOF
4438/* end confdefs.h. */
4439#include <ctype.h>
4440#if ((' ' & 0x0FF) == 0x020)
4441# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4442# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4443#else
4444# define ISLOWER(c) \
4445 (('a' <= (c) && (c) <= 'i') \
4446 || ('j' <= (c) && (c) <= 'r') \
4447 || ('s' <= (c) && (c) <= 'z'))
4448# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4449#endif
4450
4451#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4452int
4453main ()
4454{
4455 int i;
4456 for (i = 0; i < 256; i++)
4457 if (XOR (islower (i), ISLOWER (i))
4458 || toupper (i) != TOUPPER (i))
4459 exit(2);
4460 exit (0);
4461}
4462_ACEOF
4463rm -f conftest$ac_exeext
4464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4465 (eval $ac_link) 2>&5
4466 ac_status=$?
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; }; then
4474 :
4475else
4476 echo "$as_me: program exited with status $ac_status" >&5
4477echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480( exit $ac_status )
4481ac_cv_header_stdc=no
4482fi
4483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4484fi
4485fi
4486fi
4487echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4488echo "${ECHO_T}$ac_cv_header_stdc" >&6
4489if test $ac_cv_header_stdc = yes; then
4490
4491cat >>confdefs.h <<\_ACEOF
4492#define STDC_HEADERS 1
4493_ACEOF
4494
4495fi
4496
4497# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4508 inttypes.h stdint.h unistd.h
4509do
4510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4511echo "$as_me:$LINENO: checking for $ac_header" >&5
4512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4513if eval "test \"\${$as_ac_Header+set}\" = set"; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4515else
4516 cat >conftest.$ac_ext <<_ACEOF
4517/* confdefs.h. */
4518_ACEOF
4519cat confdefs.h >>conftest.$ac_ext
4520cat >>conftest.$ac_ext <<_ACEOF
4521/* end confdefs.h. */
4522$ac_includes_default
4523
4524#include <$ac_header>
4525_ACEOF
4526rm -f conftest.$ac_objext
4527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest.$ac_objext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 eval "$as_ac_Header=yes"
4548else
4549 echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552eval "$as_ac_Header=no"
4553fi
4554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4555fi
4556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4558if test `eval echo '${'$as_ac_Header'}'` = yes; then
4559 cat >>confdefs.h <<_ACEOF
4560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4561_ACEOF
4562
4563fi
4564
4565done
4566
4567
4568
4569for ac_header in dlfcn.h
4570do
4571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4572if eval "test \"\${$as_ac_Header+set}\" = set"; then
4573 echo "$as_me:$LINENO: checking for $ac_header" >&5
4574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4575if eval "test \"\${$as_ac_Header+set}\" = set"; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4577fi
4578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4580else
4581 # Is the header compilable?
4582echo "$as_me:$LINENO: checking $ac_header usability" >&5
4583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4584cat >conftest.$ac_ext <<_ACEOF
4585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
4590$ac_includes_default
4591#include <$ac_header>
4592_ACEOF
4593rm -f conftest.$ac_objext
4594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4595 (eval $ac_compile) 2>conftest.er1
4596 ac_status=$?
4597 grep -v '^ *+' conftest.er1 >conftest.err
4598 rm -f conftest.er1
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest.$ac_objext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_header_compiler=yes
4615else
4616 echo "$as_me: failed program was:" >&5
4617sed 's/^/| /' conftest.$ac_ext >&5
4618
4619ac_header_compiler=no
4620fi
4621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4623echo "${ECHO_T}$ac_header_compiler" >&6
4624
4625# Is the header present?
4626echo "$as_me:$LINENO: checking $ac_header presence" >&5
4627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4628cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
4634#include <$ac_header>
4635_ACEOF
4636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4638 ac_status=$?
4639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } >/dev/null; then
4644 if test -s conftest.err; then
4645 ac_cpp_err=$ac_cxx_preproc_warn_flag
4646 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4647 else
4648 ac_cpp_err=
4649 fi
4650else
4651 ac_cpp_err=yes
4652fi
4653if test -z "$ac_cpp_err"; then
4654 ac_header_preproc=yes
4655else
4656 echo "$as_me: failed program was:" >&5
4657sed 's/^/| /' conftest.$ac_ext >&5
4658
4659 ac_header_preproc=no
4660fi
4661rm -f conftest.err conftest.$ac_ext
4662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4663echo "${ECHO_T}$ac_header_preproc" >&6
4664
4665# So? What about this header?
4666case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4667 yes:no: )
4668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4672 ac_header_preproc=yes
4673 ;;
4674 no:yes:* )
4675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4687 (
4688 cat <<\_ASBOX
4689## ------------------------------------------ ##
4690## Report this to the AC_PACKAGE_NAME lists. ##
4691## ------------------------------------------ ##
4692_ASBOX
4693 ) |
4694 sed "s/^/$as_me: WARNING: /" >&2
4695 ;;
4696esac
4697echo "$as_me:$LINENO: checking for $ac_header" >&5
4698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4699if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4701else
4702 eval "$as_ac_Header=\$ac_header_preproc"
4703fi
4704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4706
4707fi
4708if test `eval echo '${'$as_ac_Header'}'` = yes; then
4709 cat >>confdefs.h <<_ACEOF
4710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4711_ACEOF
4712
4713fi
4714
4715done
4716
4717
4718
4719
4720
4721# Only perform the check for file, if the check method requires it
4722case "$deplibs_check_method" in
4723file_magic*)
4724 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4725 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4726echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4727if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729else
4730 case "$MAGIC_CMD" in
4731 /*)
4732 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4733 ;;
4734 ?:/*)
4735 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4736 ;;
4737 *)
4738 ac_save_MAGIC_CMD="$MAGIC_CMD"
4739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4740 ac_dummy="/usr/bin:$PATH"
4741 for ac_dir in $ac_dummy; do
4742 test -z "$ac_dir" && ac_dir=.
4743 if test -f $ac_dir/${ac_tool_prefix}file; then
4744 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4745 if test -n "$file_magic_test_file"; then
4746 case "$deplibs_check_method" in
4747 "file_magic "*)
4748 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4750 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4751 egrep "$file_magic_regex" > /dev/null; then
4752 :
4753 else
4754 cat <<EOF 1>&2
4755
4756*** Warning: the command libtool uses to detect shared libraries,
4757*** $file_magic_cmd, produces output that libtool cannot recognize.
4758*** The result is that libtool may fail to recognize shared libraries
4759*** as such. This will affect the creation of libtool libraries that
4760*** depend on shared libraries, but programs linked with such libtool
4761*** libraries will work regardless of this problem. Nevertheless, you
4762*** may want to report the problem to your system manager and/or to
4763*** bug-libtool@gnu.org
4764
4765EOF
4766 fi ;;
4767 esac
4768 fi
4769 break
4770 fi
4771 done
4772 IFS="$ac_save_ifs"
4773 MAGIC_CMD="$ac_save_MAGIC_CMD"
4774 ;;
4775esac
4776fi
4777
4778MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4779if test -n "$MAGIC_CMD"; then
4780 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4781echo "${ECHO_T}$MAGIC_CMD" >&6
4782else
4783 echo "$as_me:$LINENO: result: no" >&5
4784echo "${ECHO_T}no" >&6
4785fi
4786
4787if test -z "$lt_cv_path_MAGIC_CMD"; then
4788 if test -n "$ac_tool_prefix"; then
4789 echo "$as_me:$LINENO: checking for file" >&5
4790echo $ECHO_N "checking for file... $ECHO_C" >&6
4791if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793else
4794 case "$MAGIC_CMD" in
4795 /*)
4796 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4797 ;;
4798 ?:/*)
4799 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4800 ;;
4801 *)
4802 ac_save_MAGIC_CMD="$MAGIC_CMD"
4803 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4804 ac_dummy="/usr/bin:$PATH"
4805 for ac_dir in $ac_dummy; do
4806 test -z "$ac_dir" && ac_dir=.
4807 if test -f $ac_dir/file; then
4808 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4809 if test -n "$file_magic_test_file"; then
4810 case "$deplibs_check_method" in
4811 "file_magic "*)
4812 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4813 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4814 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4815 egrep "$file_magic_regex" > /dev/null; then
4816 :
4817 else
4818 cat <<EOF 1>&2
4819
4820*** Warning: the command libtool uses to detect shared libraries,
4821*** $file_magic_cmd, produces output that libtool cannot recognize.
4822*** The result is that libtool may fail to recognize shared libraries
4823*** as such. This will affect the creation of libtool libraries that
4824*** depend on shared libraries, but programs linked with such libtool
4825*** libraries will work regardless of this problem. Nevertheless, you
4826*** may want to report the problem to your system manager and/or to
4827*** bug-libtool@gnu.org
4828
4829EOF
4830 fi ;;
4831 esac
4832 fi
4833 break
4834 fi
4835 done
4836 IFS="$ac_save_ifs"
4837 MAGIC_CMD="$ac_save_MAGIC_CMD"
4838 ;;
4839esac
4840fi
4841
4842MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4843if test -n "$MAGIC_CMD"; then
4844 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4845echo "${ECHO_T}$MAGIC_CMD" >&6
4846else
4847 echo "$as_me:$LINENO: result: no" >&5
4848echo "${ECHO_T}no" >&6
4849fi
4850
4851 else
4852 MAGIC_CMD=:
4853 fi
4854fi
4855
4856 fi
4857 ;;
4858esac
4859
4860if test -n "$ac_tool_prefix"; then
4861 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4862set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4863echo "$as_me:$LINENO: checking for $ac_word" >&5
4864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4865if test "${ac_cv_prog_RANLIB+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868 if test -n "$RANLIB"; then
4869 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4870else
4871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872for as_dir in $PATH
4873do
4874 IFS=$as_save_IFS
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 break 2
4881 fi
4882done
4883done
4884
4885fi
4886fi
4887RANLIB=$ac_cv_prog_RANLIB
4888if test -n "$RANLIB"; then
4889 echo "$as_me:$LINENO: result: $RANLIB" >&5
4890echo "${ECHO_T}$RANLIB" >&6
4891else
4892 echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6
4894fi
4895
4896fi
4897if test -z "$ac_cv_prog_RANLIB"; then
4898 ac_ct_RANLIB=$RANLIB
4899 # Extract the first word of "ranlib", so it can be a program name with args.
4900set dummy ranlib; ac_word=$2
4901echo "$as_me:$LINENO: checking for $ac_word" >&5
4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4903if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906 if test -n "$ac_ct_RANLIB"; then
4907 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4908else
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_prog_ac_ct_RANLIB="ranlib"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
4921done
4922
4923 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4924fi
4925fi
4926ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4927if test -n "$ac_ct_RANLIB"; then
4928 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4929echo "${ECHO_T}$ac_ct_RANLIB" >&6
4930else
4931 echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
4933fi
4934
4935 RANLIB=$ac_ct_RANLIB
4936else
4937 RANLIB="$ac_cv_prog_RANLIB"
4938fi
4939
4940if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4942set dummy ${ac_tool_prefix}strip; ac_word=$2
4943echo "$as_me:$LINENO: checking for $ac_word" >&5
4944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945if test "${ac_cv_prog_STRIP+set}" = set; then
4946 echo $ECHO_N "(cached) $ECHO_C" >&6
4947else
4948 if test -n "$STRIP"; then
4949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4950else
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962done
4963done
4964
4965fi
4966fi
4967STRIP=$ac_cv_prog_STRIP
4968if test -n "$STRIP"; then
4969 echo "$as_me:$LINENO: result: $STRIP" >&5
4970echo "${ECHO_T}$STRIP" >&6
4971else
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
4974fi
4975
4976fi
4977if test -z "$ac_cv_prog_STRIP"; then
4978 ac_ct_STRIP=$STRIP
4979 # Extract the first word of "strip", so it can be a program name with args.
4980set dummy strip; ac_word=$2
4981echo "$as_me:$LINENO: checking for $ac_word" >&5
4982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986 if test -n "$ac_ct_STRIP"; then
4987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_ac_ct_STRIP="strip"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001done
5002
5003 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5004fi
5005fi
5006ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5007if test -n "$ac_ct_STRIP"; then
5008 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5009echo "${ECHO_T}$ac_ct_STRIP" >&6
5010else
5011 echo "$as_me:$LINENO: result: no" >&5
5012echo "${ECHO_T}no" >&6
5013fi
5014
5015 STRIP=$ac_ct_STRIP
5016else
5017 STRIP="$ac_cv_prog_STRIP"
5018fi
5019
5020
5021enable_dlopen=no
5022enable_win32_dll=no
5023
5024# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5025if test "${enable_libtool_lock+set}" = set; then
5026 enableval="$enable_libtool_lock"
5027
5028fi;
5029test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5030
5031# Some flags need to be propagated to the compiler or linker for good
5032# libtool support.
5033case "$host" in
5034*-*-irix6*)
5035 # Find out which ABI we are using.
5036 echo '#line 5036 "configure"' > conftest.$ac_ext
5037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5038 (eval $ac_compile) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; then
5042 case "`/usr/bin/file conftest.$ac_objext`" in
5043 *32-bit*)
5044 LD="${LD-ld} -32"
5045 ;;
5046 *N32*)
5047 LD="${LD-ld} -n32"
5048 ;;
5049 *64-bit*)
5050 LD="${LD-ld} -64"
5051 ;;
5052 esac
5053 fi
5054 rm -rf conftest*
5055 ;;
5056
5057*-*-sco3.2v5*)
5058 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5059 SAVE_CFLAGS="$CFLAGS"
5060 CFLAGS="$CFLAGS -belf"
5061 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5062echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5063if test "${lt_cv_cc_needs_belf+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066
5067
5068 ac_ext=c
5069ac_cpp='$CPP $CPPFLAGS'
5070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5072ac_compiler_gnu=$ac_cv_c_compiler_gnu
5073
5074 cat >conftest.$ac_ext <<_ACEOF
5075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
5080
5081int
5082main ()
5083{
5084
5085 ;
5086 return 0;
5087}
5088_ACEOF
5089rm -f conftest.$ac_objext conftest$ac_exeext
5090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5091 (eval $ac_link) 2>conftest.er1
5092 ac_status=$?
5093 grep -v '^ *+' conftest.er1 >conftest.err
5094 rm -f conftest.er1
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5100 (eval $ac_try) 2>&5
5101 ac_status=$?
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; } &&
5104 { ac_try='test -s conftest$ac_exeext'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5106 (eval $ac_try) 2>&5
5107 ac_status=$?
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 lt_cv_cc_needs_belf=yes
5111else
5112 echo "$as_me: failed program was:" >&5
5113sed 's/^/| /' conftest.$ac_ext >&5
5114
5115lt_cv_cc_needs_belf=no
5116fi
5117rm -f conftest.err conftest.$ac_objext \
5118 conftest$ac_exeext conftest.$ac_ext
5119 ac_ext=cc 3225ac_ext=cc
5120ac_cpp='$CXXCPP $CPPFLAGS' 3226ac_cpp='$CXXCPP $CPPFLAGS'
5121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124 3230
5125fi
5126echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5127echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5128 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5129 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5130 CFLAGS="$SAVE_CFLAGS"
5131 fi
5132 ;;
5133 3231
5134 3232if test x$GCC = xyes && test x$GXX = xyes; then
5135esac
5136
5137# Sed substitution that helps us do robust quoting. It backslashifies
5138# metacharacters that are still active within double-quoted strings.
5139Xsed='sed -e s/^X//'
5140sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5141
5142# Same as above, but do not quote variable references.
5143double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5144
5145# Sed substitution to delay expansion of an escaped shell variable in a
5146# double_quote_subst'ed string.
5147delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5148
5149# Constants:
5150rm="rm -f"
5151
5152# Global variables:
5153default_ofile=libtool
5154can_build_shared=yes
5155
5156# All known linkers require a `.a' archive for static linking (except M$VC,
5157# which needs '.lib').
5158libext=a
5159ltmain="$ac_aux_dir/ltmain.sh"
5160ofile="$default_ofile"
5161with_gnu_ld="$lt_cv_prog_gnu_ld"
5162need_locks="$enable_libtool_lock"
5163
5164old_CC="$CC"
5165old_CFLAGS="$CFLAGS"
5166
5167# Set sane defaults for various variables
5168test -z "$AR" && AR=ar
5169test -z "$AR_FLAGS" && AR_FLAGS=cru
5170test -z "$AS" && AS=as
5171test -z "$CC" && CC=cc
5172test -z "$DLLTOOL" && DLLTOOL=dlltool
5173test -z "$LD" && LD=ld
5174test -z "$LN_S" && LN_S="ln -s"
5175test -z "$MAGIC_CMD" && MAGIC_CMD=file
5176test -z "$NM" && NM=nm
5177test -z "$OBJDUMP" && OBJDUMP=objdump
5178test -z "$RANLIB" && RANLIB=:
5179test -z "$STRIP" && STRIP=:
5180test -z "$ac_objext" && ac_objext=o
5181
5182if test x"$host" != x"$build"; then
5183 ac_tool_prefix=${host_alias}-
5184else
5185 ac_tool_prefix=
5186fi
5187
5188# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5189case "$host_os" in
5190linux-gnu*) ;;
5191linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5192esac
5193
5194case "$host_os" in
5195aix3*)
5196 # AIX sometimes has problems with the GCC collect2 program. For some
5197 # reason, if we set the COLLECT_NAMES environment variable, the problems
5198 # vanish in a puff of smoke.
5199 if test "X${COLLECT_NAMES+set}" != Xset; then
5200 COLLECT_NAMES=
5201 export COLLECT_NAMES
5202 fi
5203 ;;
5204esac
5205
5206# Determine commands to create old-style static archives.
5207old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5208old_postinstall_cmds='chmod 644 $oldlib'
5209old_postuninstall_cmds=
5210
5211if test -n "$RANLIB"; then
5212 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5213 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5214fi
5215
5216# Allow CC to be a program name with arguments.
5217set dummy $CC
5218compiler="$2"
5219
5220## FIXME: this should be a separate macro
5221##
5222echo "$as_me:$LINENO: checking for objdir" >&5 3233 echo "$as_me:$LINENO: checking for working libsupc++" >&5
5223echo $ECHO_N "checking for objdir... $ECHO_C" >&6 3234echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
5224rm -f .libs 2>/dev/null 3235 save_CXX="$CXX"
5225mkdir .libs 2>/dev/null 3236 save_LIBS="$LIBS"
5226if test -d .libs; then 3237 CXX="$CC"
5227 objdir=.libs 3238 LIBS="$LIBS -lsupc++"
5228else 3239 LINKER="$CC"
5229 # MS-DOS does not allow filenames that begin with a dot.
5230 objdir=_libs
5231fi
5232rmdir .libs 2>/dev/null
5233echo "$as_me:$LINENO: result: $objdir" >&5
5234echo "${ECHO_T}$objdir" >&6
5235##
5236## END FIXME
5237 3240
5238
5239## FIXME: this should be a separate macro
5240##
5241
5242# Check whether --with-pic or --without-pic was given.
5243if test "${with_pic+set}" = set; then
5244 withval="$with_pic"
5245 pic_mode="$withval"
5246else
5247 pic_mode=default
5248fi;
5249test -z "$pic_mode" && pic_mode=default
5250
5251# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5252# in isolation, and that seeing it set (from the cache) indicates that
5253# the associated values are set (in the cache) correctly too.
5254echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5255echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5256if test "${lt_cv_prog_cc_pic+set}" = set; then
5257 echo $ECHO_N "(cached) $ECHO_C" >&6
5258else
5259 lt_cv_prog_cc_pic=
5260 lt_cv_prog_cc_shlib=
5261 lt_cv_prog_cc_wl=
5262 lt_cv_prog_cc_static=
5263 lt_cv_prog_cc_no_builtin=
5264 lt_cv_prog_cc_can_build_shared=$can_build_shared
5265
5266 if test "$GCC" = yes; then
5267 lt_cv_prog_cc_wl='-Wl,'
5268 lt_cv_prog_cc_static='-static'
5269
5270 case "$host_os" in
5271 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5272 # PIC is the default for these OSes.
5273 ;;
5274 aix*)
5275 # Below there is a dirty hack to force normal static linking with -ldl
5276 # The problem is because libdl dynamically linked with both libc and
5277 # libC (AIX C++ library), which obviously doesn't included in libraries
5278 # list by gcc. This cause undefined symbols with -static flags.
5279 # This hack allows C programs to be linked with "-static -ldl", but
5280 # we not sure about C++ programs.
5281 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5282 ;;
5283 cygwin* | mingw* | pw32* | os2*)
5284 # This hack is so that the source file can tell whether it is being
5285 # built for inclusion in a dll (and should export symbols for example).
5286 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5287 ;;
5288 amigaos*)
5289 # FIXME: we need at least 68020 code to build shared libraries, but
5290 # adding the `-m68020' flag to GCC prevents building anything better,
5291 # like `-m68040'.
5292 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5293 ;;
5294 sysv4*MP*)
5295 if test -d /usr/nec; then
5296 lt_cv_prog_cc_pic=-Kconform_pic
5297 fi
5298 ;;
5299 *)
5300 lt_cv_prog_cc_pic='-fPIC'
5301 ;;
5302 esac
5303 else
5304 # PORTME Check for PIC flags for the system compiler.
5305 case "$host_os" in
5306 aix3* | aix4*)
5307 # All AIX code is PIC.
5308 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5309 ;;
5310
5311 hpux9* | hpux10* | hpux11*)
5312 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5313 lt_cv_prog_cc_wl='-Wl,'
5314 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5315 lt_cv_prog_cc_pic='+Z'
5316 ;;
5317
5318 irix5* | irix6*)
5319 lt_cv_prog_cc_wl='-Wl,'
5320 lt_cv_prog_cc_static='-non_shared'
5321 # PIC (with -KPIC) is the default.
5322 ;;
5323
5324 cygwin* | mingw* | pw32* | os2*)
5325 # This hack is so that the source file can tell whether it is being
5326 # built for inclusion in a dll (and should export symbols for example).
5327 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5328 ;;
5329
5330 newsos6)
5331 lt_cv_prog_cc_pic='-KPIC'
5332 lt_cv_prog_cc_static='-Bstatic'
5333 ;;
5334
5335 osf3* | osf4* | osf5*)
5336 # All OSF/1 code is PIC.
5337 lt_cv_prog_cc_wl='-Wl,'
5338 lt_cv_prog_cc_static='-non_shared'
5339 ;;
5340
5341 sco3.2v5*)
5342 lt_cv_prog_cc_pic='-Kpic'
5343 lt_cv_prog_cc_static='-dn'
5344 lt_cv_prog_cc_shlib='-belf'
5345 ;;
5346
5347 solaris*)
5348 lt_cv_prog_cc_pic='-KPIC'
5349 lt_cv_prog_cc_static='-Bstatic'
5350 lt_cv_prog_cc_wl='-Wl,'
5351 ;;
5352
5353 sunos4*)
5354 lt_cv_prog_cc_pic='-PIC'
5355 lt_cv_prog_cc_static='-Bstatic'
5356 lt_cv_prog_cc_wl='-Qoption ld '
5357 ;;
5358
5359 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5360 lt_cv_prog_cc_pic='-KPIC'
5361 lt_cv_prog_cc_static='-Bstatic'
5362 if test "x$host_vendor" = xsni; then
5363 lt_cv_prog_cc_wl='-LD'
5364 else
5365 lt_cv_prog_cc_wl='-Wl,'
5366 fi
5367 ;;
5368
5369 uts4*)
5370 lt_cv_prog_cc_pic='-pic'
5371 lt_cv_prog_cc_static='-Bstatic'
5372 ;;
5373
5374 sysv4*MP*)
5375 if test -d /usr/nec ;then
5376 lt_cv_prog_cc_pic='-Kconform_pic'
5377 lt_cv_prog_cc_static='-Bstatic'
5378 fi
5379 ;;
5380
5381 *)
5382 lt_cv_prog_cc_can_build_shared=no
5383 ;;
5384 esac
5385 fi
5386
5387fi
5388
5389if test -z "$lt_cv_prog_cc_pic"; then
5390 echo "$as_me:$LINENO: result: none" >&5
5391echo "${ECHO_T}none" >&6
5392else
5393 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5394echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5395
5396 # Check to make sure the pic_flag actually works.
5397 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5398echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5399 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5401else
5402 save_CFLAGS="$CFLAGS"
5403 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5404 cat >conftest.$ac_ext <<_ACEOF 3241cat >conftest.$ac_ext <<_ACEOF
5405/* confdefs.h. */ 3242/* confdefs.h. */
5406_ACEOF 3243_ACEOF
5407cat confdefs.h >>conftest.$ac_ext 3244cat confdefs.h >>conftest.$ac_ext
5408cat >>conftest.$ac_ext <<_ACEOF 3245cat >>conftest.$ac_ext <<_ACEOF
5409/* end confdefs.h. */ 3246/* end confdefs.h. */
5410 3247struct test { }; void f() try { throw new test; } catch (...) { throw; }
5411int 3248int
5412main () 3249main ()
5413{ 3250{
5414 3251
5415 ; 3252 ;
5416 return 0; 3253 return 0;
5417} 3254}
5418_ACEOF 3255_ACEOF
3256rm -f conftest.$ac_objext conftest$ac_exeext
3257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3258 (eval $ac_link) 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; } &&
3271 { ac_try='test -s conftest$ac_exeext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 echo "$as_me:$LINENO: result: ok" >&5
3278echo "${ECHO_T}ok" >&6
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283
3284 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3285echo "${ECHO_T}no, making everything bigger and slower" >&6
3286 LIBS="$save_LIBS"
3287 LINKER="$save_CXX"
3288
3289
3290fi
3291rm -f conftest.err conftest.$ac_objext \
3292 conftest$ac_exeext conftest.$ac_ext
3293 CXX="$save_CXX"
3294fi
3295LINKER=$LINKER
3296
3297
3298ac_ext=cc
3299ac_cpp='$CXXCPP $CPPFLAGS'
3300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3303
3304if test -z "$orig_CXXFLAGS"; then
3305 if test x$GCC = xyes && test "x$GXX" = xyes; then
3306 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3307 cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h. */
3313
3314int
3315main ()
3316{
3317
3318 ;
3319 return 0;
3320}
3321_ACEOF
5419rm -f conftest.$ac_objext 3322rm -f conftest.$ac_objext
5420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1 3324 (eval $ac_compile) 2>conftest.er1
5422 ac_status=$? 3325 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err 3326 grep -v '^ *+' conftest.er1 >conftest.err
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5 3339 (eval $ac_try) 2>&5
5437 ac_status=$? 3340 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then 3342 (exit $ac_status); }; }; then
5440 case "$host_os" in 3343 :
5441 hpux9* | hpux10* | hpux11*)
5442 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5443 # they create non-PIC objects. So, if there were any warnings, we
5444 # assume that PIC is not supported.
5445 if test -s conftest.err; then
5446 lt_cv_prog_cc_pic_works=no
5447 else
5448 lt_cv_prog_cc_pic_works=yes
5449 fi
5450 ;;
5451 *)
5452 lt_cv_prog_cc_pic_works=yes
5453 ;;
5454 esac
5455
5456else 3344else
5457 echo "$as_me: failed program was:" >&5 3345 echo "$as_me: failed program was:" >&5
5458sed 's/^/| /' conftest.$ac_ext >&5 3346sed 's/^/| /' conftest.$ac_ext >&5
5459 3347
5460 lt_cv_prog_cc_pic_works=no 3348CXXFLAGS="-g -O3"
5461
5462fi 3349fi
5463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5464 CFLAGS="$save_CFLAGS"
5465
5466fi
5467
5468
5469 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5470 lt_cv_prog_cc_pic=
5471 lt_cv_prog_cc_can_build_shared=no
5472 else 3351 else
5473 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 3352 CXXFLAGS="-O"
5474 fi 3353 fi
5475 3354 CFLAGS="$CXXFLAGS"
5476 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5477echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5478fi 3355fi
5479##
5480## END FIXME
5481 3356
5482# Check for any special shared library compilation flags.
5483if test -n "$lt_cv_prog_cc_shlib"; then
5484 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5485echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5486 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5487 else
5488 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5489echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5490 lt_cv_prog_cc_can_build_shared=no
5491 fi
5492fi
5493 3357
5494## FIXME: this should be a separate macro 3358cat >>confdefs.h <<\_ACEOF
5495## 3359#define _GNU_SOURCE 1
5496echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 3360_ACEOF
5497echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 3361
5498if test "${lt_cv_prog_cc_static_works+set}" = set; then 3362
3363case $host in
3364 *-*-solaris* )
3365
3366cat >>confdefs.h <<\_ACEOF
3367#define _XOPEN_SOURCE_EXTENDED 1
3368_ACEOF
3369
3370
3371cat >>confdefs.h <<\_ACEOF
3372#define _XOPEN_SOURCE 2
3373_ACEOF
3374
3375
3376cat >>confdefs.h <<\_ACEOF
3377#define __EXTENSIONS__ 1
3378_ACEOF
3379
3380 ;;
3381esac
3382
3383
3384echo "$as_me:$LINENO: checking for setlocale" >&5
3385echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3386if test "${ac_cv_func_setlocale+set}" = set; then
5499 echo $ECHO_N "(cached) $ECHO_C" >&6 3387 echo $ECHO_N "(cached) $ECHO_C" >&6
5500else 3388else
5501 lt_cv_prog_cc_static_works=no
5502 save_LDFLAGS="$LDFLAGS"
5503 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5504 cat >conftest.$ac_ext <<_ACEOF 3389 cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h. */ 3390/* confdefs.h. */
5506_ACEOF 3391_ACEOF
5507cat confdefs.h >>conftest.$ac_ext 3392cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF 3393cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h. */ 3394/* end confdefs.h. */
5510
5511int
5512main ()
5513{
5514
5515 ;
5516 return 0;
5517}
5518_ACEOF
5519rm -f conftest.$ac_objext conftest$ac_exeext
5520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521 (eval $ac_link) 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } &&
5528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 (eval $ac_try) 2>&5
5531 ac_status=$?
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; } &&
5534 { ac_try='test -s conftest$ac_exeext'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 lt_cv_prog_cc_static_works=yes
5541else
5542 echo "$as_me: failed program was:" >&5
5543sed 's/^/| /' conftest.$ac_ext >&5
5544
5545fi
5546rm -f conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548 LDFLAGS="$save_LDFLAGS"
5549
5550fi
5551
5552
5553# Belt *and* braces to stop my trousers falling down:
5554test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5555echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5556echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5557
5558pic_flag="$lt_cv_prog_cc_pic"
5559special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5560wl="$lt_cv_prog_cc_wl"
5561link_static_flag="$lt_cv_prog_cc_static"
5562no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5563can_build_shared="$lt_cv_prog_cc_can_build_shared"
5564##
5565## END FIXME
5566
5567
5568## FIXME: this should be a separate macro
5569##
5570# Check to see if options -o and -c are simultaneously supported by compiler
5571echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5572echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5573$rm -r conftest 2>/dev/null
5574mkdir conftest
5575cd conftest
5576echo "int some_variable = 0;" > conftest.$ac_ext
5577mkdir out
5578# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5579# that will create temporary files in the current directory regardless of
5580# the output directory. Thus, making CWD read-only will cause this test
5581# to fail, enabling locking or at least warning the user not to do parallel
5582# builds.
5583chmod -w .
5584save_CFLAGS="$CFLAGS"
5585CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5586compiler_c_o=no
5587if { (eval echo configure:5587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5588 # The compiler can only warn and ignore the option if not recognized
5589 # So say no if there are warnings
5590 if test -s out/conftest.err; then
5591 compiler_c_o=no
5592 else
5593 compiler_c_o=yes
5594 fi
5595else
5596 # Append any errors to the config.log.
5597 cat out/conftest.err 1>&5
5598 compiler_c_o=no
5599fi
5600echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5601echo "${ECHO_T}$compiler_c_o" >&6
5602CFLAGS="$save_CFLAGS"
5603chmod u+w .
5604$rm conftest* out/*
5605rmdir out
5606cd ..
5607rmdir conftest
5608$rm -r conftest 2>/dev/null
5609
5610if test x"$compiler_c_o" = x"yes"; then
5611 # Check to see if we can write to a .lo
5612 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5613echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5614 compiler_o_lo=no
5615 save_CFLAGS="$CFLAGS"
5616 CFLAGS="$CFLAGS -c -o conftest.lo"
5617 cat >conftest.$ac_ext <<_ACEOF
5618/* confdefs.h. */
5619_ACEOF
5620cat confdefs.h >>conftest.$ac_ext
5621cat >>conftest.$ac_ext <<_ACEOF
5622/* end confdefs.h. */
5623
5624int
5625main ()
5626{
5627int some_variable = 0;
5628 ;
5629 return 0;
5630}
5631_ACEOF
5632rm -f conftest.$ac_objext
5633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634 (eval $ac_compile) 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; } &&
5647 { ac_try='test -s conftest.$ac_objext'
5648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5649 (eval $ac_try) 2>&5
5650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }; }; then
5653 # The compiler can only warn and ignore the option if not recognized
5654 # So say no if there are warnings
5655 if test -s conftest.err; then
5656 compiler_o_lo=no
5657 else
5658 compiler_o_lo=yes
5659 fi
5660
5661else
5662 echo "$as_me: failed program was:" >&5
5663sed 's/^/| /' conftest.$ac_ext >&5
5664
5665fi
5666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5667 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5668echo "${ECHO_T}$compiler_c_o" >&6
5669 CFLAGS="$save_CFLAGS"
5670else
5671 compiler_o_lo=no
5672fi
5673##
5674## END FIXME
5675
5676## FIXME: this should be a separate macro
5677##
5678# Check to see if we can do hard links to lock some files if needed
5679hard_links="nottested"
5680if test "$compiler_c_o" = no && test "$need_locks" != no; then
5681 # do not overwrite the value of need_locks provided by the user
5682 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5683echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5684 hard_links=yes
5685 $rm conftest*
5686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5687 touch conftest.a
5688 ln conftest.a conftest.b 2>&5 || hard_links=no
5689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5690 echo "$as_me:$LINENO: result: $hard_links" >&5
5691echo "${ECHO_T}$hard_links" >&6
5692 if test "$hard_links" = no; then
5693 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5694echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5695 need_locks=warn
5696 fi
5697else
5698 need_locks=no
5699fi
5700##
5701## END FIXME
5702
5703## FIXME: this should be a separate macro
5704##
5705if test "$GCC" = yes; then
5706 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5707 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5708echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5709 echo "int some_variable = 0;" > conftest.$ac_ext
5710 save_CFLAGS="$CFLAGS"
5711 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5712 compiler_rtti_exceptions=no
5713 cat >conftest.$ac_ext <<_ACEOF
5714/* confdefs.h. */
5715_ACEOF
5716cat confdefs.h >>conftest.$ac_ext
5717cat >>conftest.$ac_ext <<_ACEOF
5718/* end confdefs.h. */
5719
5720int
5721main ()
5722{
5723int some_variable = 0;
5724 ;
5725 return 0;
5726}
5727_ACEOF
5728rm -f conftest.$ac_objext
5729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } &&
5737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
5744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
5749 # The compiler can only warn and ignore the option if not recognized
5750 # So say no if there are warnings
5751 if test -s conftest.err; then
5752 compiler_rtti_exceptions=no
5753 else
5754 compiler_rtti_exceptions=yes
5755 fi
5756
5757else
5758 echo "$as_me: failed program was:" >&5
5759sed 's/^/| /' conftest.$ac_ext >&5
5760
5761fi
5762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5763 CFLAGS="$save_CFLAGS"
5764 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5765echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5766
5767 if test "$compiler_rtti_exceptions" = "yes"; then
5768 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5769 else
5770 no_builtin_flag=' -fno-builtin'
5771 fi
5772fi
5773##
5774## END FIXME
5775
5776## FIXME: this should be a separate macro
5777##
5778# See if the linker supports building shared libraries.
5779echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5780echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5781
5782allow_undefined_flag=
5783no_undefined_flag=
5784need_lib_prefix=unknown
5785need_version=unknown
5786# when you set need_version to no, make sure it does not cause -set_version
5787# flags to be left without arguments
5788archive_cmds=
5789archive_expsym_cmds=
5790old_archive_from_new_cmds=
5791old_archive_from_expsyms_cmds=
5792export_dynamic_flag_spec=
5793whole_archive_flag_spec=
5794thread_safe_flag_spec=
5795hardcode_into_libs=no
5796hardcode_libdir_flag_spec=
5797hardcode_libdir_separator=
5798hardcode_direct=no
5799hardcode_minus_L=no
5800hardcode_shlibpath_var=unsupported
5801runpath_var=
5802link_all_deplibs=unknown
5803always_export_symbols=no
5804export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5805# include_expsyms should be a list of space-separated symbols to be *always*
5806# included in the symbol list
5807include_expsyms=
5808# exclude_expsyms can be an egrep regular expression of symbols to exclude
5809# it will be wrapped by ` (' and `)$', so one must not match beginning or
5810# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5811# as well as any symbol that contains `d'.
5812exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5813# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5814# platforms (ab)use it in PIC code, but their linkers get confused if
5815# the symbol is explicitly referenced. Since portable code cannot
5816# rely on this symbol name, it's probably fine to never include it in
5817# preloaded symbol tables.
5818extract_expsyms_cmds=
5819
5820case "$host_os" in
5821cygwin* | mingw* | pw32* )
5822 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5823 # When not using gcc, we currently assume that we are using
5824 # Microsoft Visual C++.
5825 if test "$GCC" != yes; then
5826 with_gnu_ld=no
5827 fi
5828 ;;
5829
5830esac
5831
5832ld_shlibs=yes
5833if test "$with_gnu_ld" = yes; then
5834 # If archive_cmds runs LD, not CC, wlarc should be empty
5835 wlarc='${wl}'
5836
5837 # See if GNU ld supports shared libraries.
5838 case "$host_os" in
5839 aix3* | aix4*)
5840 # On AIX, the GNU linker is very broken
5841 ld_shlibs=no
5842 cat <<EOF 1>&2
5843
5844*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5845*** to be unable to reliably create shared libraries on AIX.
5846*** Therefore, libtool is disabling shared libraries support. If you
5847*** really care for shared libraries, you may want to modify your PATH
5848*** so that a non-GNU linker is found, and then restart.
5849
5850EOF
5851 ;;
5852
5853 amigaos*)
5854 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)'
5855 hardcode_libdir_flag_spec='-L$libdir'
5856 hardcode_minus_L=yes
5857
5858 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5859 # that the semantics of dynamic libraries on AmigaOS, at least up
5860 # to version 4, is to share data among multiple programs linked
5861 # with the same dynamic library. Since this doesn't match the
5862 # behavior of shared libraries on other platforms, we can use
5863 # them.
5864 ld_shlibs=no
5865 ;;
5866
5867 beos*)
5868 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5869 allow_undefined_flag=unsupported
5870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5871 # support --undefined. This deserves some investigation. FIXME
5872 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5873 else
5874 ld_shlibs=no
5875 fi
5876 ;;
5877
5878 cygwin* | mingw* | pw32*)
5879 # hardcode_libdir_flag_spec is actually meaningless, as there is
5880 # no search path for DLLs.
5881 hardcode_libdir_flag_spec='-L$libdir'
5882 allow_undefined_flag=unsupported
5883 always_export_symbols=yes
5884
5885 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5886 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5887 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5888 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5889 else $CC -o impgen impgen.c ; fi)~
5890 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
5891
5892 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5893
5894 # cygwin and mingw dlls have different entry points and sets of symbols
5895 # to exclude.
5896 # FIXME: what about values for MSVC?
5897 dll_entry=__cygwin_dll_entry@12
5898 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5899 case "$host_os" in
5900 mingw*)
5901 # mingw values
5902 dll_entry=_DllMainCRTStartup@12
5903 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5904 ;;
5905 esac
5906
5907 # mingw and cygwin differ, and it's simplest to just exclude the union
5908 # of the two symbol sets.
5909 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5910
5911 # recent cygwin and mingw systems supply a stub DllMain which the user
5912 # can override, but on older systems we have to supply one (in ltdll.c)
5913 if test "x$lt_cv_need_dllmain" = "xyes"; then
5914 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5915 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~
5916 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5917 else
5918 ltdll_obj=
5919 ltdll_cmds=
5920 fi
5921
5922 # Extract the symbol export list from an `--export-all' def file,
5923 # then regenerate the def file from the symbol export list, so that
5924 # the compiled dll only exports the symbol export list.
5925 # Be careful not to strip the DATA tag left be newer dlltools.
5926 export_symbols_cmds="$ltdll_cmds"'
5927 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5928 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5929
5930 # If DATA tags from a recent dlltool are present, honour them!
5931 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
5932 _lt_hint=1;
5933 cat $export_symbols | while read symbol; do
5934 set dummy \$symbol;
5935 case \$# in
5936 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5937 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5938 esac;
5939 _lt_hint=`expr 1 + \$_lt_hint`;
5940 done~
5941 '"$ltdll_cmds"'
5942 $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~
5943 $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~
5944 $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~
5945 $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~
5946 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5947 ;;
5948
5949 netbsd*)
5950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5951 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5952 wlarc=
5953 else
5954 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5955 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5956 fi
5957 ;;
5958
5959 solaris* | sysv5*)
5960 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5961 ld_shlibs=no
5962 cat <<EOF 1>&2
5963
5964*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5965*** create shared libraries on Solaris systems. Therefore, libtool
5966*** is disabling shared libraries support. We urge you to upgrade GNU
5967*** binutils to release 2.9.1 or newer. Another option is to modify
5968*** your PATH or compiler configuration so that the native linker is
5969*** used, and then restart.
5970
5971EOF
5972 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5973 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5974 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5975 else
5976 ld_shlibs=no
5977 fi
5978 ;;
5979
5980 sunos4*)
5981 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5982 wlarc=
5983 hardcode_direct=yes
5984 hardcode_shlibpath_var=no
5985 ;;
5986
5987 *)
5988 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5990 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5991 else
5992 ld_shlibs=no
5993 fi
5994 ;;
5995 esac
5996
5997 if test "$ld_shlibs" = yes; then
5998 runpath_var=LD_RUN_PATH
5999 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6000 export_dynamic_flag_spec='${wl}--export-dynamic'
6001 case $host_os in
6002 cygwin* | mingw* | pw32*)
6003 # dlltool doesn't understand --whole-archive et. al.
6004 whole_archive_flag_spec=
6005 ;;
6006 *)
6007 # ancient GNU ld didn't support --whole-archive et. al.
6008 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6010 else
6011 whole_archive_flag_spec=
6012 fi
6013 ;;
6014 esac
6015 fi
6016else
6017 # PORTME fill in a description of your system's linker (not GNU ld)
6018 case "$host_os" in
6019 aix3*)
6020 allow_undefined_flag=unsupported
6021 always_export_symbols=yes
6022 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'
6023 # Note: this linker hardcodes the directories in LIBPATH if there
6024 # are no directories specified by -L.
6025 hardcode_minus_L=yes
6026 if test "$GCC" = yes && test -z "$link_static_flag"; then
6027 # Neither direct hardcoding nor static linking is supported with a
6028 # broken collect2.
6029 hardcode_direct=unsupported
6030 fi
6031 ;;
6032
6033 aix4*)
6034 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6035 hardcode_libdir_separator=':'
6036 if test "$GCC" = yes; then
6037 collect2name=`${CC} -print-prog-name=collect2`
6038 if test -f "$collect2name" && \
6039 strings "$collect2name" | grep resolve_lib_name >/dev/null
6040 then
6041 # We have reworked collect2
6042 hardcode_direct=yes
6043 else
6044 # We have old collect2
6045 hardcode_direct=unsupported
6046 # It fails to find uninstalled libraries when the uninstalled
6047 # path is not listed in the libpath. Setting hardcode_minus_L
6048 # to unsupported forces relinking
6049 hardcode_minus_L=yes
6050 hardcode_libdir_flag_spec='-L$libdir'
6051 hardcode_libdir_separator=
6052 fi
6053 shared_flag='-shared'
6054 else
6055 shared_flag='${wl}-bM:SRE'
6056 hardcode_direct=yes
6057 fi
6058 allow_undefined_flag=' ${wl}-berok'
6059 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6060 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6061 case "$host_os" in aix4.[01]|aix4.[01].*)
6062 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6063 always_export_symbols=yes ;;
6064 esac
6065
6066 # We don't want to build shared libraries on unknown CPU types.
6067 case $host_cpu in
6068 powerpc | rs6000) ;;
6069 *) ld_shlibs=no ;;
6070 esac
6071 ;;
6072
6073 amigaos*)
6074 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)'
6075 hardcode_libdir_flag_spec='-L$libdir'
6076 hardcode_minus_L=yes
6077 # see comment about different semantics on the GNU ld section
6078 ld_shlibs=no
6079 ;;
6080
6081 cygwin* | mingw* | pw32*)
6082 # When not using gcc, we currently assume that we are using
6083 # Microsoft Visual C++.
6084 # hardcode_libdir_flag_spec is actually meaningless, as there is
6085 # no search path for DLLs.
6086 hardcode_libdir_flag_spec=' '
6087 allow_undefined_flag=unsupported
6088 # Tell ltmain to make .lib files, not .a files.
6089 libext=lib
6090 # FIXME: Setting linknames here is a bad hack.
6091 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6092 # The linker will automatically build a .lib file if we build a DLL.
6093 old_archive_from_new_cmds='true'
6094 # FIXME: Should let the user specify the lib program.
6095 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6096 fix_srcfile_path='`cygpath -w "$srcfile"`'
6097 ;;
6098
6099 darwin* | rhapsody*)
6100 allow_undefined_flag='-undefined warning'
6101 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6102 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6103 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6104 ## What we need is to hardcode the path to the library, not the search path
6105 #hardcode_direct=yes
6106 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6107 hardcode_shlibpath_var=no
6108 whole_archive_flag_spec='-all_load'
6109 ;;
6110
6111 freebsd1*)
6112 ld_shlibs=no
6113 ;;
6114
6115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6116 # support. Future versions do this automatically, but an explicit c++rt0.o
6117 # does not break anything, and helps significantly (at the cost of a little
6118 # extra space).
6119 freebsd2.2*)
6120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6121 hardcode_libdir_flag_spec='-R$libdir'
6122 hardcode_direct=yes
6123 hardcode_shlibpath_var=no
6124 ;;
6125
6126 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6127 freebsd2*)
6128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6129 hardcode_direct=yes
6130 hardcode_minus_L=yes
6131 hardcode_shlibpath_var=no
6132 ;;
6133
6134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6135 freebsd*)
6136 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6137 hardcode_libdir_flag_spec='-R$libdir'
6138 hardcode_direct=yes
6139 hardcode_shlibpath_var=no
6140 ;;
6141
6142 hpux9* | hpux10* | hpux11*)
6143 case "$host_os" in
6144 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' ;;
6145 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6146 esac
6147 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6148 hardcode_libdir_separator=:
6149 hardcode_direct=yes
6150 hardcode_minus_L=yes # Not in the search PATH, but as the default
6151 # location of the library.
6152 export_dynamic_flag_spec='${wl}-E'
6153 ;;
6154
6155 irix5* | irix6*)
6156 if test "$GCC" = yes; then
6157 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'
6158 else
6159 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'
6160 fi
6161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6162 hardcode_libdir_separator=:
6163 link_all_deplibs=yes
6164 ;;
6165
6166 netbsd*)
6167 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6168 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6169 else
6170 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6171 fi
6172 hardcode_libdir_flag_spec='-R$libdir'
6173 hardcode_direct=yes
6174 hardcode_shlibpath_var=no
6175 ;;
6176
6177 newsos6)
6178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6179 hardcode_direct=yes
6180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6181 hardcode_libdir_separator=:
6182 hardcode_shlibpath_var=no
6183 ;;
6184
6185 openbsd*)
6186 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6187 hardcode_libdir_flag_spec='-R$libdir'
6188 hardcode_direct=yes
6189 hardcode_shlibpath_var=no
6190 ;;
6191
6192 os2*)
6193 hardcode_libdir_flag_spec='-L$libdir'
6194 hardcode_minus_L=yes
6195 allow_undefined_flag=unsupported
6196 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'
6197 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6198 ;;
6199
6200 osf3*)
6201 if test "$GCC" = yes; then
6202 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6203 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'
6204 else
6205 allow_undefined_flag=' -expect_unresolved \*'
6206 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'
6207 fi
6208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6209 hardcode_libdir_separator=:
6210 ;;
6211
6212 osf4* | osf5*) # as osf3* with the addition of -msym flag
6213 if test "$GCC" = yes; then
6214 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6215 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'
6216 else
6217 allow_undefined_flag=' -expect_unresolved \*'
6218 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'
6219 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6220 $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'
6221 fi
6222#Both c and cxx compiler support -rpath directly
6223 hardcode_libdir_flag_spec='-rpath $libdir'
6224 hardcode_libdir_separator=:
6225 ;;
6226
6227 sco3.2v5*)
6228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6229 hardcode_shlibpath_var=no
6230 runpath_var=LD_RUN_PATH
6231 hardcode_runpath_var=yes
6232 ;;
6233
6234 solaris*)
6235 no_undefined_flag=' -z text'
6236 # $CC -shared without GNU ld will not create a library from C++
6237 # object files and a static libstdc++, better avoid it by now
6238 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6239 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6240 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6241 hardcode_libdir_flag_spec='-R$libdir'
6242 hardcode_shlibpath_var=no
6243 case "$host_os" in
6244 solaris2.[0-5] | solaris2.[0-5].*) ;;
6245 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6246 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6247 esac
6248 link_all_deplibs=yes
6249 ;;
6250
6251 sunos4*)
6252 if test "x$host_vendor" = xsequent; then
6253 # Use $CC to link under sequent, because it throws in some extra .o
6254 # files that make .init and .fini sections work.
6255 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6256 else
6257 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6258 fi
6259 hardcode_libdir_flag_spec='-L$libdir'
6260 hardcode_direct=yes
6261 hardcode_minus_L=yes
6262 hardcode_shlibpath_var=no
6263 ;;
6264
6265 sysv4)
6266 if test "x$host_vendor" = xsno; then
6267 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6268 hardcode_direct=yes # is this really true???
6269 else
6270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6271 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6272 fi
6273 runpath_var='LD_RUN_PATH'
6274 hardcode_shlibpath_var=no
6275 ;;
6276
6277 sysv4.3*)
6278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6279 hardcode_shlibpath_var=no
6280 export_dynamic_flag_spec='-Bexport'
6281 ;;
6282
6283 sysv5*)
6284 no_undefined_flag=' -z text'
6285 # $CC -shared without GNU ld will not create a library from C++
6286 # object files and a static libstdc++, better avoid it by now
6287 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6288 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6289 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6290 hardcode_libdir_flag_spec=
6291 hardcode_shlibpath_var=no
6292 runpath_var='LD_RUN_PATH'
6293 ;;
6294
6295 uts4*)
6296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6297 hardcode_libdir_flag_spec='-L$libdir'
6298 hardcode_shlibpath_var=no
6299 ;;
6300
6301 dgux*)
6302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6303 hardcode_libdir_flag_spec='-L$libdir'
6304 hardcode_shlibpath_var=no
6305 ;;
6306
6307 sysv4*MP*)
6308 if test -d /usr/nec; then
6309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6310 hardcode_shlibpath_var=no
6311 runpath_var=LD_RUN_PATH
6312 hardcode_runpath_var=yes
6313 ld_shlibs=yes
6314 fi
6315 ;;
6316
6317 sysv4.2uw2*)
6318 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6319 hardcode_direct=yes
6320 hardcode_minus_L=no
6321 hardcode_shlibpath_var=no
6322 hardcode_runpath_var=yes
6323 runpath_var=LD_RUN_PATH
6324 ;;
6325
6326 unixware7*)
6327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6328 runpath_var='LD_RUN_PATH'
6329 hardcode_shlibpath_var=no
6330 ;;
6331
6332 *)
6333 ld_shlibs=no
6334 ;;
6335 esac
6336fi
6337echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6338echo "${ECHO_T}$ld_shlibs" >&6
6339test "$ld_shlibs" = no && can_build_shared=no
6340##
6341## END FIXME
6342
6343## FIXME: this should be a separate macro
6344##
6345# Check hardcoding attributes.
6346echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6347echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6348hardcode_action=
6349if test -n "$hardcode_libdir_flag_spec" || \
6350 test -n "$runpath_var"; then
6351
6352 # We can hardcode non-existant directories.
6353 if test "$hardcode_direct" != no &&
6354 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6355 # have to relink, otherwise we might link with an installed library
6356 # when we should be linking with a yet-to-be-installed one
6357 ## test "$hardcode_shlibpath_var" != no &&
6358 test "$hardcode_minus_L" != no; then
6359 # Linking always hardcodes the temporary library directory.
6360 hardcode_action=relink
6361 else
6362 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6363 hardcode_action=immediate
6364 fi
6365else
6366 # We cannot hardcode anything, or else we can only hardcode existing
6367 # directories.
6368 hardcode_action=unsupported
6369fi
6370echo "$as_me:$LINENO: result: $hardcode_action" >&5
6371echo "${ECHO_T}$hardcode_action" >&6
6372##
6373## END FIXME
6374
6375## FIXME: this should be a separate macro
6376##
6377striplib=
6378old_striplib=
6379echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6380echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6381if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6382 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6383 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6384 echo "$as_me:$LINENO: result: yes" >&5
6385echo "${ECHO_T}yes" >&6
6386else
6387 echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6
6389fi
6390##
6391## END FIXME
6392
6393reload_cmds='$LD$reload_flag -o $output$reload_objs'
6394test -z "$deplibs_check_method" && deplibs_check_method=unknown
6395
6396## FIXME: this should be a separate macro
6397##
6398# PORTME Fill in your ld.so characteristics
6399echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6400echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6401library_names_spec=
6402libname_spec='lib$name'
6403soname_spec=
6404postinstall_cmds=
6405postuninstall_cmds=
6406finish_cmds=
6407finish_eval=
6408shlibpath_var=
6409shlibpath_overrides_runpath=unknown
6410version_type=none
6411dynamic_linker="$host_os ld.so"
6412sys_lib_dlsearch_path_spec="/lib /usr/lib"
6413sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6414
6415case "$host_os" in
6416aix3*)
6417 version_type=linux
6418 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6419 shlibpath_var=LIBPATH
6420
6421 # AIX has no versioning support, so we append a major version to the name.
6422 soname_spec='${libname}${release}.so$major'
6423 ;;
6424
6425aix4*)
6426 version_type=linux
6427 # AIX has no versioning support, so currently we can not hardcode correct
6428 # soname into executable. Probably we can add versioning support to
6429 # collect2, so additional links can be useful in future.
6430 # We preserve .a as extension for shared libraries though AIX4.2
6431 # and later linker supports .so
6432 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6433 shlibpath_var=LIBPATH
6434 ;;
6435
6436amigaos*)
6437 library_names_spec='$libname.ixlibrary $libname.a'
6438 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6439 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'
6440 ;;
6441
6442beos*)
6443 library_names_spec='${libname}.so'
6444 dynamic_linker="$host_os ld.so"
6445 shlibpath_var=LIBRARY_PATH
6446 ;;
6447
6448bsdi4*)
6449 version_type=linux
6450 need_version=no
6451 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6452 soname_spec='${libname}${release}.so$major'
6453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6454 shlibpath_var=LD_LIBRARY_PATH
6455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6457 export_dynamic_flag_spec=-rdynamic
6458 # the default ld.so.conf also contains /usr/contrib/lib and
6459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6460 # libtool to hard-code these into programs
6461 ;;
6462
6463cygwin* | mingw* | pw32*)
6464 version_type=windows
6465 need_version=no
6466 need_lib_prefix=no
6467 if test "$GCC" = yes; then
6468 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6469 else
6470 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6471 fi
6472 dynamic_linker='Win32 ld.exe'
6473 # FIXME: first we should search . and the directory the executable is in
6474 shlibpath_var=PATH
6475 ;;
6476
6477darwin* | rhapsody*)
6478 need_lib_prefix=no
6479 need_version=no
6480 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6481 shlibpath_overrides_runpath=yes
6482 shlibpath_var=DYLD_LIBRARY_PATH
6483 postinstall_cmds='chmod +x $lib'
6484 ;;
6485
6486freebsd1*)
6487 dynamic_linker=no
6488 ;;
6489
6490freebsd*)
6491 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6492 version_type=freebsd-$objformat
6493 case "$version_type" in
6494 freebsd-elf*)
6495 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6496 need_version=no
6497 need_lib_prefix=no
6498 ;;
6499 freebsd-*)
6500 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6501 need_version=yes
6502 ;;
6503 esac
6504 shlibpath_var=LD_LIBRARY_PATH
6505 case "$host_os" in
6506 freebsd2*)
6507 shlibpath_overrides_runpath=yes
6508 ;;
6509 *)
6510 shlibpath_overrides_runpath=no
6511 hardcode_into_libs=yes
6512 ;;
6513 esac
6514 ;;
6515
6516gnu*)
6517 version_type=linux
6518 need_lib_prefix=no
6519 need_version=no
6520 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6521 soname_spec='${libname}${release}.so$major'
6522 shlibpath_var=LD_LIBRARY_PATH
6523 hardcode_into_libs=yes
6524 ;;
6525
6526hpux9* | hpux10* | hpux11*)
6527 # Give a soname corresponding to the major version so that dld.sl refuses to
6528 # link against other versions.
6529 dynamic_linker="$host_os dld.sl"
6530 version_type=sunos
6531 need_lib_prefix=no
6532 need_version=no
6533 shlibpath_var=SHLIB_PATH
6534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6535 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6536 soname_spec='${libname}${release}.sl$major'
6537 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6538 postinstall_cmds='chmod 555 $lib'
6539 ;;
6540
6541irix5* | irix6*)
6542 version_type=irix
6543 need_lib_prefix=no
6544 need_version=no
6545 soname_spec='${libname}${release}.so$major'
6546 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6547 case "$host_os" in
6548 irix5*)
6549 libsuff= shlibsuff=
6550 ;;
6551 *)
6552 case "$LD" in # libtool.m4 will add one of these switches to LD
6553 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6554 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6555 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6556 *) libsuff= shlibsuff= libmagic=never-match;;
6557 esac
6558 ;;
6559 esac
6560 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6561 shlibpath_overrides_runpath=no
6562 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6563 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6564 ;;
6565
6566# No shared lib support for Linux oldld, aout, or coff.
6567linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6568 dynamic_linker=no
6569 ;;
6570
6571# This must be Linux ELF.
6572linux-gnu*)
6573 version_type=linux
6574 need_lib_prefix=no
6575 need_version=no
6576 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6577 soname_spec='${libname}${release}.so$major'
6578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6579 shlibpath_var=LD_LIBRARY_PATH
6580 shlibpath_overrides_runpath=no
6581 # This implies no fast_install, which is unacceptable.
6582 # Some rework will be needed to allow for fast_install
6583 # before this can be enabled.
6584 hardcode_into_libs=yes
6585
6586 # We used to test for /lib/ld.so.1 and disable shared libraries on
6587 # powerpc, because MkLinux only supported shared libraries with the
6588 # GNU dynamic linker. Since this was broken with cross compilers,
6589 # most powerpc-linux boxes support dynamic linking these days and
6590 # people can always --disable-shared, the test was removed, and we
6591 # assume the GNU/Linux dynamic linker is in use.
6592 dynamic_linker='GNU/Linux ld.so'
6593 ;;
6594
6595netbsd*)
6596 version_type=sunos
6597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6598 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6600 dynamic_linker='NetBSD (a.out) ld.so'
6601 else
6602 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6603 soname_spec='${libname}${release}.so$major'
6604 dynamic_linker='NetBSD ld.elf_so'
6605 fi
6606 shlibpath_var=LD_LIBRARY_PATH
6607 shlibpath_overrides_runpath=yes
6608 hardcode_into_libs=yes
6609 ;;
6610
6611newsos6)
6612 version_type=linux
6613 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6614 shlibpath_var=LD_LIBRARY_PATH
6615 shlibpath_overrides_runpath=yes
6616 ;;
6617
6618openbsd*)
6619 version_type=sunos
6620 if test "$with_gnu_ld" = yes; then
6621 need_lib_prefix=no
6622 need_version=no
6623 fi
6624 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6626 shlibpath_var=LD_LIBRARY_PATH
6627 ;;
6628
6629os2*)
6630 libname_spec='$name'
6631 need_lib_prefix=no
6632 library_names_spec='$libname.dll $libname.a'
6633 dynamic_linker='OS/2 ld.exe'
6634 shlibpath_var=LIBPATH
6635 ;;
6636
6637osf3* | osf4* | osf5*)
6638 version_type=osf
6639 need_version=no
6640 soname_spec='${libname}${release}.so'
6641 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6642 shlibpath_var=LD_LIBRARY_PATH
6643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6645 ;;
6646
6647sco3.2v5*)
6648 version_type=osf
6649 soname_spec='${libname}${release}.so$major'
6650 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6651 shlibpath_var=LD_LIBRARY_PATH
6652 ;;
6653
6654solaris*)
6655 version_type=linux
6656 need_lib_prefix=no
6657 need_version=no
6658 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6659 soname_spec='${libname}${release}.so$major'
6660 shlibpath_var=LD_LIBRARY_PATH
6661 shlibpath_overrides_runpath=yes
6662 hardcode_into_libs=yes
6663 # ldd complains unless libraries are executable
6664 postinstall_cmds='chmod +x $lib'
6665 ;;
6666
6667sunos4*)
6668 version_type=sunos
6669 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6671 shlibpath_var=LD_LIBRARY_PATH
6672 shlibpath_overrides_runpath=yes
6673 if test "$with_gnu_ld" = yes; then
6674 need_lib_prefix=no
6675 fi
6676 need_version=yes
6677 ;;
6678
6679sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6680 version_type=linux
6681 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6682 soname_spec='${libname}${release}.so$major'
6683 shlibpath_var=LD_LIBRARY_PATH
6684 case "$host_vendor" in
6685 sni)
6686 shlibpath_overrides_runpath=no
6687 ;;
6688 motorola)
6689 need_lib_prefix=no
6690 need_version=no
6691 shlibpath_overrides_runpath=no
6692 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6693 ;;
6694 esac
6695 ;;
6696
6697uts4*)
6698 version_type=linux
6699 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6700 soname_spec='${libname}${release}.so$major'
6701 shlibpath_var=LD_LIBRARY_PATH
6702 ;;
6703
6704dgux*)
6705 version_type=linux
6706 need_lib_prefix=no
6707 need_version=no
6708 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6709 soname_spec='${libname}${release}.so$major'
6710 shlibpath_var=LD_LIBRARY_PATH
6711 ;;
6712
6713sysv4*MP*)
6714 if test -d /usr/nec ;then
6715 version_type=linux
6716 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6717 soname_spec='$libname.so.$major'
6718 shlibpath_var=LD_LIBRARY_PATH
6719 fi
6720 ;;
6721
6722*)
6723 dynamic_linker=no
6724 ;;
6725esac
6726echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6727echo "${ECHO_T}$dynamic_linker" >&6
6728test "$dynamic_linker" = no && can_build_shared=no
6729##
6730## END FIXME
6731
6732## FIXME: this should be a separate macro
6733##
6734# Report the final consequences.
6735echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6736echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6737echo "$as_me:$LINENO: result: $can_build_shared" >&5
6738echo "${ECHO_T}$can_build_shared" >&6
6739##
6740## END FIXME
6741
6742if test "$hardcode_action" = relink; then
6743 # Fast installation is not supported
6744 enable_fast_install=no
6745elif test "$shlibpath_overrides_runpath" = yes ||
6746 test "$enable_shared" = no; then
6747 # Fast installation is not necessary
6748 enable_fast_install=needless
6749fi
6750
6751variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6752if test "$GCC" = yes; then
6753 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6754fi
6755
6756if test "x$enable_dlopen" != xyes; then
6757 enable_dlopen=unknown
6758 enable_dlopen_self=unknown
6759 enable_dlopen_self_static=unknown
6760else
6761 lt_cv_dlopen=no
6762 lt_cv_dlopen_libs=
6763
6764 case "$host_os" in
6765 beos*)
6766 lt_cv_dlopen="load_add_on"
6767 lt_cv_dlopen_libs=
6768 lt_cv_dlopen_self=yes
6769 ;;
6770
6771 cygwin* | mingw* | pw32*)
6772 lt_cv_dlopen="LoadLibrary"
6773 lt_cv_dlopen_libs=
6774 ;;
6775
6776 *)
6777 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6778echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6779if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781else
6782 ac_check_lib_save_LIBS=$LIBS
6783LIBS="-ldl $LIBS"
6784cat >conftest.$ac_ext <<_ACEOF
6785/* confdefs.h. */
6786_ACEOF
6787cat confdefs.h >>conftest.$ac_ext
6788cat >>conftest.$ac_ext <<_ACEOF
6789/* end confdefs.h. */
6790
6791/* Override any gcc2 internal prototype to avoid an error. */
6792#ifdef __cplusplus
6793extern "C"
6794#endif
6795/* We use char because int might match the return type of a gcc2
6796 builtin and then its argument prototype would still apply. */
6797char dlopen ();
6798int
6799main ()
6800{
6801dlopen ();
6802 ;
6803 return 0;
6804}
6805_ACEOF
6806rm -f conftest.$ac_objext conftest$ac_exeext
6807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6808 (eval $ac_link) 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } &&
6815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; } &&
6821 { ac_try='test -s conftest$ac_exeext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_lib_dl_dlopen=yes
6828else
6829 echo "$as_me: failed program was:" >&5
6830sed 's/^/| /' conftest.$ac_ext >&5
6831
6832ac_cv_lib_dl_dlopen=no
6833fi
6834rm -f conftest.err conftest.$ac_objext \
6835 conftest$ac_exeext conftest.$ac_ext
6836LIBS=$ac_check_lib_save_LIBS
6837fi
6838echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6839echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6840if test $ac_cv_lib_dl_dlopen = yes; then
6841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6842else
6843 echo "$as_me:$LINENO: checking for dlopen" >&5
6844echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6845if test "${ac_cv_func_dlopen+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 cat >conftest.$ac_ext <<_ACEOF
6849/* confdefs.h. */
6850_ACEOF
6851cat confdefs.h >>conftest.$ac_ext
6852cat >>conftest.$ac_ext <<_ACEOF
6853/* end confdefs.h. */
6854/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 3395/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
6855 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6856#define dlopen innocuous_dlopen 3397#define setlocale innocuous_setlocale
6857 3398
6858/* System header to define __stub macros and hopefully few prototypes, 3399/* System header to define __stub macros and hopefully few prototypes,
6859 which can conflict with char dlopen (); below. 3400 which can conflict with char setlocale (); below.
6860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6861 <limits.h> exists even on freestanding compilers. */ 3402 <limits.h> exists even on freestanding compilers. */
6862 3403
6863#ifdef __STDC__ 3404#ifdef __STDC__
6864# include <limits.h> 3405# include <limits.h>
6865#else 3406#else
6866# include <assert.h> 3407# include <assert.h>
6867#endif 3408#endif
6868 3409
6869#undef dlopen 3410#undef setlocale
6870 3411
6871/* Override any gcc2 internal prototype to avoid an error. */ 3412/* Override any gcc2 internal prototype to avoid an error. */
6872#ifdef __cplusplus 3413#ifdef __cplusplus
6873extern "C" 3414extern "C"
6874{ 3415{
6875#endif 3416#endif
6876/* We use char because int might match the return type of a gcc2 3417/* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */ 3418 builtin and then its argument prototype would still apply. */
6878char dlopen (); 3419char setlocale ();
6879/* The GNU C library defines this for functions which it implements 3420/* The GNU C library defines this for functions which it implements
6880 to always fail with ENOSYS. Some functions are actually named 3421 to always fail with ENOSYS. Some functions are actually named
6881 something starting with __ and the normal name is an alias. */ 3422 something starting with __ and the normal name is an alias. */
6882#if defined (__stub_dlopen) || defined (__stub___dlopen) 3423#if defined (__stub_setlocale) || defined (__stub___setlocale)
6883choke me 3424choke me
6884#else 3425#else
6885char (*f) () = dlopen; 3426char (*f) () = setlocale;
6886#endif 3427#endif
6887#ifdef __cplusplus 3428#ifdef __cplusplus
6888} 3429}
6889#endif 3430#endif
6890 3431
6891int 3432int
6892main () 3433main ()
6893{ 3434{
6894return f != dlopen; 3435return f != setlocale;
6895 ; 3436 ;
6896 return 0; 3437 return 0;
6897} 3438}
6898_ACEOF 3439_ACEOF
6899rm -f conftest.$ac_objext conftest$ac_exeext 3440rm -f conftest.$ac_objext conftest$ac_exeext
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5 3457 (eval $ac_try) 2>&5
6917 ac_status=$? 3458 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then 3460 (exit $ac_status); }; }; then
6920 ac_cv_func_dlopen=yes 3461 ac_cv_func_setlocale=yes
6921else 3462else
6922 echo "$as_me: failed program was:" >&5 3463 echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5 3464sed 's/^/| /' conftest.$ac_ext >&5
6924 3465
6925ac_cv_func_dlopen=no 3466ac_cv_func_setlocale=no
6926fi 3467fi
6927rm -f conftest.err conftest.$ac_objext \ 3468rm -f conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext 3469 conftest$ac_exeext conftest.$ac_ext
6929fi 3470fi
6930echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 3471echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
6931echo "${ECHO_T}$ac_cv_func_dlopen" >&6 3472echo "${ECHO_T}$ac_cv_func_setlocale" >&6
6932if test $ac_cv_func_dlopen = yes; then 3473if test $ac_cv_func_setlocale = yes; then
6933 lt_cv_dlopen="dlopen" 3474 :
6934else 3475else
6935 echo "$as_me:$LINENO: checking for shl_load" >&5 3476 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
6936echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 3477echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
6937if test "${ac_cv_func_shl_load+set}" = set; then 3478if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6 3479 echo $ECHO_N "(cached) $ECHO_C" >&6
6939else 3480else
3481 ac_check_lib_save_LIBS=$LIBS
3482LIBS="-lxpg4 $LIBS"
6940 cat >conftest.$ac_ext <<_ACEOF 3483cat >conftest.$ac_ext <<_ACEOF
6941/* confdefs.h. */ 3484/* confdefs.h. */
6942_ACEOF 3485_ACEOF
6943cat confdefs.h >>conftest.$ac_ext 3486cat confdefs.h >>conftest.$ac_ext
6944cat >>conftest.$ac_ext <<_ACEOF 3487cat >>conftest.$ac_ext <<_ACEOF
6945/* end confdefs.h. */ 3488/* end confdefs.h. */
3489
3490/* Override any gcc2 internal prototype to avoid an error. */
3491#ifdef __cplusplus
3492extern "C"
3493#endif
3494/* We use char because int might match the return type of a gcc2
3495 builtin and then its argument prototype would still apply. */
3496char setlocale ();
3497int
3498main ()
3499{
3500setlocale ();
3501 ;
3502 return 0;
3503}
3504_ACEOF
3505rm -f conftest.$ac_objext conftest$ac_exeext
3506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3507 (eval $ac_link) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; } &&
3520 { ac_try='test -s conftest$ac_exeext'
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; }; then
3526 ac_cv_lib_xpg4_setlocale=yes
3527else
3528 echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531ac_cv_lib_xpg4_setlocale=no
3532fi
3533rm -f conftest.err conftest.$ac_objext \
3534 conftest$ac_exeext conftest.$ac_ext
3535LIBS=$ac_check_lib_save_LIBS
3536fi
3537echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3538echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3539if test $ac_cv_lib_xpg4_setlocale = yes; then
3540 LIBS="$LIBS -lxpg4"
3541fi
3542
3543fi
3544
3545
3546echo "$as_me:$LINENO: checking for gethostbyname" >&5
3547echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3548if test "${ac_cv_func_gethostbyname+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551 cat >conftest.$ac_ext <<_ACEOF
3552/* confdefs.h. */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h. */
6946/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 3557/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6947 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6948#define shl_load innocuous_shl_load 3559#define gethostbyname innocuous_gethostbyname
6949 3560
6950/* System header to define __stub macros and hopefully few prototypes, 3561/* System header to define __stub macros and hopefully few prototypes,
6951 which can conflict with char shl_load (); below. 3562 which can conflict with char gethostbyname (); below.
6952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6953 <limits.h> exists even on freestanding compilers. */ 3564 <limits.h> exists even on freestanding compilers. */
6954 3565
6955#ifdef __STDC__ 3566#ifdef __STDC__
6956# include <limits.h> 3567# include <limits.h>
6957#else 3568#else
6958# include <assert.h> 3569# include <assert.h>
6959#endif 3570#endif
6960 3571
6961#undef shl_load 3572#undef gethostbyname
6962 3573
6963/* Override any gcc2 internal prototype to avoid an error. */ 3574/* Override any gcc2 internal prototype to avoid an error. */
6964#ifdef __cplusplus 3575#ifdef __cplusplus
6965extern "C" 3576extern "C"
6966{ 3577{
6967#endif 3578#endif
6968/* We use char because int might match the return type of a gcc2 3579/* We use char because int might match the return type of a gcc2
6969 builtin and then its argument prototype would still apply. */ 3580 builtin and then its argument prototype would still apply. */
6970char shl_load (); 3581char gethostbyname ();
6971/* The GNU C library defines this for functions which it implements 3582/* The GNU C library defines this for functions which it implements
6972 to always fail with ENOSYS. Some functions are actually named 3583 to always fail with ENOSYS. Some functions are actually named
6973 something starting with __ and the normal name is an alias. */ 3584 something starting with __ and the normal name is an alias. */
6974#if defined (__stub_shl_load) || defined (__stub___shl_load) 3585#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6975choke me 3586choke me
6976#else 3587#else
6977char (*f) () = shl_load; 3588char (*f) () = gethostbyname;
6978#endif 3589#endif
6979#ifdef __cplusplus 3590#ifdef __cplusplus
6980} 3591}
6981#endif 3592#endif
6982 3593
6983int 3594int
6984main () 3595main ()
6985{ 3596{
6986return f != shl_load; 3597return f != gethostbyname;
6987 ; 3598 ;
6988 return 0; 3599 return 0;
6989} 3600}
6990_ACEOF 3601_ACEOF
6991rm -f conftest.$ac_objext conftest$ac_exeext 3602rm -f conftest.$ac_objext conftest$ac_exeext
7007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7008 (eval $ac_try) 2>&5 3619 (eval $ac_try) 2>&5
7009 ac_status=$? 3620 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }; }; then 3622 (exit $ac_status); }; }; then
7012 ac_cv_func_shl_load=yes 3623 ac_cv_func_gethostbyname=yes
7013else 3624else
7014 echo "$as_me: failed program was:" >&5 3625 echo "$as_me: failed program was:" >&5
7015sed 's/^/| /' conftest.$ac_ext >&5 3626sed 's/^/| /' conftest.$ac_ext >&5
7016 3627
7017ac_cv_func_shl_load=no 3628ac_cv_func_gethostbyname=no
7018fi 3629fi
7019rm -f conftest.err conftest.$ac_objext \ 3630rm -f conftest.err conftest.$ac_objext \
7020 conftest$ac_exeext conftest.$ac_ext 3631 conftest$ac_exeext conftest.$ac_ext
7021fi 3632fi
7022echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 3633echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7023echo "${ECHO_T}$ac_cv_func_shl_load" >&6 3634echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7024if test $ac_cv_func_shl_load = yes; then 3635if test $ac_cv_func_gethostbyname = yes; then
7025 lt_cv_dlopen="shl_load" 3636 :
7026else 3637else
7027 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 3638 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7028echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 3639echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7029if test "${ac_cv_lib_svld_dlopen+set}" = set; then 3640if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6 3641 echo $ECHO_N "(cached) $ECHO_C" >&6
7031else 3642else
7032 ac_check_lib_save_LIBS=$LIBS 3643 ac_check_lib_save_LIBS=$LIBS
7033LIBS="-lsvld $LIBS" 3644LIBS="-lnsl $LIBS"
7034cat >conftest.$ac_ext <<_ACEOF 3645cat >conftest.$ac_ext <<_ACEOF
7035/* confdefs.h. */ 3646/* confdefs.h. */
7036_ACEOF 3647_ACEOF
7037cat confdefs.h >>conftest.$ac_ext 3648cat confdefs.h >>conftest.$ac_ext
7038cat >>conftest.$ac_ext <<_ACEOF 3649cat >>conftest.$ac_ext <<_ACEOF
7042#ifdef __cplusplus 3653#ifdef __cplusplus
7043extern "C" 3654extern "C"
7044#endif 3655#endif
7045/* We use char because int might match the return type of a gcc2 3656/* We use char because int might match the return type of a gcc2
7046 builtin and then its argument prototype would still apply. */ 3657 builtin and then its argument prototype would still apply. */
7047char dlopen (); 3658char gethostbyname ();
7048int 3659int
7049main () 3660main ()
7050{ 3661{
7051dlopen (); 3662gethostbyname ();
7052 ; 3663 ;
7053 return 0; 3664 return 0;
7054} 3665}
7055_ACEOF 3666_ACEOF
7056rm -f conftest.$ac_objext conftest$ac_exeext 3667rm -f conftest.$ac_objext conftest$ac_exeext
7072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 (eval $ac_try) 2>&5 3684 (eval $ac_try) 2>&5
7074 ac_status=$? 3685 ac_status=$?
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); }; }; then 3687 (exit $ac_status); }; }; then
7077 ac_cv_lib_svld_dlopen=yes 3688 ac_cv_lib_nsl_gethostbyname=yes
7078else 3689else
7079 echo "$as_me: failed program was:" >&5 3690 echo "$as_me: failed program was:" >&5
7080sed 's/^/| /' conftest.$ac_ext >&5 3691sed 's/^/| /' conftest.$ac_ext >&5
7081 3692
7082ac_cv_lib_svld_dlopen=no 3693ac_cv_lib_nsl_gethostbyname=no
7083fi 3694fi
7084rm -f conftest.err conftest.$ac_objext \ 3695rm -f conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext 3696 conftest$ac_exeext conftest.$ac_ext
7086LIBS=$ac_check_lib_save_LIBS 3697LIBS=$ac_check_lib_save_LIBS
7087fi 3698fi
7088echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 3699echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7089echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 3700echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7090if test $ac_cv_lib_svld_dlopen = yes; then 3701if test $ac_cv_lib_nsl_gethostbyname = yes; then
7091 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 3702 LIBS="$LIBS -lnsl"
7092else 3703fi
3704
3705fi
3706
7093 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 3707echo "$as_me:$LINENO: checking for socket" >&5
7094echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 3708echo $ECHO_N "checking for socket... $ECHO_C" >&6
7095if test "${ac_cv_lib_dld_shl_load+set}" = set; then 3709if test "${ac_cv_func_socket+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6 3710 echo $ECHO_N "(cached) $ECHO_C" >&6
7097else 3711else
3712 cat >conftest.$ac_ext <<_ACEOF
3713/* confdefs.h. */
3714_ACEOF
3715cat confdefs.h >>conftest.$ac_ext
3716cat >>conftest.$ac_ext <<_ACEOF
3717/* end confdefs.h. */
3718/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3720#define socket innocuous_socket
3721
3722/* System header to define __stub macros and hopefully few prototypes,
3723 which can conflict with char socket (); below.
3724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3725 <limits.h> exists even on freestanding compilers. */
3726
3727#ifdef __STDC__
3728# include <limits.h>
3729#else
3730# include <assert.h>
3731#endif
3732
3733#undef socket
3734
3735/* Override any gcc2 internal prototype to avoid an error. */
3736#ifdef __cplusplus
3737extern "C"
3738{
3739#endif
3740/* We use char because int might match the return type of a gcc2
3741 builtin and then its argument prototype would still apply. */
3742char socket ();
3743/* The GNU C library defines this for functions which it implements
3744 to always fail with ENOSYS. Some functions are actually named
3745 something starting with __ and the normal name is an alias. */
3746#if defined (__stub_socket) || defined (__stub___socket)
3747choke me
3748#else
3749char (*f) () = socket;
3750#endif
3751#ifdef __cplusplus
3752}
3753#endif
3754
3755int
3756main ()
3757{
3758return f != socket;
3759 ;
3760 return 0;
3761}
3762_ACEOF
3763rm -f conftest.$ac_objext conftest$ac_exeext
3764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765 (eval $ac_link) 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
3778 { ac_try='test -s conftest$ac_exeext'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_func_socket=yes
3785else
3786 echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789ac_cv_func_socket=no
3790fi
3791rm -f conftest.err conftest.$ac_objext \
3792 conftest$ac_exeext conftest.$ac_ext
3793fi
3794echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3795echo "${ECHO_T}$ac_cv_func_socket" >&6
3796if test $ac_cv_func_socket = yes; then
3797 :
3798else
3799 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3800echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3801if test "${ac_cv_lib_socket_socket+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803else
7098 ac_check_lib_save_LIBS=$LIBS 3804 ac_check_lib_save_LIBS=$LIBS
7099LIBS="-ldld $LIBS" 3805LIBS="-lsocket $LIBS"
7100cat >conftest.$ac_ext <<_ACEOF 3806cat >conftest.$ac_ext <<_ACEOF
7101/* confdefs.h. */ 3807/* confdefs.h. */
7102_ACEOF 3808_ACEOF
7103cat confdefs.h >>conftest.$ac_ext 3809cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF 3810cat >>conftest.$ac_ext <<_ACEOF
7108#ifdef __cplusplus 3814#ifdef __cplusplus
7109extern "C" 3815extern "C"
7110#endif 3816#endif
7111/* We use char because int might match the return type of a gcc2 3817/* We use char because int might match the return type of a gcc2
7112 builtin and then its argument prototype would still apply. */ 3818 builtin and then its argument prototype would still apply. */
7113char shl_load (); 3819char socket ();
7114int 3820int
7115main () 3821main ()
7116{ 3822{
7117shl_load (); 3823socket ();
7118 ; 3824 ;
7119 return 0; 3825 return 0;
7120} 3826}
7121_ACEOF 3827_ACEOF
7122rm -f conftest.$ac_objext conftest$ac_exeext 3828rm -f conftest.$ac_objext conftest$ac_exeext
7138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 (eval $ac_try) 2>&5 3845 (eval $ac_try) 2>&5
7140 ac_status=$? 3846 ac_status=$?
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); }; }; then 3848 (exit $ac_status); }; }; then
7143 ac_cv_lib_dld_shl_load=yes 3849 ac_cv_lib_socket_socket=yes
7144else 3850else
7145 echo "$as_me: failed program was:" >&5 3851 echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5 3852sed 's/^/| /' conftest.$ac_ext >&5
7147 3853
7148ac_cv_lib_dld_shl_load=no 3854ac_cv_lib_socket_socket=no
7149fi 3855fi
7150rm -f conftest.err conftest.$ac_objext \ 3856rm -f conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext 3857 conftest$ac_exeext conftest.$ac_ext
7152LIBS=$ac_check_lib_save_LIBS 3858LIBS=$ac_check_lib_save_LIBS
7153fi 3859fi
7154echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 3860echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7155echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 3861echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7156if test $ac_cv_lib_dld_shl_load = yes; then 3862if test $ac_cv_lib_socket_socket = yes; then
7157 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 3863 LIBS="$LIBS -lsocket"
7158fi 3864fi
7159 3865
7160
7161fi 3866fi
7162 3867
7163 3868
7164fi 3869echo "$as_me:$LINENO: checking for sched_yield" >&5
7165 3870echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
7166
7167fi
7168
7169
7170fi
7171
7172 ;;
7173 esac
7174
7175 if test "x$lt_cv_dlopen" != xno; then
7176 enable_dlopen=yes
7177 else
7178 enable_dlopen=no
7179 fi
7180
7181 case "$lt_cv_dlopen" in
7182 dlopen)
7183 save_CPPFLAGS="$CPP_FLAGS"
7184 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7185
7186 save_LDFLAGS="$LDFLAGS"
7187 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7188
7189 save_LIBS="$LIBS"
7190 LIBS="$lt_cv_dlopen_libs $LIBS"
7191
7192 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7193echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7194if test "${lt_cv_dlopen_self+set}" = set; then 3871if test "${ac_cv_func_sched_yield+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6 3872 echo $ECHO_N "(cached) $ECHO_C" >&6
7196else 3873else
7197 if test "$cross_compiling" = yes; then :
7198 lt_cv_dlopen_self=cross
7199else
7200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7201 lt_status=$lt_dlunknown
7202 cat > conftest.$ac_ext <<EOF 3874 cat >conftest.$ac_ext <<_ACEOF
7203#line 7203 "configure" 3875/* confdefs.h. */
7204#include "confdefs.h" 3876_ACEOF
3877cat confdefs.h >>conftest.$ac_ext
3878cat >>conftest.$ac_ext <<_ACEOF
3879/* end confdefs.h. */
3880/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
3881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3882#define sched_yield innocuous_sched_yield
7205 3883
7206#if HAVE_DLFCN_H 3884/* System header to define __stub macros and hopefully few prototypes,
7207#include <dlfcn.h> 3885 which can conflict with char sched_yield (); below.
3886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3887 <limits.h> exists even on freestanding compilers. */
3888
3889#ifdef __STDC__
3890# include <limits.h>
3891#else
3892# include <assert.h>
7208#endif 3893#endif
7209 3894
7210#include <stdio.h> 3895#undef sched_yield
7211 3896
7212#ifdef RTLD_GLOBAL 3897/* Override any gcc2 internal prototype to avoid an error. */
7213# define LT_DLGLOBAL RTLD_GLOBAL 3898#ifdef __cplusplus
3899extern "C"
3900{
3901#endif
3902/* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3904char sched_yield ();
3905/* The GNU C library defines this for functions which it implements
3906 to always fail with ENOSYS. Some functions are actually named
3907 something starting with __ and the normal name is an alias. */
3908#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
3909choke me
7214#else 3910#else
7215# ifdef DL_GLOBAL 3911char (*f) () = sched_yield;
7216# define LT_DLGLOBAL DL_GLOBAL
7217# else
7218# define LT_DLGLOBAL 0
7219# endif
7220#endif 3912#endif
7221 3913#ifdef __cplusplus
7222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 3914}
7223 find out it does not work in some platform. */
7224#ifndef LT_DLLAZY_OR_NOW
7225# ifdef RTLD_LAZY
7226# define LT_DLLAZY_OR_NOW RTLD_LAZY
7227# else
7228# ifdef DL_LAZY
7229# define LT_DLLAZY_OR_NOW DL_LAZY
7230# else
7231# ifdef RTLD_NOW
7232# define LT_DLLAZY_OR_NOW RTLD_NOW
7233# else
7234# ifdef DL_NOW
7235# define LT_DLLAZY_OR_NOW DL_NOW
7236# else
7237# define LT_DLLAZY_OR_NOW 0
7238# endif
7239# endif
7240# endif
7241# endif
7242#endif 3915#endif
7243 3916
7244#ifdef __cplusplus 3917int
7245extern "C" void exit (int);
7246#endif
7247
7248fnord() { int i=42;}
7249main () 3918main ()
7250{ 3919{
7251 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3920return f != sched_yield;
7252 int status = $lt_dlunknown; 3921 ;
7253 3922 return 0;
7254 if (self)
7255 {
7256 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7257 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7258 /* dlclose (self); */
7259 }
7260
7261 exit (status);
7262} 3923}
7263EOF 3924_ACEOF
3925rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265 (eval $ac_link) 2>&5 3936 (eval $ac_try) 2>&5
7266 ac_status=$?
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7269 (./conftest; exit; ) 2>/dev/null
7270 lt_status=$? 3937 ac_status=$?
7271 case x$lt_status in 3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 3939 (exit $ac_status); }; } &&
7273 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 3940 { ac_try='test -s conftest$ac_exeext'
7274 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 esac 3942 (eval $ac_try) 2>&5
7276 else : 3943 ac_status=$?
7277 # compilation failed 3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 lt_cv_dlopen_self=no 3945 (exit $ac_status); }; }; then
7279 fi 3946 ac_cv_func_sched_yield=yes
7280fi 3947else
7281rm -fr conftest* 3948 echo "$as_me: failed program was:" >&5
3949sed 's/^/| /' conftest.$ac_ext >&5
7282 3950
7283 3951ac_cv_func_sched_yield=no
7284fi 3952fi
3953rm -f conftest.err conftest.$ac_objext \
3954 conftest$ac_exeext conftest.$ac_ext
3955fi
7285echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 3956echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
7286echo "${ECHO_T}$lt_cv_dlopen_self" >&6 3957echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
7287 3958if test $ac_cv_func_sched_yield = yes; then
7288 if test "x$lt_cv_dlopen_self" = xyes; then 3959 :
7289 LDFLAGS="$LDFLAGS $link_static_flag" 3960else
7290 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 3961 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
7291echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 3962echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
7292if test "${lt_cv_dlopen_self_static+set}" = set; then 3963if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6 3964 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else 3965else
7295 if test "$cross_compiling" = yes; then : 3966 ac_check_lib_save_LIBS=$LIBS
7296 lt_cv_dlopen_self_static=cross 3967LIBS="-lrt $LIBS"
7297else
7298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7299 lt_status=$lt_dlunknown
7300 cat > conftest.$ac_ext <<EOF 3968cat >conftest.$ac_ext <<_ACEOF
7301#line 7301 "configure" 3969/* confdefs.h. */
7302#include "confdefs.h" 3970_ACEOF
3971cat confdefs.h >>conftest.$ac_ext
3972cat >>conftest.$ac_ext <<_ACEOF
3973/* end confdefs.h. */
7303 3974
7304#if HAVE_DLFCN_H 3975/* Override any gcc2 internal prototype to avoid an error. */
7305#include <dlfcn.h> 3976#ifdef __cplusplus
3977extern "C"
7306#endif 3978#endif
7307 3979/* We use char because int might match the return type of a gcc2
7308#include <stdio.h> 3980 builtin and then its argument prototype would still apply. */
7309 3981char sched_yield ();
7310#ifdef RTLD_GLOBAL 3982int
7311# define LT_DLGLOBAL RTLD_GLOBAL
7312#else
7313# ifdef DL_GLOBAL
7314# define LT_DLGLOBAL DL_GLOBAL
7315# else
7316# define LT_DLGLOBAL 0
7317# endif
7318#endif
7319
7320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7321 find out it does not work in some platform. */
7322#ifndef LT_DLLAZY_OR_NOW
7323# ifdef RTLD_LAZY
7324# define LT_DLLAZY_OR_NOW RTLD_LAZY
7325# else
7326# ifdef DL_LAZY
7327# define LT_DLLAZY_OR_NOW DL_LAZY
7328# else
7329# ifdef RTLD_NOW
7330# define LT_DLLAZY_OR_NOW RTLD_NOW
7331# else
7332# ifdef DL_NOW
7333# define LT_DLLAZY_OR_NOW DL_NOW
7334# else
7335# define LT_DLLAZY_OR_NOW 0
7336# endif
7337# endif
7338# endif
7339# endif
7340#endif
7341
7342#ifdef __cplusplus
7343extern "C" void exit (int);
7344#endif
7345
7346fnord() { int i=42;}
7347main () 3983main ()
7348{ 3984{
7349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 3985sched_yield ();
7350 int status = $lt_dlunknown; 3986 ;
7351 3987 return 0;
7352 if (self)
7353 {
7354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7356 /* dlclose (self); */
7357 }
7358
7359 exit (status);
7360} 3988}
7361EOF 3989_ACEOF
3990rm -f conftest.$ac_objext conftest$ac_exeext
7362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7363 (eval $ac_link) 2>&5 3992 (eval $ac_link) 2>conftest.er1
7364 ac_status=$?
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7367 (./conftest; exit; ) 2>/dev/null
7368 lt_status=$? 3993 ac_status=$?
7369 case x$lt_status in 3994 grep -v '^ *+' conftest.er1 >conftest.err
7370 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7371 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7372 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7373 esac
7374 else :
7375 # compilation failed
7376 lt_cv_dlopen_self_static=no
7377 fi
7378fi
7379rm -fr conftest* 3995 rm -f conftest.er1
7380 3996 cat conftest.err >&5
7381 3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382fi 3998 (exit $ac_status); } &&
7383echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 3999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7384echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7385 fi
7386
7387 CPPFLAGS="$save_CPPFLAGS"
7388 LDFLAGS="$save_LDFLAGS"
7389 LIBS="$save_LIBS"
7390 ;;
7391 esac
7392
7393 case "$lt_cv_dlopen_self" in
7394 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7395 *) enable_dlopen_self=unknown ;;
7396 esac
7397
7398 case "$lt_cv_dlopen_self_static" in
7399 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7400 *) enable_dlopen_self_static=unknown ;;
7401 esac
7402fi
7403
7404
7405## FIXME: this should be a separate macro
7406##
7407if test "$enable_shared" = yes && test "$GCC" = yes; then
7408 case "$archive_cmds" in
7409 *'~'*)
7410 # FIXME: we may have to deal with multi-command sequences.
7411 ;;
7412 '$CC '*)
7413 # Test whether the compiler implicitly links with -lc since on some
7414 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7415 # to ld, don't add -lc before -lgcc.
7416 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7417echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7418 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7419 echo $ECHO_N "(cached) $ECHO_C" >&6
7420else
7421 $rm conftest*
7422 echo 'static int dummy;' > conftest.$ac_ext
7423
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 (eval $ac_compile) 2>&5 4001 (eval $ac_try) 2>&5
7426 ac_status=$? 4002 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); }; } &&
4005 { ac_try='test -s conftest$ac_exeext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; then 4010 (exit $ac_status); }; }; then
7429 soname=conftest 4011 ac_cv_lib_rt_sched_yield=yes
7430 lib=conftest 4012else
7431 libobjs=conftest.$ac_objext 4013 echo "$as_me: failed program was:" >&5
7432 deplibs= 4014sed 's/^/| /' conftest.$ac_ext >&5
7433 wl=$lt_cv_prog_cc_wl 4015
7434 compiler_flags=-v 4016ac_cv_lib_rt_sched_yield=no
7435 linker_flags=-v 4017fi
7436 verstring= 4018rm -f conftest.err conftest.$ac_objext \
7437 output_objdir=. 4019 conftest$ac_exeext conftest.$ac_ext
7438 libname=conftest 4020LIBS=$ac_check_lib_save_LIBS
7439 save_allow_undefined_flag=$allow_undefined_flag 4021fi
7440 allow_undefined_flag= 4022echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
7441 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 4023echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
7442 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 4024if test $ac_cv_lib_rt_sched_yield = yes; then
4025 LIBS="$LIBS -lrt"
4026fi
4027
4028fi
4029
4030
4031echo "$as_me:$LINENO: checking for sched_yield support" >&5
4032echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4033cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039#include <sched.h>
4040int
4041main ()
4042{
4043sched_yield ()
4044 ;
4045 return 0;
4046}
4047_ACEOF
4048rm -f conftest.$ac_objext conftest$ac_exeext
4049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4050 (eval $ac_link) 2>conftest.er1
7443 ac_status=$? 4051 ac_status=$?
4052 grep -v '^ *+' conftest.er1 >conftest.err
4053 rm -f conftest.er1
4054 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } 4056 (exit $ac_status); } &&
7446 then 4057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7447 lt_cv_archive_cmds_need_lc=no 4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 else 4059 (eval $ac_try) 2>&5
7449 lt_cv_archive_cmds_need_lc=yes 4060 ac_status=$?
7450 fi 4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 allow_undefined_flag=$save_allow_undefined_flag 4062 (exit $ac_status); }; } &&
7452 else 4063 { ac_try='test -s conftest$ac_exeext'
7453 cat conftest.err 1>&5 4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 fi 4065 (eval $ac_try) 2>&5
7455fi 4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; }; then
4069 echo "$as_me:$LINENO: result: yes" >&5
4070echo "${ECHO_T}yes" >&6
7456 4071
7457 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 4072cat >>confdefs.h <<\_ACEOF
7458echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 4073#define HAVE_SCHED_YIELD 1
7459 ;; 4074_ACEOF
7460 esac
7461fi
7462need_lc=${lt_cv_archive_cmds_need_lc-yes}
7463##
7464## END FIXME
7465 4075
7466## FIXME: this should be a separate macro
7467##
7468# The second clause should only fire when bootstrapping the
7469# libtool distribution, otherwise you forgot to ship ltmain.sh
7470# with your package, and you will get complaints that there are
7471# no rules to generate ltmain.sh.
7472if test -f "$ltmain"; then
7473 :
7474else 4076else
7475 # If there is no Makefile yet, we rely on a make rule to execute 4077 echo "$as_me: failed program was:" >&5
7476 # `config.status --recheck' to rerun these tests and create the 4078sed 's/^/| /' conftest.$ac_ext >&5
7477 # libtool script then.
7478 test -f Makefile && make "$ltmain"
7479fi
7480 4079
7481if test -f "$ltmain"; then 4080echo "$as_me:$LINENO: result: no" >&5
7482 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 4081echo "${ECHO_T}no" >&6
7483 $rm -f "${ofile}T"
7484
7485 echo creating $ofile
7486
7487 # Now quote all the things that may contain metacharacters while being
7488 # careful not to overquote the AC_SUBSTed values. We take copies of the
7489 # variables and quote the copies for generation of the libtool script.
7490 for var in echo old_CC old_CFLAGS \
7491 AR AR_FLAGS CC LD LN_S NM SHELL \
7492 reload_flag reload_cmds wl \
7493 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7494 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7495 library_names_spec soname_spec \
7496 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7497 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7498 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7499 old_striplib striplib file_magic_cmd export_symbols_cmds \
7500 deplibs_check_method allow_undefined_flag no_undefined_flag \
7501 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7502 hardcode_libdir_flag_spec hardcode_libdir_separator \
7503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7504 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7505
7506 case "$var" in
7507 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7508 old_postinstall_cmds | old_postuninstall_cmds | \
7509 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7510 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7511 postinstall_cmds | postuninstall_cmds | \
7512 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7513 # Double-quote double-evaled strings.
7514 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7515 ;;
7516 *)
7517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7518 ;;
7519 esac
7520 done
7521
7522 cat <<__EOF__ > "${ofile}T"
7523#! $SHELL
7524
7525# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7526# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7527# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7528#
7529# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7530# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7531#
7532# This program is free software; you can redistribute it and/or modify
7533# it under the terms of the GNU General Public License as published by
7534# the Free Software Foundation; either version 2 of the License, or
7535# (at your option) any later version.
7536#
7537# This program is distributed in the hope that it will be useful, but
7538# WITHOUT ANY WARRANTY; without even the implied warranty of
7539# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7540# General Public License for more details.
7541#
7542# You should have received a copy of the GNU General Public License
7543# along with this program; if not, write to the Free Software
7544# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7545#
7546# As a special exception to the GNU General Public License, if you
7547# distribute this file as part of a program that contains a
7548# configuration script generated by Autoconf, you may include it under
7549# the same distribution terms that you use for the rest of that program.
7550
7551# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7552Xsed="sed -e s/^X//"
7553
7554# The HP-UX ksh and POSIX shell print the target directory to stdout
7555# if CDPATH is set.
7556if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7557
7558# ### BEGIN LIBTOOL CONFIG
7559
7560# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7561
7562# Shell to use when invoking shell scripts.
7563SHELL=$lt_SHELL
7564
7565# Whether or not to build shared libraries.
7566build_libtool_libs=$enable_shared
7567
7568# Whether or not to add -lc for building shared libraries.
7569build_libtool_need_lc=$need_lc
7570
7571# Whether or not to build static libraries.
7572build_old_libs=$enable_static
7573
7574# Whether or not to optimize for fast installation.
7575fast_install=$enable_fast_install
7576
7577# The host system.
7578host_alias=$host_alias
7579host=$host
7580
7581# An echo program that does not interpret backslashes.
7582echo=$lt_echo
7583
7584# The archiver.
7585AR=$lt_AR
7586AR_FLAGS=$lt_AR_FLAGS
7587
7588# The default C compiler.
7589CC=$lt_CC
7590
7591# Is the compiler the GNU C compiler?
7592with_gcc=$GCC
7593
7594# The linker used to build libraries.
7595LD=$lt_LD
7596
7597# Whether we need hard or soft links.
7598LN_S=$lt_LN_S
7599
7600# A BSD-compatible nm program.
7601NM=$lt_NM
7602
7603# A symbol stripping program
7604STRIP=$STRIP
7605
7606# Used to examine libraries when file_magic_cmd begins "file"
7607MAGIC_CMD=$MAGIC_CMD
7608
7609# Used on cygwin: DLL creation program.
7610DLLTOOL="$DLLTOOL"
7611
7612# Used on cygwin: object dumper.
7613OBJDUMP="$OBJDUMP"
7614
7615# Used on cygwin: assembler.
7616AS="$AS"
7617
7618# The name of the directory that contains temporary libtool files.
7619objdir=$objdir
7620
7621# How to create reloadable object files.
7622reload_flag=$lt_reload_flag
7623reload_cmds=$lt_reload_cmds
7624
7625# How to pass a linker flag through the compiler.
7626wl=$lt_wl
7627
7628# Object file suffix (normally "o").
7629objext="$ac_objext"
7630
7631# Old archive suffix (normally "a").
7632libext="$libext"
7633
7634# Executable file suffix (normally "").
7635exeext="$exeext"
7636
7637# Additional compiler flags for building library objects.
7638pic_flag=$lt_pic_flag
7639pic_mode=$pic_mode
7640
7641# Does compiler simultaneously support -c and -o options?
7642compiler_c_o=$lt_compiler_c_o
7643
7644# Can we write directly to a .lo ?
7645compiler_o_lo=$lt_compiler_o_lo
7646
7647# Must we lock files when doing compilation ?
7648need_locks=$lt_need_locks
7649
7650# Do we need the lib prefix for modules?
7651need_lib_prefix=$need_lib_prefix
7652
7653# Do we need a version for libraries?
7654need_version=$need_version
7655
7656# Whether dlopen is supported.
7657dlopen_support=$enable_dlopen
7658
7659# Whether dlopen of programs is supported.
7660dlopen_self=$enable_dlopen_self
7661
7662# Whether dlopen of statically linked programs is supported.
7663dlopen_self_static=$enable_dlopen_self_static
7664
7665# Compiler flag to prevent dynamic linking.
7666link_static_flag=$lt_link_static_flag
7667
7668# Compiler flag to turn off builtin functions.
7669no_builtin_flag=$lt_no_builtin_flag
7670
7671# Compiler flag to allow reflexive dlopens.
7672export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7673
7674# Compiler flag to generate shared objects directly from archives.
7675whole_archive_flag_spec=$lt_whole_archive_flag_spec
7676
7677# Compiler flag to generate thread-safe objects.
7678thread_safe_flag_spec=$lt_thread_safe_flag_spec
7679
7680# Library versioning type.
7681version_type=$version_type
7682
7683# Format of library name prefix.
7684libname_spec=$lt_libname_spec
7685
7686# List of archive names. First name is the real one, the rest are links.
7687# The last name is the one that the linker finds with -lNAME.
7688library_names_spec=$lt_library_names_spec
7689
7690# The coded name of the library, if different from the real name.
7691soname_spec=$lt_soname_spec
7692
7693# Commands used to build and install an old-style archive.
7694RANLIB=$lt_RANLIB
7695old_archive_cmds=$lt_old_archive_cmds
7696old_postinstall_cmds=$lt_old_postinstall_cmds
7697old_postuninstall_cmds=$lt_old_postuninstall_cmds
7698
7699# Create an old-style archive from a shared archive.
7700old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7701
7702# Create a temporary old-style archive to link instead of a shared archive.
7703old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7704
7705# Commands used to build and install a shared archive.
7706archive_cmds=$lt_archive_cmds
7707archive_expsym_cmds=$lt_archive_expsym_cmds
7708postinstall_cmds=$lt_postinstall_cmds
7709postuninstall_cmds=$lt_postuninstall_cmds
7710
7711# Commands to strip libraries.
7712old_striplib=$lt_old_striplib
7713striplib=$lt_striplib
7714
7715# Method to check whether dependent libraries are shared objects.
7716deplibs_check_method=$lt_deplibs_check_method
7717
7718# Command to use when deplibs_check_method == file_magic.
7719file_magic_cmd=$lt_file_magic_cmd
7720
7721# Flag that allows shared libraries with undefined symbols to be built.
7722allow_undefined_flag=$lt_allow_undefined_flag
7723
7724# Flag that forces no undefined symbols.
7725no_undefined_flag=$lt_no_undefined_flag
7726
7727# Commands used to finish a libtool library installation in a directory.
7728finish_cmds=$lt_finish_cmds
7729
7730# Same as above, but a single script fragment to be evaled but not shown.
7731finish_eval=$lt_finish_eval
7732
7733# Take the output of nm and produce a listing of raw symbols and C names.
7734global_symbol_pipe=$lt_global_symbol_pipe
7735
7736# Transform the output of nm in a proper C declaration
7737global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7738
7739# This is the shared library runtime path variable.
7740runpath_var=$runpath_var
7741
7742# This is the shared library path variable.
7743shlibpath_var=$shlibpath_var
7744
7745# Is shlibpath searched before the hard-coded library search path?
7746shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7747
7748# How to hardcode a shared library path into an executable.
7749hardcode_action=$hardcode_action
7750
7751# Whether we should hardcode library paths into libraries.
7752hardcode_into_libs=$hardcode_into_libs
7753
7754# Flag to hardcode \$libdir into a binary during linking.
7755# This must work even if \$libdir does not exist.
7756hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7757
7758# Whether we need a single -rpath flag with a separated argument.
7759hardcode_libdir_separator=$lt_hardcode_libdir_separator
7760
7761# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7762# resulting binary.
7763hardcode_direct=$hardcode_direct
7764
7765# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7766# resulting binary.
7767hardcode_minus_L=$hardcode_minus_L
7768
7769# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7770# the resulting binary.
7771hardcode_shlibpath_var=$hardcode_shlibpath_var
7772
7773# Variables whose values should be saved in libtool wrapper scripts and
7774# restored at relink time.
7775variables_saved_for_relink="$variables_saved_for_relink"
7776
7777# Whether libtool must link a program against all its dependency libraries.
7778link_all_deplibs=$link_all_deplibs
7779
7780# Compile-time system search path for libraries
7781sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7782
7783# Run-time system search path for libraries
7784sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7785
7786# Fix the shell variable \$srcfile for the compiler.
7787fix_srcfile_path="$fix_srcfile_path"
7788
7789# Set to yes if exported symbols are required.
7790always_export_symbols=$always_export_symbols
7791
7792# The commands to list exported symbols.
7793export_symbols_cmds=$lt_export_symbols_cmds
7794
7795# The commands to extract the exported symbol list from a shared archive.
7796extract_expsyms_cmds=$lt_extract_expsyms_cmds
7797
7798# Symbols that should not be listed in the preloaded symbols.
7799exclude_expsyms=$lt_exclude_expsyms
7800
7801# Symbols that must always be exported.
7802include_expsyms=$lt_include_expsyms
7803
7804# ### END LIBTOOL CONFIG
7805
7806__EOF__
7807
7808 case "$host_os" in
7809 aix3*)
7810 cat <<\EOF >> "${ofile}T"
7811
7812# AIX sometimes has problems with the GCC collect2 program. For some
7813# reason, if we set the COLLECT_NAMES environment variable, the problems
7814# vanish in a puff of smoke.
7815if test "X${COLLECT_NAMES+set}" != Xset; then
7816 COLLECT_NAMES=
7817 export COLLECT_NAMES
7818fi 4082fi
7819EOF 4083rm -f conftest.err conftest.$ac_objext \
7820 ;; 4084 conftest$ac_exeext conftest.$ac_ext
7821 esac
7822
7823 case "$host_os" in
7824 cygwin* | mingw* | pw32* | os2*)
7825 cat <<'EOF' >> "${ofile}T"
7826 # This is a source program that is used to create dlls on Windows
7827 # Don't remove nor modify the starting and closing comments
7828# /* ltdll.c starts here */
7829# #define WIN32_LEAN_AND_MEAN
7830# #include <windows.h>
7831# #undef WIN32_LEAN_AND_MEAN
7832# #include <stdio.h>
7833#
7834# #ifndef __CYGWIN__
7835# # ifdef __CYGWIN32__
7836# # define __CYGWIN__ __CYGWIN32__
7837# # endif
7838# #endif
7839#
7840# #ifdef __cplusplus
7841# extern "C" {
7842# #endif
7843# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7844# #ifdef __cplusplus
7845# }
7846# #endif
7847#
7848# #ifdef __CYGWIN__
7849# #include <cygwin/cygwin_dll.h>
7850# DECLARE_CYGWIN_DLL( DllMain );
7851# #endif
7852# HINSTANCE __hDllInstance_base;
7853#
7854# BOOL APIENTRY
7855# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7856# {
7857# __hDllInstance_base = hInst;
7858# return TRUE;
7859# }
7860# /* ltdll.c ends here */
7861 # This is a source program that is used to create import libraries
7862 # on Windows for dlls which lack them. Don't remove nor modify the
7863 # starting and closing comments
7864# /* impgen.c starts here */
7865# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7866#
7867# This file is part of GNU libtool.
7868#
7869# This program is free software; you can redistribute it and/or modify
7870# it under the terms of the GNU General Public License as published by
7871# the Free Software Foundation; either version 2 of the License, or
7872# (at your option) any later version.
7873#
7874# This program is distributed in the hope that it will be useful,
7875# but WITHOUT ANY WARRANTY; without even the implied warranty of
7876# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7877# GNU General Public License for more details.
7878#
7879# You should have received a copy of the GNU General Public License
7880# along with this program; if not, write to the Free Software
7881# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7882# */
7883#
7884# #include <stdio.h> /* for printf() */
7885# #include <unistd.h> /* for open(), lseek(), read() */
7886# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7887# #include <string.h> /* for strdup() */
7888#
7889# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7890# #ifndef O_BINARY
7891# #define O_BINARY 0
7892# #endif
7893#
7894# static unsigned int
7895# pe_get16 (fd, offset)
7896# int fd;
7897# int offset;
7898# {
7899# unsigned char b[2];
7900# lseek (fd, offset, SEEK_SET);
7901# read (fd, b, 2);
7902# return b[0] + (b[1]<<8);
7903# }
7904#
7905# static unsigned int
7906# pe_get32 (fd, offset)
7907# int fd;
7908# int offset;
7909# {
7910# unsigned char b[4];
7911# lseek (fd, offset, SEEK_SET);
7912# read (fd, b, 4);
7913# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7914# }
7915#
7916# static unsigned int
7917# pe_as32 (ptr)
7918# void *ptr;
7919# {
7920# unsigned char *b = ptr;
7921# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7922# }
7923#
7924# int
7925# main (argc, argv)
7926# int argc;
7927# char *argv[];
7928# {
7929# int dll;
7930# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7931# unsigned long export_rva, export_size, nsections, secptr, expptr;
7932# unsigned long name_rvas, nexp;
7933# unsigned char *expdata, *erva;
7934# char *filename, *dll_name;
7935#
7936# filename = argv[1];
7937#
7938# dll = open(filename, O_RDONLY|O_BINARY);
7939# if (!dll)
7940# return 1;
7941#
7942# dll_name = filename;
7943#
7944# for (i=0; filename[i]; i++)
7945# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7946# dll_name = filename + i +1;
7947#
7948# pe_header_offset = pe_get32 (dll, 0x3c);
7949# opthdr_ofs = pe_header_offset + 4 + 20;
7950# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7951#
7952# if (num_entries < 1) /* no exports */
7953# return 1;
7954#
7955# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7956# export_size = pe_get32 (dll, opthdr_ofs + 100);
7957# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7958# secptr = (pe_header_offset + 4 + 20 +
7959# pe_get16 (dll, pe_header_offset + 4 + 16));
7960#
7961# expptr = 0;
7962# for (i = 0; i < nsections; i++)
7963# {
7964# char sname[8];
7965# unsigned long secptr1 = secptr + 40 * i;
7966# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7967# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7968# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7969# lseek(dll, secptr1, SEEK_SET);
7970# read(dll, sname, 8);
7971# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7972# {
7973# expptr = fptr + (export_rva - vaddr);
7974# if (export_rva + export_size > vaddr + vsize)
7975# export_size = vsize - (export_rva - vaddr);
7976# break;
7977# }
7978# }
7979#
7980# expdata = (unsigned char*)malloc(export_size);
7981# lseek (dll, expptr, SEEK_SET);
7982# read (dll, expdata, export_size);
7983# erva = expdata - export_rva;
7984#
7985# nexp = pe_as32 (expdata+24);
7986# name_rvas = pe_as32 (expdata+32);
7987#
7988# printf ("EXPORTS\n");
7989# for (i = 0; i<nexp; i++)
7990# {
7991# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7992# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7993# }
7994#
7995# return 0;
7996# }
7997# /* impgen.c ends here */
7998
7999EOF
8000 ;;
8001 esac
8002
8003 # We use sed instead of cat because bash on DJGPP gets confused if
8004 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8005 # text mode, it properly converts lines to CR/LF. This bash problem
8006 # is reportedly fixed, but why not run on old versions too?
8007 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8008
8009 mv -f "${ofile}T" "$ofile" || \
8010 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8011 chmod +x "$ofile"
8012fi
8013##
8014## END FIXME
8015
8016
8017
8018
8019
8020# This can be used to rebuild libtool when needed
8021LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8022
8023# Always use our own libtool.
8024LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8025
8026# Prevent multiple expansion
8027 4085
8028 4086
8029MALLOC_TYPE=S 4087MALLOC_TYPE=S
8030support_addstrings=no 4088
8031support_frills=no 4089support_frills=yes
8032support_linespace=no
8033support_inheritpixmap=no 4090support_inheritpixmap=yes
8034support_tinting=no 4091support_tinting=yes
4092support_fading=yes
8035support_keepscrolling=no 4093support_keepscrolling=yes
8036support_selectionscrolling=no 4094support_selectionscrolling=yes
8037support_menubar=no
8038support_mousewheel=no 4095support_mousewheel=yes
8039support_mouseslipwheel=no 4096support_mouseslipwheel=yes
8040support_utmp=no 4097support_utmp=yes
8041support_wtmp=no 4098support_wtmp=yes
8042support_lastlog=no 4099support_lastlog=yes
8043support_cursor_blink=no
8044support_text_blink=no 4100support_text_blink=yes
8045support_pointer_blank=no 4101support_pointer_blank=yes
8046support_scroll_rxvt=no 4102support_scroll_rxvt=yes
8047support_scroll_next=no 4103support_scroll_next=yes
8048support_scroll_xterm=no 4104support_scroll_xterm=yes
8049support_scroll_plain=no 4105support_scroll_plain=yes
8050support_xim=no 4106support_xim=yes
8051support_xpm=no 4107support_xpm=yes
8052support_xft=no 4108support_xft=yes
8053support_unicode3=no 4109support_unicode3=no
8054support_combining=no 4110support_combining=yes
4111support_8bitctrls=no
4112support_iso14755=yes
4113support_styles=yes
4114support_perl=yes
8055codesets= 4115codesets=all
8056 4116
8057 4117
8058if test "x$enable_shared" = xyes; then 4118if test "x$enable_shared" = xyes; then
8059 4119
8060cat >>confdefs.h <<\_ACEOF 4120cat >>confdefs.h <<\_ACEOF
8066 4126
8067 4127
8068# Check whether --enable-everything or --disable-everything was given. 4128# Check whether --enable-everything or --disable-everything was given.
8069if test "${enable_everything+set}" = set; then 4129if test "${enable_everything+set}" = set; then
8070 enableval="$enable_everything" 4130 enableval="$enable_everything"
4131
4132 if test x$enableval = xno; then
4133 support_24bit=no
4134 support_frills=no
4135 support_inheritpixmap=no
4136 support_tinting=no
4137 support_fading=no
4138 support_keepscrolling=no
4139 support_selectionscrolling=no
4140 support_lastlog=no
4141 support_mousewheel=no
4142 support_mouseslipwheel=no
4143 support_text_blink=no
4144 support_pointer_blank=no
4145 support_scroll_rxvt=no
4146 support_scroll_next=no
4147 support_scroll_xterm=no
4148 support_scroll_plain=no
4149 support_utmp=no
4150 support_wtmp=no
4151 support_xim=no
4152 support_xpm=no
4153 support_xft=no
4154 support_unicode3=no
4155 support_combining=no
4156 support_8bitctrls=no
4157 support_iso14755=no
4158 support_styles=no
4159 support_perl=no
4160 codesets=
4161 fi
8071 if test x$enableval = xyes; then 4162 if test x$enableval = xyes; then
8072 support_24bit=yes 4163 support_24bit=yes
8073 support_frills=yes 4164 support_frills=yes
8074 support_linespace=yes
8075 support_inheritpixmap=yes 4165 support_inheritpixmap=yes
8076 support_tinting=yes 4166 support_tinting=yes
4167 support_fading=yes
8077 support_keepscrolling=yes 4168 support_keepscrolling=yes
8078 support_selectionscrolling=yes 4169 support_selectionscrolling=yes
8079 support_lastlog=yes 4170 support_lastlog=yes
8080 support_menubar=yes
8081 support_mousewheel=yes 4171 support_mousewheel=yes
8082 support_mouseslipwheel=yes 4172 support_mouseslipwheel=yes
8083 support_cursor_blink=yes
8084 support_text_blink=yes 4173 support_text_blink=yes
8085 support_pointer_blank=yes 4174 support_pointer_blank=yes
8086 support_scroll_rxvt=yes 4175 support_scroll_rxvt=yes
8087 support_scroll_next=yes 4176 support_scroll_next=yes
8088 support_scroll_xterm=yes 4177 support_scroll_xterm=yes
8089 support_scroll_plain=yes 4178 support_scroll_plain=yes
8090 support_utmp=yes 4179 support_utmp=yes
8091 support_wtmp=yes 4180 support_wtmp=yes
8092 support_xim=yes 4181 support_xim=yes
8093 support_xpm=yes 4182 support_xpm=yes
8094 support_xft=yes 4183 support_xft=yes
8095 support_unicode3=yes 4184 support_unicode3=yes
8096 support_combining=yes 4185 support_combining=yes
4186 #support_8bitctrls=yes
4187 support_iso14755=yes
4188 support_styles=yes
4189 support_perl=yes
8097 codesets=all 4190 codesets=all
8098 fi 4191 fi
4192
8099fi; 4193fi;
8100 4194
8101# Check whether --enable-unicode3 or --disable-unicode3 was given. 4195# Check whether --enable-unicode3 or --disable-unicode3 was given.
8102if test "${enable_unicode3+set}" = set; then 4196if test "${enable_unicode3+set}" = set; then
8103 enableval="$enable_unicode3" 4197 enableval="$enable_unicode3"
8104 if test x$enableval = xyes -o x$enableval = xno; then 4198 if test x$enableval = xyes -o x$enableval = xno; then
8105 support_unicode3=yes 4199 support_unicode3=$enableval
8106 fi 4200 fi
8107fi; 4201fi;
8108 4202
8109# Check whether --enable-combining or --disable-combining was given. 4203# Check whether --enable-combining or --disable-combining was given.
8110if test "${enable_combining+set}" = set; then 4204if test "${enable_combining+set}" = set; then
8111 enableval="$enable_combining" 4205 enableval="$enable_combining"
8112 if test x$enableval = xyes -o x$enableval = xno; then 4206 if test x$enableval = xyes -o x$enableval = xno; then
8113 support_combining=yes 4207 support_combining=$enableval
8114 fi 4208 fi
8115fi; 4209fi;
8116 4210
8117# Check whether --enable-xft or --disable-xft was given. 4211# Check whether --enable-xft or --disable-xft was given.
8118if test "${enable_xft+set}" = set; then 4212if test "${enable_xft+set}" = set; then
8119 enableval="$enable_xft" 4213 enableval="$enable_xft"
8120 if test x$enableval = xyes -o x$enableval = xno; then 4214 if test x$enableval = xyes -o x$enableval = xno; then
8121 support_xft=yes 4215 support_xft=$enableval
4216 fi
4217fi;
4218
4219# Check whether --enable-font-styles or --disable-font-styles was given.
4220if test "${enable_font_styles+set}" = set; then
4221 enableval="$enable_font_styles"
4222 if test x$enableval = xyes -o x$enableval = xno; then
4223 support_styles=$enableval
8122 fi 4224 fi
8123fi; 4225fi;
8124 4226
8125# Check whether --enable-utmp or --disable-utmp was given. 4227# Check whether --enable-utmp or --disable-utmp was given.
8126if test "${enable_utmp+set}" = set; then 4228if test "${enable_utmp+set}" = set; then
8168 if test x$enableval = xyes -o x$enableval = xno; then 4270 if test x$enableval = xyes -o x$enableval = xno; then
8169 support_tinting=$enableval 4271 support_tinting=$enableval
8170 fi 4272 fi
8171fi; 4273fi;
8172 4274
8173# Check whether --enable-menubar or --disable-menubar was given. 4275# Check whether --enable-fading or --disable-fading was given.
8174if test "${enable_menubar+set}" = set; then 4276if test "${enable_fading+set}" = set; then
8175 enableval="$enable_menubar" 4277 enableval="$enable_fading"
8176 if test x$enableval = xyes -o x$enableval = xno; then 4278 if test x$enableval = xyes -o x$enableval = xno; then
8177 support_menubar=$enableval 4279 support_fading=$enableval
8178 fi 4280 fi
8179fi; 4281fi;
8180 4282
8181# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4283# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8182if test "${enable_rxvt_scroll+set}" = set; then 4284if test "${enable_rxvt_scroll+set}" = set; then
8200 if test x$enableval = xyes -o x$enableval = xno; then 4302 if test x$enableval = xyes -o x$enableval = xno; then
8201 support_scroll_xterm=$enableval 4303 support_scroll_xterm=$enableval
8202 fi 4304 fi
8203fi; 4305fi;
8204 4306
4307# Check whether --enable-perl or --disable-perl was given.
4308if test "${enable_perl+set}" = set; then
4309 enableval="$enable_perl"
4310 if test x$enableval = xyes -o x$enableval = xno; then
4311 support_perl=$enableval
4312 fi
4313fi;
4314
8205# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4315# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8206if test "${enable_plain_scroll+set}" = set; then 4316if test "${enable_plain_scroll+set}" = set; then
8207 enableval="$enable_plain_scroll" 4317 enableval="$enable_plain_scroll"
8208 if test x$enableval = xyes -o x$enableval = xno; then 4318 if test x$enableval = xyes -o x$enableval = xno; then
8209 support_scroll_plain=$enableval 4319 support_scroll_plain=$enableval
8210 fi 4320 fi
8211fi; 4321fi;
8212 4322
8213# Check whether --enable-half-shadow or --disable-half-shadow was given.
8214if test "${enable_half_shadow+set}" = set; then
8215 enableval="$enable_half_shadow"
8216 if test x$enableval = xyes; then
8217
8218cat >>confdefs.h <<\_ACEOF
8219#define HALFSHADOW 1
8220_ACEOF
8221
8222 fi
8223fi;
8224 4323
8225 4324
8226# Check whether --with-codesets or --without-codesets was given. 4325# Check whether --with-codesets or --without-codesets was given.
8227if test "${with_codesets+set}" = set; then 4326if test "${with_codesets+set}" = set; then
8228 withval="$with_codesets" 4327 withval="$with_codesets"
8235 if test x$enableval = xyes -o x$enableval = xno; then 4334 if test x$enableval = xyes -o x$enableval = xno; then
8236 support_xim=$enableval 4335 support_xim=$enableval
8237 fi 4336 fi
8238fi; 4337fi;
8239 4338
8240# Check whether --enable-ttygid or --disable-ttygid was given.
8241if test "${enable_ttygid+set}" = set; then
8242 enableval="$enable_ttygid"
8243 if test x$enableval = xyes; then
8244
8245cat >>confdefs.h <<\_ACEOF
8246#define TTY_GID_SUPPORT 1
8247_ACEOF
8248
8249 fi
8250fi;
8251
8252# Check whether --enable-backspace-key or --disable-backspace-key was given. 4339# Check whether --enable-backspace-key or --disable-backspace-key was given.
8253if test "${enable_backspace_key+set}" = set; then 4340if test "${enable_backspace_key+set}" = set; then
8254 enableval="$enable_backspace_key" 4341 enableval="$enable_backspace_key"
8255 if test x$enableval = xno; then 4342 if test x$enableval = xno; then
8256 4343
8283_ACEOF 4370_ACEOF
8284 4371
8285 fi 4372 fi
8286fi; 4373fi;
8287 4374
8288# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 4375# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8289if test "${enable_xgetdefault+set}" = set; then 4376if test "${enable_8bitctrls+set}" = set; then
8290 enableval="$enable_xgetdefault" 4377 enableval="$enable_8bitctrls"
8291 if test x$enableval = xyes; then 4378 if test x$enableval = xyes -o x$enableval = xno; then
8292 4379 support_8bitctrls=$enableval
8293cat >>confdefs.h <<\_ACEOF
8294#define USE_XGETDEFAULT 1
8295_ACEOF
8296
8297 fi 4380 fi
8298fi; 4381fi;
8299 4382
8300RESFALLBACK=Rxvt 4383RESFALLBACK=Rxvt
8301# Check whether --enable-fallback or --disable-fallback was given. 4384# Check whether --enable-fallback or --disable-fallback was given.
8348if test "${with_name+set}" = set; then 4431if test "${with_name+set}" = set; then
8349 withval="$with_name" 4432 withval="$with_name"
8350 RXVTNAME="$withval" 4433 RXVTNAME="$withval"
8351fi; 4434fi;
8352 4435
4436cat >>confdefs.h <<_ACEOF
4437#define RXVTNAME "$RXVTNAME"
4438_ACEOF
4439
4440
8353RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4441RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8354 4442
8355
8356# Check whether --enable-strings or --disable-strings was given.
8357if test "${enable_strings+set}" = set; then
8358 enableval="$enable_strings"
8359 if test x$enableval = xyes -o x$enableval = xno; then
8360 support_addstrings=$enableval
8361 fi
8362fi;
8363 4443
8364# Check whether --enable-swapscreen or --disable-swapscreen was given. 4444# Check whether --enable-swapscreen or --disable-swapscreen was given.
8365if test "${enable_swapscreen+set}" = set; then 4445if test "${enable_swapscreen+set}" = set; then
8366 enableval="$enable_swapscreen" 4446 enableval="$enable_swapscreen"
8367 if test x$enableval = xno; then 4447 if test x$enableval = xno; then
8368 4448
8369cat >>confdefs.h <<\_ACEOF 4449cat >>confdefs.h <<\_ACEOF
8370#define NO_SECONDARY_SCREEN 1 4450#define NO_SECONDARY_SCREEN 1
8371_ACEOF 4451_ACEOF
8372 4452
4453 fi
4454fi;
4455
4456# Check whether --enable-iso14755 or --disable-iso14755 was given.
4457if test "${enable_iso14755+set}" = set; then
4458 enableval="$enable_iso14755"
4459 if test x$enableval = xyes -o x$enableval = xno; then
4460 support_iso14755=$enableval
8373 fi 4461 fi
8374fi; 4462fi;
8375 4463
8376# Check whether --enable-frills or --disable-frills was given. 4464# Check whether --enable-frills or --disable-frills was given.
8377if test "${enable_frills+set}" = set; then 4465if test "${enable_frills+set}" = set; then
8378 enableval="$enable_frills" 4466 enableval="$enable_frills"
8379 if test x$enableval = xyes -o x$enableval = xno; then 4467 if test x$enableval = xyes -o x$enableval = xno; then
8380 support_frills=$enableval 4468 support_frills=$enableval
8381 fi
8382fi;
8383
8384# Check whether --enable-linespace or --disable-linespace was given.
8385if test "${enable_linespace+set}" = set; then
8386 enableval="$enable_linespace"
8387 if test x$enableval = xyes -o x$enableval = xno; then
8388 support_linespace=$enableval
8389 fi 4469 fi
8390fi; 4470fi;
8391 4471
8392# Check whether --enable-24bit or --disable-24bit was given. 4472# Check whether --enable-24bit or --disable-24bit was given.
8393if test "${enable_24bit+set}" = set; then 4473if test "${enable_24bit+set}" = set; then
8461_ACEOF 4541_ACEOF
8462 4542
8463 fi 4543 fi
8464fi; 4544fi;
8465 4545
8466# Check whether --enable-256-color or --disable-256-color was given.
8467if test "${enable_256_color+set}" = set; then
8468 enableval="$enable_256_color"
8469 if test x$enableval = xyes; then
8470
8471cat >>confdefs.h <<\_ACEOF
8472#define TTY_256COLOR 1
8473_ACEOF
8474
8475 fi
8476fi;
8477
8478# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8479if test "${enable_cursor_blink+set}" = set; then
8480 enableval="$enable_cursor_blink"
8481 if test x$enableval = xyes -o x$enableval = xno; then
8482 support_cursor_blink=$enableval
8483 fi
8484fi;
8485
8486# Check whether --enable-text-blink or --disable-text-blink was given. 4546# Check whether --enable-text-blink or --disable-text-blink was given.
8487if test "${enable_text_blink+set}" = set; then 4547if test "${enable_text_blink+set}" = set; then
8488 enableval="$enable_text_blink" 4548 enableval="$enable_text_blink"
8489 if test x$enableval = xyes -o x$enableval = xno; then 4549 if test x$enableval = xyes -o x$enableval = xno; then
8490 support_text_blink=$enableval 4550 support_text_blink=$enableval
8523_ACEOF 4583_ACEOF
8524 terminfo="$withval" 4584 terminfo="$withval"
8525 fi 4585 fi
8526fi; 4586fi;
8527 4587
8528
8529
8530cat >>confdefs.h <<\_ACEOF
8531#define PROTOTYPES 1
8532_ACEOF
8533
8534
8535if test -z "$CFLAGS"; then
8536 if test -z "$CCOPTS"; then
8537 CCOPTS='-O'
8538 fi
8539 CFLAGS="$CCOPTS"
8540fi
8541 4588
8542# Extract the first word of "mv", so it can be a program name with args. 4589# Extract the first word of "mv", so it can be a program name with args.
8543set dummy mv; ac_word=$2 4590set dummy mv; ac_word=$2
8544echo "$as_me:$LINENO: checking for $ac_word" >&5 4591echo "$as_me:$LINENO: checking for $ac_word" >&5
8545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8817else 4864else
8818 echo "$as_me:$LINENO: result: no" >&5 4865 echo "$as_me:$LINENO: result: no" >&5
8819echo "${ECHO_T}no" >&6 4866echo "${ECHO_T}no" >&6
8820fi 4867fi
8821 4868
8822# Extract the first word of "tbl", so it can be a program name with args. 4869# Extract the first word of "tic", so it can be a program name with args.
8823set dummy tbl; ac_word=$2 4870set dummy tic; ac_word=$2
8824echo "$as_me:$LINENO: checking for $ac_word" >&5 4871echo "$as_me:$LINENO: checking for $ac_word" >&5
8825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8826if test "${ac_cv_path_TBL+set}" = set; then 4873if test "${ac_cv_path_TIC+set}" = set; then
8827 echo $ECHO_N "(cached) $ECHO_C" >&6 4874 echo $ECHO_N "(cached) $ECHO_C" >&6
8828else 4875else
8829 case $TBL in 4876 case $TIC in
8830 [\\/]* | ?:[\\/]*) 4877 [\\/]* | ?:[\\/]*)
8831 ac_cv_path_TBL="$TBL" # Let the user override the test with a path. 4878 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8832 ;; 4879 ;;
8833 *) 4880 *)
8834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8835for as_dir in $PATH 4882for as_dir in $PATH
8836do 4883do
8837 IFS=$as_save_IFS 4884 IFS=$as_save_IFS
8838 test -z "$as_dir" && as_dir=. 4885 test -z "$as_dir" && as_dir=.
8839 for ac_exec_ext in '' $ac_executable_extensions; do 4886 for ac_exec_ext in '' $ac_executable_extensions; do
8840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8841 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" 4888 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
8842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8843 break 2 4890 break 2
8844 fi 4891 fi
8845done 4892done
8846done 4893done
8847 4894
8848 ;; 4895 ;;
8849esac 4896esac
8850fi 4897fi
8851TBL=$ac_cv_path_TBL 4898TIC=$ac_cv_path_TIC
8852 4899
8853if test -n "$TBL"; then 4900if test -n "$TIC"; then
8854 echo "$as_me:$LINENO: result: $TBL" >&5 4901 echo "$as_me:$LINENO: result: $TIC" >&5
8855echo "${ECHO_T}$TBL" >&6 4902echo "${ECHO_T}$TIC" >&6
8856else 4903else
8857 echo "$as_me:$LINENO: result: no" >&5 4904 echo "$as_me:$LINENO: result: no" >&5
8858echo "${ECHO_T}no" >&6 4905echo "${ECHO_T}no" >&6
8859fi 4906fi
8860 4907
8861 4908
4909
4910
4911ac_ext=cc
4912ac_cpp='$CXXCPP $CPPFLAGS'
4913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4916echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4917echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4918if test -z "$CXXCPP"; then
4919 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921else
4922 # Double quotes because CXXCPP needs to be expanded
4923 for CXXCPP in "$CXX -E" "/lib/cpp"
4924 do
4925 ac_preproc_ok=false
4926for ac_cxx_preproc_warn_flag in '' yes
4927do
4928 # Use a header file that comes with gcc, so configuring glibc
4929 # with a fresh cross-compiler works.
4930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4931 # <limits.h> exists even on freestanding compilers.
4932 # On the NeXT, cc -E runs the code through the compiler's parser,
4933 # not just through cpp. "Syntax error" is here to catch this case.
4934 cat >conftest.$ac_ext <<_ACEOF
4935/* confdefs.h. */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h. */
4940#ifdef __STDC__
4941# include <limits.h>
4942#else
4943# include <assert.h>
4944#endif
4945 Syntax error
4946_ACEOF
4947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } >/dev/null; then
4955 if test -s conftest.err; then
4956 ac_cpp_err=$ac_cxx_preproc_warn_flag
4957 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4958 else
4959 ac_cpp_err=
4960 fi
4961else
4962 ac_cpp_err=yes
4963fi
4964if test -z "$ac_cpp_err"; then
4965 :
4966else
4967 echo "$as_me: failed program was:" >&5
4968sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 # Broken: fails on valid input.
4971continue
4972fi
4973rm -f conftest.err conftest.$ac_ext
4974
4975 # OK, works on sane cases. Now check whether non-existent headers
4976 # can be detected and how.
4977 cat >conftest.$ac_ext <<_ACEOF
4978/* confdefs.h. */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h. */
4983#include <ac_nonexistent.h>
4984_ACEOF
4985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } >/dev/null; then
4993 if test -s conftest.err; then
4994 ac_cpp_err=$ac_cxx_preproc_warn_flag
4995 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4996 else
4997 ac_cpp_err=
4998 fi
4999else
5000 ac_cpp_err=yes
5001fi
5002if test -z "$ac_cpp_err"; then
5003 # Broken: success on invalid input.
5004continue
5005else
5006 echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 # Passes both tests.
5010ac_preproc_ok=:
5011break
5012fi
5013rm -f conftest.err conftest.$ac_ext
5014
5015done
5016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5017rm -f conftest.err conftest.$ac_ext
5018if $ac_preproc_ok; then
5019 break
5020fi
5021
5022 done
5023 ac_cv_prog_CXXCPP=$CXXCPP
5024
5025fi
5026 CXXCPP=$ac_cv_prog_CXXCPP
5027else
5028 ac_cv_prog_CXXCPP=$CXXCPP
5029fi
5030echo "$as_me:$LINENO: result: $CXXCPP" >&5
5031echo "${ECHO_T}$CXXCPP" >&6
5032ac_preproc_ok=false
5033for ac_cxx_preproc_warn_flag in '' yes
5034do
5035 # Use a header file that comes with gcc, so configuring glibc
5036 # with a fresh cross-compiler works.
5037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5038 # <limits.h> exists even on freestanding compilers.
5039 # On the NeXT, cc -E runs the code through the compiler's parser,
5040 # not just through cpp. "Syntax error" is here to catch this case.
5041 cat >conftest.$ac_ext <<_ACEOF
5042/* confdefs.h. */
5043_ACEOF
5044cat confdefs.h >>conftest.$ac_ext
5045cat >>conftest.$ac_ext <<_ACEOF
5046/* end confdefs.h. */
5047#ifdef __STDC__
5048# include <limits.h>
5049#else
5050# include <assert.h>
5051#endif
5052 Syntax error
5053_ACEOF
5054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } >/dev/null; then
5062 if test -s conftest.err; then
5063 ac_cpp_err=$ac_cxx_preproc_warn_flag
5064 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5065 else
5066 ac_cpp_err=
5067 fi
5068else
5069 ac_cpp_err=yes
5070fi
5071if test -z "$ac_cpp_err"; then
5072 :
5073else
5074 echo "$as_me: failed program was:" >&5
5075sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 # Broken: fails on valid input.
5078continue
5079fi
5080rm -f conftest.err conftest.$ac_ext
5081
5082 # OK, works on sane cases. Now check whether non-existent headers
5083 # can be detected and how.
5084 cat >conftest.$ac_ext <<_ACEOF
5085/* confdefs.h. */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h. */
5090#include <ac_nonexistent.h>
5091_ACEOF
5092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } >/dev/null; then
5100 if test -s conftest.err; then
5101 ac_cpp_err=$ac_cxx_preproc_warn_flag
5102 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5103 else
5104 ac_cpp_err=
5105 fi
5106else
5107 ac_cpp_err=yes
5108fi
5109if test -z "$ac_cpp_err"; then
5110 # Broken: success on invalid input.
5111continue
5112else
5113 echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 # Passes both tests.
5117ac_preproc_ok=:
5118break
5119fi
5120rm -f conftest.err conftest.$ac_ext
5121
5122done
5123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124rm -f conftest.err conftest.$ac_ext
5125if $ac_preproc_ok; then
5126 :
5127else
5128 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5129See \`config.log' for more details." >&5
5130echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5131See \`config.log' for more details." >&2;}
5132 { (exit 1); exit 1; }; }
5133fi
5134
5135ac_ext=cc
5136ac_cpp='$CXXCPP $CPPFLAGS'
5137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8862 5140
8863 5141
8864 5142
8865if test "x$ac_path_x_has_been_run" != xyes; then 5143if test "x$ac_path_x_has_been_run" != xyes; then
8866 echo "$as_me:$LINENO: checking for X" >&5 5144 echo "$as_me:$LINENO: checking for X" >&5
8965/* confdefs.h. */ 5243/* confdefs.h. */
8966_ACEOF 5244_ACEOF
8967cat confdefs.h >>conftest.$ac_ext 5245cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF 5246cat >>conftest.$ac_ext <<_ACEOF
8969/* end confdefs.h. */ 5247/* end confdefs.h. */
8970#include <X11/Intrinsic.h> 5248#include <X11/Xlib.h>
8971_ACEOF 5249_ACEOF
8972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8974 ac_status=$? 5252 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err 5253 grep -v '^ *+' conftest.er1 >conftest.err
8992else 5270else
8993 echo "$as_me: failed program was:" >&5 5271 echo "$as_me: failed program was:" >&5
8994sed 's/^/| /' conftest.$ac_ext >&5 5272sed 's/^/| /' conftest.$ac_ext >&5
8995 5273
8996 for ac_dir in $ac_x_header_dirs; do 5274 for ac_dir in $ac_x_header_dirs; do
8997 if test -r "$ac_dir/X11/Intrinsic.h"; then 5275 if test -r "$ac_dir/X11/Xlib.h"; then
8998 ac_x_includes=$ac_dir 5276 ac_x_includes=$ac_dir
8999 break 5277 break
9000 fi 5278 fi
9001done 5279done
9002fi 5280fi
9006if test "$ac_x_libraries" = no; then 5284if test "$ac_x_libraries" = no; then
9007 # Check for the libraries. 5285 # Check for the libraries.
9008 # See if we find them without any special options. 5286 # See if we find them without any special options.
9009 # Don't add to $LIBS permanently. 5287 # Don't add to $LIBS permanently.
9010 ac_save_LIBS=$LIBS 5288 ac_save_LIBS=$LIBS
9011 LIBS="-lXt $LIBS" 5289 LIBS="-lX11 $LIBS"
9012 cat >conftest.$ac_ext <<_ACEOF 5290 cat >conftest.$ac_ext <<_ACEOF
9013/* confdefs.h. */ 5291/* confdefs.h. */
9014_ACEOF 5292_ACEOF
9015cat confdefs.h >>conftest.$ac_ext 5293cat confdefs.h >>conftest.$ac_ext
9016cat >>conftest.$ac_ext <<_ACEOF 5294cat >>conftest.$ac_ext <<_ACEOF
9017/* end confdefs.h. */ 5295/* end confdefs.h. */
9018#include <X11/Intrinsic.h> 5296#include <X11/Xlib.h>
9019int 5297int
9020main () 5298main ()
9021{ 5299{
9022XtMalloc (0) 5300XrmInitialize ()
9023 ; 5301 ;
9024 return 0; 5302 return 0;
9025} 5303}
9026_ACEOF 5304_ACEOF
9027rm -f conftest.$ac_objext conftest$ac_exeext 5305rm -f conftest.$ac_objext conftest$ac_exeext
9055LIBS=$ac_save_LIBS 5333LIBS=$ac_save_LIBS
9056for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5334for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9057do 5335do
9058 # Don't even attempt the hair of trying to link an X program! 5336 # Don't even attempt the hair of trying to link an X program!
9059 for ac_extension in a so sl; do 5337 for ac_extension in a so sl; do
9060 if test -r $ac_dir/libXt.$ac_extension; then 5338 if test -r $ac_dir/libX11.$ac_extension; then
9061 ac_x_libraries=$ac_dir 5339 ac_x_libraries=$ac_dir
9062 break 2 5340 break 2
9063 fi 5341 fi
9064 done 5342 done
9065done 5343done
10667#define HAVE_SYS_WAIT_H 1 6945#define HAVE_SYS_WAIT_H 1
10668_ACEOF 6946_ACEOF
10669 6947
10670fi 6948fi
10671 6949
6950echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6951echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6952if test "${ac_cv_header_stdc+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961#include <stdlib.h>
6962#include <stdarg.h>
6963#include <string.h>
6964#include <float.h>
6965
6966int
6967main ()
6968{
6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
6974rm -f conftest.$ac_objext
6975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6976 (eval $ac_compile) 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } &&
6983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; } &&
6989 { ac_try='test -s conftest.$ac_objext'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6995 ac_cv_header_stdc=yes
6996else
6997 echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000ac_cv_header_stdc=no
7001fi
7002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003
7004if test $ac_cv_header_stdc = yes; then
7005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7006 cat >conftest.$ac_ext <<_ACEOF
7007/* confdefs.h. */
7008_ACEOF
7009cat confdefs.h >>conftest.$ac_ext
7010cat >>conftest.$ac_ext <<_ACEOF
7011/* end confdefs.h. */
7012#include <string.h>
7013
7014_ACEOF
7015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7016 $EGREP "memchr" >/dev/null 2>&1; then
7017 :
7018else
7019 ac_cv_header_stdc=no
7020fi
7021rm -f conftest*
7022
7023fi
7024
7025if test $ac_cv_header_stdc = yes; then
7026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7027 cat >conftest.$ac_ext <<_ACEOF
7028/* confdefs.h. */
7029_ACEOF
7030cat confdefs.h >>conftest.$ac_ext
7031cat >>conftest.$ac_ext <<_ACEOF
7032/* end confdefs.h. */
7033#include <stdlib.h>
7034
7035_ACEOF
7036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7037 $EGREP "free" >/dev/null 2>&1; then
7038 :
7039else
7040 ac_cv_header_stdc=no
7041fi
7042rm -f conftest*
7043
7044fi
7045
7046if test $ac_cv_header_stdc = yes; then
7047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7048 if test "$cross_compiling" = yes; then
7049 :
7050else
7051 cat >conftest.$ac_ext <<_ACEOF
7052/* confdefs.h. */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h. */
7057#include <ctype.h>
7058#if ((' ' & 0x0FF) == 0x020)
7059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7061#else
7062# define ISLOWER(c) \
7063 (('a' <= (c) && (c) <= 'i') \
7064 || ('j' <= (c) && (c) <= 'r') \
7065 || ('s' <= (c) && (c) <= 'z'))
7066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7067#endif
7068
7069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7070int
7071main ()
7072{
7073 int i;
7074 for (i = 0; i < 256; i++)
7075 if (XOR (islower (i), ISLOWER (i))
7076 || toupper (i) != TOUPPER (i))
7077 exit(2);
7078 exit (0);
7079}
7080_ACEOF
7081rm -f conftest$ac_exeext
7082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7083 (eval $ac_link) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 :
7093else
7094 echo "$as_me: program exited with status $ac_status" >&5
7095echo "$as_me: failed program was:" >&5
7096sed 's/^/| /' conftest.$ac_ext >&5
7097
7098( exit $ac_status )
7099ac_cv_header_stdc=no
7100fi
7101rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7102fi
7103fi
7104fi
7105echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7106echo "${ECHO_T}$ac_cv_header_stdc" >&6
7107if test $ac_cv_header_stdc = yes; then
7108
7109cat >>confdefs.h <<\_ACEOF
7110#define STDC_HEADERS 1
7111_ACEOF
7112
7113fi
7114
7115# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7126 inttypes.h stdint.h unistd.h
7127do
7128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7129echo "$as_me:$LINENO: checking for $ac_header" >&5
7130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7131if eval "test \"\${$as_ac_Header+set}\" = set"; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134 cat >conftest.$ac_ext <<_ACEOF
7135/* confdefs.h. */
7136_ACEOF
7137cat confdefs.h >>conftest.$ac_ext
7138cat >>conftest.$ac_ext <<_ACEOF
7139/* end confdefs.h. */
7140$ac_includes_default
7141
7142#include <$ac_header>
7143_ACEOF
7144rm -f conftest.$ac_objext
7145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146 (eval $ac_compile) 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } &&
7153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; } &&
7159 { ac_try='test -s conftest.$ac_objext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 (eval $ac_try) 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 eval "$as_ac_Header=yes"
7166else
7167 echo "$as_me: failed program was:" >&5
7168sed 's/^/| /' conftest.$ac_ext >&5
7169
7170eval "$as_ac_Header=no"
7171fi
7172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7173fi
7174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7176if test `eval echo '${'$as_ac_Header'}'` = yes; then
7177 cat >>confdefs.h <<_ACEOF
7178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7179_ACEOF
7180
7181fi
7182
7183done
10672 7184
10673 7185
10674 7186
10675 7187
10676 7188
10689 7201
10690 7202
10691for ac_header in \ 7203for ac_header in \
10692 assert.h \ 7204 assert.h \
10693 fcntl.h \ 7205 fcntl.h \
10694 grp.h \
10695 libc.h \
10696 lastlog.h \
10697 stdarg.h \ 7206 stdarg.h \
10698 stdlib.h \ 7207 stdlib.h \
10699 string.h \ 7208 string.h \
10700 termios.h \ 7209 termios.h \
10701 unistd.h \ 7210 unistd.h \
10703 sys/ioctl.h \ 7212 sys/ioctl.h \
10704 sys/select.h \ 7213 sys/select.h \
10705 sys/sockio.h \ 7214 sys/sockio.h \
10706 sys/strredir.h \ 7215 sys/strredir.h \
10707 sys/time.h \ 7216 sys/time.h \
10708 utmp.h \ 7217 stdint.h \
10709 utmpx.h \ 7218 wchar.h \
10710 stdint.h \ 7219 cwchar \
7220 clocale \
10711 7221
10712do 7222do
10713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10714if eval "test \"\${$as_ac_Header+set}\" = set"; then 7224if eval "test \"\${$as_ac_Header+set}\" = set"; then
10715 echo "$as_me:$LINENO: checking for $ac_header" >&5 7225 echo "$as_me:$LINENO: checking for $ac_header" >&5
11499_ACEOF 8009_ACEOF
11500 8010
11501fi 8011fi
11502 8012
11503 8013
11504
11505echo "$as_me:$LINENO: checking for char" >&5
11506echo $ECHO_N "checking for char... $ECHO_C" >&6
11507if test "${ac_cv_type_char+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509else
11510 cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h. */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h. */
11516$ac_includes_default
11517int
11518main ()
11519{
11520if ((char *) 0)
11521 return 0;
11522if (sizeof (char))
11523 return 0;
11524 ;
11525 return 0;
11526}
11527_ACEOF
11528rm -f conftest.$ac_objext
11529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530 (eval $ac_compile) 2>conftest.er1
11531 ac_status=$?
11532 grep -v '^ *+' conftest.er1 >conftest.err
11533 rm -f conftest.er1
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11539 (eval $ac_try) 2>&5
11540 ac_status=$?
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); }; } &&
11543 { ac_try='test -s conftest.$ac_objext'
11544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545 (eval $ac_try) 2>&5
11546 ac_status=$?
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; }; then
11549 ac_cv_type_char=yes
11550else
11551 echo "$as_me: failed program was:" >&5
11552sed 's/^/| /' conftest.$ac_ext >&5
11553
11554ac_cv_type_char=no
11555fi
11556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11557fi
11558echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11559echo "${ECHO_T}$ac_cv_type_char" >&6
11560
11561echo "$as_me:$LINENO: checking size of char" >&5
11562echo $ECHO_N "checking size of char... $ECHO_C" >&6
11563if test "${ac_cv_sizeof_char+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565else
11566 if test "$ac_cv_type_char" = yes; then
11567 # The cast to unsigned long works around a bug in the HP C Compiler
11568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11570 # This bug is HP SR number 8606223364.
11571 if test "$cross_compiling" = yes; then
11572 # Depending upon the size, compute the lo and hi bounds.
11573cat >conftest.$ac_ext <<_ACEOF
11574/* confdefs.h. */
11575_ACEOF
11576cat confdefs.h >>conftest.$ac_ext
11577cat >>conftest.$ac_ext <<_ACEOF
11578/* end confdefs.h. */
11579$ac_includes_default
11580int
11581main ()
11582{
11583static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11584test_array [0] = 0
11585
11586 ;
11587 return 0;
11588}
11589_ACEOF
11590rm -f conftest.$ac_objext
11591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11592 (eval $ac_compile) 2>conftest.er1
11593 ac_status=$?
11594 grep -v '^ *+' conftest.er1 >conftest.err
11595 rm -f conftest.er1
11596 cat conftest.err >&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } &&
11599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601 (eval $ac_try) 2>&5
11602 ac_status=$?
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); }; } &&
11605 { ac_try='test -s conftest.$ac_objext'
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; }; then
11611 ac_lo=0 ac_mid=0
11612 while :; do
11613 cat >conftest.$ac_ext <<_ACEOF
11614/* confdefs.h. */
11615_ACEOF
11616cat confdefs.h >>conftest.$ac_ext
11617cat >>conftest.$ac_ext <<_ACEOF
11618/* end confdefs.h. */
11619$ac_includes_default
11620int
11621main ()
11622{
11623static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11624test_array [0] = 0
11625
11626 ;
11627 return 0;
11628}
11629_ACEOF
11630rm -f conftest.$ac_objext
11631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11632 (eval $ac_compile) 2>conftest.er1
11633 ac_status=$?
11634 grep -v '^ *+' conftest.er1 >conftest.err
11635 rm -f conftest.er1
11636 cat conftest.err >&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest.$ac_objext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_hi=$ac_mid; break
11652else
11653 echo "$as_me: failed program was:" >&5
11654sed 's/^/| /' conftest.$ac_ext >&5
11655
11656ac_lo=`expr $ac_mid + 1`
11657 if test $ac_lo -le $ac_mid; then
11658 ac_lo= ac_hi=
11659 break
11660 fi
11661 ac_mid=`expr 2 '*' $ac_mid + 1`
11662fi
11663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11664 done
11665else
11666 echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
11669cat >conftest.$ac_ext <<_ACEOF
11670/* confdefs.h. */
11671_ACEOF
11672cat confdefs.h >>conftest.$ac_ext
11673cat >>conftest.$ac_ext <<_ACEOF
11674/* end confdefs.h. */
11675$ac_includes_default
11676int
11677main ()
11678{
11679static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11680test_array [0] = 0
11681
11682 ;
11683 return 0;
11684}
11685_ACEOF
11686rm -f conftest.$ac_objext
11687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688 (eval $ac_compile) 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_hi=-1 ac_mid=-1
11708 while :; do
11709 cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715$ac_includes_default
11716int
11717main ()
11718{
11719static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11720test_array [0] = 0
11721
11722 ;
11723 return 0;
11724}
11725_ACEOF
11726rm -f conftest.$ac_objext
11727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11728 (eval $ac_compile) 2>conftest.er1
11729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11738 ac_status=$?
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; } &&
11741 { ac_try='test -s conftest.$ac_objext'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11744 ac_status=$?
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; }; then
11747 ac_lo=$ac_mid; break
11748else
11749 echo "$as_me: failed program was:" >&5
11750sed 's/^/| /' conftest.$ac_ext >&5
11751
11752ac_hi=`expr '(' $ac_mid ')' - 1`
11753 if test $ac_mid -le $ac_hi; then
11754 ac_lo= ac_hi=
11755 break
11756 fi
11757 ac_mid=`expr 2 '*' $ac_mid`
11758fi
11759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11760 done
11761else
11762 echo "$as_me: failed program was:" >&5
11763sed 's/^/| /' conftest.$ac_ext >&5
11764
11765ac_lo= ac_hi=
11766fi
11767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11768fi
11769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11770# Binary search between lo and hi bounds.
11771while test "x$ac_lo" != "x$ac_hi"; do
11772 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11773 cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779$ac_includes_default
11780int
11781main ()
11782{
11783static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11784test_array [0] = 0
11785
11786 ;
11787 return 0;
11788}
11789_ACEOF
11790rm -f conftest.$ac_objext
11791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11792 (eval $ac_compile) 2>conftest.er1
11793 ac_status=$?
11794 grep -v '^ *+' conftest.er1 >conftest.err
11795 rm -f conftest.er1
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } &&
11799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11808 ac_status=$?
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_hi=$ac_mid
11812else
11813 echo "$as_me: failed program was:" >&5
11814sed 's/^/| /' conftest.$ac_ext >&5
11815
11816ac_lo=`expr '(' $ac_mid ')' + 1`
11817fi
11818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11819done
11820case $ac_lo in
11821?*) ac_cv_sizeof_char=$ac_lo;;
11822'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11823See \`config.log' for more details." >&5
11824echo "$as_me: error: cannot compute sizeof (char), 77
11825See \`config.log' for more details." >&2;}
11826 { (exit 1); exit 1; }; } ;;
11827esac
11828else
11829 if test "$cross_compiling" = yes; then
11830 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11831echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11832 { (exit 1); exit 1; }; }
11833else
11834 cat >conftest.$ac_ext <<_ACEOF
11835/* confdefs.h. */
11836_ACEOF
11837cat confdefs.h >>conftest.$ac_ext
11838cat >>conftest.$ac_ext <<_ACEOF
11839/* end confdefs.h. */
11840$ac_includes_default
11841long longval () { return (long) (sizeof (char)); }
11842unsigned long ulongval () { return (long) (sizeof (char)); }
11843#include <stdio.h>
11844#include <stdlib.h>
11845int
11846main ()
11847{
11848
11849 FILE *f = fopen ("conftest.val", "w");
11850 if (! f)
11851 exit (1);
11852 if (((long) (sizeof (char))) < 0)
11853 {
11854 long i = longval ();
11855 if (i != ((long) (sizeof (char))))
11856 exit (1);
11857 fprintf (f, "%ld\n", i);
11858 }
11859 else
11860 {
11861 unsigned long i = ulongval ();
11862 if (i != ((long) (sizeof (char))))
11863 exit (1);
11864 fprintf (f, "%lu\n", i);
11865 }
11866 exit (ferror (f) || fclose (f) != 0);
11867
11868 ;
11869 return 0;
11870}
11871_ACEOF
11872rm -f conftest$ac_exeext
11873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_sizeof_char=`cat conftest.val`
11884else
11885 echo "$as_me: program exited with status $ac_status" >&5
11886echo "$as_me: failed program was:" >&5
11887sed 's/^/| /' conftest.$ac_ext >&5
11888
11889( exit $ac_status )
11890{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11891See \`config.log' for more details." >&5
11892echo "$as_me: error: cannot compute sizeof (char), 77
11893See \`config.log' for more details." >&2;}
11894 { (exit 1); exit 1; }; }
11895fi
11896rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11897fi
11898fi
11899rm -f conftest.val
11900else
11901 ac_cv_sizeof_char=0
11902fi
11903fi
11904echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11905echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11906cat >>confdefs.h <<_ACEOF
11907#define SIZEOF_CHAR $ac_cv_sizeof_char
11908_ACEOF
11909
11910
11911echo "$as_me:$LINENO: checking for short" >&5 8014echo "$as_me:$LINENO: checking for short" >&5
11912echo $ECHO_N "checking for short... $ECHO_C" >&6 8015echo $ECHO_N "checking for short... $ECHO_C" >&6
11913if test "${ac_cv_type_short+set}" = set; then 8016if test "${ac_cv_type_short+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6 8017 echo $ECHO_N "(cached) $ECHO_C" >&6
11915else 8018else
12718cat >>confdefs.h <<_ACEOF 8821cat >>confdefs.h <<_ACEOF
12719#define SIZEOF_INT $ac_cv_sizeof_int 8822#define SIZEOF_INT $ac_cv_sizeof_int
12720_ACEOF 8823_ACEOF
12721 8824
12722 8825
12723echo "$as_me:$LINENO: checking for long" >&5
12724echo $ECHO_N "checking for long... $ECHO_C" >&6
12725if test "${ac_cv_type_long+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12727else
12728 cat >conftest.$ac_ext <<_ACEOF
12729/* confdefs.h. */
12730_ACEOF
12731cat confdefs.h >>conftest.$ac_ext
12732cat >>conftest.$ac_ext <<_ACEOF
12733/* end confdefs.h. */
12734$ac_includes_default
12735int
12736main ()
12737{
12738if ((long *) 0)
12739 return 0;
12740if (sizeof (long))
12741 return 0;
12742 ;
12743 return 0;
12744}
12745_ACEOF
12746rm -f conftest.$ac_objext
12747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12748 (eval $ac_compile) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } &&
12755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_cv_type_long=yes
12768else
12769 echo "$as_me: failed program was:" >&5
12770sed 's/^/| /' conftest.$ac_ext >&5
12771
12772ac_cv_type_long=no
12773fi
12774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12775fi
12776echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12777echo "${ECHO_T}$ac_cv_type_long" >&6
12778
12779echo "$as_me:$LINENO: checking size of long" >&5
12780echo $ECHO_N "checking size of long... $ECHO_C" >&6
12781if test "${ac_cv_sizeof_long+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783else
12784 if test "$ac_cv_type_long" = yes; then
12785 # The cast to unsigned long works around a bug in the HP C Compiler
12786 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12787 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12788 # This bug is HP SR number 8606223364.
12789 if test "$cross_compiling" = yes; then
12790 # Depending upon the size, compute the lo and hi bounds.
12791cat >conftest.$ac_ext <<_ACEOF
12792/* confdefs.h. */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h. */
12797$ac_includes_default
12798int
12799main ()
12800{
12801static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12802test_array [0] = 0
12803
12804 ;
12805 return 0;
12806}
12807_ACEOF
12808rm -f conftest.$ac_objext
12809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
12817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; } &&
12823 { ac_try='test -s conftest.$ac_objext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 ac_lo=0 ac_mid=0
12830 while :; do
12831 cat >conftest.$ac_ext <<_ACEOF
12832/* confdefs.h. */
12833_ACEOF
12834cat confdefs.h >>conftest.$ac_ext
12835cat >>conftest.$ac_ext <<_ACEOF
12836/* end confdefs.h. */
12837$ac_includes_default
12838int
12839main ()
12840{
12841static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12842test_array [0] = 0
12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext
12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
12857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 ac_hi=$ac_mid; break
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
12874ac_lo=`expr $ac_mid + 1`
12875 if test $ac_lo -le $ac_mid; then
12876 ac_lo= ac_hi=
12877 break
12878 fi
12879 ac_mid=`expr 2 '*' $ac_mid + 1`
12880fi
12881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12882 done
12883else
12884 echo "$as_me: failed program was:" >&5
12885sed 's/^/| /' conftest.$ac_ext >&5
12886
12887cat >conftest.$ac_ext <<_ACEOF
12888/* confdefs.h. */
12889_ACEOF
12890cat confdefs.h >>conftest.$ac_ext
12891cat >>conftest.$ac_ext <<_ACEOF
12892/* end confdefs.h. */
12893$ac_includes_default
12894int
12895main ()
12896{
12897static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12898test_array [0] = 0
12899
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext
12905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest.$ac_objext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_hi=-1 ac_mid=-1
12926 while :; do
12927 cat >conftest.$ac_ext <<_ACEOF
12928/* confdefs.h. */
12929_ACEOF
12930cat confdefs.h >>conftest.$ac_ext
12931cat >>conftest.$ac_ext <<_ACEOF
12932/* end confdefs.h. */
12933$ac_includes_default
12934int
12935main ()
12936{
12937static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12938test_array [0] = 0
12939
12940 ;
12941 return 0;
12942}
12943_ACEOF
12944rm -f conftest.$ac_objext
12945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946 (eval $ac_compile) 2>conftest.er1
12947 ac_status=$?
12948 grep -v '^ *+' conftest.er1 >conftest.err
12949 rm -f conftest.er1
12950 cat conftest.err >&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12956 ac_status=$?
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; } &&
12959 { ac_try='test -s conftest.$ac_objext'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; }; then
12965 ac_lo=$ac_mid; break
12966else
12967 echo "$as_me: failed program was:" >&5
12968sed 's/^/| /' conftest.$ac_ext >&5
12969
12970ac_hi=`expr '(' $ac_mid ')' - 1`
12971 if test $ac_mid -le $ac_hi; then
12972 ac_lo= ac_hi=
12973 break
12974 fi
12975 ac_mid=`expr 2 '*' $ac_mid`
12976fi
12977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12978 done
12979else
12980 echo "$as_me: failed program was:" >&5
12981sed 's/^/| /' conftest.$ac_ext >&5
12982
12983ac_lo= ac_hi=
12984fi
12985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12986fi
12987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12988# Binary search between lo and hi bounds.
12989while test "x$ac_lo" != "x$ac_hi"; do
12990 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12991 cat >conftest.$ac_ext <<_ACEOF
12992/* confdefs.h. */
12993_ACEOF
12994cat confdefs.h >>conftest.$ac_ext
12995cat >>conftest.$ac_ext <<_ACEOF
12996/* end confdefs.h. */
12997$ac_includes_default
12998int
12999main ()
13000{
13001static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13002test_array [0] = 0
13003
13004 ;
13005 return 0;
13006}
13007_ACEOF
13008rm -f conftest.$ac_objext
13009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13010 (eval $ac_compile) 2>conftest.er1
13011 ac_status=$?
13012 grep -v '^ *+' conftest.er1 >conftest.err
13013 rm -f conftest.er1
13014 cat conftest.err >&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); } &&
13017 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest.$ac_objext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_hi=$ac_mid
13030else
13031 echo "$as_me: failed program was:" >&5
13032sed 's/^/| /' conftest.$ac_ext >&5
13033
13034ac_lo=`expr '(' $ac_mid ')' + 1`
13035fi
13036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13037done
13038case $ac_lo in
13039?*) ac_cv_sizeof_long=$ac_lo;;
13040'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13041See \`config.log' for more details." >&5
13042echo "$as_me: error: cannot compute sizeof (long), 77
13043See \`config.log' for more details." >&2;}
13044 { (exit 1); exit 1; }; } ;;
13045esac
13046else
13047 if test "$cross_compiling" = yes; then
13048 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13049echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13050 { (exit 1); exit 1; }; }
13051else
13052 cat >conftest.$ac_ext <<_ACEOF
13053/* confdefs.h. */
13054_ACEOF
13055cat confdefs.h >>conftest.$ac_ext
13056cat >>conftest.$ac_ext <<_ACEOF
13057/* end confdefs.h. */
13058$ac_includes_default
13059long longval () { return (long) (sizeof (long)); }
13060unsigned long ulongval () { return (long) (sizeof (long)); }
13061#include <stdio.h>
13062#include <stdlib.h>
13063int
13064main ()
13065{
13066
13067 FILE *f = fopen ("conftest.val", "w");
13068 if (! f)
13069 exit (1);
13070 if (((long) (sizeof (long))) < 0)
13071 {
13072 long i = longval ();
13073 if (i != ((long) (sizeof (long))))
13074 exit (1);
13075 fprintf (f, "%ld\n", i);
13076 }
13077 else
13078 {
13079 unsigned long i = ulongval ();
13080 if (i != ((long) (sizeof (long))))
13081 exit (1);
13082 fprintf (f, "%lu\n", i);
13083 }
13084 exit (ferror (f) || fclose (f) != 0);
13085
13086 ;
13087 return 0;
13088}
13089_ACEOF
13090rm -f conftest$ac_exeext
13091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13092 (eval $ac_link) 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_cv_sizeof_long=`cat conftest.val`
13102else
13103 echo "$as_me: program exited with status $ac_status" >&5
13104echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
13107( exit $ac_status )
13108{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13109See \`config.log' for more details." >&5
13110echo "$as_me: error: cannot compute sizeof (long), 77
13111See \`config.log' for more details." >&2;}
13112 { (exit 1); exit 1; }; }
13113fi
13114rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13115fi
13116fi
13117rm -f conftest.val
13118else
13119 ac_cv_sizeof_long=0
13120fi
13121fi
13122echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13123echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13124cat >>confdefs.h <<_ACEOF
13125#define SIZEOF_LONG $ac_cv_sizeof_long
13126_ACEOF
13127
13128
13129echo "$as_me:$LINENO: checking for long long" >&5 8826echo "$as_me:$LINENO: checking for long long" >&5
13130echo $ECHO_N "checking for long long... $ECHO_C" >&6 8827echo $ECHO_N "checking for long long... $ECHO_C" >&6
13131if test "${ac_cv_type_long_long+set}" = set; then 8828if test "${ac_cv_type_long_long+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6 8829 echo $ECHO_N "(cached) $ECHO_C" >&6
13133else 8830else
13984 rxvt_cv_int16_t=yes 9681 rxvt_cv_int16_t=yes
13985else 9682else
13986 echo "$as_me: failed program was:" >&5 9683 echo "$as_me: failed program was:" >&5
13987sed 's/^/| /' conftest.$ac_ext >&5 9684sed 's/^/| /' conftest.$ac_ext >&5
13988 9685
13989if test $ac_cv_sizeof_char -ge 2; then 9686if test "$ac_cv_sizeof_char" -ge 2; then
13990 rxvt_cv_int16_t=" char" 9687 rxvt_cv_int16_t=" char"
13991else 9688else
13992 if test $ac_cv_sizeof_short -ge 2; then 9689 if test "$ac_cv_sizeof_short" -ge 2; then
13993 rxvt_cv_int16_t=" short" 9690 rxvt_cv_int16_t=" short"
13994 else 9691 else
13995 if test $ac_cv_sizeof_int -ge 2; then 9692 if test "$ac_cv_sizeof_int" -ge 2; then
13996 rxvt_cv_int16_t=" int" 9693 rxvt_cv_int16_t=" int"
13997 else 9694 else
13998 if test $ac_cv_sizeof_long -ge 2; then 9695 if test "$ac_cv_sizeof_long" -ge 2; then
13999 rxvt_cv_int16_t=" long" 9696 rxvt_cv_int16_t=" long"
14000 else 9697 else
14001 if test $ac_cv_sizeof_long_long -ge 2; then 9698 if test "$ac_cv_sizeof_long_long" -ge 2; then
14002 rxvt_cv_int16_t=" long long" 9699 rxvt_cv_int16_t=" long long"
14003 else 9700 else
14004 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9701 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14005 fi 9702 fi
14006 fi 9703 fi
14066 rxvt_cv_uint16_t=yes 9763 rxvt_cv_uint16_t=yes
14067else 9764else
14068 echo "$as_me: failed program was:" >&5 9765 echo "$as_me: failed program was:" >&5
14069sed 's/^/| /' conftest.$ac_ext >&5 9766sed 's/^/| /' conftest.$ac_ext >&5
14070 9767
14071if test $ac_cv_sizeof_char -ge 2; then 9768if test "$ac_cv_sizeof_char" -ge 2; then
14072 rxvt_cv_uint16_t="unsigned char" 9769 rxvt_cv_uint16_t="unsigned char"
14073else 9770else
14074 if test $ac_cv_sizeof_short -ge 2; then 9771 if test "$ac_cv_sizeof_short" -ge 2; then
14075 rxvt_cv_uint16_t="unsigned short" 9772 rxvt_cv_uint16_t="unsigned short"
14076 else 9773 else
14077 if test $ac_cv_sizeof_int -ge 2; then 9774 if test "$ac_cv_sizeof_int" -ge 2; then
14078 rxvt_cv_uint16_t="unsigned int" 9775 rxvt_cv_uint16_t="unsigned int"
14079 else 9776 else
14080 if test $ac_cv_sizeof_long -ge 2; then 9777 if test "$ac_cv_sizeof_long" -ge 2; then
14081 rxvt_cv_uint16_t="unsigned long" 9778 rxvt_cv_uint16_t="unsigned long"
14082 else 9779 else
14083 if test $ac_cv_sizeof_long_long -ge 2; then 9780 if test "$ac_cv_sizeof_long_long" -ge 2; then
14084 rxvt_cv_uint16_t="unsigned long long" 9781 rxvt_cv_uint16_t="unsigned long long"
14085 else 9782 else
14086 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9783 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14087 fi 9784 fi
14088 fi 9785 fi
14148 rxvt_cv_int32_t=yes 9845 rxvt_cv_int32_t=yes
14149else 9846else
14150 echo "$as_me: failed program was:" >&5 9847 echo "$as_me: failed program was:" >&5
14151sed 's/^/| /' conftest.$ac_ext >&5 9848sed 's/^/| /' conftest.$ac_ext >&5
14152 9849
14153if test $ac_cv_sizeof_char -ge 4; then 9850if test "$ac_cv_sizeof_char" -ge 4; then
14154 rxvt_cv_int32_t=" char" 9851 rxvt_cv_int32_t=" char"
14155else 9852else
14156 if test $ac_cv_sizeof_short -ge 4; then 9853 if test "$ac_cv_sizeof_short" -ge 4; then
14157 rxvt_cv_int32_t=" short" 9854 rxvt_cv_int32_t=" short"
14158 else 9855 else
14159 if test $ac_cv_sizeof_int -ge 4; then 9856 if test "$ac_cv_sizeof_int" -ge 4; then
14160 rxvt_cv_int32_t=" int" 9857 rxvt_cv_int32_t=" int"
14161 else 9858 else
14162 if test $ac_cv_sizeof_long -ge 4; then 9859 if test "$ac_cv_sizeof_long" -ge 4; then
14163 rxvt_cv_int32_t=" long" 9860 rxvt_cv_int32_t=" long"
14164 else 9861 else
14165 if test $ac_cv_sizeof_long_long -ge 4; then 9862 if test "$ac_cv_sizeof_long_long" -ge 4; then
14166 rxvt_cv_int32_t=" long long" 9863 rxvt_cv_int32_t=" long long"
14167 else 9864 else
14168 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9865 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14169 fi 9866 fi
14170 fi 9867 fi
14230 rxvt_cv_uint32_t=yes 9927 rxvt_cv_uint32_t=yes
14231else 9928else
14232 echo "$as_me: failed program was:" >&5 9929 echo "$as_me: failed program was:" >&5
14233sed 's/^/| /' conftest.$ac_ext >&5 9930sed 's/^/| /' conftest.$ac_ext >&5
14234 9931
14235if test $ac_cv_sizeof_char -ge 4; then 9932if test "$ac_cv_sizeof_char" -ge 4; then
14236 rxvt_cv_uint32_t="unsigned char" 9933 rxvt_cv_uint32_t="unsigned char"
14237else 9934else
14238 if test $ac_cv_sizeof_short -ge 4; then 9935 if test "$ac_cv_sizeof_short" -ge 4; then
14239 rxvt_cv_uint32_t="unsigned short" 9936 rxvt_cv_uint32_t="unsigned short"
14240 else 9937 else
14241 if test $ac_cv_sizeof_int -ge 4; then 9938 if test "$ac_cv_sizeof_int" -ge 4; then
14242 rxvt_cv_uint32_t="unsigned int" 9939 rxvt_cv_uint32_t="unsigned int"
14243 else 9940 else
14244 if test $ac_cv_sizeof_long -ge 4; then 9941 if test "$ac_cv_sizeof_long" -ge 4; then
14245 rxvt_cv_uint32_t="unsigned long" 9942 rxvt_cv_uint32_t="unsigned long"
14246 else 9943 else
14247 if test $ac_cv_sizeof_long_long -ge 4; then 9944 if test "$ac_cv_sizeof_long_long" -ge 4; then
14248 rxvt_cv_uint32_t="unsigned long long" 9945 rxvt_cv_uint32_t="unsigned long long"
14249 else 9946 else
14250 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9947 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14251 fi 9948 fi
14252 fi 9949 fi
14266 else 9963 else
14267 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9964 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14268 fi 9965 fi
14269fi 9966fi
14270 9967
14271if test $ac_cv_sizeof_int_p -eq 8; then 9968if test "$ac_cv_sizeof_int_p" -eq 8; then
14272 rxvt_intp_define="#define intp_t int64_t" 9969 rxvt_intp_define="#define intp_t int64_t"
14273 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9970 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14274else 9971else
14275 if test $ac_cv_sizeof_int_p -eq 4; then 9972 if test "$ac_cv_sizeof_int_p" -eq 4; then
14276 rxvt_intp_define="#define intp_t int32_t" 9973 rxvt_intp_define="#define intp_t int32_t"
14277 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9974 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14278 else 9975 else
14279 if test $ac_cv_sizeof_int_p -eq 2; then 9976 if test "$ac_cv_sizeof_int_p" -eq 2; then
14280 rxvt_intp_define="#define intp_t int16_t" 9977 rxvt_intp_define="#define intp_t int16_t"
14281 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9978 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14282 else 9979 else
14283 rxvt_intp_define="#error set intp_t" 9980 rxvt_intp_define="#error set intp_t"
14284 rxvt_u_intp_define="#error set u_intp_t" 9981 rxvt_u_intp_define="#error set u_intp_t"
14355#define RETSIGTYPE $ac_cv_type_signal 10052#define RETSIGTYPE $ac_cv_type_signal
14356_ACEOF 10053_ACEOF
14357 10054
14358 10055
14359 10056
14360case "$host_alias" in
14361 *ultrix) ac_cv_func_setsid='no' ;;
14362 *) break;;
14363esac
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377 10057
14378 10058
14379 10059
14380 10060
14381 10061
14382 10062
14383for ac_func in \ 10063for ac_func in \
14384 atexit \
14385 revoke \
14386 unsetenv \ 10064 unsetenv \
14387 setutent \ 10065 setutent \
14388 seteuid \ 10066 seteuid \
10067 setresuid \
14389 setreuid \ 10068 setreuid \
14390 setsid \
14391 setpgrp \
14392 setpgid \
14393 openpty \
14394 _getpty \
14395 grantpt \
14396 unlockpt \
14397 isastream \
14398 on_exit \ 10069 on_exit \
14399 nanosleep \
14400 updwtmp \
14401 ttyslot \
14402 10070
14403do 10071do
14404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14405echo "$as_me:$LINENO: checking for $ac_func" >&5 10073echo "$as_me:$LINENO: checking for $ac_func" >&5
14406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14495 cat >>confdefs.h <<_ACEOF 10163 cat >>confdefs.h <<_ACEOF
14496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14497_ACEOF 10165_ACEOF
14498 10166
14499fi 10167fi
10168done
10169
10170
10171
10172
10173
10174
10175for ac_func in \
10176 ttyslot \
10177 updwtmp \
10178 updwtmpx \
10179
10180do
10181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10182echo "$as_me:$LINENO: checking for $ac_func" >&5
10183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10184if eval "test \"\${$as_ac_var+set}\" = set"; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10186else
10187 cat >conftest.$ac_ext <<_ACEOF
10188/* confdefs.h. */
10189_ACEOF
10190cat confdefs.h >>conftest.$ac_ext
10191cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h. */
10193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10195#define $ac_func innocuous_$ac_func
10196
10197/* System header to define __stub macros and hopefully few prototypes,
10198 which can conflict with char $ac_func (); below.
10199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10200 <limits.h> exists even on freestanding compilers. */
10201
10202#ifdef __STDC__
10203# include <limits.h>
10204#else
10205# include <assert.h>
10206#endif
10207
10208#undef $ac_func
10209
10210/* Override any gcc2 internal prototype to avoid an error. */
10211#ifdef __cplusplus
10212extern "C"
10213{
10214#endif
10215/* We use char because int might match the return type of a gcc2
10216 builtin and then its argument prototype would still apply. */
10217char $ac_func ();
10218/* The GNU C library defines this for functions which it implements
10219 to always fail with ENOSYS. Some functions are actually named
10220 something starting with __ and the normal name is an alias. */
10221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10222choke me
10223#else
10224char (*f) () = $ac_func;
10225#endif
10226#ifdef __cplusplus
10227}
10228#endif
10229
10230int
10231main ()
10232{
10233return f != $ac_func;
10234 ;
10235 return 0;
10236}
10237_ACEOF
10238rm -f conftest.$ac_objext conftest$ac_exeext
10239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10240 (eval $ac_link) 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 eval "$as_ac_var=yes"
10260else
10261 echo "$as_me: failed program was:" >&5
10262sed 's/^/| /' conftest.$ac_ext >&5
10263
10264eval "$as_ac_var=no"
10265fi
10266rm -f conftest.err conftest.$ac_objext \
10267 conftest$ac_exeext conftest.$ac_ext
10268fi
10269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10271if test `eval echo '${'$as_ac_var'}'` = yes; then
10272 cat >>confdefs.h <<_ACEOF
10273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10274_ACEOF
10275
10276fi
10277done
10278
10279
10280
10281
10282
10283for ac_header in \
10284 utmp.h \
10285 utmpx.h \
10286 lastlog.h \
10287
10288do
10289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10290if eval "test \"\${$as_ac_Header+set}\" = set"; then
10291 echo "$as_me:$LINENO: checking for $ac_header" >&5
10292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10293if eval "test \"\${$as_ac_Header+set}\" = set"; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295fi
10296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10298else
10299 # Is the header compilable?
10300echo "$as_me:$LINENO: checking $ac_header usability" >&5
10301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10302cat >conftest.$ac_ext <<_ACEOF
10303/* confdefs.h. */
10304_ACEOF
10305cat confdefs.h >>conftest.$ac_ext
10306cat >>conftest.$ac_ext <<_ACEOF
10307/* end confdefs.h. */
10308$ac_includes_default
10309#include <$ac_header>
10310_ACEOF
10311rm -f conftest.$ac_objext
10312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313 (eval $ac_compile) 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest.$ac_objext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_header_compiler=yes
10333else
10334 echo "$as_me: failed program was:" >&5
10335sed 's/^/| /' conftest.$ac_ext >&5
10336
10337ac_header_compiler=no
10338fi
10339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10341echo "${ECHO_T}$ac_header_compiler" >&6
10342
10343# Is the header present?
10344echo "$as_me:$LINENO: checking $ac_header presence" >&5
10345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10346cat >conftest.$ac_ext <<_ACEOF
10347/* confdefs.h. */
10348_ACEOF
10349cat confdefs.h >>conftest.$ac_ext
10350cat >>conftest.$ac_ext <<_ACEOF
10351/* end confdefs.h. */
10352#include <$ac_header>
10353_ACEOF
10354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } >/dev/null; then
10362 if test -s conftest.err; then
10363 ac_cpp_err=$ac_cxx_preproc_warn_flag
10364 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10365 else
10366 ac_cpp_err=
10367 fi
10368else
10369 ac_cpp_err=yes
10370fi
10371if test -z "$ac_cpp_err"; then
10372 ac_header_preproc=yes
10373else
10374 echo "$as_me: failed program was:" >&5
10375sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 ac_header_preproc=no
10378fi
10379rm -f conftest.err conftest.$ac_ext
10380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10381echo "${ECHO_T}$ac_header_preproc" >&6
10382
10383# So? What about this header?
10384case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10385 yes:no: )
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10390 ac_header_preproc=yes
10391 ;;
10392 no:yes:* )
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10405 (
10406 cat <<\_ASBOX
10407## ------------------------------------------ ##
10408## Report this to the AC_PACKAGE_NAME lists. ##
10409## ------------------------------------------ ##
10410_ASBOX
10411 ) |
10412 sed "s/^/$as_me: WARNING: /" >&2
10413 ;;
10414esac
10415echo "$as_me:$LINENO: checking for $ac_header" >&5
10416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10417if eval "test \"\${$as_ac_Header+set}\" = set"; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
10420 eval "$as_ac_Header=\$ac_header_preproc"
10421fi
10422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10424
10425fi
10426if test `eval echo '${'$as_ac_Header'}'` = yes; then
10427 cat >>confdefs.h <<_ACEOF
10428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10429_ACEOF
10430
10431fi
10432
14500done 10433done
14501 10434
14502 10435
14503 10436
14504if test "${ac_cv_header_utmp_h+set}" = set; then 10437if test "${ac_cv_header_utmp_h+set}" = set; then
14638 10571
14639fi 10572fi
14640if test $ac_cv_header_utmp_h = yes; then 10573if test $ac_cv_header_utmp_h = yes; then
14641 echo "$as_me:$LINENO: checking for struct utmp" >&5 10574 echo "$as_me:$LINENO: checking for struct utmp" >&5
14642echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10575echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14643if test "${rxvt_cv_struct_utmp+set}" = set; then 10576if test "${struct_utmp+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6 10577 echo $ECHO_N "(cached) $ECHO_C" >&6
14645else 10578else
14646 cat >conftest.$ac_ext <<_ACEOF 10579 cat >conftest.$ac_ext <<_ACEOF
14647/* confdefs.h. */ 10580/* confdefs.h. */
14648_ACEOF 10581_ACEOF
14649cat confdefs.h >>conftest.$ac_ext 10582cat confdefs.h >>conftest.$ac_ext
14650cat >>conftest.$ac_ext <<_ACEOF 10583cat >>conftest.$ac_ext <<_ACEOF
14651/* end confdefs.h. */ 10584/* end confdefs.h. */
14652#include <sys/types.h> 10585#include <sys/types.h>
14653#include <stdint.h>
14654#include <utmp.h> 10586#include <utmp.h>
14655int 10587int
14656main () 10588main ()
14657{ 10589{
14658struct utmp ut; 10590struct utmp ut;
14679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5 10612 (eval $ac_try) 2>&5
14681 ac_status=$? 10613 ac_status=$?
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); }; }; then 10615 (exit $ac_status); }; }; then
14684 rxvt_cv_struct_utmp=yes 10616 struct_utmp=yes
14685else 10617else
14686 echo "$as_me: failed program was:" >&5 10618 echo "$as_me: failed program was:" >&5
14687sed 's/^/| /' conftest.$ac_ext >&5 10619sed 's/^/| /' conftest.$ac_ext >&5
14688 10620
14689rxvt_cv_struct_utmp=no 10621struct_utmp=no
14690fi 10622fi
14691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14692fi 10624fi
14693echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10625echo "$as_me:$LINENO: result: $struct_utmp" >&5
14694echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10626echo "${ECHO_T}$struct_utmp" >&6
14695if test x$rxvt_cv_struct_utmp = xyes; then 10627if test x$struct_utmp = xyes; then
14696 10628
14697cat >>confdefs.h <<\_ACEOF 10629cat >>confdefs.h <<\_ACEOF
14698#define HAVE_STRUCT_UTMP 1 10630#define HAVE_STRUCT_UTMP 1
14699_ACEOF 10631_ACEOF
14700 10632
14701fi 10633fi
14702 10634
14703 10635
14704echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10636echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14705echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10637echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14706if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10638if test "${struct_utmp_host+set}" = set; then
14707 echo $ECHO_N "(cached) $ECHO_C" >&6 10639 echo $ECHO_N "(cached) $ECHO_C" >&6
14708else 10640else
14709 cat >conftest.$ac_ext <<_ACEOF 10641 cat >conftest.$ac_ext <<_ACEOF
14710/* confdefs.h. */ 10642/* confdefs.h. */
14711_ACEOF 10643_ACEOF
14741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14742 (eval $ac_try) 2>&5 10674 (eval $ac_try) 2>&5
14743 ac_status=$? 10675 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then 10677 (exit $ac_status); }; }; then
14746 rxvt_cv_struct_utmp_host=yes 10678 struct_utmp_host=yes
14747else 10679else
14748 echo "$as_me: failed program was:" >&5 10680 echo "$as_me: failed program was:" >&5
14749sed 's/^/| /' conftest.$ac_ext >&5 10681sed 's/^/| /' conftest.$ac_ext >&5
14750 10682
14751rxvt_cv_struct_utmp_host=no 10683struct_utmp_host=no
14752fi 10684fi
14753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14754fi 10686fi
14755echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10687echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
14756echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10688echo "${ECHO_T}$struct_utmp_host" >&6
14757if test x$rxvt_cv_struct_utmp_host = xyes; then 10689if test x$struct_utmp_host = xyes; then
14758 10690
14759cat >>confdefs.h <<\_ACEOF 10691cat >>confdefs.h <<\_ACEOF
14760#define HAVE_UTMP_HOST 1 10692#define HAVE_UTMP_HOST 1
14761_ACEOF 10693_ACEOF
14762 10694
14763fi 10695fi
14764 10696
14765echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10697echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
14766echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10698echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
14767if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10699if test "${struct_utmp_pid+set}" = set; then
14768 echo $ECHO_N "(cached) $ECHO_C" >&6 10700 echo $ECHO_N "(cached) $ECHO_C" >&6
14769else 10701else
14770 cat >conftest.$ac_ext <<_ACEOF 10702 cat >conftest.$ac_ext <<_ACEOF
14771/* confdefs.h. */ 10703/* confdefs.h. */
14772_ACEOF 10704_ACEOF
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5 10735 (eval $ac_try) 2>&5
14804 ac_status=$? 10736 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then 10738 (exit $ac_status); }; }; then
14807 rxvt_cv_struct_utmp_pid=yes 10739 struct_utmp_pid=yes
14808else 10740else
14809 echo "$as_me: failed program was:" >&5 10741 echo "$as_me: failed program was:" >&5
14810sed 's/^/| /' conftest.$ac_ext >&5 10742sed 's/^/| /' conftest.$ac_ext >&5
14811 10743
14812rxvt_cv_struct_utmp_pid=no 10744struct_utmp_pid=no
14813fi 10745fi
14814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14815fi 10747fi
14816echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10748echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
14817echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10749echo "${ECHO_T}$struct_utmp_pid" >&6
14818if test x$rxvt_cv_struct_utmp_pid = xyes; then 10750if test x$struct_utmp_pid = xyes; then
14819 10751
14820cat >>confdefs.h <<\_ACEOF 10752cat >>confdefs.h <<\_ACEOF
14821#define HAVE_UTMP_PID 1 10753#define HAVE_UTMP_PID 1
14822_ACEOF 10754_ACEOF
14823 10755
14964 10896
14965fi 10897fi
14966if test $ac_cv_header_utmpx_h = yes; then 10898if test $ac_cv_header_utmpx_h = yes; then
14967 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10899 echo "$as_me:$LINENO: checking for struct utmpx" >&5
14968echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10900echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
14969if test "${rxvt_cv_struct_utmpx+set}" = set; then 10901if test "${struct_utmpx+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6 10902 echo $ECHO_N "(cached) $ECHO_C" >&6
14971else 10903else
14972 cat >conftest.$ac_ext <<_ACEOF 10904 cat >conftest.$ac_ext <<_ACEOF
14973/* confdefs.h. */ 10905/* confdefs.h. */
14974_ACEOF 10906_ACEOF
15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15005 (eval $ac_try) 2>&5 10937 (eval $ac_try) 2>&5
15006 ac_status=$? 10938 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; }; then 10940 (exit $ac_status); }; }; then
15009 rxvt_cv_struct_utmpx=yes 10941 struct_utmpx=yes
15010else 10942else
15011 echo "$as_me: failed program was:" >&5 10943 echo "$as_me: failed program was:" >&5
15012sed 's/^/| /' conftest.$ac_ext >&5 10944sed 's/^/| /' conftest.$ac_ext >&5
15013 10945
15014rxvt_cv_struct_utmpx=no 10946struct_utmpx=no
15015fi 10947fi
15016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15017fi 10949fi
15018echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10950echo "$as_me:$LINENO: result: $struct_utmpx" >&5
15019echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10951echo "${ECHO_T}$struct_utmpx" >&6
15020if test x$rxvt_cv_struct_utmpx = xyes; then 10952if test x$struct_utmpx = xyes; then
15021 10953
15022cat >>confdefs.h <<\_ACEOF 10954cat >>confdefs.h <<\_ACEOF
15023#define HAVE_STRUCT_UTMPX 1 10955#define HAVE_STRUCT_UTMPX 1
15024_ACEOF 10956_ACEOF
15025 10957
15026fi 10958fi
15027 10959
15028 10960
15029echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10961echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
15030echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10962echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
15031if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10963if test "${struct_utmpx_host+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6 10964 echo $ECHO_N "(cached) $ECHO_C" >&6
15033else 10965else
15034 cat >conftest.$ac_ext <<_ACEOF 10966 cat >conftest.$ac_ext <<_ACEOF
15035/* confdefs.h. */ 10967/* confdefs.h. */
15036_ACEOF 10968_ACEOF
15066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15067 (eval $ac_try) 2>&5 10999 (eval $ac_try) 2>&5
15068 ac_status=$? 11000 ac_status=$?
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); }; }; then 11002 (exit $ac_status); }; }; then
15071 rxvt_cv_struct_utmpx_host=yes 11003 struct_utmpx_host=yes
15072else 11004else
15073 echo "$as_me: failed program was:" >&5 11005 echo "$as_me: failed program was:" >&5
15074sed 's/^/| /' conftest.$ac_ext >&5 11006sed 's/^/| /' conftest.$ac_ext >&5
15075 11007
15076rxvt_cv_struct_utmpx_host=no 11008struct_utmpx_host=no
15077fi 11009fi
15078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15079fi 11011fi
15080echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 11012echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
15081echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 11013echo "${ECHO_T}$struct_utmpx_host" >&6
15082if test x$rxvt_cv_struct_utmpx_host = xyes; then 11014if test x$struct_utmpx_host = xyes; then
15083 11015
15084cat >>confdefs.h <<\_ACEOF 11016cat >>confdefs.h <<\_ACEOF
15085#define HAVE_UTMPX_HOST 1 11017#define HAVE_UTMPX_HOST 1
15086_ACEOF 11018_ACEOF
15087 11019
15088fi 11020fi
15089 11021
15090fi 11022echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
11023echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
11024if test "${struct_utmpx_session+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026else
11027 cat >conftest.$ac_ext <<_ACEOF
11028/* confdefs.h. */
11029_ACEOF
11030cat confdefs.h >>conftest.$ac_ext
11031cat >>conftest.$ac_ext <<_ACEOF
11032/* end confdefs.h. */
11033#include <sys/types.h>
11034#include <utmpx.h>
11035int
11036main ()
11037{
11038struct utmpx utx; utx.ut_session;
11039 ;
11040 return 0;
11041}
11042_ACEOF
11043rm -f conftest.$ac_objext
11044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11045 (eval $ac_compile) 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try='test -s conftest.$ac_objext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 struct_utmpx_session=yes
11065else
11066 echo "$as_me: failed program was:" >&5
11067sed 's/^/| /' conftest.$ac_ext >&5
15091 11068
11069struct_utmpx_session=no
11070fi
11071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11072fi
11073echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
11074echo "${ECHO_T}$struct_utmpx_session" >&6
11075if test x$struct_utmpx_session = xyes; then
11076
11077cat >>confdefs.h <<\_ACEOF
11078#define HAVE_UTMPX_SESSION 1
11079_ACEOF
11080
11081fi
11082
11083fi
15092 11084
15093 11085
15094echo "$as_me:$LINENO: checking for struct lastlog" >&5 11086echo "$as_me:$LINENO: checking for struct lastlog" >&5
15095echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 11087echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15096if test "${rxvt_cv_struct_lastlog+set}" = set; then 11088if test "${struct_lastlog+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6 11089 echo $ECHO_N "(cached) $ECHO_C" >&6
15098else 11090else
15099 cat >conftest.$ac_ext <<_ACEOF 11091 cat >conftest.$ac_ext <<_ACEOF
15100/* confdefs.h. */ 11092/* confdefs.h. */
15101_ACEOF 11093_ACEOF
15135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5 11128 (eval $ac_try) 2>&5
15137 ac_status=$? 11129 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then 11131 (exit $ac_status); }; }; then
15140 rxvt_cv_struct_lastlog=yes 11132 struct_lastlog=yes
15141else 11133else
15142 echo "$as_me: failed program was:" >&5 11134 echo "$as_me: failed program was:" >&5
15143sed 's/^/| /' conftest.$ac_ext >&5 11135sed 's/^/| /' conftest.$ac_ext >&5
15144 11136
15145rxvt_cv_struct_lastlog=no 11137struct_lastlog=no
15146fi 11138fi
15147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15148fi 11140fi
15149echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 11141echo "$as_me:$LINENO: result: $struct_lastlog" >&5
15150echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 11142echo "${ECHO_T}$struct_lastlog" >&6
15151if test x$rxvt_cv_struct_lastlog = xyes; then 11143if test x$struct_lastlog = xyes; then
15152 11144
15153cat >>confdefs.h <<\_ACEOF 11145cat >>confdefs.h <<\_ACEOF
15154#define HAVE_STRUCT_LASTLOG 1 11146#define HAVE_STRUCT_LASTLOG 1
15155_ACEOF 11147_ACEOF
15156 11148
15157fi 11149fi
15158 11150
15159echo "$as_me:$LINENO: checking for struct lastlogx" >&5 11151echo "$as_me:$LINENO: checking for struct lastlogx" >&5
15160echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 11152echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
15161if test "${rxvt_cv_struct_lastlogx+set}" = set; then 11153if test "${struct_lastlogx+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6 11154 echo $ECHO_N "(cached) $ECHO_C" >&6
15163else 11155else
15164 cat >conftest.$ac_ext <<_ACEOF 11156 cat >conftest.$ac_ext <<_ACEOF
15165/* confdefs.h. */ 11157/* confdefs.h. */
15166_ACEOF 11158_ACEOF
15200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15201 (eval $ac_try) 2>&5 11193 (eval $ac_try) 2>&5
15202 ac_status=$? 11194 ac_status=$?
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); }; }; then 11196 (exit $ac_status); }; }; then
15205 rxvt_cv_struct_lastlogx=yes 11197 struct_lastlogx=yes
15206else 11198else
15207 echo "$as_me: failed program was:" >&5 11199 echo "$as_me: failed program was:" >&5
15208sed 's/^/| /' conftest.$ac_ext >&5 11200sed 's/^/| /' conftest.$ac_ext >&5
15209 11201
15210rxvt_cv_struct_lastlogx=no 11202struct_lastlogx=no
15211fi 11203fi
15212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15213fi 11205fi
15214echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 11206echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
15215echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 11207echo "${ECHO_T}$struct_lastlogx" >&6
15216if test x$rxvt_cv_struct_lastlogx = xyes; then 11208if test x$struct_lastlogx = xyes; then
15217 11209
15218cat >>confdefs.h <<\_ACEOF 11210cat >>confdefs.h <<\_ACEOF
15219#define HAVE_STRUCT_LASTLOGX 1 11211#define HAVE_STRUCT_LASTLOGX 1
15220_ACEOF 11212_ACEOF
15221 11213
15222fi 11214fi
15223 11215
15224 11216
15225echo "$as_me:$LINENO: checking where utmp is located" >&5 11217echo "$as_me:$LINENO: checking where utmp is located" >&5
15226echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 11218echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
15227if test "${rxvt_cv_path_utmp+set}" = set; then 11219if test "${path_utmp+set}" = set; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6 11220 echo $ECHO_N "(cached) $ECHO_C" >&6
15229else 11221else
15230 if test "$cross_compiling" = yes; then 11222 if test "$cross_compiling" = yes; then
15231 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 11223 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
15232echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 11224echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
15233else 11225else
15234 cat >conftest.$ac_ext <<_ACEOF 11226 cat >conftest.$ac_ext <<_ACEOF
15235/* confdefs.h. */ 11227/* confdefs.h. */
15236_ACEOF 11228_ACEOF
15237cat confdefs.h >>conftest.$ac_ext 11229cat confdefs.h >>conftest.$ac_ext
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5 11266 (eval $ac_try) 2>&5
15275 ac_status=$? 11267 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then 11269 (exit $ac_status); }; }; then
15278 rxvt_cv_path_utmp=`cat conftestval` 11270 path_utmp=`cat conftestval`
15279else 11271else
15280 echo "$as_me: program exited with status $ac_status" >&5 11272 echo "$as_me: program exited with status $ac_status" >&5
15281echo "$as_me: failed program was:" >&5 11273echo "$as_me: failed program was:" >&5
15282sed 's/^/| /' conftest.$ac_ext >&5 11274sed 's/^/| /' conftest.$ac_ext >&5
15283 11275
15284( exit $ac_status ) 11276( exit $ac_status )
15285rxvt_cv_path_utmp= 11277path_utmp=
15286fi 11278fi
15287rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11279rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15288fi 11280fi
15289fi 11281fi
15290echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11282echo "$as_me:$LINENO: result: $path_utmp" >&5
15291echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11283echo "${ECHO_T}$path_utmp" >&6
15292if test x$rxvt_cv_path_utmp != x; then 11284if test x$path_utmp != x; then
15293 11285
15294cat >>confdefs.h <<_ACEOF 11286cat >>confdefs.h <<_ACEOF
15295#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11287#define UTMP_FILE "$path_utmp"
15296_ACEOF 11288_ACEOF
15297 11289
15298fi 11290fi
15299 11291
15300 11292
15301echo "$as_me:$LINENO: checking where utmpx is located" >&5 11293echo "$as_me:$LINENO: checking where utmpx is located" >&5
15302echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11294echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
15303if test "${rxvt_cv_path_utmpx+set}" = set; then 11295if test "${path_utmpx+set}" = set; then
15304 echo $ECHO_N "(cached) $ECHO_C" >&6 11296 echo $ECHO_N "(cached) $ECHO_C" >&6
15305else 11297else
15306 if test "$cross_compiling" = yes; then 11298 if test "$cross_compiling" = yes; then
15307 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11299 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
15308echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11300echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
15309else 11301else
15310 cat >conftest.$ac_ext <<_ACEOF 11302 cat >conftest.$ac_ext <<_ACEOF
15311/* confdefs.h. */ 11303/* confdefs.h. */
15312_ACEOF 11304_ACEOF
15313cat confdefs.h >>conftest.$ac_ext 11305cat confdefs.h >>conftest.$ac_ext
15359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15360 (eval $ac_try) 2>&5 11352 (eval $ac_try) 2>&5
15361 ac_status=$? 11353 ac_status=$?
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); }; }; then 11355 (exit $ac_status); }; }; then
15364 rxvt_cv_path_utmpx=`cat conftestval` 11356 path_utmpx=`cat conftestval`
15365else 11357else
15366 echo "$as_me: program exited with status $ac_status" >&5 11358 echo "$as_me: program exited with status $ac_status" >&5
15367echo "$as_me: failed program was:" >&5 11359echo "$as_me: failed program was:" >&5
15368sed 's/^/| /' conftest.$ac_ext >&5 11360sed 's/^/| /' conftest.$ac_ext >&5
15369 11361
15370( exit $ac_status ) 11362( exit $ac_status )
15371rxvt_cv_path_utmpx= 11363path_utmpx=
15372fi 11364fi
15373rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11365rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15374fi 11366fi
15375fi 11367fi
15376echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11368echo "$as_me:$LINENO: result: $path_utmpx" >&5
15377echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11369echo "${ECHO_T}$path_utmpx" >&6
15378if test x$rxvt_cv_path_utmpx != x; then 11370if test x$path_utmpx != x; then
15379 11371
15380cat >>confdefs.h <<_ACEOF 11372cat >>confdefs.h <<_ACEOF
15381#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11373#define UTMPX_FILE "$path_utmpx"
15382_ACEOF 11374_ACEOF
15383 11375
15384fi 11376fi
15385 11377
15386 11378
15387echo "$as_me:$LINENO: checking where wtmp is located" >&5 11379echo "$as_me:$LINENO: checking where wtmp is located" >&5
15388echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11380echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
15389if test "${rxvt_cv_path_wtmp+set}" = set; then 11381if test "${path_wtmp+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6 11382 echo $ECHO_N "(cached) $ECHO_C" >&6
15391else 11383else
15392 if test "$cross_compiling" = yes; then 11384 if test "$cross_compiling" = yes; then
15393 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11385 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
15394echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11386echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
15395else 11387else
15396 cat >conftest.$ac_ext <<_ACEOF 11388 cat >conftest.$ac_ext <<_ACEOF
15397/* confdefs.h. */ 11389/* confdefs.h. */
15398_ACEOF 11390_ACEOF
15399cat confdefs.h >>conftest.$ac_ext 11391cat confdefs.h >>conftest.$ac_ext
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5 11430 (eval $ac_try) 2>&5
15439 ac_status=$? 11431 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then 11433 (exit $ac_status); }; }; then
15442 rxvt_cv_path_wtmp=`cat conftestval` 11434 path_wtmp=`cat conftestval`
15443else 11435else
15444 echo "$as_me: program exited with status $ac_status" >&5 11436 echo "$as_me: program exited with status $ac_status" >&5
15445echo "$as_me: failed program was:" >&5 11437echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5 11438sed 's/^/| /' conftest.$ac_ext >&5
15447 11439
15448( exit $ac_status ) 11440( exit $ac_status )
15449rxvt_cv_path_wtmp= 11441path_wtmp=
15450fi 11442fi
15451rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15452fi 11444fi
15453fi 11445fi
15454echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11446echo "$as_me:$LINENO: result: $path_wtmp" >&5
15455echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11447echo "${ECHO_T}$path_wtmp" >&6
15456if test x$rxvt_cv_path_wtmp != x; then 11448if test x$path_wtmp != x; then
15457 11449
15458cat >>confdefs.h <<_ACEOF 11450cat >>confdefs.h <<_ACEOF
15459#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11451#define WTMP_FILE "$path_wtmp"
15460_ACEOF 11452_ACEOF
15461 11453
15462fi 11454fi
15463 11455
15464echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11456echo "$as_me:$LINENO: checking where wtmpx is located" >&5
15465echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11457echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
15466if test "${rxvt_cv_path_wtmpx+set}" = set; then 11458if test "${path_wtmpx+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6 11459 echo $ECHO_N "(cached) $ECHO_C" >&6
15468else 11460else
15469 if test "$cross_compiling" = yes; then 11461 if test "$cross_compiling" = yes; then
15470 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11462 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
15471echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11463echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
15472else 11464else
15473 cat >conftest.$ac_ext <<_ACEOF 11465 cat >conftest.$ac_ext <<_ACEOF
15474/* confdefs.h. */ 11466/* confdefs.h. */
15475_ACEOF 11467_ACEOF
15476cat confdefs.h >>conftest.$ac_ext 11468cat confdefs.h >>conftest.$ac_ext
15513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15514 (eval $ac_try) 2>&5 11506 (eval $ac_try) 2>&5
15515 ac_status=$? 11507 ac_status=$?
15516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); }; }; then 11509 (exit $ac_status); }; }; then
15518 rxvt_cv_path_wtmpx=`cat conftestval` 11510 path_wtmpx=`cat conftestval`
15519else 11511else
15520 echo "$as_me: program exited with status $ac_status" >&5 11512 echo "$as_me: program exited with status $ac_status" >&5
15521echo "$as_me: failed program was:" >&5 11513echo "$as_me: failed program was:" >&5
15522sed 's/^/| /' conftest.$ac_ext >&5 11514sed 's/^/| /' conftest.$ac_ext >&5
15523 11515
15524( exit $ac_status ) 11516( exit $ac_status )
15525rxvt_cv_path_wtmpx= 11517path_wtmpx=
15526fi 11518fi
15527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11519rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15528fi 11520fi
15529fi 11521fi
15530echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11522echo "$as_me:$LINENO: result: $path_wtmpx" >&5
15531echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11523echo "${ECHO_T}$path_wtmpx" >&6
15532if test x$rxvt_cv_path_wtmpx != x; then 11524if test x$path_wtmpx != x; then
15533 11525
15534cat >>confdefs.h <<_ACEOF 11526cat >>confdefs.h <<_ACEOF
15535#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11527#define WTMPX_FILE "$path_wtmpx"
15536_ACEOF 11528_ACEOF
15537 11529
15538fi 11530fi
15539 11531
15540echo "$as_me:$LINENO: checking where lastlog is located" >&5 11532echo "$as_me:$LINENO: checking where lastlog is located" >&5
15541echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11533echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15542if test "${rxvt_cv_path_lastlog+set}" = set; then 11534if test "${path_lastlog+set}" = set; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6 11535 echo $ECHO_N "(cached) $ECHO_C" >&6
15544else 11536else
15545 if test "$cross_compiling" = yes; then 11537 if test "$cross_compiling" = yes; then
15546 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11538 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
15547echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11539echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
15548else 11540else
15549 cat >conftest.$ac_ext <<_ACEOF 11541 cat >conftest.$ac_ext <<_ACEOF
15550/* confdefs.h. */ 11542/* confdefs.h. */
15551_ACEOF 11543_ACEOF
15552cat confdefs.h >>conftest.$ac_ext 11544cat confdefs.h >>conftest.$ac_ext
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5 11587 (eval $ac_try) 2>&5
15596 ac_status=$? 11588 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then 11590 (exit $ac_status); }; }; then
15599 rxvt_cv_path_lastlog=`cat conftestval` 11591 path_lastlog=`cat conftestval`
15600else 11592else
15601 echo "$as_me: program exited with status $ac_status" >&5 11593 echo "$as_me: program exited with status $ac_status" >&5
15602echo "$as_me: failed program was:" >&5 11594echo "$as_me: failed program was:" >&5
15603sed 's/^/| /' conftest.$ac_ext >&5 11595sed 's/^/| /' conftest.$ac_ext >&5
15604 11596
15605( exit $ac_status ) 11597( exit $ac_status )
15606rxvt_cv_path_lastlog= 11598path_lastlog=
15607fi 11599fi
15608rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11600rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15609fi 11601fi
15610fi 11602fi
15611echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11603echo "$as_me:$LINENO: result: $path_lastlog" >&5
15612echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11604echo "${ECHO_T}$path_lastlog" >&6
15613if test x$rxvt_cv_path_lastlog != x; then 11605if test x$path_lastlog != x; then
15614 11606
15615cat >>confdefs.h <<_ACEOF 11607cat >>confdefs.h <<_ACEOF
15616#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11608#define LASTLOG_FILE "$path_lastlog"
15617_ACEOF 11609_ACEOF
15618 11610
15619 if test -d "$rxvt_cv_path_lastlog"; then 11611 if test -d "$path_lastlog"; then
15620 11612
15621cat >>confdefs.h <<\_ACEOF 11613cat >>confdefs.h <<\_ACEOF
15622#define LASTLOG_IS_DIR 1 11614#define LASTLOG_IS_DIR 1
15623_ACEOF 11615_ACEOF
15624 11616
15625 fi 11617 fi
15626fi 11618fi
15627 11619
15628echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11620echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15629echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11621echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15630if test "${rxvt_cv_path_lastlogx+set}" = set; then 11622if test "${path_lastlogx+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6 11623 echo $ECHO_N "(cached) $ECHO_C" >&6
15632else 11624else
15633 if test "$cross_compiling" = yes; then 11625 if test "$cross_compiling" = yes; then
15634 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11626 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
15635echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11627echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
15636else 11628else
15637 cat >conftest.$ac_ext <<_ACEOF 11629 cat >conftest.$ac_ext <<_ACEOF
15638/* confdefs.h. */ 11630/* confdefs.h. */
15639_ACEOF 11631_ACEOF
15640cat confdefs.h >>conftest.$ac_ext 11632cat confdefs.h >>conftest.$ac_ext
15676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15677 (eval $ac_try) 2>&5 11669 (eval $ac_try) 2>&5
15678 ac_status=$? 11670 ac_status=$?
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); }; }; then 11672 (exit $ac_status); }; }; then
15681 rxvt_cv_path_lastlogx=`cat conftestval` 11673 path_lastlogx=`cat conftestval`
15682else 11674else
15683 echo "$as_me: program exited with status $ac_status" >&5 11675 echo "$as_me: program exited with status $ac_status" >&5
15684echo "$as_me: failed program was:" >&5 11676echo "$as_me: failed program was:" >&5
15685sed 's/^/| /' conftest.$ac_ext >&5 11677sed 's/^/| /' conftest.$ac_ext >&5
15686 11678
15687( exit $ac_status ) 11679( exit $ac_status )
15688rxvt_cv_path_lastlogx= 11680path_lastlogx=
15689fi 11681fi
15690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11682rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15691fi 11683fi
15692fi 11684fi
15693echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11685echo "$as_me:$LINENO: result: $path_lastlogx" >&5
15694echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11686echo "${ECHO_T}$path_lastlogx" >&6
15695if test x$rxvt_cv_path_lastlogx != x; then 11687if test x$path_lastlogx != x; then
15696 11688
15697cat >>confdefs.h <<_ACEOF 11689cat >>confdefs.h <<_ACEOF
15698#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11690#define LASTLOGX_FILE "$path_lastlogx"
15699_ACEOF 11691_ACEOF
15700 11692
15701fi 11693fi
11694
15702 11695
15703 11696
15704echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11697echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15705echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11698echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15706if test "${rxvt_cv_path_ttytab+set}" = set; then 11699if test "${rxvt_cv_path_ttytab+set}" = set; then
15973#define HAVE_NL_LANGINFO 1 11966#define HAVE_NL_LANGINFO 1
15974_ACEOF 11967_ACEOF
15975 11968
15976fi 11969fi
15977 11970
15978echo "$as_me:$LINENO: checking for getpt" >&5 11971
15979echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11972echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
15980if test "${rxvt_cv_func_getpt+set}" = set; then 11973echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11974if test "${can_pass_fds+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6 11975 echo $ECHO_N "(cached) $ECHO_C" >&6
15982else 11976else
15983 cat >conftest.$ac_ext <<_ACEOF 11977 cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */ 11978/* confdefs.h. */
15985_ACEOF 11979_ACEOF
15986cat confdefs.h >>conftest.$ac_ext 11980cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF 11981cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */ 11982/* end confdefs.h. */
15989#define _GNU_SOURCE 11983
15990#ifdef HAVE_STDLIB_H 11984#include <cstddef> // broken bsds (is that redundant) need this
15991# include <cstdlib> 11985#include <sys/types.h>
15992#endif 11986#include <sys/socket.h>
11987#include <sys/uio.h>
11988
15993int 11989int
15994main () 11990main ()
15995{ 11991{
15996(void)getpt(); 11992
11993{
11994 msghdr msg;
11995 iovec iov;
11996 char buf [100];
11997 char data = 0;
11998
11999 iov.iov_base = &data;
12000 iov.iov_len = 1;
12001
12002 msg.msg_iov = &iov;
12003 msg.msg_iovlen = 1;
12004 msg.msg_control = buf;
12005 msg.msg_controllen = sizeof buf;
12006
12007 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
12008 cmsg->cmsg_level = SOL_SOCKET;
12009 cmsg->cmsg_type = SCM_RIGHTS;
12010 cmsg->cmsg_len = 100;
12011
12012 *(int *)CMSG_DATA (cmsg) = 5;
12013
12014 return sendmsg (3, &msg, 0);
12015}
12016
15997 ; 12017 ;
15998 return 0; 12018 return 0;
15999} 12019}
16000_ACEOF 12020_ACEOF
16001rm -f conftest.$ac_objext conftest$ac_exeext 12021rm -f conftest.$ac_objext conftest$ac_exeext
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5 12038 (eval $ac_try) 2>&5
16019 ac_status=$? 12039 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then 12041 (exit $ac_status); }; }; then
16022 rxvt_cv_func_getpt=yes 12042 can_pass_fds=yes
16023else 12043else
16024 echo "$as_me: failed program was:" >&5 12044 echo "$as_me: failed program was:" >&5
16025sed 's/^/| /' conftest.$ac_ext >&5 12045sed 's/^/| /' conftest.$ac_ext >&5
16026 12046
16027rxvt_cv_func_getpt=no 12047can_pass_fds=no
16028fi 12048fi
16029rm -f conftest.err conftest.$ac_objext \ 12049rm -f conftest.err conftest.$ac_objext \
16030 conftest$ac_exeext conftest.$ac_ext 12050 conftest$ac_exeext conftest.$ac_ext
16031fi 12051fi
16032echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 12052echo "$as_me:$LINENO: result: $can_pass_fds" >&5
16033echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 12053echo "${ECHO_T}$can_pass_fds" >&6
16034if test x$rxvt_cv_func_getpt = xyes; then 12054if test x$can_pass_fds = xyes; then
16035 12055
16036cat >>confdefs.h <<\_ACEOF 12056cat >>confdefs.h <<\_ACEOF
16037#define HAVE_GETPT 1 12057#define HAVE_UNIX_FDPASS 1
16038_ACEOF 12058_ACEOF
16039 12059
12060else
12061 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12062echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12063 { (exit 1); exit 1; }; }
16040fi 12064fi
16041 12065
16042echo "$as_me:$LINENO: checking for pty/tty type" >&5 12066
12067echo "$as_me:$LINENO: checking for broken XIM callback" >&5
16043echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 12068echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
16044if test "${rxvt_cv_ptys+set}" = set; then 12069if test "${rxvt_broken_ximcb+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6 12070 echo $ECHO_N "(cached) $ECHO_C" >&6
16046else 12071else
16047 if test x$ac_cv_func_openpty = xyes; then
16048 rxvt_cv_ptys=OPENPTY
16049 else if test x$ac_cv_func__getpty = xyes; then
16050 rxvt_cv_ptys=SGI4
16051 else if test -c /dev/ttyp20; then
16052 rxvt_cv_ptys=SCO
16053 else if test -c /dev/ptym/clone; then
16054 rxvt_cv_ptys=HPUX
16055 else if test x$rxvt_cv_func_getpt = xyes; then
16056 rxvt_cv_ptys=GLIBC
16057 else if test -c /dev/ptc -a -c /dev/pts; then
16058 rxvt_cv_ptys=PTC
16059 else if test -c /dev/ptc -a -d /dev/pts; then
16060 rxvt_cv_ptys=PTC
16061 else if test -c /dev/ptmx -a -c /dev/pts/0; then
16062 rxvt_cv_ptys=STREAMS
16063 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
16064 rxvt_cv_ptys=STREAMS
16065 else
16066 rxvt_cv_ptys=BSD
16067fi
16068fi
16069fi
16070fi
16071fi
16072fi
16073fi
16074fi
16075fi
16076
16077fi
16078echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16079echo "${ECHO_T}$rxvt_cv_ptys" >&6
16080
16081if test x$rxvt_cv_ptys = xOPENPTY; then
16082
16083cat >>confdefs.h <<\_ACEOF
16084#define PTYS_ARE_OPENPTY 1
16085_ACEOF
16086
16087fi
16088if test x$rxvt_cv_ptys = xSCO; then
16089
16090cat >>confdefs.h <<\_ACEOF
16091#define PTYS_ARE_NUMERIC 1
16092_ACEOF
16093
16094fi
16095if test x$rxvt_cv_ptys = xSTREAMS; then
16096
16097cat >>confdefs.h <<\_ACEOF
16098#define PTYS_ARE_PTMX 1
16099_ACEOF
16100
16101fi
16102if test x$rxvt_cv_ptys = xPTC; then
16103
16104cat >>confdefs.h <<\_ACEOF
16105#define PTYS_ARE_PTC 1
16106_ACEOF
16107
16108fi
16109if test x$rxvt_cv_ptys = xSGI4; then
16110
16111cat >>confdefs.h <<\_ACEOF
16112#define PTYS_ARE__GETPTY 1
16113_ACEOF
16114
16115fi
16116if test x$rxvt_cv_ptys = xCONVEX; then
16117
16118cat >>confdefs.h <<\_ACEOF
16119#define PTYS_ARE_GETPTY 1
16120_ACEOF
16121
16122fi
16123if test x$rxvt_cv_ptys = xGLIBC; then
16124
16125cat >>confdefs.h <<\_ACEOF
16126#define PTYS_ARE_GETPT 1
16127_ACEOF
16128
16129fi
16130if test x$rxvt_cv_ptys = xHPUX; then
16131
16132cat >>confdefs.h <<\_ACEOF
16133#define PTYS_ARE_CLONE 1
16134_ACEOF
16135
16136fi
16137if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
16138
16139cat >>confdefs.h <<\_ACEOF
16140#define PTYS_ARE_SEARCHED 1
16141_ACEOF
16142
16143fi
16144
16145
16146{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
16147echo "$as_me: checking for pty ranges..." >&6;}
16148ptys=`echo /dev/pty??`
16149pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
16150pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
16151if test x$pch1 != x; then
16152
16153cat >>confdefs.h <<_ACEOF
16154#define PTYCHAR1 "$pch1"
16155_ACEOF
16156
16157fi
16158if test x$pch2 != x; then
16159
16160cat >>confdefs.h <<_ACEOF
16161#define PTYCHAR2 "$pch2"
16162_ACEOF
16163
16164fi
16165
16166echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16167echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16168if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16169 echo $ECHO_N "(cached) $ECHO_C" >&6
16170else
16171 ac_check_lib_save_LIBS=$LIBS
16172LIBS="-lxpg4 $LIBS"
16173cat >conftest.$ac_ext <<_ACEOF 12072 cat >conftest.$ac_ext <<_ACEOF
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179 12073
16180/* Override any gcc2 internal prototype to avoid an error. */ 12074#include <X11/Xlib.h>
16181#ifdef __cplusplus 12075
16182extern "C" 12076void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
16183#endif 12077
16184/* We use char because int might match the return type of a gcc2 12078void f() {
16185 builtin and then its argument prototype would still apply. */ 12079 XIMCallback cb;
16186char setlocale (); 12080 cb.callback = im_destroy_cb;
16187int
16188main ()
16189{
16190setlocale ();
16191 ;
16192 return 0;
16193} 12081}
12082
16194_ACEOF 12083_ACEOF
16195rm -f conftest.$ac_objext conftest$ac_exeext 12084rm -f conftest.$ac_objext
16196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16197 (eval $ac_link) 2>conftest.er1 12086 (eval $ac_compile) 2>conftest.er1
16198 ac_status=$? 12087 ac_status=$?
16199 grep -v '^ *+' conftest.er1 >conftest.err 12088 grep -v '^ *+' conftest.er1 >conftest.err
16200 rm -f conftest.er1 12089 rm -f conftest.er1
16201 cat conftest.err >&5 12090 cat conftest.err >&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16206 (eval $ac_try) 2>&5 12095 (eval $ac_try) 2>&5
16207 ac_status=$? 12096 ac_status=$?
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; } && 12098 (exit $ac_status); }; } &&
16210 { ac_try='test -s conftest$ac_exeext' 12099 { ac_try='test -s conftest.$ac_objext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5 12101 (eval $ac_try) 2>&5
16213 ac_status=$? 12102 ac_status=$?
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then 12104 (exit $ac_status); }; }; then
16216 ac_cv_lib_xpg4_setlocale=yes 12105 rxvt_broken_ximcb=yes
16217else 12106else
16218 echo "$as_me: failed program was:" >&5 12107 echo "$as_me: failed program was:" >&5
16219sed 's/^/| /' conftest.$ac_ext >&5 12108sed 's/^/| /' conftest.$ac_ext >&5
16220 12109
16221ac_cv_lib_xpg4_setlocale=no 12110rxvt_broken_ximcb=no
16222fi 12111fi
16223rm -f conftest.err conftest.$ac_objext \ 12112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16224 conftest$ac_exeext conftest.$ac_ext
16225LIBS=$ac_check_lib_save_LIBS
16226fi 12113fi
16227echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 12114echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
16228echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 12115echo "${ECHO_T}$rxvt_broken_ximcb" >&6
16229if test $ac_cv_lib_xpg4_setlocale = yes; then
16230 LIBS="$LIBS -lxpg4"
16231fi
16232 12116
16233 12117if test x$rxvt_broken_ximcb = xyes; then
16234if test x$support_tinting = xyes; then
16235 12118
16236cat >>confdefs.h <<\_ACEOF 12119cat >>confdefs.h <<\_ACEOF
16237#define TINTING 1 12120#define XIMCB_PROTO_BROKEN 1
16238_ACEOF 12121_ACEOF
16239 12122
16240fi 12123fi
16241if test x$support_inheritpixmap = xyes; then
16242 12124
16243cat >>confdefs.h <<\_ACEOF
16244#define TRANSPARENT 1
16245_ACEOF
16246 12125
16247fi
16248if test x$support_keepscrolling = xno; then
16249 12126
16250cat >>confdefs.h <<\_ACEOF
16251#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16252_ACEOF
16253 12127
16254fi
16255if test x$support_selectionscrolling = xyes; then
16256 12128
16257cat >>confdefs.h <<\_ACEOF
16258#define SELECTION_SCROLLING 1
16259_ACEOF
16260 12129
16261fi
16262if test x$support_menubar = xyes; then
16263 12130
16264cat >>confdefs.h <<\_ACEOF 12131for ac_header in \
16265#define MENUBAR 1 12132 pty.h \
16266_ACEOF 12133 util.h \
12134 libutil.h \
12135 sys/ioctl.h \
12136 sys/stropts.h \
16267 12137
16268fi
16269if test x$support_frills = xno; then
16270
16271cat >>confdefs.h <<\_ACEOF
16272#define NO_FRILLS 1
16273_ACEOF
16274
16275fi
16276if test x$support_linespace = xno; then
16277
16278cat >>confdefs.h <<\_ACEOF
16279#define NO_LINESPACE 1
16280_ACEOF
16281
16282fi
16283if test x$support_24bit = xyes; then
16284
16285cat >>confdefs.h <<\_ACEOF
16286#define PREFER_24BIT 1
16287_ACEOF
16288
16289fi
16290if test x$support_mousewheel = xyes; then
16291
16292cat >>confdefs.h <<\_ACEOF
16293#define MOUSE_WHEEL 1
16294_ACEOF
16295
16296fi
16297if test x$support_mouseslipwheel = xyes; then
16298
16299cat >>confdefs.h <<\_ACEOF
16300#define MOUSE_SLIP_WHEELING 1
16301_ACEOF
16302
16303fi
16304if test x$support_utmp = xyes; then
16305
16306cat >>confdefs.h <<\_ACEOF
16307#define UTMP_SUPPORT 1
16308_ACEOF
16309
16310fi
16311if test x$support_wtmp = xyes; then
16312
16313cat >>confdefs.h <<\_ACEOF
16314#define WTMP_SUPPORT 1
16315_ACEOF
16316
16317fi
16318if test x$support_lastlog = xyes; then
16319
16320cat >>confdefs.h <<\_ACEOF
16321#define LASTLOG_SUPPORT 1
16322_ACEOF
16323
16324fi
16325if test x$support_xim = xyes -o x$multichar_set = xyes; then
16326 if test x$rxvt_cv_func_xlocale = xyes; then
16327
16328cat >>confdefs.h <<\_ACEOF
16329#define USE_XIM 1
16330_ACEOF
16331
16332 fi
16333fi
16334if test x$support_xpm = xyes; then
16335
16336cat >>confdefs.h <<\_ACEOF
16337#define XPM_BACKGROUND 1
16338_ACEOF
16339
16340fi
16341if test x$support_scroll_rxvt = xyes; then
16342
16343cat >>confdefs.h <<\_ACEOF
16344#define RXVT_SCROLLBAR 1
16345_ACEOF
16346
16347 scrolltypes="rxvt"
16348fi
16349if test x$support_scroll_next = xyes; then
16350
16351cat >>confdefs.h <<\_ACEOF
16352#define NEXT_SCROLLBAR 1
16353_ACEOF
16354
16355 scrolltypes="$scrolltypes next"
16356fi
16357if test x$support_scroll_xterm = xyes; then
16358
16359cat >>confdefs.h <<\_ACEOF
16360#define XTERM_SCROLLBAR 1
16361_ACEOF
16362
16363 scrolltypes="$scrolltypes xterm"
16364fi
16365if test x$support_scroll_plain = xyes; then
16366
16367cat >>confdefs.h <<\_ACEOF
16368#define PLAIN_SCROLLBAR 1
16369_ACEOF
16370
16371 scrolltypes="$scrolltypes plain"
16372fi
16373if test x$support_pointer_blank = xyes; then
16374
16375cat >>confdefs.h <<\_ACEOF
16376#define POINTER_BLANK 1
16377_ACEOF
16378
16379fi
16380if test x$support_cursor_blink = xyes; then
16381
16382cat >>confdefs.h <<\_ACEOF
16383#define CURSOR_BLINK 1
16384_ACEOF
16385
16386fi
16387if test x$support_text_blink = xyes; then
16388
16389cat >>confdefs.h <<\_ACEOF
16390#define TEXT_BLINK 1
16391_ACEOF
16392
16393fi
16394if test x$support_unicode3 = xyes; then
16395
16396cat >>confdefs.h <<\_ACEOF
16397#define UNICODE_3 1
16398_ACEOF
16399
16400fi
16401if test x$support_combining = xyes; then
16402
16403cat >>confdefs.h <<\_ACEOF
16404#define ENABLE_COMBINING 1
16405_ACEOF
16406
16407fi
16408if test x$codesets = xall; then
16409 codesets=jp,jp-ext,kr,cn,cn-ext
16410fi
16411for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16412
16413cat >>confdefs.h <<\_ACEOF
16414#define ENCODING_EU 1
16415_ACEOF
16416
16417
16418cat >>confdefs.h <<\_ACEOF
16419#define ENCODING_VN 1
16420_ACEOF
16421
16422 case "$codeset" in
16423 JP )
16424cat >>confdefs.h <<\_ACEOF
16425#define ENCODING_JP 1
16426_ACEOF
16427 ;;
16428 JP_EXT )
16429cat >>confdefs.h <<\_ACEOF
16430#define ENCODING_JP_EXT 1
16431_ACEOF
16432 ;;
16433 KR )
16434cat >>confdefs.h <<\_ACEOF
16435#define ENCODING_KR 1
16436_ACEOF
16437 ;;
16438 CN )
16439cat >>confdefs.h <<\_ACEOF
16440#define ENCODING_CN 1
16441_ACEOF
16442 ;;
16443 CN_EXT )
16444cat >>confdefs.h <<\_ACEOF
16445#define ENCODING_CN_EXT 1
16446_ACEOF
16447 ;;
16448 esac
16449done
16450
16451
16452CFLAGS=${CFLAGS--O}
16453LDFLAGS=${LDFLAGS--O}
16454
16455CPPFLAGS="$CPPFLAGS"
16456
16457
16458
16459
16460
16461
16462
16463if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16464 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16465 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16466 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16467 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16468 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16469fi
16470
16471
16472
16473
16474
16475if test x$support_addstrings = xno; then
16476
16477cat >>confdefs.h <<\_ACEOF
16478#define NO_STRINGS 1
16479_ACEOF
16480
16481fi
16482
16483MCOMMON=./autoconf/Make.common
16484
16485
16486test "$program_prefix" != NONE &&
16487 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16488# Use a double $ so make ignores it.
16489test "$program_suffix" != NONE &&
16490 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16491# Double any \ or $. echo might interpret backslashes.
16492# By default was `s,x,x', remove it if useless.
16493cat <<\_ACEOF >conftest.sed
16494s/[\\$]/&&/g;s/;s,x,x,$//
16495_ACEOF
16496program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16497rm conftest.sed
16498
16499
16500
16501
16502
16503if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16504 include_stdint_h="#include <stdint.h>"
16505else
16506 include_stdint_h="/* #include <stdint.h> */"
16507fi
16508if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16509 include_stdarg_h="#include <cstdarg>"
16510else
16511 include_stdarg_h="/* #include <cstdarg> */"
16512fi
16513if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16514 include_stdlib_h="#include <cstdlib>"
16515else
16516 include_stdlib_h="/* #include <cstdlib> */"
16517fi
16518if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16519 include_unistd_h="#include <unistd.h>"
16520else
16521 include_unistd_h="/* #include <unistd.h> */"
16522fi
16523if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16524 include_string_h="#include <cstring>"
16525else
16526 include_string_h="/* #include <cstring> */"
16527fi
16528if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16529 include_fcntl_h="#include <fcntl.h>"
16530else
16531 include_fcntl_h="/* #include <fcntl.h> */"
16532fi
16533if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16534 include_util_h="#include <util.h>"
16535else
16536 include_util_h="/* #include <util.h> */"
16537fi
16538if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16539 include_assert_h="#include <assert.h>"
16540else
16541 include_assert_h="/* #include <assert.h> */"
16542fi
16543if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16544 include_sys_ioctl_h="#include <sys/ioctl.h>"
16545else
16546 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16547fi
16548if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16549 include_sys_select_h="#include <sys/select.h>"
16550else
16551 include_sys_select_h="/* #include <sys/select.h> */"
16552fi
16553if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16554 include_sys_strredir_h="#include <sys/strredir.h>"
16555else
16556 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16557fi
16558if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16559 include_sys_time_h="#include <sys/time.h>"
16560else
16561 include_sys_time_h="/* #include <sys/time.h> */"
16562fi
16563if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16564 include_time_h="#include <time.h>"
16565else
16566 include_time_h="/* #include <time.h> */"
16567fi
16568
16569if test x$support_xft = xyes; then
16570 LIBS="$LIBS `pkg-config xft --libs`"
16571 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16572 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16573
16574
16575for ac_header in X11/Xft/Xft.h
16576do 12138do
16577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16578if eval "test \"\${$as_ac_Header+set}\" = set"; then 12140if eval "test \"\${$as_ac_Header+set}\" = set"; then
16579 echo "$as_me:$LINENO: checking for $ac_header" >&5 12141 echo "$as_me:$LINENO: checking for $ac_header" >&5
16580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16714if test `eval echo '${'$as_ac_Header'}'` = yes; then 12276if test `eval echo '${'$as_ac_Header'}'` = yes; then
16715 cat >>confdefs.h <<_ACEOF 12277 cat >>confdefs.h <<_ACEOF
16716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16717_ACEOF 12279_ACEOF
16718 12280
12281fi
12282
12283done
12284
12285
12286
12287
12288
12289
12290
12291for ac_func in \
12292 revoke \
12293 _getpty \
12294 getpt \
12295 posix_openpt \
12296 isastream \
12297
12298do
12299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12300echo "$as_me:$LINENO: checking for $ac_func" >&5
12301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12302if eval "test \"\${$as_ac_var+set}\" = set"; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304else
12305 cat >conftest.$ac_ext <<_ACEOF
12306/* confdefs.h. */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h. */
12311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12313#define $ac_func innocuous_$ac_func
12314
12315/* System header to define __stub macros and hopefully few prototypes,
12316 which can conflict with char $ac_func (); below.
12317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12318 <limits.h> exists even on freestanding compilers. */
12319
12320#ifdef __STDC__
12321# include <limits.h>
12322#else
12323# include <assert.h>
12324#endif
12325
12326#undef $ac_func
12327
12328/* Override any gcc2 internal prototype to avoid an error. */
12329#ifdef __cplusplus
12330extern "C"
12331{
12332#endif
12333/* We use char because int might match the return type of a gcc2
12334 builtin and then its argument prototype would still apply. */
12335char $ac_func ();
12336/* The GNU C library defines this for functions which it implements
12337 to always fail with ENOSYS. Some functions are actually named
12338 something starting with __ and the normal name is an alias. */
12339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12340choke me
12341#else
12342char (*f) () = $ac_func;
12343#endif
12344#ifdef __cplusplus
12345}
12346#endif
12347
12348int
12349main ()
12350{
12351return f != $ac_func;
12352 ;
12353 return 0;
12354}
12355_ACEOF
12356rm -f conftest.$ac_objext conftest$ac_exeext
12357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358 (eval $ac_link) 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest$ac_exeext'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 eval "$as_ac_var=yes"
12378else
12379 echo "$as_me: failed program was:" >&5
12380sed 's/^/| /' conftest.$ac_ext >&5
12381
12382eval "$as_ac_var=no"
12383fi
12384rm -f conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386fi
12387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12388echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12389if test `eval echo '${'$as_ac_var'}'` = yes; then
12390 cat >>confdefs.h <<_ACEOF
12391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12392_ACEOF
12393
12394fi
12395done
12396
12397
12398have_clone=no
12399
12400echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12401echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12402if test -e /dev/ptym/clone; then
12403 echo "$as_me:$LINENO: result: yes" >&5
12404echo "${ECHO_T}yes" >&6
12405
12406cat >>confdefs.h <<\_ACEOF
12407#define HAVE_DEV_CLONE 1
12408_ACEOF
12409
12410
12411cat >>confdefs.h <<\_ACEOF
12412#define CLONE_DEVICE "/dev/ptym/clone"
12413_ACEOF
12414
12415 have_clone=yes
12416else
12417 echo "$as_me:$LINENO: result: no" >&5
12418echo "${ECHO_T}no" >&6
12419fi
12420
12421echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12422echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12423if test -e /dev/ptc; then
12424 echo "$as_me:$LINENO: result: yes" >&5
12425echo "${ECHO_T}yes" >&6
12426
12427cat >>confdefs.h <<\_ACEOF
12428#define HAVE_DEV_PTC 1
12429_ACEOF
12430
12431
12432cat >>confdefs.h <<\_ACEOF
12433#define CLONE_DEVICE "/dev/ptc"
12434_ACEOF
12435
12436 have_clone=yes
12437else
12438 echo "$as_me:$LINENO: result: no" >&5
12439echo "${ECHO_T}no" >&6
12440fi
12441
12442case $host in
12443 *-*-cygwin*)
12444 have_clone=yes
12445
12446cat >>confdefs.h <<\_ACEOF
12447#define CLONE_DEVICE "/dev/ptmx"
12448_ACEOF
12449
12450 ;;
12451 *)
12452 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12453echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12454 if test -e /dev/ptmx; then
12455 echo "$as_me:$LINENO: result: yes" >&5
12456echo "${ECHO_T}yes" >&6
12457
12458cat >>confdefs.h <<\_ACEOF
12459#define HAVE_DEV_PTMX 1
12460_ACEOF
12461
12462
12463cat >>confdefs.h <<\_ACEOF
12464#define CLONE_DEVICE "/dev/ptmx"
12465_ACEOF
12466
12467 have_clone=yes
12468 else
12469 echo "$as_me:$LINENO: result: no" >&5
12470echo "${ECHO_T}no" >&6
12471 fi
12472 ;;
12473esac
12474
12475if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12476 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12477echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12478 cat >conftest.$ac_ext <<_ACEOF
12479/* confdefs.h. */
12480_ACEOF
12481cat confdefs.h >>conftest.$ac_ext
12482cat >>conftest.$ac_ext <<_ACEOF
12483/* end confdefs.h. */
12484#include <stdlib.h>
12485int
12486main ()
12487{
12488grantpt(0);unlockpt(0);ptsname(0);
12489 ;
12490 return 0;
12491}
12492_ACEOF
12493rm -f conftest.$ac_objext conftest$ac_exeext
12494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495 (eval $ac_link) 2>conftest.er1
12496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try='test -s conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 unix98_pty=yes
12515
12516cat >>confdefs.h <<\_ACEOF
12517#define UNIX98_PTY 1
12518_ACEOF
12519
12520 echo "$as_me:$LINENO: result: yes" >&5
12521echo "${ECHO_T}yes" >&6
12522else
12523 echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
12526echo "$as_me:$LINENO: result: no" >&5
12527echo "${ECHO_T}no" >&6
12528fi
12529rm -f conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531fi
12532
12533if test -z "$unix98_pty"; then
12534
12535for ac_func in openpty
12536do
12537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12538echo "$as_me:$LINENO: checking for $ac_func" >&5
12539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12540if eval "test \"\${$as_ac_var+set}\" = set"; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12542else
12543 cat >conftest.$ac_ext <<_ACEOF
12544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
12549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12551#define $ac_func innocuous_$ac_func
12552
12553/* System header to define __stub macros and hopefully few prototypes,
12554 which can conflict with char $ac_func (); below.
12555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12556 <limits.h> exists even on freestanding compilers. */
12557
12558#ifdef __STDC__
12559# include <limits.h>
12560#else
12561# include <assert.h>
12562#endif
12563
12564#undef $ac_func
12565
12566/* Override any gcc2 internal prototype to avoid an error. */
12567#ifdef __cplusplus
12568extern "C"
12569{
12570#endif
12571/* We use char because int might match the return type of a gcc2
12572 builtin and then its argument prototype would still apply. */
12573char $ac_func ();
12574/* The GNU C library defines this for functions which it implements
12575 to always fail with ENOSYS. Some functions are actually named
12576 something starting with __ and the normal name is an alias. */
12577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12578choke me
12579#else
12580char (*f) () = $ac_func;
12581#endif
12582#ifdef __cplusplus
12583}
12584#endif
12585
12586int
12587main ()
12588{
12589return f != $ac_func;
12590 ;
12591 return 0;
12592}
12593_ACEOF
12594rm -f conftest.$ac_objext conftest$ac_exeext
12595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12596 (eval $ac_link) 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 eval "$as_ac_var=yes"
12616else
12617 echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620eval "$as_ac_var=no"
12621fi
12622rm -f conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624fi
12625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12627if test `eval echo '${'$as_ac_var'}'` = yes; then
12628 cat >>confdefs.h <<_ACEOF
12629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12630_ACEOF
12631
12632else
12633 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12634echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12635if test "${ac_cv_lib_util_openpty+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637else
12638 ac_check_lib_save_LIBS=$LIBS
12639LIBS="-lutil $LIBS"
12640cat >conftest.$ac_ext <<_ACEOF
12641/* confdefs.h. */
12642_ACEOF
12643cat confdefs.h >>conftest.$ac_ext
12644cat >>conftest.$ac_ext <<_ACEOF
12645/* end confdefs.h. */
12646
12647/* Override any gcc2 internal prototype to avoid an error. */
12648#ifdef __cplusplus
12649extern "C"
12650#endif
12651/* We use char because int might match the return type of a gcc2
12652 builtin and then its argument prototype would still apply. */
12653char openpty ();
12654int
12655main ()
12656{
12657openpty ();
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext conftest$ac_exeext
12663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664 (eval $ac_link) 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest$ac_exeext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_cv_lib_util_openpty=yes
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688ac_cv_lib_util_openpty=no
12689fi
12690rm -f conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
12692LIBS=$ac_check_lib_save_LIBS
12693fi
12694echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12695echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12696if test $ac_cv_lib_util_openpty = yes; then
12697 cat >>confdefs.h <<\_ACEOF
12698#define HAVE_OPENPTY 1
12699_ACEOF
12700 LIBS="$LIBS -lutil"
12701fi
12702
12703fi
12704done
12705
12706fi
12707
12708
12709
12710echo "$as_me:$LINENO: checking for tty group" >&5
12711echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12712if test "${tty_group+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714else
12715 if test "$cross_compiling" = yes; then
12716 tty_group=no
12717else
12718 cat >conftest.$ac_ext <<_ACEOF
12719/* confdefs.h. */
12720_ACEOF
12721cat confdefs.h >>conftest.$ac_ext
12722cat >>conftest.$ac_ext <<_ACEOF
12723/* end confdefs.h. */
12724
12725#include <sys/types.h>
12726#include <sys/stat.h>
12727#include <unistd.h>
12728#include <grp.h>
12729
12730main()
12731{
12732 struct stat st;
12733 struct group *gr;
12734 char *tty;
12735 gr = getgrnam("tty");
12736 tty = ttyname(0);
12737 if (gr != 0
12738 && tty != 0
12739 && (stat(tty, &st)) == 0
12740 && st.st_gid == gr->gr_gid)
12741 return 0;
12742 else
12743 return 1;
12744}
12745_ACEOF
12746rm -f conftest$ac_exeext
12747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748 (eval $ac_link) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 tty_group=yes
12758else
12759 echo "$as_me: program exited with status $ac_status" >&5
12760echo "$as_me: failed program was:" >&5
12761sed 's/^/| /' conftest.$ac_ext >&5
12762
12763( exit $ac_status )
12764tty_group=no
12765fi
12766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12767fi
12768fi
12769echo "$as_me:$LINENO: result: $tty_group" >&5
12770echo "${ECHO_T}$tty_group" >&6
12771if test x$tty_group = xyes; then
12772
12773cat >>confdefs.h <<\_ACEOF
12774#define TTY_GID_SUPPORT 1
12775_ACEOF
12776
12777fi
12778
12779if test x$support_xft = xyes; then
12780 # Extract the first word of "pkg-config", so it can be a program name with args.
12781set dummy pkg-config; ac_word=$2
12782echo "$as_me:$LINENO: checking for $ac_word" >&5
12783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12784if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 case $PKG_CONFIG in
12788 [\\/]* | ?:[\\/]*)
12789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12790 ;;
12791 *)
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793for as_dir in $PATH
12794do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803done
12804done
12805
12806 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12807 ;;
12808esac
12809fi
12810PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12811
12812if test -n "$PKG_CONFIG"; then
12813 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12814echo "${ECHO_T}$PKG_CONFIG" >&6
12815else
12816 echo "$as_me:$LINENO: result: no" >&5
12817echo "${ECHO_T}no" >&6
12818fi
12819
12820 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12821 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12822 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12823 else
12824 # Extract the first word of "xft-config", so it can be a program name with args.
12825set dummy xft-config; ac_word=$2
12826echo "$as_me:$LINENO: checking for $ac_word" >&5
12827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12828if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830else
12831 case $XFT_CONFIG in
12832 [\\/]* | ?:[\\/]*)
12833 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12834 ;;
12835 *)
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837for as_dir in $PATH
12838do
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12843 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 break 2
12846 fi
12847done
12848done
12849
12850 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12851 ;;
12852esac
12853fi
12854XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12855
12856if test -n "$XFT_CONFIG"; then
12857 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12858echo "${ECHO_T}$XFT_CONFIG" >&6
12859else
12860 echo "$as_me:$LINENO: result: no" >&5
12861echo "${ECHO_T}no" >&6
12862fi
12863
12864 if test $XFT_CONFIG != no; then
12865 LIBS="$LIBS `$XFT_CONFIG --libs`"
12866 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12867 fi
12868 fi
12869
12870
12871for ac_header in X11/Xft/Xft.h
12872do
12873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12874if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875 echo "$as_me:$LINENO: checking for $ac_header" >&5
12876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12877if eval "test \"\${$as_ac_Header+set}\" = set"; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879fi
12880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12882else
12883 # Is the header compilable?
12884echo "$as_me:$LINENO: checking $ac_header usability" >&5
12885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12886cat >conftest.$ac_ext <<_ACEOF
12887/* confdefs.h. */
12888_ACEOF
12889cat confdefs.h >>conftest.$ac_ext
12890cat >>conftest.$ac_ext <<_ACEOF
12891/* end confdefs.h. */
12892$ac_includes_default
12893#include <$ac_header>
12894_ACEOF
12895rm -f conftest.$ac_objext
12896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest.$ac_objext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_header_compiler=yes
12917else
12918 echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
12921ac_header_compiler=no
12922fi
12923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12924echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12925echo "${ECHO_T}$ac_header_compiler" >&6
12926
12927# Is the header present?
12928echo "$as_me:$LINENO: checking $ac_header presence" >&5
12929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12930cat >conftest.$ac_ext <<_ACEOF
12931/* confdefs.h. */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
12935/* end confdefs.h. */
12936#include <$ac_header>
12937_ACEOF
12938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12940 ac_status=$?
12941 grep -v '^ *+' conftest.er1 >conftest.err
12942 rm -f conftest.er1
12943 cat conftest.err >&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } >/dev/null; then
12946 if test -s conftest.err; then
12947 ac_cpp_err=$ac_cxx_preproc_warn_flag
12948 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12949 else
12950 ac_cpp_err=
12951 fi
12952else
12953 ac_cpp_err=yes
12954fi
12955if test -z "$ac_cpp_err"; then
12956 ac_header_preproc=yes
12957else
12958 echo "$as_me: failed program was:" >&5
12959sed 's/^/| /' conftest.$ac_ext >&5
12960
12961 ac_header_preproc=no
12962fi
12963rm -f conftest.err conftest.$ac_ext
12964echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12965echo "${ECHO_T}$ac_header_preproc" >&6
12966
12967# So? What about this header?
12968case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12969 yes:no: )
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12974 ac_header_preproc=yes
12975 ;;
12976 no:yes:* )
12977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12980echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12984echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12989 (
12990 cat <<\_ASBOX
12991## ------------------------------------------ ##
12992## Report this to the AC_PACKAGE_NAME lists. ##
12993## ------------------------------------------ ##
12994_ASBOX
12995 ) |
12996 sed "s/^/$as_me: WARNING: /" >&2
12997 ;;
12998esac
12999echo "$as_me:$LINENO: checking for $ac_header" >&5
13000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13001if eval "test \"\${$as_ac_Header+set}\" = set"; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003else
13004 eval "$as_ac_Header=\$ac_header_preproc"
13005fi
13006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13008
13009fi
13010if test `eval echo '${'$as_ac_Header'}'` = yes; then
13011 cat >>confdefs.h <<_ACEOF
13012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13013_ACEOF
13014
16719else 13015else
16720 support_xft=no 13016 support_xft=no
16721fi 13017fi
16722 13018
16723done 13019done
16804#define XFT 1 13100#define XFT 1
16805_ACEOF 13101_ACEOF
16806 13102
16807 fi 13103 fi
16808fi 13104fi
13105if test x$support_styles = xyes; then
16809 13106
13107cat >>confdefs.h <<\_ACEOF
13108#define ENABLE_STYLES 1
13109_ACEOF
13110
13111fi
13112if test x$support_iso14755 = xyes; then
13113
13114cat >>confdefs.h <<\_ACEOF
13115#define ISO_14755 1
13116_ACEOF
13117
13118fi
13119if test x$support_8bitctrls = xyes; then
13120
13121cat >>confdefs.h <<\_ACEOF
13122#define EIGHT_BIT_CONTROLS 1
13123_ACEOF
13124
13125fi
13126if test x$support_fading = xyes; then
13127
13128cat >>confdefs.h <<\_ACEOF
13129#define OFF_FOCUS_FADING 1
13130_ACEOF
13131
13132fi
13133if test x$support_tinting = xyes; then
13134
13135cat >>confdefs.h <<\_ACEOF
13136#define TINTING 1
13137_ACEOF
13138
13139fi
13140if test x$support_inheritpixmap = xyes; then
13141
13142cat >>confdefs.h <<\_ACEOF
13143#define TRANSPARENT 1
13144_ACEOF
13145
13146fi
13147if test x$support_keepscrolling = xno; then
13148
13149cat >>confdefs.h <<\_ACEOF
13150#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
13151_ACEOF
13152
13153fi
13154if test x$support_selectionscrolling = xyes; then
13155
13156cat >>confdefs.h <<\_ACEOF
13157#define SELECTION_SCROLLING 1
13158_ACEOF
13159
13160fi
13161if test x$support_frills = xyes; then
13162
13163cat >>confdefs.h <<\_ACEOF
13164#define ENABLE_FRILLS 1
13165_ACEOF
13166
13167fi
13168if test x$support_24bit = xyes; then
13169
13170cat >>confdefs.h <<\_ACEOF
13171#define PREFER_24BIT 1
13172_ACEOF
13173
13174fi
13175if test x$support_mousewheel = xyes; then
13176
13177cat >>confdefs.h <<\_ACEOF
13178#define MOUSE_WHEEL 1
13179_ACEOF
13180
13181fi
13182if test x$support_mouseslipwheel = xyes; then
13183
13184cat >>confdefs.h <<\_ACEOF
13185#define MOUSE_SLIP_WHEELING 1
13186_ACEOF
13187
13188fi
13189if test x$support_utmp = xyes; then
13190
13191cat >>confdefs.h <<\_ACEOF
13192#define UTMP_SUPPORT 1
13193_ACEOF
13194
13195fi
13196if test x$support_wtmp = xyes; then
13197
13198cat >>confdefs.h <<\_ACEOF
13199#define WTMP_SUPPORT 1
13200_ACEOF
13201
13202fi
13203if test x$support_lastlog = xyes; then
13204
13205cat >>confdefs.h <<\_ACEOF
13206#define LASTLOG_SUPPORT 1
13207_ACEOF
13208
13209fi
13210if test x$support_xim = xyes -o x$multichar_set = xyes; then
13211 if test x$rxvt_cv_func_xlocale = xyes; then
13212
13213cat >>confdefs.h <<\_ACEOF
13214#define USE_XIM 1
13215_ACEOF
13216
13217 fi
13218fi
13219if test x$support_xpm = xyes; then
13220
13221cat >>confdefs.h <<\_ACEOF
13222#define XPM_BACKGROUND 1
13223_ACEOF
13224
13225fi
13226if test x$support_scroll_rxvt = xyes; then
13227
13228cat >>confdefs.h <<\_ACEOF
13229#define RXVT_SCROLLBAR 1
13230_ACEOF
13231
13232 scrolltypes="rxvt"
13233fi
13234if test x$support_scroll_next = xyes; then
13235
13236cat >>confdefs.h <<\_ACEOF
13237#define NEXT_SCROLLBAR 1
13238_ACEOF
13239
13240 scrolltypes="$scrolltypes next"
13241fi
13242if test x$support_scroll_xterm = xyes; then
13243
13244cat >>confdefs.h <<\_ACEOF
13245#define XTERM_SCROLLBAR 1
13246_ACEOF
13247
13248 scrolltypes="$scrolltypes xterm"
13249fi
13250if test x$support_scroll_plain = xyes; then
13251
13252cat >>confdefs.h <<\_ACEOF
13253#define PLAIN_SCROLLBAR 1
13254_ACEOF
13255
13256 scrolltypes="$scrolltypes plain"
13257fi
13258if test x$support_pointer_blank = xyes; then
13259
13260cat >>confdefs.h <<\_ACEOF
13261#define POINTER_BLANK 1
13262_ACEOF
13263
13264fi
13265if test x$support_text_blink = xyes; then
13266
13267cat >>confdefs.h <<\_ACEOF
13268#define TEXT_BLINK 1
13269_ACEOF
13270
13271fi
13272if test x$support_unicode3 = xyes; then
13273
13274cat >>confdefs.h <<\_ACEOF
13275#define UNICODE_3 1
13276_ACEOF
13277
13278fi
13279if test x$support_combining = xyes; then
13280
13281cat >>confdefs.h <<\_ACEOF
13282#define ENABLE_COMBINING 1
13283_ACEOF
13284
13285fi
13286if test x$codesets = xall; then
13287 codesets=jp,jp-ext,kr,zh,zh-ext
13288fi
13289
13290cat >>confdefs.h <<\_ACEOF
13291#define ENCODING_EU 1
13292_ACEOF
13293
13294
13295cat >>confdefs.h <<\_ACEOF
13296#define ENCODING_VN 1
13297_ACEOF
13298
13299for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13300 case "$codeset" in
13301 JP )
13302cat >>confdefs.h <<\_ACEOF
13303#define ENCODING_JP 1
13304_ACEOF
13305 ;;
13306 JP_EXT )
13307cat >>confdefs.h <<\_ACEOF
13308#define ENCODING_JP_EXT 1
13309_ACEOF
13310 ;;
13311 KR )
13312cat >>confdefs.h <<\_ACEOF
13313#define ENCODING_KR 1
13314_ACEOF
13315 ;;
13316 ZH )
13317cat >>confdefs.h <<\_ACEOF
13318#define ENCODING_ZH 1
13319_ACEOF
13320 ;;
13321 ZH_EXT )
13322cat >>confdefs.h <<\_ACEOF
13323#define ENCODING_ZH_EXT 1
13324_ACEOF
13325 ;;
13326 esac
13327done
13328
13329IF_PERL=\#
13330if test x$support_perl = xyes; then
13331 # Extract the first word of "perl5", so it can be a program name with args.
13332set dummy perl5; ac_word=$2
13333echo "$as_me:$LINENO: checking for $ac_word" >&5
13334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13335if test "${ac_cv_path_PERL+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337else
13338 case $PERL in
13339 [\\/]* | ?:[\\/]*)
13340 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13341 ;;
13342 *)
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344for as_dir in $PATH
13345do
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13350 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13352 break 2
13353 fi
13354done
13355done
13356
13357 ;;
13358esac
13359fi
13360PERL=$ac_cv_path_PERL
13361
13362if test -n "$PERL"; then
13363 echo "$as_me:$LINENO: result: $PERL" >&5
13364echo "${ECHO_T}$PERL" >&6
13365else
13366 echo "$as_me:$LINENO: result: no" >&5
13367echo "${ECHO_T}no" >&6
13368fi
13369
13370 # Extract the first word of "perl", so it can be a program name with args.
13371set dummy perl; ac_word=$2
13372echo "$as_me:$LINENO: checking for $ac_word" >&5
13373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13374if test "${ac_cv_path_PERL+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377 case $PERL in
13378 [\\/]* | ?:[\\/]*)
13379 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13380 ;;
13381 *)
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383for as_dir in $PATH
13384do
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13389 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13391 break 2
13392 fi
13393done
13394done
13395
13396 ;;
13397esac
13398fi
13399PERL=$ac_cv_path_PERL
13400
13401if test -n "$PERL"; then
13402 echo "$as_me:$LINENO: result: $PERL" >&5
13403echo "${ECHO_T}$PERL" >&6
13404else
13405 echo "$as_me:$LINENO: result: no" >&5
13406echo "${ECHO_T}no" >&6
13407fi
13408
13409
13410 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13411echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13412 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13413
13414 save_CXXFLAGS="$CXXFLAGS"
13415 save_LIBS="$LIBS"
13416 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13417 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13418 cat >conftest.$ac_ext <<_ACEOF
13419/* confdefs.h. */
13420_ACEOF
13421cat confdefs.h >>conftest.$ac_ext
13422cat >>conftest.$ac_ext <<_ACEOF
13423/* end confdefs.h. */
13424
13425#include <EXTERN.h>
13426#include <perl.h>
13427#include <XSUB.h>
13428
13429int
13430main ()
13431{
13432
13433 PerlInterpreter *perl = perl_alloc ();
13434
13435 ;
13436 return 0;
13437}
13438_ACEOF
13439rm -f conftest.$ac_objext conftest$ac_exeext
13440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13441 (eval $ac_link) 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest$ac_exeext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 rxvt_perl_link=yes
13461else
13462 echo "$as_me: failed program was:" >&5
13463sed 's/^/| /' conftest.$ac_ext >&5
13464
13465rxvt_perl_link=no
13466fi
13467rm -f conftest.err conftest.$ac_objext \
13468 conftest$ac_exeext conftest.$ac_ext
13469 CXXFLAGS="$save_CXXFLAGS"
13470 LIBS="$save_LIBS"
13471
13472 if test x$rxvt_perl_link = xyes; then
13473 echo "$as_me:$LINENO: result: ok" >&5
13474echo "${ECHO_T}ok" >&6
13475
13476cat >>confdefs.h <<\_ACEOF
13477#define ENABLE_PERL 1
13478_ACEOF
13479
13480 IF_PERL=
13481 PERL_O=rxvtperl.o
13482 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13483 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13484 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13485 else
13486 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13487echo "$as_me: error: no, unable to link" >&2;}
13488 { (exit 1); exit 1; }; }
13489 fi
13490 else
13491 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13492echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13493 { (exit 1); exit 1; }; }
13494 fi
13495fi
13496
13497
13498
13499
13500
13501
13502
13503if test x$support_perl = xyes; then
13504 support_frills=yes
13505fi
13506
13507
13508CFLAGS=${CFLAGS--O}
13509LDFLAGS=${LDFLAGS--O}
13510
13511CPPFLAGS="$CPPFLAGS"
13512
13513
13514
13515
13516
13517
13518
13519if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13520 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13521 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13522 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13523 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13524 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13525fi
13526
13527
13528
13529
13530
13531test "$program_prefix" != NONE &&
13532 program_transform_name="s,^,$program_prefix,;$program_transform_name"
13533# Use a double $ so make ignores it.
13534test "$program_suffix" != NONE &&
13535 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13536# Double any \ or $. echo might interpret backslashes.
13537# By default was `s,x,x', remove it if useless.
13538cat <<\_ACEOF >conftest.sed
13539s/[\\$]/&&/g;s/;s,x,x,$//
13540_ACEOF
13541program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13542rm conftest.sed
13543
13544
13545
13546
13547
13548if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13549 include_stdint_h="#include <stdint.h>"
13550else
13551 include_stdint_h="/* #include <stdint.h> */"
13552fi
13553if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13554 include_stdarg_h="#include <cstdarg>"
13555else
13556 include_stdarg_h="/* #include <cstdarg> */"
13557fi
13558if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13559 include_stdlib_h="#include <cstdlib>"
13560else
13561 include_stdlib_h="/* #include <cstdlib> */"
13562fi
13563if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13564 include_unistd_h="#include <unistd.h>"
13565else
13566 include_unistd_h="/* #include <unistd.h> */"
13567fi
13568if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13569 include_string_h="#include <cstring>"
13570else
13571 include_string_h="/* #include <cstring> */"
13572fi
13573if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13574 include_fcntl_h="#include <fcntl.h>"
13575else
13576 include_fcntl_h="/* #include <fcntl.h> */"
13577fi
13578if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13579 include_util_h="#include <util.h>"
13580else
13581 include_util_h="/* #include <util.h> */"
13582fi
13583if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13584 include_assert_h="#include <assert.h>"
13585else
13586 include_assert_h="/* #include <assert.h> */"
13587fi
13588if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13589 include_sys_ioctl_h="#include <sys/ioctl.h>"
13590else
13591 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13592fi
13593if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13594 include_sys_select_h="#include <sys/select.h>"
13595else
13596 include_sys_select_h="/* #include <sys/select.h> */"
13597fi
13598if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13599 include_sys_strredir_h="#include <sys/strredir.h>"
13600else
13601 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13602fi
13603if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13604 include_sys_time_h="#include <sys/time.h>"
13605else
13606 include_sys_time_h="/* #include <sys/time.h> */"
13607fi
13608if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13609 include_time_h="#include <time.h>"
13610else
13611 include_time_h="/* #include <time.h> */"
13612fi
13613
16810 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13614 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13615
16811cat >confcache <<\_ACEOF 13616cat >confcache <<\_ACEOF
16812# This file is a shell script that caches the results of configure 13617# This file is a shell script that caches the results of configure
16813# tests run on this system so they can be shared between configure 13618# tests run on this system so they can be shared between configure
16814# scripts and configure runs, see configure's option --config-cache. 13619# scripts and configure runs, see configure's option --config-cache.
16815# It is not useful on other systems. If it contains results you don't 13620# It is not useful on other systems. If it contains results you don't
17331cat >>$CONFIG_STATUS <<\_ACEOF 14136cat >>$CONFIG_STATUS <<\_ACEOF
17332for ac_config_target in $ac_config_targets 14137for ac_config_target in $ac_config_targets
17333do 14138do
17334 case "$ac_config_target" in 14139 case "$ac_config_target" in
17335 # Handling of arguments. 14140 # Handling of arguments.
17336 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17337 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14141 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17338 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14142 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17339 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14143 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17340 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17341 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 14144 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17342 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17343 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 14145 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
17344 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14146 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17345echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14147echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17346 { (exit 1); exit 1; }; };; 14148 { (exit 1); exit 1; }; };;
17347 esac 14149 esac
17348done 14150done
17423s,@DEFS@,$DEFS,;t t 14225s,@DEFS@,$DEFS,;t t
17424s,@ECHO_C@,$ECHO_C,;t t 14226s,@ECHO_C@,$ECHO_C,;t t
17425s,@ECHO_N@,$ECHO_N,;t t 14227s,@ECHO_N@,$ECHO_N,;t t
17426s,@ECHO_T@,$ECHO_T,;t t 14228s,@ECHO_T@,$ECHO_T,;t t
17427s,@LIBS@,$LIBS,;t t 14229s,@LIBS@,$LIBS,;t t
14230s,@build@,$build,;t t
14231s,@build_cpu@,$build_cpu,;t t
14232s,@build_vendor@,$build_vendor,;t t
14233s,@build_os@,$build_os,;t t
14234s,@host@,$host,;t t
14235s,@host_cpu@,$host_cpu,;t t
14236s,@host_vendor@,$host_vendor,;t t
14237s,@host_os@,$host_os,;t t
17428s,@VERSION@,$VERSION,;t t 14238s,@VERSION@,$VERSION,;t t
17429s,@DATE@,$DATE,;t t 14239s,@DATE@,$DATE,;t t
17430s,@LSMDATE@,$LSMDATE,;t t 14240s,@LSMDATE@,$LSMDATE,;t t
17431s,@LIBVERSION@,$LIBVERSION,;t t 14241s,@LIBVERSION@,$LIBVERSION,;t t
17432s,@CC@,$CC,;t t 14242s,@CC@,$CC,;t t
17441s,@ac_ct_CXX@,$ac_ct_CXX,;t t 14251s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17442s,@CPP@,$CPP,;t t 14252s,@CPP@,$CPP,;t t
17443s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14253s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17444s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14254s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17445s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14255s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17446s,@AWK@,$AWK,;t t 14256s,@EGREP@,$EGREP,;t t
17447s,@LINKER@,$LINKER,;t t 14257s,@LINKER@,$LINKER,;t t
17448s,@CXXCPP@,$CXXCPP,;t t
17449s,@EGREP@,$EGREP,;t t
17450s,@build@,$build,;t t
17451s,@build_cpu@,$build_cpu,;t t
17452s,@build_vendor@,$build_vendor,;t t
17453s,@build_os@,$build_os,;t t
17454s,@host@,$host,;t t
17455s,@host_cpu@,$host_cpu,;t t
17456s,@host_vendor@,$host_vendor,;t t
17457s,@host_os@,$host_os,;t t
17458s,@LN_S@,$LN_S,;t t
17459s,@ECHO@,$ECHO,;t t
17460s,@RANLIB@,$RANLIB,;t t
17461s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17462s,@STRIP@,$STRIP,;t t
17463s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17464s,@LIBTOOL@,$LIBTOOL,;t t
17465s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 14258s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17466s,@RXVTNAME@,$RXVTNAME,;t t 14259s,@RXVTNAME@,$RXVTNAME,;t t
17467s,@MV@,$MV,;t t 14260s,@MV@,$MV,;t t
17468s,@RM@,$RM,;t t 14261s,@RM@,$RM,;t t
17469s,@CP@,$CP,;t t 14262s,@CP@,$CP,;t t
17470s,@LN@,$LN,;t t 14263s,@LN@,$LN,;t t
17471s,@SED@,$SED,;t t 14264s,@SED@,$SED,;t t
14265s,@ECHO@,$ECHO,;t t
17472s,@CMP@,$CMP,;t t 14266s,@CMP@,$CMP,;t t
17473s,@TBL@,$TBL,;t t 14267s,@TIC@,$TIC,;t t
14268s,@CXXCPP@,$CXXCPP,;t t
17474s,@X_CFLAGS@,$X_CFLAGS,;t t 14269s,@X_CFLAGS@,$X_CFLAGS,;t t
17475s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 14270s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17476s,@X_LIBS@,$X_LIBS,;t t 14271s,@X_LIBS@,$X_LIBS,;t t
17477s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 14272s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17478s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 14273s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17482s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 14277s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17483s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 14278s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17484s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 14279s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17485s,@rxvt_intp_define@,$rxvt_intp_define,;t t 14280s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17486s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 14281s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
14282s,@PKG_CONFIG@,$PKG_CONFIG,;t t
14283s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14284s,@PERL@,$PERL,;t t
14285s,@PERLLIB@,$PERLLIB,;t t
14286s,@PERLFLAGS@,$PERLFLAGS,;t t
14287s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14288s,@IF_PERL@,$IF_PERL,;t t
14289s,@PERL_O@,$PERL_O,;t t
17487s,@DEBUG@,$DEBUG,;t t 14290s,@DEBUG@,$DEBUG,;t t
17488s,@DINCLUDE@,$DINCLUDE,;t t 14291s,@DINCLUDE@,$DINCLUDE,;t t
17489s,@DLIB@,$DLIB,;t t 14292s,@DLIB@,$DLIB,;t t
17490s,@include_stdint_h@,$include_stdint_h,;t t 14293s,@include_stdint_h@,$include_stdint_h,;t t
17491s,@include_stdarg_h@,$include_stdarg_h,;t t 14294s,@include_stdarg_h@,$include_stdarg_h,;t t
17500s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14303s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17501s,@include_sys_time_h@,$include_sys_time_h,;t t 14304s,@include_sys_time_h@,$include_sys_time_h,;t t
17502s,@include_time_h@,$include_time_h,;t t 14305s,@include_time_h@,$include_time_h,;t t
17503s,@LIBOBJS@,$LIBOBJS,;t t 14306s,@LIBOBJS@,$LIBOBJS,;t t
17504s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14307s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17505/@MCOMMON@/r $MCOMMON
17506s,@MCOMMON@,,;t t
17507CEOF 14308CEOF
17508 14309
17509_ACEOF 14310_ACEOF
17510 14311
17511 cat >>$CONFIG_STATUS <<\_ACEOF 14312 cat >>$CONFIG_STATUS <<\_ACEOF
18018 14819
18019if test x$support_xpm = xyes; then 14820if test x$support_xpm = xyes; then
18020 echo " Xpm library: $XPM_LIBS" 14821 echo " Xpm library: $XPM_LIBS"
18021fi 14822fi
18022 14823
18023echo "
18024The following are set in config.h
18025"
18026echo " pty/tty type: "$rxvt_cv_ptys
18027if test x$support_utmp != xyes; then 14824if test x$support_utmp != xyes; then
18028 echo " utmp support: disabled" 14825 echo " utmp support: disabled"
18029 echo 14826 echo
18030else 14827else
18031 echo " utmp support: enabled 14828 echo " utmp support: enabled
18032 utmp file: $rxvt_cv_path_utmp 14829 utmp file: $path_utmp
18033 utmpx file: $rxvt_cv_path_utmpx 14830 utmpx file: $path_utmpx
18034 wtmp file: $rxvt_cv_path_wtmp 14831 wtmp file: $path_wtmp
18035 wtmpx file: $rxvt_cv_path_wtmpx 14832 wtmpx file: $path_wtmpx
18036 lastlog file: $rxvt_cv_path_lastlog 14833 lastlog file: $path_lastlog
18037 ttys/ttytab file: $rxvt_cv_path_ttytab" 14834 lastlogx file: $path_lastlogx"
18038 echo
18039fi 14835fi
18040if test x$term != x; then 14836if test x$term != x; then
18041 echo " set TERM to: $term" 14837 echo " set TERM to: $term"
18042fi 14838fi
18043if test x$terminfo != x; then 14839if test x$terminfo != x; then
18047echo " resource class: $RESCLASS" 14843echo " resource class: $RESCLASS"
18048if test x$RESFALLBACK != x; then 14844if test x$RESFALLBACK != x; then
18049 echo " resource class fallback: $RESFALLBACK" 14845 echo " resource class fallback: $RESFALLBACK"
18050fi 14846fi
18051echo 14847echo
18052if test x$rxvt_cv_ptys = xUNKNOWN; then 14848echo " embedded perl: $support_perl"
18053 echo ".----------------------------------------------------------------." 14849echo
18054 echo ". WARNING: could not determine pty/tty type. Do not build until ."
18055 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
18056 echo ".----------------------------------------------------------------."
18057fi
18058if test x$support_xpm = xneedsmanualspecification; then 14850if test x$support_xpm = xneedsmanualspecification; then
18059 echo ".----------------------------------------------------------------." 14851 echo ".----------------------------------------------------------------."
18060 echo ". WARNING: --enable-xpm-background was specified however the ." 14852 echo ". WARNING: --enable-xpm-background was specified however the ."
18061 echo ". XPM includes files and libraries could not be found. ." 14853 echo ". XPM includes files and libraries could not be found. ."
18062 echo ". XPM backgrounds are now being DISABLED! If you want ." 14854 echo ". XPM backgrounds are now being DISABLED! If you want ."
18071 echo ". functions could not be found. ." 14863 echo ". functions could not be found. ."
18072 echo ". XIM is now being DISABLED! ." 14864 echo ". XIM is now being DISABLED! ."
18073 echo ".----------------------------------------------------------------." 14865 echo ".----------------------------------------------------------------."
18074fi 14866fi
18075 14867
18076echo " *** Please check src/feature.h for further options ***" 14868echo " *** Optionally check src/feature.h for further options ***"
18077echo 14869echo
18078 14870
18079echo ".----------------------------------------------------------------." 14871echo ".----------------------------------------------------------------."
18080echo ". NOTE: most features are disabled by default, try ." 14872echo ". NOTE: some features are disabled by default, try ."
18081echo ". configure --help to get an idea of the optional features ." 14873echo ". configure --help to get an idea of the optional features, ."
14874echo ". or read ./README.configure ."
14875echo ". ."
14876echo ". The script ./reconf gives a reasonable baseline, try it if ."
14877echo ". you do not want to read documentation and still want some ."
14878echo ". useful features. ."
18082echo ".----------------------------------------------------------------." 14879echo ".----------------------------------------------------------------."
18083echo 14880echo
18084 14881

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines