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

Comparing rxvt-unicode/configure (file contents):
Revision 1.34 by root, Sun Aug 15 04:42:45 2004 UTC vs.
Revision 1.74 by root, Tue Jan 17 09:07:40 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 AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL TIC 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 PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
471ac_subst_files='MCOMMON' 313ac_subst_files=''
472 314
473# Initialize some variables set by options. 315# Initialize some variables set by options.
474ac_init_help= 316ac_init_help=
475ac_init_version=false 317ac_init_version=false
476# The variables have the same names as the options, with 318# The variables have the same names as the options, with
1021 cat <<\_ACEOF 863 cat <<\_ACEOF
1022 864
1023Optional Features: 865Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features 868 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent 869 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
874 --enable-font-styles enable bold and italic support
1036 --enable-utmp enable utmp (utmpx) support 875 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 876 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp) 877 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps 878 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds 879 --enable-transparency enable transparent backgrounds
1041 --enable-tinting enable tinting of transparent bg 880 --enable-tinting enable tinting of transparent bg
1042 --enable-fading enable colors fading when off focus 881 --enable-fading enable colors fading when off focus
1043 --enable-menubar enable menubar
1044 --enable-rxvt-scroll enable rxvt style scrollbar 882 --enable-rxvt-scroll enable rxvt style scrollbar
1045 --enable-next-scroll enable NeXT style scrollbar 883 --enable-next-scroll enable NeXT style scrollbar
1046 --enable-xterm-scroll enable Xterm style scrollbar 884 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter
1047 --enable-plain-scroll enable plain style scrollbar 886 --enable-plain-scroll enable plain style scrollbar
1048 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1049 --enable-xim XIM (X Input Method) protocol support 887 --enable-xim XIM (X Input Method) protocol support
1050 --enable-ttygid enable tty setting to group named "tty" 888 --enable-ttygid enable tty setting to group named "tty"
1051 --disable-backspace-key disable handling of the backspace key 889 --disable-backspace-key disable handling of the backspace key
1052 --disable-delete-key disable handling of the delete key 890 --disable-delete-key disable handling of the delete key
1053 --disable-resources disable all resource checking 891 --disable-resources disable all resource checking
1054 --enable-xgetdefault enable resources via X instead of our small version
1055 --enable-8bitctrls enable 8 bit control sequences (not recommended) 892 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1056 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 893 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1057 --enable-strings enable some replacement system functions
1058 --disable-swapscreen disable swap screen support 894 --disable-swapscreen disable swap screen support
1059 --enable-iso14755 enable support for extended ISO 14755 modes 895 --enable-iso14755 enable support for extended ISO 14755 modes
1060 --enable-frills enable support for rarely used features 896 --enable-frills enable support for rarely used features
1061 --enable-linespace enable support for linespace
1062 --enable-24bit enable support for using 24bit visuals if available 897 --enable-24bit enable support for using 24bit visuals if available
1063 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 898 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1064 --enable-selectionscrolling enable scrolling during selections 899 --enable-selectionscrolling enable scrolling during selections
1065 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 900 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1066 --enable-slipwheeling enable slip wheel scrolling (requires previous) 901 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1067 --enable-dmalloc enable Gray Watson's malloc - for debugging use 902 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1068 --enable-dlmalloc enable Doug Lea's malloc - for production use 903 --enable-dlmalloc enable Doug Lea's malloc - for production use
1069 NOTE: enable only one malloc package 904 NOTE: enable only one malloc package
1070 --enable-smart-resize enable smart growth/shrink behaviour 905 --enable-smart-resize enable smart growth/shrink behaviour
1071 --enable-256-color enable 256-color support
1072 --enable-cursor-blink enable blinking cursor
1073 --enable-text-blink enable blinking text 906 --enable-text-blink enable blinking text
1074 --enable-pointer-blank enable pointer blank when typing or inactive pointer 907 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1075 908
1076Optional Packages: 909Optional Packages:
1077 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1078 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1079 --with-gnu-ld assume the C compiler uses GNU ld default=no
1080 --with-pic try to use only PIC/non-PIC objects default=use both
1081 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 912 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1082 --with-res-name=NAME use this as default resource name (default: urxvt) 913 --with-res-name=NAME use this as default resource name (default: urxvt)
1083 --with-res-class=CLASS use this as the resource class (default: URxvt) 914 --with-res-class=CLASS use this as the resource class (default: URxvt)
1084 --with-name=NAME set the basename for the installed binaries (default: urxvt) 915 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1085 --with-term=NAME set the terminal to NAME (default: rxvt) 916 --with-term=NAME set the terminal to NAME (default: rxvt)
1086 --with-terminfo=PATH set the path to the terminfo tree to PATH 917 --with-terminfo=PATH set the path to the terminfo tree to PATH
1538 1369
1539 1370
1540 1371
1541 1372
1542 1373
1374
1543ac_aux_dir= 1375ac_aux_dir=
1544for ac_dir in autoconf $srcdir/autoconf; do 1376for ac_dir in autoconf $srcdir/autoconf; do
1545 if test -f $ac_dir/install-sh; then 1377 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir 1378 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c" 1379 ac_install_sh="$ac_aux_dir/install-sh -c"
1566ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1398ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1567 1399
1568 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1400 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1569 1401
1570 1402
1403# Make sure we can run config.sub.
1404$ac_config_sub sun4 >/dev/null 2>&1 ||
1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1406echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1407 { (exit 1); exit 1; }; }
1408
1409echo "$as_me:$LINENO: checking build system type" >&5
1410echo $ECHO_N "checking build system type... $ECHO_C" >&6
1411if test "${ac_cv_build+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 ac_cv_build_alias=$build_alias
1415test -z "$ac_cv_build_alias" &&
1416 ac_cv_build_alias=`$ac_config_guess`
1417test -z "$ac_cv_build_alias" &&
1418 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1419echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1420 { (exit 1); exit 1; }; }
1421ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1423echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1425
1426fi
1427echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1428echo "${ECHO_T}$ac_cv_build" >&6
1429build=$ac_cv_build
1430build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433
1434
1435echo "$as_me:$LINENO: checking host system type" >&5
1436echo $ECHO_N "checking host system type... $ECHO_C" >&6
1437if test "${ac_cv_host+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439else
1440 ac_cv_host_alias=$host_alias
1441test -z "$ac_cv_host_alias" &&
1442 ac_cv_host_alias=$ac_cv_build_alias
1443ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1445echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1447
1448fi
1449echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1450echo "${ECHO_T}$ac_cv_host" >&6
1451host=$ac_cv_host
1452host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455
1456
1457
1571VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1458VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1572DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1459DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1573LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1574LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1575echo "" 1460echo ""
1576echo "configuring for rxvt $VERSION" 1461echo "configuring for rxvt $VERSION"
1577echo "" 1462echo ""
1463
1464orig_CXXFLAGS="$CXXFLAGS"
1578 1465
1579 1466
1580ac_ext=c 1467ac_ext=c
1581ac_cpp='$CPP $CPPFLAGS' 1468ac_cpp='$CPP $CPPFLAGS'
1582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu 3100ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 3101
3215 3102
3103if test -z "$orig_CXXFLAGS"; then
3104 if test x$GCC = xyes && test "x$GXX" = xyes; then
3105 CXXFLAGS="-g -O3"
3106 else
3107 CXXFLAGS="-O"
3108 fi
3109 CFLAGS="$CXXFLAGS"
3110fi
3111
3216LINKER="$CXX" 3112LINKER="$CXX"
3217if test x$GCC = xyes && test x$GXX = xyes; then 3113if test x$GCC = xyes && test x$GXX = xyes; then
3218 3114
3219echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 3115echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3220echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 3116echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3282 3178
3283fi 3179fi
3284LINKER=$LINKER 3180LINKER=$LINKER
3285 3181
3286 3182
3287CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" 3183
3184cat >>confdefs.h <<\_ACEOF
3185#define _GNU_SOURCE 1
3186_ACEOF
3187
3188
3189case $host in
3190 *-*-solaris* )
3191
3192cat >>confdefs.h <<\_ACEOF
3193#define _XOPEN_SOURCE_EXTENDED 1
3194_ACEOF
3195
3196
3197cat >>confdefs.h <<\_ACEOF
3198#define _XOPEN_SOURCE 2
3199_ACEOF
3200
3201
3202cat >>confdefs.h <<\_ACEOF
3203#define __EXTENSIONS__ 1
3204_ACEOF
3205
3206 ;;
3207esac
3288 3208
3289 3209
3290ac_ext=cc 3210ac_ext=cc
3291ac_cpp='$CXXCPP $CPPFLAGS' 3211ac_cpp='$CXXCPP $CPPFLAGS'
3292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3613 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3694 3614
3695fi 3615fi
3696 3616
3697 3617
3618echo "$as_me:$LINENO: checking for setlocale" >&5
3619echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3620if test "${ac_cv_func_setlocale+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 cat >conftest.$ac_ext <<_ACEOF
3624/* confdefs.h. */
3625_ACEOF
3626cat confdefs.h >>conftest.$ac_ext
3627cat >>conftest.$ac_ext <<_ACEOF
3628/* end confdefs.h. */
3629/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3631#define setlocale innocuous_setlocale
3632
3633/* System header to define __stub macros and hopefully few prototypes,
3634 which can conflict with char setlocale (); below.
3635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636 <limits.h> exists even on freestanding compilers. */
3637
3638#ifdef __STDC__
3639# include <limits.h>
3640#else
3641# include <assert.h>
3642#endif
3643
3644#undef setlocale
3645
3646/* Override any gcc2 internal prototype to avoid an error. */
3647#ifdef __cplusplus
3648extern "C"
3649{
3650#endif
3651/* We use char because int might match the return type of a gcc2
3652 builtin and then its argument prototype would still apply. */
3653char setlocale ();
3654/* The GNU C library defines this for functions which it implements
3655 to always fail with ENOSYS. Some functions are actually named
3656 something starting with __ and the normal name is an alias. */
3657#if defined (__stub_setlocale) || defined (__stub___setlocale)
3658choke me
3659#else
3660char (*f) () = setlocale;
3661#endif
3662#ifdef __cplusplus
3663}
3664#endif
3665
3666int
3667main ()
3668{
3669return f != setlocale;
3670 ;
3671 return 0;
3672}
3673_ACEOF
3674rm -f conftest.$ac_objext conftest$ac_exeext
3675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3676 (eval $ac_link) 2>conftest.er1
3677 ac_status=$?
3678 grep -v '^ *+' conftest.er1 >conftest.err
3679 rm -f conftest.er1
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest$ac_exeext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_cv_func_setlocale=yes
3696else
3697 echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700ac_cv_func_setlocale=no
3701fi
3702rm -f conftest.err conftest.$ac_objext \
3703 conftest$ac_exeext conftest.$ac_ext
3704fi
3705echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3706echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3707if test $ac_cv_func_setlocale = yes; then
3708 :
3709else
3698echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 3710 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3699echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 3711echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3700if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then 3712if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6 3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3702else 3714else
3703 ac_check_lib_save_LIBS=$LIBS 3715 ac_check_lib_save_LIBS=$LIBS
3760echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 3772echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3761if test $ac_cv_lib_xpg4_setlocale = yes; then 3773if test $ac_cv_lib_xpg4_setlocale = yes; then
3762 LIBS="$LIBS -lxpg4" 3774 LIBS="$LIBS -lxpg4"
3763fi 3775fi
3764 3776
3777fi
3765 3778
3779
3780echo "$as_me:$LINENO: checking for gethostbyname" >&5
3781echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3782if test "${ac_cv_func_gethostbyname+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785 cat >conftest.$ac_ext <<_ACEOF
3786/* confdefs.h. */
3787_ACEOF
3788cat confdefs.h >>conftest.$ac_ext
3789cat >>conftest.$ac_ext <<_ACEOF
3790/* end confdefs.h. */
3791/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3793#define gethostbyname innocuous_gethostbyname
3794
3795/* System header to define __stub macros and hopefully few prototypes,
3796 which can conflict with char gethostbyname (); below.
3797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 <limits.h> exists even on freestanding compilers. */
3799
3800#ifdef __STDC__
3801# include <limits.h>
3802#else
3803# include <assert.h>
3804#endif
3805
3806#undef gethostbyname
3807
3808/* Override any gcc2 internal prototype to avoid an error. */
3809#ifdef __cplusplus
3810extern "C"
3811{
3812#endif
3813/* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815char gethostbyname ();
3816/* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3820choke me
3821#else
3822char (*f) () = gethostbyname;
3823#endif
3824#ifdef __cplusplus
3825}
3826#endif
3827
3828int
3829main ()
3830{
3831return f != gethostbyname;
3832 ;
3833 return 0;
3834}
3835_ACEOF
3836rm -f conftest.$ac_objext conftest$ac_exeext
3837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3838 (eval $ac_link) 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest$ac_exeext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 ac_cv_func_gethostbyname=yes
3858else
3859 echo "$as_me: failed program was:" >&5
3860sed 's/^/| /' conftest.$ac_ext >&5
3861
3862ac_cv_func_gethostbyname=no
3863fi
3864rm -f conftest.err conftest.$ac_objext \
3865 conftest$ac_exeext conftest.$ac_ext
3866fi
3867echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3868echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3869if test $ac_cv_func_gethostbyname = yes; then
3870 :
3871else
3766echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 3872 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3767echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 3873echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3768if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 3874if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6 3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else 3876else
3771 ac_check_lib_save_LIBS=$LIBS 3877 ac_check_lib_save_LIBS=$LIBS
3828echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 3934echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3829if test $ac_cv_lib_nsl_gethostbyname = yes; then 3935if test $ac_cv_lib_nsl_gethostbyname = yes; then
3830 LIBS="$LIBS -lnsl" 3936 LIBS="$LIBS -lnsl"
3831fi 3937fi
3832 3938
3939fi
3940
3941echo "$as_me:$LINENO: checking for socket" >&5
3942echo $ECHO_N "checking for socket... $ECHO_C" >&6
3943if test "${ac_cv_func_socket+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946 cat >conftest.$ac_ext <<_ACEOF
3947/* confdefs.h. */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h. */
3952/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3954#define socket innocuous_socket
3955
3956/* System header to define __stub macros and hopefully few prototypes,
3957 which can conflict with char socket (); below.
3958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959 <limits.h> exists even on freestanding compilers. */
3960
3961#ifdef __STDC__
3962# include <limits.h>
3963#else
3964# include <assert.h>
3965#endif
3966
3967#undef socket
3968
3969/* Override any gcc2 internal prototype to avoid an error. */
3970#ifdef __cplusplus
3971extern "C"
3972{
3973#endif
3974/* We use char because int might match the return type of a gcc2
3975 builtin and then its argument prototype would still apply. */
3976char socket ();
3977/* The GNU C library defines this for functions which it implements
3978 to always fail with ENOSYS. Some functions are actually named
3979 something starting with __ and the normal name is an alias. */
3980#if defined (__stub_socket) || defined (__stub___socket)
3981choke me
3982#else
3983char (*f) () = socket;
3984#endif
3985#ifdef __cplusplus
3986}
3987#endif
3988
3989int
3990main ()
3991{
3992return f != socket;
3993 ;
3994 return 0;
3995}
3996_ACEOF
3997rm -f conftest.$ac_objext conftest$ac_exeext
3998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999 (eval $ac_link) 2>conftest.er1
4000 ac_status=$?
4001 grep -v '^ *+' conftest.er1 >conftest.err
4002 rm -f conftest.er1
4003 cat conftest.err >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } &&
4006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 (eval $ac_try) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; } &&
4012 { ac_try='test -s conftest$ac_exeext'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 ac_cv_func_socket=yes
4019else
4020 echo "$as_me: failed program was:" >&5
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023ac_cv_func_socket=no
4024fi
4025rm -f conftest.err conftest.$ac_objext \
4026 conftest$ac_exeext conftest.$ac_ext
4027fi
4028echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4029echo "${ECHO_T}$ac_cv_func_socket" >&6
4030if test $ac_cv_func_socket = yes; then
4031 :
4032else
3833echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 4033 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3834echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 4034echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3835if test "${ac_cv_lib_socket_socket+set}" = set; then 4035if test "${ac_cv_lib_socket_socket+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6 4036 echo $ECHO_N "(cached) $ECHO_C" >&6
3837else 4037else
3838 ac_check_lib_save_LIBS=$LIBS 4038 ac_check_lib_save_LIBS=$LIBS
3895echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 4095echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3896if test $ac_cv_lib_socket_socket = yes; then 4096if test $ac_cv_lib_socket_socket = yes; then
3897 LIBS="$LIBS -lsocket" 4097 LIBS="$LIBS -lsocket"
3898fi 4098fi
3899 4099
3900
3901# Check whether --enable-shared or --disable-shared was given.
3902if test "${enable_shared+set}" = set; then
3903 enableval="$enable_shared"
3904 p=${PACKAGE-default}
3905case "$enableval" in
3906yes) enable_shared=yes ;;
3907no) enable_shared=no ;;
3908*)
3909 enable_shared=no
3910 # Look at the argument we got. We use all the common list separators.
3911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3912 for pkg in $enableval; do
3913 if test "X$pkg" = "X$p"; then
3914 enable_shared=yes
3915 fi
3916 done
3917 IFS="$ac_save_ifs"
3918 ;;
3919esac
3920else
3921 enable_shared=no
3922fi; # Check whether --enable-static or --disable-static was given.
3923if test "${enable_static+set}" = set; then
3924 enableval="$enable_static"
3925 p=${PACKAGE-default}
3926case "$enableval" in
3927yes) enable_static=yes ;;
3928no) enable_static=no ;;
3929*)
3930 enable_static=no
3931 # Look at the argument we got. We use all the common list separators.
3932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3933 for pkg in $enableval; do
3934 if test "X$pkg" = "X$p"; then
3935 enable_static=yes
3936 fi
3937 done
3938 IFS="$ac_save_ifs"
3939 ;;
3940esac
3941else
3942 enable_static=yes
3943fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3944if test "${enable_fast_install+set}" = set; then
3945 enableval="$enable_fast_install"
3946 p=${PACKAGE-default}
3947case "$enableval" in
3948yes) enable_fast_install=yes ;;
3949no) enable_fast_install=no ;;
3950*)
3951 enable_fast_install=no
3952 # Look at the argument we got. We use all the common list separators.
3953 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3954 for pkg in $enableval; do
3955 if test "X$pkg" = "X$p"; then
3956 enable_fast_install=yes
3957 fi
3958 done
3959 IFS="$ac_save_ifs"
3960 ;;
3961esac
3962else
3963 enable_fast_install=yes
3964fi; 4100fi
3965# Make sure we can run config.sub.
3966$ac_config_sub sun4 >/dev/null 2>&1 ||
3967 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3968echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3969 { (exit 1); exit 1; }; }
3970 4101
3971echo "$as_me:$LINENO: checking build system type" >&5
3972echo $ECHO_N "checking build system type... $ECHO_C" >&6
3973if test "${ac_cv_build+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976 ac_cv_build_alias=$build_alias
3977test -z "$ac_cv_build_alias" &&
3978 ac_cv_build_alias=`$ac_config_guess`
3979test -z "$ac_cv_build_alias" &&
3980 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3981echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3982 { (exit 1); exit 1; }; }
3983ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3984 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3985echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3986 { (exit 1); exit 1; }; }
3987 4102
3988fi
3989echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3990echo "${ECHO_T}$ac_cv_build" >&6
3991build=$ac_cv_build
3992build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3993build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3994build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3995
3996
3997echo "$as_me:$LINENO: checking host system type" >&5
3998echo $ECHO_N "checking host system type... $ECHO_C" >&6
3999if test "${ac_cv_host+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 ac_cv_host_alias=$host_alias
4003test -z "$ac_cv_host_alias" &&
4004 ac_cv_host_alias=$ac_cv_build_alias
4005ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4006 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4007echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4008 { (exit 1); exit 1; }; }
4009
4010fi
4011echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4012echo "${ECHO_T}$ac_cv_host" >&6
4013host=$ac_cv_host
4014host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4015host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4016host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4017
4018
4019
4020# Check whether --with-gnu-ld or --without-gnu-ld was given.
4021if test "${with_gnu_ld+set}" = set; then
4022 withval="$with_gnu_ld"
4023 test "$withval" = no || with_gnu_ld=yes
4024else
4025 with_gnu_ld=no
4026fi;
4027ac_prog=ld
4028if test "$GCC" = yes; then
4029 # Check if gcc -print-prog-name=ld gives a path.
4030 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4031echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4032 case $host in
4033 *-*-mingw*)
4034 # gcc leaves a trailing carriage return which upsets mingw
4035 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4036 *)
4037 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4038 esac
4039 case "$ac_prog" in
4040 # Accept absolute paths.
4041 [\\/]* | [A-Za-z]:[\\/]*)
4042 re_direlt='/[^/][^/]*/\.\./'
4043 # Canonicalize the path of ld
4044 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4045 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4046 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4047 done
4048 test -z "$LD" && LD="$ac_prog"
4049 ;;
4050 "")
4051 # If it fails, then pretend we aren't using GCC.
4052 ac_prog=ld
4053 ;;
4054 *)
4055 # If it is relative, then search for the first ld in PATH.
4056 with_gnu_ld=unknown
4057 ;;
4058 esac
4059elif test "$with_gnu_ld" = yes; then
4060 echo "$as_me:$LINENO: checking for GNU ld" >&5 4103echo "$as_me:$LINENO: checking for sched_yield" >&5
4061echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4104echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4062else
4063 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4064echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4065fi
4066if test "${lt_cv_path_LD+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068else
4069 if test -z "$LD"; then
4070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4071 for ac_dir in $PATH; do
4072 test -z "$ac_dir" && ac_dir=.
4073 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4074 lt_cv_path_LD="$ac_dir/$ac_prog"
4075 # Check to see if the program is GNU ld. I'd rather use --version,
4076 # but apparently some GNU ld's only accept -v.
4077 # Break only if it was the GNU/non-GNU ld that we prefer.
4078 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4079 test "$with_gnu_ld" != no && break
4080 else
4081 test "$with_gnu_ld" != yes && break
4082 fi
4083 fi
4084 done
4085 IFS="$ac_save_ifs"
4086else
4087 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4088fi
4089fi
4090
4091LD="$lt_cv_path_LD"
4092if test -n "$LD"; then
4093 echo "$as_me:$LINENO: result: $LD" >&5
4094echo "${ECHO_T}$LD" >&6
4095else
4096 echo "$as_me:$LINENO: result: no" >&5
4097echo "${ECHO_T}no" >&6
4098fi
4099test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4100echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4101 { (exit 1); exit 1; }; }
4102echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4103echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4104if test "${lt_cv_prog_gnu_ld+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4108if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4109 lt_cv_prog_gnu_ld=yes
4110else
4111 lt_cv_prog_gnu_ld=no
4112fi
4113fi
4114echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4115echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4116with_gnu_ld=$lt_cv_prog_gnu_ld
4117
4118
4119echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4120echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4121if test "${lt_cv_ld_reload_flag+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 lt_cv_ld_reload_flag='-r'
4125fi
4126echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4127echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4128reload_flag=$lt_cv_ld_reload_flag
4129test -n "$reload_flag" && reload_flag=" $reload_flag"
4130
4131echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4132echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4133if test "${lt_cv_path_NM+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136 if test -n "$NM"; then
4137 # Let the user override the test.
4138 lt_cv_path_NM="$NM"
4139else
4140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4141 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4142 test -z "$ac_dir" && ac_dir=.
4143 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4144 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4145 # Check to see if the nm accepts a BSD-compat flag.
4146 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4147 # nm: unknown option "B" ignored
4148 # Tru64's nm complains that /dev/null is an invalid object file
4149 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4150 lt_cv_path_NM="$tmp_nm -B"
4151 break
4152 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4153 lt_cv_path_NM="$tmp_nm -p"
4154 break
4155 else
4156 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4157 continue # so that we can try to find one that supports BSD flags
4158 fi
4159 fi
4160 done
4161 IFS="$ac_save_ifs"
4162 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4163fi
4164fi
4165
4166NM="$lt_cv_path_NM"
4167echo "$as_me:$LINENO: result: $NM" >&5
4168echo "${ECHO_T}$NM" >&6
4169
4170echo "$as_me:$LINENO: checking whether ln -s works" >&5
4171echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4172LN_S=$as_ln_s
4173if test "$LN_S" = "ln -s"; then
4174 echo "$as_me:$LINENO: result: yes" >&5
4175echo "${ECHO_T}yes" >&6
4176else
4177 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4178echo "${ECHO_T}no, using $LN_S" >&6
4179fi
4180
4181echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4182echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4183if test "${lt_cv_deplibs_check_method+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 lt_cv_file_magic_cmd='$MAGIC_CMD'
4187lt_cv_file_magic_test_file=
4188lt_cv_deplibs_check_method='unknown'
4189# Need to set the preceding variable on all platforms that support
4190# interlibrary dependencies.
4191# 'none' -- dependencies not supported.
4192# `unknown' -- same as none, but documents that we really don't know.
4193# 'pass_all' -- all dependencies passed with no checks.
4194# 'test_compile' -- check by making test program.
4195# ['file_magic [regex]'] -- check by looking for files in library path
4196# which responds to the $file_magic_cmd with a given egrep regex.
4197# If you have `file' or equivalent on your system and you're not sure
4198# whether `pass_all' will *always* work, you probably want this one.
4199
4200case "$host_os" in
4201aix4*)
4202 lt_cv_deplibs_check_method=pass_all
4203 ;;
4204
4205beos*)
4206 lt_cv_deplibs_check_method=pass_all
4207 ;;
4208
4209bsdi4*)
4210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4211 lt_cv_file_magic_cmd='/usr/bin/file -L'
4212 lt_cv_file_magic_test_file=/shlib/libc.so
4213 ;;
4214
4215cygwin* | mingw* | pw32*)
4216 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4217 lt_cv_file_magic_cmd='$OBJDUMP -f'
4218 ;;
4219
4220darwin*|rhapsody*)
4221 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4222 lt_cv_file_magiic_cmd=/usr/bin/file
4223 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4224 ;;
4225
4226freebsd*)
4227 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4228 case "$host_cpu" in
4229 i*86 )
4230 # Not sure whether the presence of OpenBSD here was a mistake.
4231 # Let's accept both of them until this is cleared up.
4232 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4233 lt_cv_file_magic_cmd=/usr/bin/file
4234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4235 ;;
4236 esac
4237 else
4238 lt_cv_deplibs_check_method=pass_all
4239 fi
4240 ;;
4241
4242gnu*)
4243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245
4246hpux10.20*|hpux11*)
4247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4248 lt_cv_file_magic_cmd=/usr/bin/file
4249 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4250 ;;
4251
4252irix5* | irix6*)
4253 case "$host_os" in
4254 irix5*)
4255 # this will be overridden with pass_all, but let us keep it just in case
4256 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4257 ;;
4258 *)
4259 case "$LD" in
4260 *-32|*"-32 ") libmagic=32-bit;;
4261 *-n32|*"-n32 ") libmagic=N32;;
4262 *-64|*"-64 ") libmagic=64-bit;;
4263 *) libmagic=never-match;;
4264 esac
4265 # this will be overridden with pass_all, but let us keep it just in case
4266 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4267 ;;
4268 esac
4269 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4270 lt_cv_deplibs_check_method=pass_all
4271 ;;
4272
4273# This must be Linux ELF.
4274linux-gnu*)
4275 case "$host_cpu" in
4276 alpha* | i*86 | powerpc* | sparc* | ia64* )
4277 lt_cv_deplibs_check_method=pass_all ;;
4278 *)
4279 # glibc up to 2.1.1 does not perform some relocations on ARM
4280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4281 esac
4282 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4283 ;;
4284
4285netbsd*)
4286 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4287 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4288 else
4289 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4290 fi
4291 lt_cv_file_magic_cmd='/usr/bin/file -L'
4292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4293 ;;
4294
4295newos6*)
4296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4297 lt_cv_file_magic_cmd=/usr/bin/file
4298 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4299 ;;
4300
4301osf3* | osf4* | osf5*)
4302 # this will be overridden with pass_all, but let us keep it just in case
4303 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4304 lt_cv_file_magic_test_file=/shlib/libc.so
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307
4308sco3.2v5*)
4309 lt_cv_deplibs_check_method=pass_all
4310 ;;
4311
4312solaris*)
4313 lt_cv_deplibs_check_method=pass_all
4314 lt_cv_file_magic_test_file=/lib/libc.so
4315 ;;
4316
4317sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4318 case "$host_vendor" in
4319 motorola)
4320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4321 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4322 ;;
4323 ncr)
4324 lt_cv_deplibs_check_method=pass_all
4325 ;;
4326 sequent)
4327 lt_cv_file_magic_cmd='/bin/file'
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4329 ;;
4330 sni)
4331 lt_cv_file_magic_cmd='/bin/file'
4332 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4333 lt_cv_file_magic_test_file=/lib/libc.so
4334 ;;
4335 esac
4336 ;;
4337esac
4338
4339fi
4340echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4341echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4342file_magic_cmd=$lt_cv_file_magic_cmd
4343deplibs_check_method=$lt_cv_deplibs_check_method
4344
4345
4346
4347
4348
4349
4350
4351# Check for command to grab the raw symbol name followed by C symbol from nm.
4352echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4353echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4354if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357
4358# These are sane defaults that work on at least a few old systems.
4359# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4360
4361# Character class describing NM global symbol codes.
4362symcode='[BCDEGRST]'
4363
4364# Regexp to match symbols that can be accessed directly from C.
4365sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4366
4367# Transform the above into a raw symbol and a C symbol.
4368symxfrm='\1 \2\3 \3'
4369
4370# Transform an extracted symbol line into a proper C declaration
4371lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4372
4373# Define system-specific variables.
4374case "$host_os" in
4375aix*)
4376 symcode='[BCDT]'
4377 ;;
4378cygwin* | mingw* | pw32*)
4379 symcode='[ABCDGISTW]'
4380 ;;
4381hpux*) # Its linker distinguishes data from code symbols
4382 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4383 ;;
4384irix*)
4385 symcode='[BCDEGRST]'
4386 ;;
4387solaris* | sysv5*)
4388 symcode='[BDT]'
4389 ;;
4390sysv4)
4391 symcode='[DFNSTU]'
4392 ;;
4393esac
4394
4395# Handle CRLF in mingw tool chain
4396opt_cr=
4397case "$host_os" in
4398mingw*)
4399 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4400 ;;
4401esac
4402
4403# If we're using GNU nm, then use its standard symbol codes.
4404if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4405 symcode='[ABCDGISTW]'
4406fi
4407
4408# Try without a prefix undercore, then with it.
4409for ac_symprfx in "" "_"; do
4410
4411 # Write the raw and C identifiers.
4412lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4413
4414 # Check to see that the pipe works correctly.
4415 pipe_works=no
4416 rm -f conftest*
4417 cat > conftest.$ac_ext <<EOF
4418#ifdef __cplusplus
4419extern "C" {
4420#endif
4421char nm_test_var;
4422void nm_test_func(){}
4423#ifdef __cplusplus
4424}
4425#endif
4426main(){nm_test_var='a';nm_test_func();return(0);}
4427EOF
4428
4429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430 (eval $ac_compile) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; then
4434 # Now try to grab the symbols.
4435 nlist=conftest.nm
4436 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4437 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && test -s "$nlist"; then
4441 # Try sorting and uniquifying the output.
4442 if sort "$nlist" | uniq > "$nlist"T; then
4443 mv -f "$nlist"T "$nlist"
4444 else
4445 rm -f "$nlist"T
4446 fi
4447
4448 # Make sure that we snagged all the symbols we need.
4449 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4450 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4451 cat <<EOF > conftest.$ac_ext
4452#ifdef __cplusplus
4453extern "C" {
4454#endif
4455
4456EOF
4457 # Now generate the symbol file.
4458 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4459
4460 cat <<EOF >> conftest.$ac_ext
4461#if defined (__STDC__) && __STDC__
4462# define lt_ptr_t void *
4463#else
4464# define lt_ptr_t char *
4465# define const
4466#endif
4467
4468/* The mapping between symbol names and symbols. */
4469const struct {
4470 const char *name;
4471 lt_ptr_t address;
4472}
4473lt_preloaded_symbols[] =
4474{
4475EOF
4476 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4477 cat <<\EOF >> conftest.$ac_ext
4478 {0, (lt_ptr_t) 0}
4479};
4480
4481#ifdef __cplusplus
4482}
4483#endif
4484EOF
4485 # Now try linking the two files.
4486 mv conftest.$ac_objext conftstm.$ac_objext
4487 save_LIBS="$LIBS"
4488 save_CFLAGS="$CFLAGS"
4489 LIBS="conftstm.$ac_objext"
4490 CFLAGS="$CFLAGS$no_builtin_flag"
4491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492 (eval $ac_link) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } && test -s conftest; then
4496 pipe_works=yes
4497 fi
4498 LIBS="$save_LIBS"
4499 CFLAGS="$save_CFLAGS"
4500 else
4501 echo "cannot find nm_test_func in $nlist" >&5
4502 fi
4503 else
4504 echo "cannot find nm_test_var in $nlist" >&5
4505 fi
4506 else
4507 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4508 fi
4509 else
4510 echo "$progname: failed program was:" >&5
4511 cat conftest.$ac_ext >&5
4512 fi
4513 rm -f conftest* conftst*
4514
4515 # Do not use the global_symbol_pipe unless it works.
4516 if test "$pipe_works" = yes; then
4517 break
4518 else
4519 lt_cv_sys_global_symbol_pipe=
4520 fi
4521done
4522
4523fi
4524
4525global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4526if test -z "$lt_cv_sys_global_symbol_pipe"; then
4527 global_symbol_to_cdecl=
4528else
4529 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4530fi
4531if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4532 echo "$as_me:$LINENO: result: failed" >&5
4533echo "${ECHO_T}failed" >&6
4534else
4535 echo "$as_me:$LINENO: result: ok" >&5
4536echo "${ECHO_T}ok" >&6
4537fi
4538
4539echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4540echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4541if test "${ac_cv_header_stdc+set}" = set; then 4105if test "${ac_cv_func_sched_yield+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6 4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4543else 4107else
4544 cat >conftest.$ac_ext <<_ACEOF 4108 cat >conftest.$ac_ext <<_ACEOF
4545/* confdefs.h. */ 4109/* confdefs.h. */
4546_ACEOF 4110_ACEOF
4547cat confdefs.h >>conftest.$ac_ext 4111cat confdefs.h >>conftest.$ac_ext
4548cat >>conftest.$ac_ext <<_ACEOF 4112cat >>conftest.$ac_ext <<_ACEOF
4549/* end confdefs.h. */ 4113/* end confdefs.h. */
4550#include <stdlib.h>
4551#include <stdarg.h>
4552#include <string.h>
4553#include <float.h>
4554
4555int
4556main ()
4557{
4558
4559 ;
4560 return 0;
4561}
4562_ACEOF
4563rm -f conftest.$ac_objext
4564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565 (eval $ac_compile) 2>conftest.er1
4566 ac_status=$?
4567 grep -v '^ *+' conftest.er1 >conftest.err
4568 rm -f conftest.er1
4569 cat conftest.err >&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } &&
4572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574 (eval $ac_try) 2>&5
4575 ac_status=$?
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); }; } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580 (eval $ac_try) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 ac_cv_header_stdc=yes
4585else
4586 echo "$as_me: failed program was:" >&5
4587sed 's/^/| /' conftest.$ac_ext >&5
4588
4589ac_cv_header_stdc=no
4590fi
4591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592
4593if test $ac_cv_header_stdc = yes; then
4594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4595 cat >conftest.$ac_ext <<_ACEOF
4596/* confdefs.h. */
4597_ACEOF
4598cat confdefs.h >>conftest.$ac_ext
4599cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */
4601#include <string.h>
4602
4603_ACEOF
4604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "memchr" >/dev/null 2>&1; then
4606 :
4607else
4608 ac_cv_header_stdc=no
4609fi
4610rm -f conftest*
4611
4612fi
4613
4614if test $ac_cv_header_stdc = yes; then
4615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4616 cat >conftest.$ac_ext <<_ACEOF
4617/* confdefs.h. */
4618_ACEOF
4619cat confdefs.h >>conftest.$ac_ext
4620cat >>conftest.$ac_ext <<_ACEOF
4621/* end confdefs.h. */
4622#include <stdlib.h>
4623
4624_ACEOF
4625if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "free" >/dev/null 2>&1; then
4627 :
4628else
4629 ac_cv_header_stdc=no
4630fi
4631rm -f conftest*
4632
4633fi
4634
4635if test $ac_cv_header_stdc = yes; then
4636 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4637 if test "$cross_compiling" = yes; then
4638 :
4639else
4640 cat >conftest.$ac_ext <<_ACEOF
4641/* confdefs.h. */
4642_ACEOF
4643cat confdefs.h >>conftest.$ac_ext
4644cat >>conftest.$ac_ext <<_ACEOF
4645/* end confdefs.h. */
4646#include <ctype.h>
4647#if ((' ' & 0x0FF) == 0x020)
4648# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4649# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4650#else
4651# define ISLOWER(c) \
4652 (('a' <= (c) && (c) <= 'i') \
4653 || ('j' <= (c) && (c) <= 'r') \
4654 || ('s' <= (c) && (c) <= 'z'))
4655# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4656#endif
4657
4658#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4659int
4660main ()
4661{
4662 int i;
4663 for (i = 0; i < 256; i++)
4664 if (XOR (islower (i), ISLOWER (i))
4665 || toupper (i) != TOUPPER (i))
4666 exit(2);
4667 exit (0);
4668}
4669_ACEOF
4670rm -f conftest$ac_exeext
4671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4672 (eval $ac_link) 2>&5
4673 ac_status=$?
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; }; then
4681 :
4682else
4683 echo "$as_me: program exited with status $ac_status" >&5
4684echo "$as_me: failed program was:" >&5
4685sed 's/^/| /' conftest.$ac_ext >&5
4686
4687( exit $ac_status )
4688ac_cv_header_stdc=no
4689fi
4690rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4691fi
4692fi
4693fi
4694echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4695echo "${ECHO_T}$ac_cv_header_stdc" >&6
4696if test $ac_cv_header_stdc = yes; then
4697
4698cat >>confdefs.h <<\_ACEOF
4699#define STDC_HEADERS 1
4700_ACEOF
4701
4702fi
4703
4704# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4715 inttypes.h stdint.h unistd.h
4716do
4717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4718echo "$as_me:$LINENO: checking for $ac_header" >&5
4719echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4720if eval "test \"\${$as_ac_Header+set}\" = set"; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723 cat >conftest.$ac_ext <<_ACEOF
4724/* confdefs.h. */
4725_ACEOF
4726cat confdefs.h >>conftest.$ac_ext
4727cat >>conftest.$ac_ext <<_ACEOF
4728/* end confdefs.h. */
4729$ac_includes_default
4730
4731#include <$ac_header>
4732_ACEOF
4733rm -f conftest.$ac_objext
4734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4736 ac_status=$?
4737 grep -v '^ *+' conftest.er1 >conftest.err
4738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 (eval $ac_try) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 eval "$as_ac_Header=yes"
4755else
4756 echo "$as_me: failed program was:" >&5
4757sed 's/^/| /' conftest.$ac_ext >&5
4758
4759eval "$as_ac_Header=no"
4760fi
4761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762fi
4763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765if test `eval echo '${'$as_ac_Header'}'` = yes; then
4766 cat >>confdefs.h <<_ACEOF
4767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4768_ACEOF
4769
4770fi
4771
4772done
4773
4774
4775
4776for ac_header in dlfcn.h
4777do
4778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4779if eval "test \"\${$as_ac_Header+set}\" = set"; then
4780 echo "$as_me:$LINENO: checking for $ac_header" >&5
4781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4782if eval "test \"\${$as_ac_Header+set}\" = set"; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4784fi
4785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4787else
4788 # Is the header compilable?
4789echo "$as_me:$LINENO: checking $ac_header usability" >&5
4790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4791cat >conftest.$ac_ext <<_ACEOF
4792/* confdefs.h. */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h. */
4797$ac_includes_default
4798#include <$ac_header>
4799_ACEOF
4800rm -f conftest.$ac_objext
4801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4802 (eval $ac_compile) 2>conftest.er1
4803 ac_status=$?
4804 grep -v '^ *+' conftest.er1 >conftest.err
4805 rm -f conftest.er1
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } &&
4809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811 (eval $ac_try) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); }; } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_header_compiler=yes
4822else
4823 echo "$as_me: failed program was:" >&5
4824sed 's/^/| /' conftest.$ac_ext >&5
4825
4826ac_header_compiler=no
4827fi
4828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4830echo "${ECHO_T}$ac_header_compiler" >&6
4831
4832# Is the header present?
4833echo "$as_me:$LINENO: checking $ac_header presence" >&5
4834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4835cat >conftest.$ac_ext <<_ACEOF
4836/* confdefs.h. */
4837_ACEOF
4838cat confdefs.h >>conftest.$ac_ext
4839cat >>conftest.$ac_ext <<_ACEOF
4840/* end confdefs.h. */
4841#include <$ac_header>
4842_ACEOF
4843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4844 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4845 ac_status=$?
4846 grep -v '^ *+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } >/dev/null; then
4851 if test -s conftest.err; then
4852 ac_cpp_err=$ac_cxx_preproc_warn_flag
4853 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4854 else
4855 ac_cpp_err=
4856 fi
4857else
4858 ac_cpp_err=yes
4859fi
4860if test -z "$ac_cpp_err"; then
4861 ac_header_preproc=yes
4862else
4863 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 ac_header_preproc=no
4867fi
4868rm -f conftest.err conftest.$ac_ext
4869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4870echo "${ECHO_T}$ac_header_preproc" >&6
4871
4872# So? What about this header?
4873case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4874 yes:no: )
4875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4879 ac_header_preproc=yes
4880 ;;
4881 no:yes:* )
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4885echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4889echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4894 (
4895 cat <<\_ASBOX
4896## ------------------------------------------ ##
4897## Report this to the AC_PACKAGE_NAME lists. ##
4898## ------------------------------------------ ##
4899_ASBOX
4900 ) |
4901 sed "s/^/$as_me: WARNING: /" >&2
4902 ;;
4903esac
4904echo "$as_me:$LINENO: checking for $ac_header" >&5
4905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4906if eval "test \"\${$as_ac_Header+set}\" = set"; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908else
4909 eval "$as_ac_Header=\$ac_header_preproc"
4910fi
4911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4913
4914fi
4915if test `eval echo '${'$as_ac_Header'}'` = yes; then
4916 cat >>confdefs.h <<_ACEOF
4917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4918_ACEOF
4919
4920fi
4921
4922done
4923
4924
4925
4926
4927
4928# Only perform the check for file, if the check method requires it
4929case "$deplibs_check_method" in
4930file_magic*)
4931 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4932 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4933echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4934if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936else
4937 case "$MAGIC_CMD" in
4938 /*)
4939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4940 ;;
4941 ?:/*)
4942 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4943 ;;
4944 *)
4945 ac_save_MAGIC_CMD="$MAGIC_CMD"
4946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4947 ac_dummy="/usr/bin:$PATH"
4948 for ac_dir in $ac_dummy; do
4949 test -z "$ac_dir" && ac_dir=.
4950 if test -f $ac_dir/${ac_tool_prefix}file; then
4951 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4952 if test -n "$file_magic_test_file"; then
4953 case "$deplibs_check_method" in
4954 "file_magic "*)
4955 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4957 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4958 egrep "$file_magic_regex" > /dev/null; then
4959 :
4960 else
4961 cat <<EOF 1>&2
4962
4963*** Warning: the command libtool uses to detect shared libraries,
4964*** $file_magic_cmd, produces output that libtool cannot recognize.
4965*** The result is that libtool may fail to recognize shared libraries
4966*** as such. This will affect the creation of libtool libraries that
4967*** depend on shared libraries, but programs linked with such libtool
4968*** libraries will work regardless of this problem. Nevertheless, you
4969*** may want to report the problem to your system manager and/or to
4970*** bug-libtool@gnu.org
4971
4972EOF
4973 fi ;;
4974 esac
4975 fi
4976 break
4977 fi
4978 done
4979 IFS="$ac_save_ifs"
4980 MAGIC_CMD="$ac_save_MAGIC_CMD"
4981 ;;
4982esac
4983fi
4984
4985MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4986if test -n "$MAGIC_CMD"; then
4987 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4988echo "${ECHO_T}$MAGIC_CMD" >&6
4989else
4990 echo "$as_me:$LINENO: result: no" >&5
4991echo "${ECHO_T}no" >&6
4992fi
4993
4994if test -z "$lt_cv_path_MAGIC_CMD"; then
4995 if test -n "$ac_tool_prefix"; then
4996 echo "$as_me:$LINENO: checking for file" >&5
4997echo $ECHO_N "checking for file... $ECHO_C" >&6
4998if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001 case "$MAGIC_CMD" in
5002 /*)
5003 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5004 ;;
5005 ?:/*)
5006 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5007 ;;
5008 *)
5009 ac_save_MAGIC_CMD="$MAGIC_CMD"
5010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5011 ac_dummy="/usr/bin:$PATH"
5012 for ac_dir in $ac_dummy; do
5013 test -z "$ac_dir" && ac_dir=.
5014 if test -f $ac_dir/file; then
5015 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5016 if test -n "$file_magic_test_file"; then
5017 case "$deplibs_check_method" in
5018 "file_magic "*)
5019 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5022 egrep "$file_magic_regex" > /dev/null; then
5023 :
5024 else
5025 cat <<EOF 1>&2
5026
5027*** Warning: the command libtool uses to detect shared libraries,
5028*** $file_magic_cmd, produces output that libtool cannot recognize.
5029*** The result is that libtool may fail to recognize shared libraries
5030*** as such. This will affect the creation of libtool libraries that
5031*** depend on shared libraries, but programs linked with such libtool
5032*** libraries will work regardless of this problem. Nevertheless, you
5033*** may want to report the problem to your system manager and/or to
5034*** bug-libtool@gnu.org
5035
5036EOF
5037 fi ;;
5038 esac
5039 fi
5040 break
5041 fi
5042 done
5043 IFS="$ac_save_ifs"
5044 MAGIC_CMD="$ac_save_MAGIC_CMD"
5045 ;;
5046esac
5047fi
5048
5049MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5050if test -n "$MAGIC_CMD"; then
5051 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5052echo "${ECHO_T}$MAGIC_CMD" >&6
5053else
5054 echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
5056fi
5057
5058 else
5059 MAGIC_CMD=:
5060 fi
5061fi
5062
5063 fi
5064 ;;
5065esac
5066
5067if test -n "$ac_tool_prefix"; then
5068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5069set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5070echo "$as_me:$LINENO: checking for $ac_word" >&5
5071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072if test "${ac_cv_prog_RANLIB+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075 if test -n "$RANLIB"; then
5076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5077else
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089done
5090done
5091
5092fi
5093fi
5094RANLIB=$ac_cv_prog_RANLIB
5095if test -n "$RANLIB"; then
5096 echo "$as_me:$LINENO: result: $RANLIB" >&5
5097echo "${ECHO_T}$RANLIB" >&6
5098else
5099 echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6
5101fi
5102
5103fi
5104if test -z "$ac_cv_prog_RANLIB"; then
5105 ac_ct_RANLIB=$RANLIB
5106 # Extract the first word of "ranlib", so it can be a program name with args.
5107set dummy ranlib; ac_word=$2
5108echo "$as_me:$LINENO: checking for $ac_word" >&5
5109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113 if test -n "$ac_ct_RANLIB"; then
5114 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_ac_ct_RANLIB="ranlib"
5124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127done
5128done
5129
5130 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5131fi
5132fi
5133ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5134if test -n "$ac_ct_RANLIB"; then
5135 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5136echo "${ECHO_T}$ac_ct_RANLIB" >&6
5137else
5138 echo "$as_me:$LINENO: result: no" >&5
5139echo "${ECHO_T}no" >&6
5140fi
5141
5142 RANLIB=$ac_ct_RANLIB
5143else
5144 RANLIB="$ac_cv_prog_RANLIB"
5145fi
5146
5147if test -n "$ac_tool_prefix"; then
5148 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5149set dummy ${ac_tool_prefix}strip; ac_word=$2
5150echo "$as_me:$LINENO: checking for $ac_word" >&5
5151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5152if test "${ac_cv_prog_STRIP+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154else
5155 if test -n "$STRIP"; then
5156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5157else
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169done
5170done
5171
5172fi
5173fi
5174STRIP=$ac_cv_prog_STRIP
5175if test -n "$STRIP"; then
5176 echo "$as_me:$LINENO: result: $STRIP" >&5
5177echo "${ECHO_T}$STRIP" >&6
5178else
5179 echo "$as_me:$LINENO: result: no" >&5
5180echo "${ECHO_T}no" >&6
5181fi
5182
5183fi
5184if test -z "$ac_cv_prog_STRIP"; then
5185 ac_ct_STRIP=$STRIP
5186 # Extract the first word of "strip", so it can be a program name with args.
5187set dummy strip; ac_word=$2
5188echo "$as_me:$LINENO: checking for $ac_word" >&5
5189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193 if test -n "$ac_ct_STRIP"; then
5194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5195else
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_STRIP="strip"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207done
5208done
5209
5210 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5211fi
5212fi
5213ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5214if test -n "$ac_ct_STRIP"; then
5215 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5216echo "${ECHO_T}$ac_ct_STRIP" >&6
5217else
5218 echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220fi
5221
5222 STRIP=$ac_ct_STRIP
5223else
5224 STRIP="$ac_cv_prog_STRIP"
5225fi
5226
5227
5228enable_dlopen=no
5229enable_win32_dll=no
5230
5231# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5232if test "${enable_libtool_lock+set}" = set; then
5233 enableval="$enable_libtool_lock"
5234
5235fi;
5236test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5237
5238# Some flags need to be propagated to the compiler or linker for good
5239# libtool support.
5240case "$host" in
5241*-*-irix6*)
5242 # Find out which ABI we are using.
5243 echo '#line 5243 "configure"' > conftest.$ac_ext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245 (eval $ac_compile) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; then
5249 case "`/usr/bin/file conftest.$ac_objext`" in
5250 *32-bit*)
5251 LD="${LD-ld} -32"
5252 ;;
5253 *N32*)
5254 LD="${LD-ld} -n32"
5255 ;;
5256 *64-bit*)
5257 LD="${LD-ld} -64"
5258 ;;
5259 esac
5260 fi
5261 rm -rf conftest*
5262 ;;
5263
5264*-*-sco3.2v5*)
5265 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5266 SAVE_CFLAGS="$CFLAGS"
5267 CFLAGS="$CFLAGS -belf"
5268 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5269echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5270if test "${lt_cv_cc_needs_belf+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273
5274
5275 ac_ext=c
5276ac_cpp='$CPP $CPPFLAGS'
5277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280
5281 cat >conftest.$ac_ext <<_ACEOF
5282/* confdefs.h. */
5283_ACEOF
5284cat confdefs.h >>conftest.$ac_ext
5285cat >>conftest.$ac_ext <<_ACEOF
5286/* end confdefs.h. */
5287
5288int
5289main ()
5290{
5291
5292 ;
5293 return 0;
5294}
5295_ACEOF
5296rm -f conftest.$ac_objext conftest$ac_exeext
5297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5298 (eval $ac_link) 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try='test -s conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 lt_cv_cc_needs_belf=yes
5318else
5319 echo "$as_me: failed program was:" >&5
5320sed 's/^/| /' conftest.$ac_ext >&5
5321
5322lt_cv_cc_needs_belf=no
5323fi
5324rm -f conftest.err conftest.$ac_objext \
5325 conftest$ac_exeext conftest.$ac_ext
5326 ac_ext=cc
5327ac_cpp='$CXXCPP $CPPFLAGS'
5328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5331
5332fi
5333echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5334echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5335 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5336 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5337 CFLAGS="$SAVE_CFLAGS"
5338 fi
5339 ;;
5340
5341
5342esac
5343
5344# Sed substitution that helps us do robust quoting. It backslashifies
5345# metacharacters that are still active within double-quoted strings.
5346Xsed='sed -e s/^X//'
5347sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5348
5349# Same as above, but do not quote variable references.
5350double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5351
5352# Sed substitution to delay expansion of an escaped shell variable in a
5353# double_quote_subst'ed string.
5354delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5355
5356# Constants:
5357rm="rm -f"
5358
5359# Global variables:
5360default_ofile=libtool
5361can_build_shared=yes
5362
5363# All known linkers require a `.a' archive for static linking (except M$VC,
5364# which needs '.lib').
5365libext=a
5366ltmain="$ac_aux_dir/ltmain.sh"
5367ofile="$default_ofile"
5368with_gnu_ld="$lt_cv_prog_gnu_ld"
5369need_locks="$enable_libtool_lock"
5370
5371old_CC="$CC"
5372old_CFLAGS="$CFLAGS"
5373
5374# Set sane defaults for various variables
5375test -z "$AR" && AR=ar
5376test -z "$AR_FLAGS" && AR_FLAGS=cru
5377test -z "$AS" && AS=as
5378test -z "$CC" && CC=cc
5379test -z "$DLLTOOL" && DLLTOOL=dlltool
5380test -z "$LD" && LD=ld
5381test -z "$LN_S" && LN_S="ln -s"
5382test -z "$MAGIC_CMD" && MAGIC_CMD=file
5383test -z "$NM" && NM=nm
5384test -z "$OBJDUMP" && OBJDUMP=objdump
5385test -z "$RANLIB" && RANLIB=:
5386test -z "$STRIP" && STRIP=:
5387test -z "$ac_objext" && ac_objext=o
5388
5389if test x"$host" != x"$build"; then
5390 ac_tool_prefix=${host_alias}-
5391else
5392 ac_tool_prefix=
5393fi
5394
5395# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5396case "$host_os" in
5397linux-gnu*) ;;
5398linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5399esac
5400
5401case "$host_os" in
5402aix3*)
5403 # AIX sometimes has problems with the GCC collect2 program. For some
5404 # reason, if we set the COLLECT_NAMES environment variable, the problems
5405 # vanish in a puff of smoke.
5406 if test "X${COLLECT_NAMES+set}" != Xset; then
5407 COLLECT_NAMES=
5408 export COLLECT_NAMES
5409 fi
5410 ;;
5411esac
5412
5413# Determine commands to create old-style static archives.
5414old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5415old_postinstall_cmds='chmod 644 $oldlib'
5416old_postuninstall_cmds=
5417
5418if test -n "$RANLIB"; then
5419 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5420 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5421fi
5422
5423# Allow CC to be a program name with arguments.
5424set dummy $CC
5425compiler="$2"
5426
5427## FIXME: this should be a separate macro
5428##
5429echo "$as_me:$LINENO: checking for objdir" >&5
5430echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5431rm -f .libs 2>/dev/null
5432mkdir .libs 2>/dev/null
5433if test -d .libs; then
5434 objdir=.libs
5435else
5436 # MS-DOS does not allow filenames that begin with a dot.
5437 objdir=_libs
5438fi
5439rmdir .libs 2>/dev/null
5440echo "$as_me:$LINENO: result: $objdir" >&5
5441echo "${ECHO_T}$objdir" >&6
5442##
5443## END FIXME
5444
5445
5446## FIXME: this should be a separate macro
5447##
5448
5449# Check whether --with-pic or --without-pic was given.
5450if test "${with_pic+set}" = set; then
5451 withval="$with_pic"
5452 pic_mode="$withval"
5453else
5454 pic_mode=default
5455fi;
5456test -z "$pic_mode" && pic_mode=default
5457
5458# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5459# in isolation, and that seeing it set (from the cache) indicates that
5460# the associated values are set (in the cache) correctly too.
5461echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5462echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5463if test "${lt_cv_prog_cc_pic+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 lt_cv_prog_cc_pic=
5467 lt_cv_prog_cc_shlib=
5468 lt_cv_prog_cc_wl=
5469 lt_cv_prog_cc_static=
5470 lt_cv_prog_cc_no_builtin=
5471 lt_cv_prog_cc_can_build_shared=$can_build_shared
5472
5473 if test "$GCC" = yes; then
5474 lt_cv_prog_cc_wl='-Wl,'
5475 lt_cv_prog_cc_static='-static'
5476
5477 case "$host_os" in
5478 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5479 # PIC is the default for these OSes.
5480 ;;
5481 aix*)
5482 # Below there is a dirty hack to force normal static linking with -ldl
5483 # The problem is because libdl dynamically linked with both libc and
5484 # libC (AIX C++ library), which obviously doesn't included in libraries
5485 # list by gcc. This cause undefined symbols with -static flags.
5486 # This hack allows C programs to be linked with "-static -ldl", but
5487 # we not sure about C++ programs.
5488 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5489 ;;
5490 cygwin* | mingw* | pw32* | os2*)
5491 # This hack is so that the source file can tell whether it is being
5492 # built for inclusion in a dll (and should export symbols for example).
5493 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5494 ;;
5495 amigaos*)
5496 # FIXME: we need at least 68020 code to build shared libraries, but
5497 # adding the `-m68020' flag to GCC prevents building anything better,
5498 # like `-m68040'.
5499 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5500 ;;
5501 sysv4*MP*)
5502 if test -d /usr/nec; then
5503 lt_cv_prog_cc_pic=-Kconform_pic
5504 fi
5505 ;;
5506 *)
5507 lt_cv_prog_cc_pic='-fPIC'
5508 ;;
5509 esac
5510 else
5511 # PORTME Check for PIC flags for the system compiler.
5512 case "$host_os" in
5513 aix3* | aix4*)
5514 # All AIX code is PIC.
5515 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5516 ;;
5517
5518 hpux9* | hpux10* | hpux11*)
5519 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5520 lt_cv_prog_cc_wl='-Wl,'
5521 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5522 lt_cv_prog_cc_pic='+Z'
5523 ;;
5524
5525 irix5* | irix6*)
5526 lt_cv_prog_cc_wl='-Wl,'
5527 lt_cv_prog_cc_static='-non_shared'
5528 # PIC (with -KPIC) is the default.
5529 ;;
5530
5531 cygwin* | mingw* | pw32* | os2*)
5532 # This hack is so that the source file can tell whether it is being
5533 # built for inclusion in a dll (and should export symbols for example).
5534 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5535 ;;
5536
5537 newsos6)
5538 lt_cv_prog_cc_pic='-KPIC'
5539 lt_cv_prog_cc_static='-Bstatic'
5540 ;;
5541
5542 osf3* | osf4* | osf5*)
5543 # All OSF/1 code is PIC.
5544 lt_cv_prog_cc_wl='-Wl,'
5545 lt_cv_prog_cc_static='-non_shared'
5546 ;;
5547
5548 sco3.2v5*)
5549 lt_cv_prog_cc_pic='-Kpic'
5550 lt_cv_prog_cc_static='-dn'
5551 lt_cv_prog_cc_shlib='-belf'
5552 ;;
5553
5554 solaris*)
5555 lt_cv_prog_cc_pic='-KPIC'
5556 lt_cv_prog_cc_static='-Bstatic'
5557 lt_cv_prog_cc_wl='-Wl,'
5558 ;;
5559
5560 sunos4*)
5561 lt_cv_prog_cc_pic='-PIC'
5562 lt_cv_prog_cc_static='-Bstatic'
5563 lt_cv_prog_cc_wl='-Qoption ld '
5564 ;;
5565
5566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5567 lt_cv_prog_cc_pic='-KPIC'
5568 lt_cv_prog_cc_static='-Bstatic'
5569 if test "x$host_vendor" = xsni; then
5570 lt_cv_prog_cc_wl='-LD'
5571 else
5572 lt_cv_prog_cc_wl='-Wl,'
5573 fi
5574 ;;
5575
5576 uts4*)
5577 lt_cv_prog_cc_pic='-pic'
5578 lt_cv_prog_cc_static='-Bstatic'
5579 ;;
5580
5581 sysv4*MP*)
5582 if test -d /usr/nec ;then
5583 lt_cv_prog_cc_pic='-Kconform_pic'
5584 lt_cv_prog_cc_static='-Bstatic'
5585 fi
5586 ;;
5587
5588 *)
5589 lt_cv_prog_cc_can_build_shared=no
5590 ;;
5591 esac
5592 fi
5593
5594fi
5595
5596if test -z "$lt_cv_prog_cc_pic"; then
5597 echo "$as_me:$LINENO: result: none" >&5
5598echo "${ECHO_T}none" >&6
5599else
5600 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5601echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5602
5603 # Check to make sure the pic_flag actually works.
5604 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5605echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5606 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5608else
5609 save_CFLAGS="$CFLAGS"
5610 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5611 cat >conftest.$ac_ext <<_ACEOF
5612/* confdefs.h. */
5613_ACEOF
5614cat confdefs.h >>conftest.$ac_ext
5615cat >>conftest.$ac_ext <<_ACEOF
5616/* end confdefs.h. */
5617
5618int
5619main ()
5620{
5621
5622 ;
5623 return 0;
5624}
5625_ACEOF
5626rm -f conftest.$ac_objext
5627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; } &&
5641 { ac_try='test -s conftest.$ac_objext'
5642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 (eval $ac_try) 2>&5
5644 ac_status=$?
5645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646 (exit $ac_status); }; }; then
5647 case "$host_os" in
5648 hpux9* | hpux10* | hpux11*)
5649 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5650 # they create non-PIC objects. So, if there were any warnings, we
5651 # assume that PIC is not supported.
5652 if test -s conftest.err; then
5653 lt_cv_prog_cc_pic_works=no
5654 else
5655 lt_cv_prog_cc_pic_works=yes
5656 fi
5657 ;;
5658 *)
5659 lt_cv_prog_cc_pic_works=yes
5660 ;;
5661 esac
5662
5663else
5664 echo "$as_me: failed program was:" >&5
5665sed 's/^/| /' conftest.$ac_ext >&5
5666
5667 lt_cv_prog_cc_pic_works=no
5668
5669fi
5670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5671 CFLAGS="$save_CFLAGS"
5672
5673fi
5674
5675
5676 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5677 lt_cv_prog_cc_pic=
5678 lt_cv_prog_cc_can_build_shared=no
5679 else
5680 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5681 fi
5682
5683 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5684echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5685fi
5686##
5687## END FIXME
5688
5689# Check for any special shared library compilation flags.
5690if test -n "$lt_cv_prog_cc_shlib"; then
5691 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5692echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5693 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5694 else
5695 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5696echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5697 lt_cv_prog_cc_can_build_shared=no
5698 fi
5699fi
5700
5701## FIXME: this should be a separate macro
5702##
5703echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5704echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5705if test "${lt_cv_prog_cc_static_works+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708 lt_cv_prog_cc_static_works=no
5709 save_LDFLAGS="$LDFLAGS"
5710 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5711 cat >conftest.$ac_ext <<_ACEOF
5712/* confdefs.h. */
5713_ACEOF
5714cat confdefs.h >>conftest.$ac_ext
5715cat >>conftest.$ac_ext <<_ACEOF
5716/* end confdefs.h. */
5717
5718int
5719main ()
5720{
5721
5722 ;
5723 return 0;
5724}
5725_ACEOF
5726rm -f conftest.$ac_objext conftest$ac_exeext
5727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5728 (eval $ac_link) 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } &&
5735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5737 (eval $ac_try) 2>&5
5738 ac_status=$?
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); }; } &&
5741 { ac_try='test -s conftest$ac_exeext'
5742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743 (eval $ac_try) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
5747 lt_cv_prog_cc_static_works=yes
5748else
5749 echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752fi
5753rm -f conftest.err conftest.$ac_objext \
5754 conftest$ac_exeext conftest.$ac_ext
5755 LDFLAGS="$save_LDFLAGS"
5756
5757fi
5758
5759
5760# Belt *and* braces to stop my trousers falling down:
5761test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5762echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5763echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5764
5765pic_flag="$lt_cv_prog_cc_pic"
5766special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5767wl="$lt_cv_prog_cc_wl"
5768link_static_flag="$lt_cv_prog_cc_static"
5769no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5770can_build_shared="$lt_cv_prog_cc_can_build_shared"
5771##
5772## END FIXME
5773
5774
5775## FIXME: this should be a separate macro
5776##
5777# Check to see if options -o and -c are simultaneously supported by compiler
5778echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5779echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5780$rm -r conftest 2>/dev/null
5781mkdir conftest
5782cd conftest
5783echo "int some_variable = 0;" > conftest.$ac_ext
5784mkdir out
5785# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5786# that will create temporary files in the current directory regardless of
5787# the output directory. Thus, making CWD read-only will cause this test
5788# to fail, enabling locking or at least warning the user not to do parallel
5789# builds.
5790chmod -w .
5791save_CFLAGS="$CFLAGS"
5792CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5793compiler_c_o=no
5794if { (eval echo configure:5794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5795 # The compiler can only warn and ignore the option if not recognized
5796 # So say no if there are warnings
5797 if test -s out/conftest.err; then
5798 compiler_c_o=no
5799 else
5800 compiler_c_o=yes
5801 fi
5802else
5803 # Append any errors to the config.log.
5804 cat out/conftest.err 1>&5
5805 compiler_c_o=no
5806fi
5807echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5808echo "${ECHO_T}$compiler_c_o" >&6
5809CFLAGS="$save_CFLAGS"
5810chmod u+w .
5811$rm conftest* out/*
5812rmdir out
5813cd ..
5814rmdir conftest
5815$rm -r conftest 2>/dev/null
5816
5817if test x"$compiler_c_o" = x"yes"; then
5818 # Check to see if we can write to a .lo
5819 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5820echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5821 compiler_o_lo=no
5822 save_CFLAGS="$CFLAGS"
5823 CFLAGS="$CFLAGS -c -o conftest.lo"
5824 cat >conftest.$ac_ext <<_ACEOF
5825/* confdefs.h. */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h. */
5830
5831int
5832main ()
5833{
5834int some_variable = 0;
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839rm -f conftest.$ac_objext
5840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5841 (eval $ac_compile) 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
5848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest.$ac_objext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 # The compiler can only warn and ignore the option if not recognized
5861 # So say no if there are warnings
5862 if test -s conftest.err; then
5863 compiler_o_lo=no
5864 else
5865 compiler_o_lo=yes
5866 fi
5867
5868else
5869 echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872fi
5873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5874 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5875echo "${ECHO_T}$compiler_c_o" >&6
5876 CFLAGS="$save_CFLAGS"
5877else
5878 compiler_o_lo=no
5879fi
5880##
5881## END FIXME
5882
5883## FIXME: this should be a separate macro
5884##
5885# Check to see if we can do hard links to lock some files if needed
5886hard_links="nottested"
5887if test "$compiler_c_o" = no && test "$need_locks" != no; then
5888 # do not overwrite the value of need_locks provided by the user
5889 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5890echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5891 hard_links=yes
5892 $rm conftest*
5893 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5894 touch conftest.a
5895 ln conftest.a conftest.b 2>&5 || hard_links=no
5896 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5897 echo "$as_me:$LINENO: result: $hard_links" >&5
5898echo "${ECHO_T}$hard_links" >&6
5899 if test "$hard_links" = no; then
5900 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5901echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5902 need_locks=warn
5903 fi
5904else
5905 need_locks=no
5906fi
5907##
5908## END FIXME
5909
5910## FIXME: this should be a separate macro
5911##
5912if test "$GCC" = yes; then
5913 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5914 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5915echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5916 echo "int some_variable = 0;" > conftest.$ac_ext
5917 save_CFLAGS="$CFLAGS"
5918 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5919 compiler_rtti_exceptions=no
5920 cat >conftest.$ac_ext <<_ACEOF
5921/* confdefs.h. */
5922_ACEOF
5923cat confdefs.h >>conftest.$ac_ext
5924cat >>conftest.$ac_ext <<_ACEOF
5925/* end confdefs.h. */
5926
5927int
5928main ()
5929{
5930int some_variable = 0;
5931 ;
5932 return 0;
5933}
5934_ACEOF
5935rm -f conftest.$ac_objext
5936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937 (eval $ac_compile) 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } &&
5944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest.$ac_objext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 (eval $ac_try) 2>&5
5953 ac_status=$?
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 # The compiler can only warn and ignore the option if not recognized
5957 # So say no if there are warnings
5958 if test -s conftest.err; then
5959 compiler_rtti_exceptions=no
5960 else
5961 compiler_rtti_exceptions=yes
5962 fi
5963
5964else
5965 echo "$as_me: failed program was:" >&5
5966sed 's/^/| /' conftest.$ac_ext >&5
5967
5968fi
5969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5970 CFLAGS="$save_CFLAGS"
5971 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5972echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5973
5974 if test "$compiler_rtti_exceptions" = "yes"; then
5975 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5976 else
5977 no_builtin_flag=' -fno-builtin'
5978 fi
5979fi
5980##
5981## END FIXME
5982
5983## FIXME: this should be a separate macro
5984##
5985# See if the linker supports building shared libraries.
5986echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5987echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5988
5989allow_undefined_flag=
5990no_undefined_flag=
5991need_lib_prefix=unknown
5992need_version=unknown
5993# when you set need_version to no, make sure it does not cause -set_version
5994# flags to be left without arguments
5995archive_cmds=
5996archive_expsym_cmds=
5997old_archive_from_new_cmds=
5998old_archive_from_expsyms_cmds=
5999export_dynamic_flag_spec=
6000whole_archive_flag_spec=
6001thread_safe_flag_spec=
6002hardcode_into_libs=no
6003hardcode_libdir_flag_spec=
6004hardcode_libdir_separator=
6005hardcode_direct=no
6006hardcode_minus_L=no
6007hardcode_shlibpath_var=unsupported
6008runpath_var=
6009link_all_deplibs=unknown
6010always_export_symbols=no
6011export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6012# include_expsyms should be a list of space-separated symbols to be *always*
6013# included in the symbol list
6014include_expsyms=
6015# exclude_expsyms can be an egrep regular expression of symbols to exclude
6016# it will be wrapped by ` (' and `)$', so one must not match beginning or
6017# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6018# as well as any symbol that contains `d'.
6019exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6020# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6021# platforms (ab)use it in PIC code, but their linkers get confused if
6022# the symbol is explicitly referenced. Since portable code cannot
6023# rely on this symbol name, it's probably fine to never include it in
6024# preloaded symbol tables.
6025extract_expsyms_cmds=
6026
6027case "$host_os" in
6028cygwin* | mingw* | pw32* )
6029 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6030 # When not using gcc, we currently assume that we are using
6031 # Microsoft Visual C++.
6032 if test "$GCC" != yes; then
6033 with_gnu_ld=no
6034 fi
6035 ;;
6036
6037esac
6038
6039ld_shlibs=yes
6040if test "$with_gnu_ld" = yes; then
6041 # If archive_cmds runs LD, not CC, wlarc should be empty
6042 wlarc='${wl}'
6043
6044 # See if GNU ld supports shared libraries.
6045 case "$host_os" in
6046 aix3* | aix4*)
6047 # On AIX, the GNU linker is very broken
6048 ld_shlibs=no
6049 cat <<EOF 1>&2
6050
6051*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6052*** to be unable to reliably create shared libraries on AIX.
6053*** Therefore, libtool is disabling shared libraries support. If you
6054*** really care for shared libraries, you may want to modify your PATH
6055*** so that a non-GNU linker is found, and then restart.
6056
6057EOF
6058 ;;
6059
6060 amigaos*)
6061 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6062 hardcode_libdir_flag_spec='-L$libdir'
6063 hardcode_minus_L=yes
6064
6065 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6066 # that the semantics of dynamic libraries on AmigaOS, at least up
6067 # to version 4, is to share data among multiple programs linked
6068 # with the same dynamic library. Since this doesn't match the
6069 # behavior of shared libraries on other platforms, we can use
6070 # them.
6071 ld_shlibs=no
6072 ;;
6073
6074 beos*)
6075 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6076 allow_undefined_flag=unsupported
6077 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6078 # support --undefined. This deserves some investigation. FIXME
6079 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6080 else
6081 ld_shlibs=no
6082 fi
6083 ;;
6084
6085 cygwin* | mingw* | pw32*)
6086 # hardcode_libdir_flag_spec is actually meaningless, as there is
6087 # no search path for DLLs.
6088 hardcode_libdir_flag_spec='-L$libdir'
6089 allow_undefined_flag=unsupported
6090 always_export_symbols=yes
6091
6092 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6093 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6094 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6095 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6096 else $CC -o impgen impgen.c ; fi)~
6097 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
6098
6099 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6100
6101 # cygwin and mingw dlls have different entry points and sets of symbols
6102 # to exclude.
6103 # FIXME: what about values for MSVC?
6104 dll_entry=__cygwin_dll_entry@12
6105 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6106 case "$host_os" in
6107 mingw*)
6108 # mingw values
6109 dll_entry=_DllMainCRTStartup@12
6110 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6111 ;;
6112 esac
6113
6114 # mingw and cygwin differ, and it's simplest to just exclude the union
6115 # of the two symbol sets.
6116 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6117
6118 # recent cygwin and mingw systems supply a stub DllMain which the user
6119 # can override, but on older systems we have to supply one (in ltdll.c)
6120 if test "x$lt_cv_need_dllmain" = "xyes"; then
6121 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6122 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
6123 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6124 else
6125 ltdll_obj=
6126 ltdll_cmds=
6127 fi
6128
6129 # Extract the symbol export list from an `--export-all' def file,
6130 # then regenerate the def file from the symbol export list, so that
6131 # the compiled dll only exports the symbol export list.
6132 # Be careful not to strip the DATA tag left be newer dlltools.
6133 export_symbols_cmds="$ltdll_cmds"'
6134 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6135 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6136
6137 # If DATA tags from a recent dlltool are present, honour them!
6138 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
6139 _lt_hint=1;
6140 cat $export_symbols | while read symbol; do
6141 set dummy \$symbol;
6142 case \$# in
6143 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6144 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6145 esac;
6146 _lt_hint=`expr 1 + \$_lt_hint`;
6147 done~
6148 '"$ltdll_cmds"'
6149 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6150 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6151 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6152 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6153 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6154 ;;
6155
6156 netbsd*)
6157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6158 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6159 wlarc=
6160 else
6161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6162 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6163 fi
6164 ;;
6165
6166 solaris* | sysv5*)
6167 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6168 ld_shlibs=no
6169 cat <<EOF 1>&2
6170
6171*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6172*** create shared libraries on Solaris systems. Therefore, libtool
6173*** is disabling shared libraries support. We urge you to upgrade GNU
6174*** binutils to release 2.9.1 or newer. Another option is to modify
6175*** your PATH or compiler configuration so that the native linker is
6176*** used, and then restart.
6177
6178EOF
6179 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6180 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6181 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6182 else
6183 ld_shlibs=no
6184 fi
6185 ;;
6186
6187 sunos4*)
6188 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6189 wlarc=
6190 hardcode_direct=yes
6191 hardcode_shlibpath_var=no
6192 ;;
6193
6194 *)
6195 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6198 else
6199 ld_shlibs=no
6200 fi
6201 ;;
6202 esac
6203
6204 if test "$ld_shlibs" = yes; then
6205 runpath_var=LD_RUN_PATH
6206 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6207 export_dynamic_flag_spec='${wl}--export-dynamic'
6208 case $host_os in
6209 cygwin* | mingw* | pw32*)
6210 # dlltool doesn't understand --whole-archive et. al.
6211 whole_archive_flag_spec=
6212 ;;
6213 *)
6214 # ancient GNU ld didn't support --whole-archive et. al.
6215 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6216 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6217 else
6218 whole_archive_flag_spec=
6219 fi
6220 ;;
6221 esac
6222 fi
6223else
6224 # PORTME fill in a description of your system's linker (not GNU ld)
6225 case "$host_os" in
6226 aix3*)
6227 allow_undefined_flag=unsupported
6228 always_export_symbols=yes
6229 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6230 # Note: this linker hardcodes the directories in LIBPATH if there
6231 # are no directories specified by -L.
6232 hardcode_minus_L=yes
6233 if test "$GCC" = yes && test -z "$link_static_flag"; then
6234 # Neither direct hardcoding nor static linking is supported with a
6235 # broken collect2.
6236 hardcode_direct=unsupported
6237 fi
6238 ;;
6239
6240 aix4*)
6241 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6242 hardcode_libdir_separator=':'
6243 if test "$GCC" = yes; then
6244 collect2name=`${CC} -print-prog-name=collect2`
6245 if test -f "$collect2name" && \
6246 strings "$collect2name" | grep resolve_lib_name >/dev/null
6247 then
6248 # We have reworked collect2
6249 hardcode_direct=yes
6250 else
6251 # We have old collect2
6252 hardcode_direct=unsupported
6253 # It fails to find uninstalled libraries when the uninstalled
6254 # path is not listed in the libpath. Setting hardcode_minus_L
6255 # to unsupported forces relinking
6256 hardcode_minus_L=yes
6257 hardcode_libdir_flag_spec='-L$libdir'
6258 hardcode_libdir_separator=
6259 fi
6260 shared_flag='-shared'
6261 else
6262 shared_flag='${wl}-bM:SRE'
6263 hardcode_direct=yes
6264 fi
6265 allow_undefined_flag=' ${wl}-berok'
6266 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6267 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6268 case "$host_os" in aix4.[01]|aix4.[01].*)
6269 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6270 always_export_symbols=yes ;;
6271 esac
6272
6273 # We don't want to build shared libraries on unknown CPU types.
6274 case $host_cpu in
6275 powerpc | rs6000) ;;
6276 *) ld_shlibs=no ;;
6277 esac
6278 ;;
6279
6280 amigaos*)
6281 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6282 hardcode_libdir_flag_spec='-L$libdir'
6283 hardcode_minus_L=yes
6284 # see comment about different semantics on the GNU ld section
6285 ld_shlibs=no
6286 ;;
6287
6288 cygwin* | mingw* | pw32*)
6289 # When not using gcc, we currently assume that we are using
6290 # Microsoft Visual C++.
6291 # hardcode_libdir_flag_spec is actually meaningless, as there is
6292 # no search path for DLLs.
6293 hardcode_libdir_flag_spec=' '
6294 allow_undefined_flag=unsupported
6295 # Tell ltmain to make .lib files, not .a files.
6296 libext=lib
6297 # FIXME: Setting linknames here is a bad hack.
6298 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6299 # The linker will automatically build a .lib file if we build a DLL.
6300 old_archive_from_new_cmds='true'
6301 # FIXME: Should let the user specify the lib program.
6302 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6303 fix_srcfile_path='`cygpath -w "$srcfile"`'
6304 ;;
6305
6306 darwin* | rhapsody*)
6307 allow_undefined_flag='-undefined warning'
6308 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6309 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6310 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6311 ## What we need is to hardcode the path to the library, not the search path
6312 #hardcode_direct=yes
6313 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6314 hardcode_shlibpath_var=no
6315 whole_archive_flag_spec='-all_load'
6316 ;;
6317
6318 freebsd1*)
6319 ld_shlibs=no
6320 ;;
6321
6322 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6323 # support. Future versions do this automatically, but an explicit c++rt0.o
6324 # does not break anything, and helps significantly (at the cost of a little
6325 # extra space).
6326 freebsd2.2*)
6327 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6328 hardcode_libdir_flag_spec='-R$libdir'
6329 hardcode_direct=yes
6330 hardcode_shlibpath_var=no
6331 ;;
6332
6333 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6334 freebsd2*)
6335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6336 hardcode_direct=yes
6337 hardcode_minus_L=yes
6338 hardcode_shlibpath_var=no
6339 ;;
6340
6341 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6342 freebsd*)
6343 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6344 hardcode_libdir_flag_spec='-R$libdir'
6345 hardcode_direct=yes
6346 hardcode_shlibpath_var=no
6347 ;;
6348
6349 hpux9* | hpux10* | hpux11*)
6350 case "$host_os" in
6351 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6352 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6353 esac
6354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6355 hardcode_libdir_separator=:
6356 hardcode_direct=yes
6357 hardcode_minus_L=yes # Not in the search PATH, but as the default
6358 # location of the library.
6359 export_dynamic_flag_spec='${wl}-E'
6360 ;;
6361
6362 irix5* | irix6*)
6363 if test "$GCC" = yes; then
6364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6365 else
6366 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6367 fi
6368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6369 hardcode_libdir_separator=:
6370 link_all_deplibs=yes
6371 ;;
6372
6373 netbsd*)
6374 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6376 else
6377 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6378 fi
6379 hardcode_libdir_flag_spec='-R$libdir'
6380 hardcode_direct=yes
6381 hardcode_shlibpath_var=no
6382 ;;
6383
6384 newsos6)
6385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6386 hardcode_direct=yes
6387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6388 hardcode_libdir_separator=:
6389 hardcode_shlibpath_var=no
6390 ;;
6391
6392 openbsd*)
6393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6394 hardcode_libdir_flag_spec='-R$libdir'
6395 hardcode_direct=yes
6396 hardcode_shlibpath_var=no
6397 ;;
6398
6399 os2*)
6400 hardcode_libdir_flag_spec='-L$libdir'
6401 hardcode_minus_L=yes
6402 allow_undefined_flag=unsupported
6403 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6404 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6405 ;;
6406
6407 osf3*)
6408 if test "$GCC" = yes; then
6409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6410 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6411 else
6412 allow_undefined_flag=' -expect_unresolved \*'
6413 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6414 fi
6415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6416 hardcode_libdir_separator=:
6417 ;;
6418
6419 osf4* | osf5*) # as osf3* with the addition of -msym flag
6420 if test "$GCC" = yes; then
6421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6422 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6423 else
6424 allow_undefined_flag=' -expect_unresolved \*'
6425 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6426 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6427 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6428 fi
6429#Both c and cxx compiler support -rpath directly
6430 hardcode_libdir_flag_spec='-rpath $libdir'
6431 hardcode_libdir_separator=:
6432 ;;
6433
6434 sco3.2v5*)
6435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6436 hardcode_shlibpath_var=no
6437 runpath_var=LD_RUN_PATH
6438 hardcode_runpath_var=yes
6439 ;;
6440
6441 solaris*)
6442 no_undefined_flag=' -z text'
6443 # $CC -shared without GNU ld will not create a library from C++
6444 # object files and a static libstdc++, better avoid it by now
6445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6446 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6448 hardcode_libdir_flag_spec='-R$libdir'
6449 hardcode_shlibpath_var=no
6450 case "$host_os" in
6451 solaris2.[0-5] | solaris2.[0-5].*) ;;
6452 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6453 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6454 esac
6455 link_all_deplibs=yes
6456 ;;
6457
6458 sunos4*)
6459 if test "x$host_vendor" = xsequent; then
6460 # Use $CC to link under sequent, because it throws in some extra .o
6461 # files that make .init and .fini sections work.
6462 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6463 else
6464 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6465 fi
6466 hardcode_libdir_flag_spec='-L$libdir'
6467 hardcode_direct=yes
6468 hardcode_minus_L=yes
6469 hardcode_shlibpath_var=no
6470 ;;
6471
6472 sysv4)
6473 if test "x$host_vendor" = xsno; then
6474 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6475 hardcode_direct=yes # is this really true???
6476 else
6477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6478 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6479 fi
6480 runpath_var='LD_RUN_PATH'
6481 hardcode_shlibpath_var=no
6482 ;;
6483
6484 sysv4.3*)
6485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6486 hardcode_shlibpath_var=no
6487 export_dynamic_flag_spec='-Bexport'
6488 ;;
6489
6490 sysv5*)
6491 no_undefined_flag=' -z text'
6492 # $CC -shared without GNU ld will not create a library from C++
6493 # object files and a static libstdc++, better avoid it by now
6494 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6495 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6497 hardcode_libdir_flag_spec=
6498 hardcode_shlibpath_var=no
6499 runpath_var='LD_RUN_PATH'
6500 ;;
6501
6502 uts4*)
6503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6504 hardcode_libdir_flag_spec='-L$libdir'
6505 hardcode_shlibpath_var=no
6506 ;;
6507
6508 dgux*)
6509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6510 hardcode_libdir_flag_spec='-L$libdir'
6511 hardcode_shlibpath_var=no
6512 ;;
6513
6514 sysv4*MP*)
6515 if test -d /usr/nec; then
6516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6517 hardcode_shlibpath_var=no
6518 runpath_var=LD_RUN_PATH
6519 hardcode_runpath_var=yes
6520 ld_shlibs=yes
6521 fi
6522 ;;
6523
6524 sysv4.2uw2*)
6525 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6526 hardcode_direct=yes
6527 hardcode_minus_L=no
6528 hardcode_shlibpath_var=no
6529 hardcode_runpath_var=yes
6530 runpath_var=LD_RUN_PATH
6531 ;;
6532
6533 unixware7*)
6534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6535 runpath_var='LD_RUN_PATH'
6536 hardcode_shlibpath_var=no
6537 ;;
6538
6539 *)
6540 ld_shlibs=no
6541 ;;
6542 esac
6543fi
6544echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6545echo "${ECHO_T}$ld_shlibs" >&6
6546test "$ld_shlibs" = no && can_build_shared=no
6547##
6548## END FIXME
6549
6550## FIXME: this should be a separate macro
6551##
6552# Check hardcoding attributes.
6553echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6554echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6555hardcode_action=
6556if test -n "$hardcode_libdir_flag_spec" || \
6557 test -n "$runpath_var"; then
6558
6559 # We can hardcode non-existant directories.
6560 if test "$hardcode_direct" != no &&
6561 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6562 # have to relink, otherwise we might link with an installed library
6563 # when we should be linking with a yet-to-be-installed one
6564 ## test "$hardcode_shlibpath_var" != no &&
6565 test "$hardcode_minus_L" != no; then
6566 # Linking always hardcodes the temporary library directory.
6567 hardcode_action=relink
6568 else
6569 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6570 hardcode_action=immediate
6571 fi
6572else
6573 # We cannot hardcode anything, or else we can only hardcode existing
6574 # directories.
6575 hardcode_action=unsupported
6576fi
6577echo "$as_me:$LINENO: result: $hardcode_action" >&5
6578echo "${ECHO_T}$hardcode_action" >&6
6579##
6580## END FIXME
6581
6582## FIXME: this should be a separate macro
6583##
6584striplib=
6585old_striplib=
6586echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6587echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6588if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6589 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6590 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6591 echo "$as_me:$LINENO: result: yes" >&5
6592echo "${ECHO_T}yes" >&6
6593else
6594 echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6
6596fi
6597##
6598## END FIXME
6599
6600reload_cmds='$LD$reload_flag -o $output$reload_objs'
6601test -z "$deplibs_check_method" && deplibs_check_method=unknown
6602
6603## FIXME: this should be a separate macro
6604##
6605# PORTME Fill in your ld.so characteristics
6606echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6607echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6608library_names_spec=
6609libname_spec='lib$name'
6610soname_spec=
6611postinstall_cmds=
6612postuninstall_cmds=
6613finish_cmds=
6614finish_eval=
6615shlibpath_var=
6616shlibpath_overrides_runpath=unknown
6617version_type=none
6618dynamic_linker="$host_os ld.so"
6619sys_lib_dlsearch_path_spec="/lib /usr/lib"
6620sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6621
6622case "$host_os" in
6623aix3*)
6624 version_type=linux
6625 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6626 shlibpath_var=LIBPATH
6627
6628 # AIX has no versioning support, so we append a major version to the name.
6629 soname_spec='${libname}${release}.so$major'
6630 ;;
6631
6632aix4*)
6633 version_type=linux
6634 # AIX has no versioning support, so currently we can not hardcode correct
6635 # soname into executable. Probably we can add versioning support to
6636 # collect2, so additional links can be useful in future.
6637 # We preserve .a as extension for shared libraries though AIX4.2
6638 # and later linker supports .so
6639 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6640 shlibpath_var=LIBPATH
6641 ;;
6642
6643amigaos*)
6644 library_names_spec='$libname.ixlibrary $libname.a'
6645 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6646 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6647 ;;
6648
6649beos*)
6650 library_names_spec='${libname}.so'
6651 dynamic_linker="$host_os ld.so"
6652 shlibpath_var=LIBRARY_PATH
6653 ;;
6654
6655bsdi4*)
6656 version_type=linux
6657 need_version=no
6658 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6659 soname_spec='${libname}${release}.so$major'
6660 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6661 shlibpath_var=LD_LIBRARY_PATH
6662 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6663 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6664 export_dynamic_flag_spec=-rdynamic
6665 # the default ld.so.conf also contains /usr/contrib/lib and
6666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6667 # libtool to hard-code these into programs
6668 ;;
6669
6670cygwin* | mingw* | pw32*)
6671 version_type=windows
6672 need_version=no
6673 need_lib_prefix=no
6674 if test "$GCC" = yes; then
6675 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6676 else
6677 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6678 fi
6679 dynamic_linker='Win32 ld.exe'
6680 # FIXME: first we should search . and the directory the executable is in
6681 shlibpath_var=PATH
6682 ;;
6683
6684darwin* | rhapsody*)
6685 need_lib_prefix=no
6686 need_version=no
6687 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6688 shlibpath_overrides_runpath=yes
6689 shlibpath_var=DYLD_LIBRARY_PATH
6690 postinstall_cmds='chmod +x $lib'
6691 ;;
6692
6693freebsd1*)
6694 dynamic_linker=no
6695 ;;
6696
6697freebsd*)
6698 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6699 version_type=freebsd-$objformat
6700 case "$version_type" in
6701 freebsd-elf*)
6702 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6703 need_version=no
6704 need_lib_prefix=no
6705 ;;
6706 freebsd-*)
6707 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6708 need_version=yes
6709 ;;
6710 esac
6711 shlibpath_var=LD_LIBRARY_PATH
6712 case "$host_os" in
6713 freebsd2*)
6714 shlibpath_overrides_runpath=yes
6715 ;;
6716 *)
6717 shlibpath_overrides_runpath=no
6718 hardcode_into_libs=yes
6719 ;;
6720 esac
6721 ;;
6722
6723gnu*)
6724 version_type=linux
6725 need_lib_prefix=no
6726 need_version=no
6727 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6728 soname_spec='${libname}${release}.so$major'
6729 shlibpath_var=LD_LIBRARY_PATH
6730 hardcode_into_libs=yes
6731 ;;
6732
6733hpux9* | hpux10* | hpux11*)
6734 # Give a soname corresponding to the major version so that dld.sl refuses to
6735 # link against other versions.
6736 dynamic_linker="$host_os dld.sl"
6737 version_type=sunos
6738 need_lib_prefix=no
6739 need_version=no
6740 shlibpath_var=SHLIB_PATH
6741 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6742 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6743 soname_spec='${libname}${release}.sl$major'
6744 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6745 postinstall_cmds='chmod 555 $lib'
6746 ;;
6747
6748irix5* | irix6*)
6749 version_type=irix
6750 need_lib_prefix=no
6751 need_version=no
6752 soname_spec='${libname}${release}.so$major'
6753 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6754 case "$host_os" in
6755 irix5*)
6756 libsuff= shlibsuff=
6757 ;;
6758 *)
6759 case "$LD" in # libtool.m4 will add one of these switches to LD
6760 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6761 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6762 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6763 *) libsuff= shlibsuff= libmagic=never-match;;
6764 esac
6765 ;;
6766 esac
6767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6768 shlibpath_overrides_runpath=no
6769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6771 ;;
6772
6773# No shared lib support for Linux oldld, aout, or coff.
6774linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6775 dynamic_linker=no
6776 ;;
6777
6778# This must be Linux ELF.
6779linux-gnu*)
6780 version_type=linux
6781 need_lib_prefix=no
6782 need_version=no
6783 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6784 soname_spec='${libname}${release}.so$major'
6785 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6786 shlibpath_var=LD_LIBRARY_PATH
6787 shlibpath_overrides_runpath=no
6788 # This implies no fast_install, which is unacceptable.
6789 # Some rework will be needed to allow for fast_install
6790 # before this can be enabled.
6791 hardcode_into_libs=yes
6792
6793 # We used to test for /lib/ld.so.1 and disable shared libraries on
6794 # powerpc, because MkLinux only supported shared libraries with the
6795 # GNU dynamic linker. Since this was broken with cross compilers,
6796 # most powerpc-linux boxes support dynamic linking these days and
6797 # people can always --disable-shared, the test was removed, and we
6798 # assume the GNU/Linux dynamic linker is in use.
6799 dynamic_linker='GNU/Linux ld.so'
6800 ;;
6801
6802netbsd*)
6803 version_type=sunos
6804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6805 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6807 dynamic_linker='NetBSD (a.out) ld.so'
6808 else
6809 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6810 soname_spec='${libname}${release}.so$major'
6811 dynamic_linker='NetBSD ld.elf_so'
6812 fi
6813 shlibpath_var=LD_LIBRARY_PATH
6814 shlibpath_overrides_runpath=yes
6815 hardcode_into_libs=yes
6816 ;;
6817
6818newsos6)
6819 version_type=linux
6820 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6821 shlibpath_var=LD_LIBRARY_PATH
6822 shlibpath_overrides_runpath=yes
6823 ;;
6824
6825openbsd*)
6826 version_type=sunos
6827 if test "$with_gnu_ld" = yes; then
6828 need_lib_prefix=no
6829 need_version=no
6830 fi
6831 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6833 shlibpath_var=LD_LIBRARY_PATH
6834 ;;
6835
6836os2*)
6837 libname_spec='$name'
6838 need_lib_prefix=no
6839 library_names_spec='$libname.dll $libname.a'
6840 dynamic_linker='OS/2 ld.exe'
6841 shlibpath_var=LIBPATH
6842 ;;
6843
6844osf3* | osf4* | osf5*)
6845 version_type=osf
6846 need_version=no
6847 soname_spec='${libname}${release}.so'
6848 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6849 shlibpath_var=LD_LIBRARY_PATH
6850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6852 ;;
6853
6854sco3.2v5*)
6855 version_type=osf
6856 soname_spec='${libname}${release}.so$major'
6857 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6858 shlibpath_var=LD_LIBRARY_PATH
6859 ;;
6860
6861solaris*)
6862 version_type=linux
6863 need_lib_prefix=no
6864 need_version=no
6865 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6866 soname_spec='${libname}${release}.so$major'
6867 shlibpath_var=LD_LIBRARY_PATH
6868 shlibpath_overrides_runpath=yes
6869 hardcode_into_libs=yes
6870 # ldd complains unless libraries are executable
6871 postinstall_cmds='chmod +x $lib'
6872 ;;
6873
6874sunos4*)
6875 version_type=sunos
6876 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6878 shlibpath_var=LD_LIBRARY_PATH
6879 shlibpath_overrides_runpath=yes
6880 if test "$with_gnu_ld" = yes; then
6881 need_lib_prefix=no
6882 fi
6883 need_version=yes
6884 ;;
6885
6886sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6887 version_type=linux
6888 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6889 soname_spec='${libname}${release}.so$major'
6890 shlibpath_var=LD_LIBRARY_PATH
6891 case "$host_vendor" in
6892 sni)
6893 shlibpath_overrides_runpath=no
6894 ;;
6895 motorola)
6896 need_lib_prefix=no
6897 need_version=no
6898 shlibpath_overrides_runpath=no
6899 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6900 ;;
6901 esac
6902 ;;
6903
6904uts4*)
6905 version_type=linux
6906 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6907 soname_spec='${libname}${release}.so$major'
6908 shlibpath_var=LD_LIBRARY_PATH
6909 ;;
6910
6911dgux*)
6912 version_type=linux
6913 need_lib_prefix=no
6914 need_version=no
6915 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6916 soname_spec='${libname}${release}.so$major'
6917 shlibpath_var=LD_LIBRARY_PATH
6918 ;;
6919
6920sysv4*MP*)
6921 if test -d /usr/nec ;then
6922 version_type=linux
6923 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6924 soname_spec='$libname.so.$major'
6925 shlibpath_var=LD_LIBRARY_PATH
6926 fi
6927 ;;
6928
6929*)
6930 dynamic_linker=no
6931 ;;
6932esac
6933echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6934echo "${ECHO_T}$dynamic_linker" >&6
6935test "$dynamic_linker" = no && can_build_shared=no
6936##
6937## END FIXME
6938
6939## FIXME: this should be a separate macro
6940##
6941# Report the final consequences.
6942echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6943echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6944echo "$as_me:$LINENO: result: $can_build_shared" >&5
6945echo "${ECHO_T}$can_build_shared" >&6
6946##
6947## END FIXME
6948
6949if test "$hardcode_action" = relink; then
6950 # Fast installation is not supported
6951 enable_fast_install=no
6952elif test "$shlibpath_overrides_runpath" = yes ||
6953 test "$enable_shared" = no; then
6954 # Fast installation is not necessary
6955 enable_fast_install=needless
6956fi
6957
6958variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6959if test "$GCC" = yes; then
6960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6961fi
6962
6963if test "x$enable_dlopen" != xyes; then
6964 enable_dlopen=unknown
6965 enable_dlopen_self=unknown
6966 enable_dlopen_self_static=unknown
6967else
6968 lt_cv_dlopen=no
6969 lt_cv_dlopen_libs=
6970
6971 case "$host_os" in
6972 beos*)
6973 lt_cv_dlopen="load_add_on"
6974 lt_cv_dlopen_libs=
6975 lt_cv_dlopen_self=yes
6976 ;;
6977
6978 cygwin* | mingw* | pw32*)
6979 lt_cv_dlopen="LoadLibrary"
6980 lt_cv_dlopen_libs=
6981 ;;
6982
6983 *)
6984 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6985echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6986if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 ac_check_lib_save_LIBS=$LIBS
6990LIBS="-ldl $LIBS"
6991cat >conftest.$ac_ext <<_ACEOF
6992/* confdefs.h. */
6993_ACEOF
6994cat confdefs.h >>conftest.$ac_ext
6995cat >>conftest.$ac_ext <<_ACEOF
6996/* end confdefs.h. */
6997
6998/* Override any gcc2 internal prototype to avoid an error. */
6999#ifdef __cplusplus
7000extern "C"
7001#endif
7002/* We use char because int might match the return type of a gcc2
7003 builtin and then its argument prototype would still apply. */
7004char dlopen ();
7005int
7006main ()
7007{
7008dlopen ();
7009 ;
7010 return 0;
7011}
7012_ACEOF
7013rm -f conftest.$ac_objext conftest$ac_exeext
7014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015 (eval $ac_link) 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 (eval $ac_try) 2>&5
7025 ac_status=$?
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest$ac_exeext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 (eval $ac_try) 2>&5
7031 ac_status=$?
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7034 ac_cv_lib_dl_dlopen=yes
7035else
7036 echo "$as_me: failed program was:" >&5
7037sed 's/^/| /' conftest.$ac_ext >&5
7038
7039ac_cv_lib_dl_dlopen=no
7040fi
7041rm -f conftest.err conftest.$ac_objext \
7042 conftest$ac_exeext conftest.$ac_ext
7043LIBS=$ac_check_lib_save_LIBS
7044fi
7045echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7046echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7047if test $ac_cv_lib_dl_dlopen = yes; then
7048 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7049else
7050 echo "$as_me:$LINENO: checking for dlopen" >&5
7051echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7052if test "${ac_cv_func_dlopen+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055 cat >conftest.$ac_ext <<_ACEOF
7056/* confdefs.h. */
7057_ACEOF
7058cat confdefs.h >>conftest.$ac_ext
7059cat >>conftest.$ac_ext <<_ACEOF
7060/* end confdefs.h. */
7061/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 4114/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
7062 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7063#define dlopen innocuous_dlopen 4116#define sched_yield innocuous_sched_yield
7064 4117
7065/* System header to define __stub macros and hopefully few prototypes, 4118/* System header to define __stub macros and hopefully few prototypes,
7066 which can conflict with char dlopen (); below. 4119 which can conflict with char sched_yield (); below.
7067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7068 <limits.h> exists even on freestanding compilers. */ 4121 <limits.h> exists even on freestanding compilers. */
7069 4122
7070#ifdef __STDC__ 4123#ifdef __STDC__
7071# include <limits.h> 4124# include <limits.h>
7072#else 4125#else
7073# include <assert.h> 4126# include <assert.h>
7074#endif 4127#endif
7075 4128
7076#undef dlopen 4129#undef sched_yield
7077 4130
7078/* Override any gcc2 internal prototype to avoid an error. */ 4131/* Override any gcc2 internal prototype to avoid an error. */
7079#ifdef __cplusplus 4132#ifdef __cplusplus
7080extern "C" 4133extern "C"
7081{ 4134{
7082#endif 4135#endif
7083/* We use char because int might match the return type of a gcc2 4136/* We use char because int might match the return type of a gcc2
7084 builtin and then its argument prototype would still apply. */ 4137 builtin and then its argument prototype would still apply. */
7085char dlopen (); 4138char sched_yield ();
7086/* The GNU C library defines this for functions which it implements 4139/* The GNU C library defines this for functions which it implements
7087 to always fail with ENOSYS. Some functions are actually named 4140 to always fail with ENOSYS. Some functions are actually named
7088 something starting with __ and the normal name is an alias. */ 4141 something starting with __ and the normal name is an alias. */
7089#if defined (__stub_dlopen) || defined (__stub___dlopen) 4142#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
7090choke me 4143choke me
7091#else 4144#else
7092char (*f) () = dlopen; 4145char (*f) () = sched_yield;
7093#endif 4146#endif
7094#ifdef __cplusplus 4147#ifdef __cplusplus
7095} 4148}
7096#endif 4149#endif
7097 4150
7098int 4151int
7099main () 4152main ()
7100{ 4153{
7101return f != dlopen; 4154return f != sched_yield;
7102 ; 4155 ;
7103 return 0; 4156 return 0;
7104} 4157}
7105_ACEOF 4158_ACEOF
7106rm -f conftest.$ac_objext conftest$ac_exeext 4159rm -f conftest.$ac_objext conftest$ac_exeext
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5 4176 (eval $ac_try) 2>&5
7124 ac_status=$? 4177 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then 4179 (exit $ac_status); }; }; then
7127 ac_cv_func_dlopen=yes 4180 ac_cv_func_sched_yield=yes
7128else 4181else
7129 echo "$as_me: failed program was:" >&5 4182 echo "$as_me: failed program was:" >&5
7130sed 's/^/| /' conftest.$ac_ext >&5 4183sed 's/^/| /' conftest.$ac_ext >&5
7131 4184
7132ac_cv_func_dlopen=no 4185ac_cv_func_sched_yield=no
7133fi 4186fi
7134rm -f conftest.err conftest.$ac_objext \ 4187rm -f conftest.err conftest.$ac_objext \
7135 conftest$ac_exeext conftest.$ac_ext 4188 conftest$ac_exeext conftest.$ac_ext
7136fi 4189fi
7137echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 4190echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
7138echo "${ECHO_T}$ac_cv_func_dlopen" >&6 4191echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
7139if test $ac_cv_func_dlopen = yes; then 4192if test $ac_cv_func_sched_yield = yes; then
7140 lt_cv_dlopen="dlopen" 4193 :
7141else 4194else
7142 echo "$as_me:$LINENO: checking for shl_load" >&5 4195 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
7143echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 4196echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
7144if test "${ac_cv_func_shl_load+set}" = set; then 4197if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6 4198 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else 4199else
7147 cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h. */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h. */
7153/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7155#define shl_load innocuous_shl_load
7156
7157/* System header to define __stub macros and hopefully few prototypes,
7158 which can conflict with char shl_load (); below.
7159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7160 <limits.h> exists even on freestanding compilers. */
7161
7162#ifdef __STDC__
7163# include <limits.h>
7164#else
7165# include <assert.h>
7166#endif
7167
7168#undef shl_load
7169
7170/* Override any gcc2 internal prototype to avoid an error. */
7171#ifdef __cplusplus
7172extern "C"
7173{
7174#endif
7175/* We use char because int might match the return type of a gcc2
7176 builtin and then its argument prototype would still apply. */
7177char shl_load ();
7178/* The GNU C library defines this for functions which it implements
7179 to always fail with ENOSYS. Some functions are actually named
7180 something starting with __ and the normal name is an alias. */
7181#if defined (__stub_shl_load) || defined (__stub___shl_load)
7182choke me
7183#else
7184char (*f) () = shl_load;
7185#endif
7186#ifdef __cplusplus
7187}
7188#endif
7189
7190int
7191main ()
7192{
7193return f != shl_load;
7194 ;
7195 return 0;
7196}
7197_ACEOF
7198rm -f conftest.$ac_objext conftest$ac_exeext
7199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200 (eval $ac_link) 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
7207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 (eval $ac_try) 2>&5
7210 ac_status=$?
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; } &&
7213 { ac_try='test -s conftest$ac_exeext'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; }; then
7219 ac_cv_func_shl_load=yes
7220else
7221 echo "$as_me: failed program was:" >&5
7222sed 's/^/| /' conftest.$ac_ext >&5
7223
7224ac_cv_func_shl_load=no
7225fi
7226rm -f conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7228fi
7229echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7230echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7231if test $ac_cv_func_shl_load = yes; then
7232 lt_cv_dlopen="shl_load"
7233else
7234 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7235echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7236if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238else
7239 ac_check_lib_save_LIBS=$LIBS 4200 ac_check_lib_save_LIBS=$LIBS
7240LIBS="-lsvld $LIBS" 4201LIBS="-lrt $LIBS"
7241cat >conftest.$ac_ext <<_ACEOF 4202cat >conftest.$ac_ext <<_ACEOF
7242/* confdefs.h. */ 4203/* confdefs.h. */
7243_ACEOF 4204_ACEOF
7244cat confdefs.h >>conftest.$ac_ext 4205cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF 4206cat >>conftest.$ac_ext <<_ACEOF
7249#ifdef __cplusplus 4210#ifdef __cplusplus
7250extern "C" 4211extern "C"
7251#endif 4212#endif
7252/* We use char because int might match the return type of a gcc2 4213/* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */ 4214 builtin and then its argument prototype would still apply. */
7254char dlopen (); 4215char sched_yield ();
7255int 4216int
7256main () 4217main ()
7257{ 4218{
7258dlopen (); 4219sched_yield ();
7259 ; 4220 ;
7260 return 0; 4221 return 0;
7261} 4222}
7262_ACEOF 4223_ACEOF
7263rm -f conftest.$ac_objext conftest$ac_exeext 4224rm -f conftest.$ac_objext conftest$ac_exeext
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5 4241 (eval $ac_try) 2>&5
7281 ac_status=$? 4242 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then 4244 (exit $ac_status); }; }; then
7284 ac_cv_lib_svld_dlopen=yes 4245 ac_cv_lib_rt_sched_yield=yes
7285else 4246else
7286 echo "$as_me: failed program was:" >&5 4247 echo "$as_me: failed program was:" >&5
7287sed 's/^/| /' conftest.$ac_ext >&5 4248sed 's/^/| /' conftest.$ac_ext >&5
7288 4249
7289ac_cv_lib_svld_dlopen=no 4250ac_cv_lib_rt_sched_yield=no
7290fi 4251fi
7291rm -f conftest.err conftest.$ac_objext \ 4252rm -f conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext 4253 conftest$ac_exeext conftest.$ac_ext
7293LIBS=$ac_check_lib_save_LIBS 4254LIBS=$ac_check_lib_save_LIBS
7294fi 4255fi
7295echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 4256echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
7296echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 4257echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
7297if test $ac_cv_lib_svld_dlopen = yes; then 4258if test $ac_cv_lib_rt_sched_yield = yes; then
7298 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 4259 LIBS="$LIBS -lrt"
7299else 4260fi
4261
4262fi
4263
4264
7300 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 4265echo "$as_me:$LINENO: checking for sched_yield support" >&5
7301echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 4266echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
7302if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 ac_check_lib_save_LIBS=$LIBS
7306LIBS="-ldld $LIBS"
7307cat >conftest.$ac_ext <<_ACEOF 4267cat >conftest.$ac_ext <<_ACEOF
7308/* confdefs.h. */ 4268/* confdefs.h. */
7309_ACEOF 4269_ACEOF
7310cat confdefs.h >>conftest.$ac_ext 4270cat confdefs.h >>conftest.$ac_ext
7311cat >>conftest.$ac_ext <<_ACEOF 4271cat >>conftest.$ac_ext <<_ACEOF
7312/* end confdefs.h. */ 4272/* end confdefs.h. */
7313 4273#include <sched.h>
7314/* Override any gcc2 internal prototype to avoid an error. */
7315#ifdef __cplusplus
7316extern "C"
7317#endif
7318/* We use char because int might match the return type of a gcc2
7319 builtin and then its argument prototype would still apply. */
7320char shl_load ();
7321int 4274int
7322main () 4275main ()
7323{ 4276{
7324shl_load (); 4277sched_yield ()
7325 ; 4278 ;
7326 return 0; 4279 return 0;
7327} 4280}
7328_ACEOF 4281_ACEOF
7329rm -f conftest.$ac_objext conftest$ac_exeext 4282rm -f conftest.$ac_objext conftest$ac_exeext
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 (eval $ac_try) 2>&5 4299 (eval $ac_try) 2>&5
7347 ac_status=$? 4300 ac_status=$?
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then 4302 (exit $ac_status); }; }; then
7350 ac_cv_lib_dld_shl_load=yes 4303 echo "$as_me:$LINENO: result: yes" >&5
4304echo "${ECHO_T}yes" >&6
4305
4306cat >>confdefs.h <<\_ACEOF
4307#define HAVE_SCHED_YIELD 1
4308_ACEOF
4309
7351else 4310else
7352 echo "$as_me: failed program was:" >&5 4311 echo "$as_me: failed program was:" >&5
7353sed 's/^/| /' conftest.$ac_ext >&5 4312sed 's/^/| /' conftest.$ac_ext >&5
7354 4313
7355ac_cv_lib_dld_shl_load=no 4314echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
7356fi 4316fi
7357rm -f conftest.err conftest.$ac_objext \ 4317rm -f conftest.err conftest.$ac_objext \
7358 conftest$ac_exeext conftest.$ac_ext 4318 conftest$ac_exeext conftest.$ac_ext
7359LIBS=$ac_check_lib_save_LIBS
7360fi
7361echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7362echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7363if test $ac_cv_lib_dld_shl_load = yes; then
7364 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7365fi
7366
7367
7368fi
7369
7370
7371fi
7372
7373
7374fi
7375
7376
7377fi
7378
7379 ;;
7380 esac
7381
7382 if test "x$lt_cv_dlopen" != xno; then
7383 enable_dlopen=yes
7384 else
7385 enable_dlopen=no
7386 fi
7387
7388 case "$lt_cv_dlopen" in
7389 dlopen)
7390 save_CPPFLAGS="$CPP_FLAGS"
7391 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7392
7393 save_LDFLAGS="$LDFLAGS"
7394 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7395
7396 save_LIBS="$LIBS"
7397 LIBS="$lt_cv_dlopen_libs $LIBS"
7398
7399 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7400echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7401if test "${lt_cv_dlopen_self+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404 if test "$cross_compiling" = yes; then :
7405 lt_cv_dlopen_self=cross
7406else
7407 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7408 lt_status=$lt_dlunknown
7409 cat > conftest.$ac_ext <<EOF
7410#line 7410 "configure"
7411#include "confdefs.h"
7412
7413#if HAVE_DLFCN_H
7414#include <dlfcn.h>
7415#endif
7416
7417#include <stdio.h>
7418
7419#ifdef RTLD_GLOBAL
7420# define LT_DLGLOBAL RTLD_GLOBAL
7421#else
7422# ifdef DL_GLOBAL
7423# define LT_DLGLOBAL DL_GLOBAL
7424# else
7425# define LT_DLGLOBAL 0
7426# endif
7427#endif
7428
7429/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7430 find out it does not work in some platform. */
7431#ifndef LT_DLLAZY_OR_NOW
7432# ifdef RTLD_LAZY
7433# define LT_DLLAZY_OR_NOW RTLD_LAZY
7434# else
7435# ifdef DL_LAZY
7436# define LT_DLLAZY_OR_NOW DL_LAZY
7437# else
7438# ifdef RTLD_NOW
7439# define LT_DLLAZY_OR_NOW RTLD_NOW
7440# else
7441# ifdef DL_NOW
7442# define LT_DLLAZY_OR_NOW DL_NOW
7443# else
7444# define LT_DLLAZY_OR_NOW 0
7445# endif
7446# endif
7447# endif
7448# endif
7449#endif
7450
7451#ifdef __cplusplus
7452extern "C" void exit (int);
7453#endif
7454
7455fnord() { int i=42;}
7456main ()
7457{
7458 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7459 int status = $lt_dlunknown;
7460
7461 if (self)
7462 {
7463 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7464 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7465 /* dlclose (self); */
7466 }
7467
7468 exit (status);
7469}
7470EOF
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7476 (./conftest; exit; ) 2>/dev/null
7477 lt_status=$?
7478 case x$lt_status in
7479 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7480 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7481 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7482 esac
7483 else :
7484 # compilation failed
7485 lt_cv_dlopen_self=no
7486 fi
7487fi
7488rm -fr conftest*
7489
7490
7491fi
7492echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7493echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7494
7495 if test "x$lt_cv_dlopen_self" = xyes; then
7496 LDFLAGS="$LDFLAGS $link_static_flag"
7497 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7498echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7499if test "${lt_cv_dlopen_self_static+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501else
7502 if test "$cross_compiling" = yes; then :
7503 lt_cv_dlopen_self_static=cross
7504else
7505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7506 lt_status=$lt_dlunknown
7507 cat > conftest.$ac_ext <<EOF
7508#line 7508 "configure"
7509#include "confdefs.h"
7510
7511#if HAVE_DLFCN_H
7512#include <dlfcn.h>
7513#endif
7514
7515#include <stdio.h>
7516
7517#ifdef RTLD_GLOBAL
7518# define LT_DLGLOBAL RTLD_GLOBAL
7519#else
7520# ifdef DL_GLOBAL
7521# define LT_DLGLOBAL DL_GLOBAL
7522# else
7523# define LT_DLGLOBAL 0
7524# endif
7525#endif
7526
7527/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7528 find out it does not work in some platform. */
7529#ifndef LT_DLLAZY_OR_NOW
7530# ifdef RTLD_LAZY
7531# define LT_DLLAZY_OR_NOW RTLD_LAZY
7532# else
7533# ifdef DL_LAZY
7534# define LT_DLLAZY_OR_NOW DL_LAZY
7535# else
7536# ifdef RTLD_NOW
7537# define LT_DLLAZY_OR_NOW RTLD_NOW
7538# else
7539# ifdef DL_NOW
7540# define LT_DLLAZY_OR_NOW DL_NOW
7541# else
7542# define LT_DLLAZY_OR_NOW 0
7543# endif
7544# endif
7545# endif
7546# endif
7547#endif
7548
7549#ifdef __cplusplus
7550extern "C" void exit (int);
7551#endif
7552
7553fnord() { int i=42;}
7554main ()
7555{
7556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7557 int status = $lt_dlunknown;
7558
7559 if (self)
7560 {
7561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7562 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7563 /* dlclose (self); */
7564 }
7565
7566 exit (status);
7567}
7568EOF
7569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7570 (eval $ac_link) 2>&5
7571 ac_status=$?
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7574 (./conftest; exit; ) 2>/dev/null
7575 lt_status=$?
7576 case x$lt_status in
7577 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7578 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7579 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7580 esac
7581 else :
7582 # compilation failed
7583 lt_cv_dlopen_self_static=no
7584 fi
7585fi
7586rm -fr conftest*
7587
7588
7589fi
7590echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7591echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7592 fi
7593
7594 CPPFLAGS="$save_CPPFLAGS"
7595 LDFLAGS="$save_LDFLAGS"
7596 LIBS="$save_LIBS"
7597 ;;
7598 esac
7599
7600 case "$lt_cv_dlopen_self" in
7601 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7602 *) enable_dlopen_self=unknown ;;
7603 esac
7604
7605 case "$lt_cv_dlopen_self_static" in
7606 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7607 *) enable_dlopen_self_static=unknown ;;
7608 esac
7609fi
7610
7611
7612## FIXME: this should be a separate macro
7613##
7614if test "$enable_shared" = yes && test "$GCC" = yes; then
7615 case "$archive_cmds" in
7616 *'~'*)
7617 # FIXME: we may have to deal with multi-command sequences.
7618 ;;
7619 '$CC '*)
7620 # Test whether the compiler implicitly links with -lc since on some
7621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7622 # to ld, don't add -lc before -lgcc.
7623 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7624echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7625 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 $rm conftest*
7629 echo 'static int dummy;' > conftest.$ac_ext
7630
7631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7632 (eval $ac_compile) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; then
7636 soname=conftest
7637 lib=conftest
7638 libobjs=conftest.$ac_objext
7639 deplibs=
7640 wl=$lt_cv_prog_cc_wl
7641 compiler_flags=-v
7642 linker_flags=-v
7643 verstring=
7644 output_objdir=.
7645 libname=conftest
7646 save_allow_undefined_flag=$allow_undefined_flag
7647 allow_undefined_flag=
7648 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7649 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }
7653 then
7654 lt_cv_archive_cmds_need_lc=no
7655 else
7656 lt_cv_archive_cmds_need_lc=yes
7657 fi
7658 allow_undefined_flag=$save_allow_undefined_flag
7659 else
7660 cat conftest.err 1>&5
7661 fi
7662fi
7663
7664 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7665echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7666 ;;
7667 esac
7668fi
7669need_lc=${lt_cv_archive_cmds_need_lc-yes}
7670##
7671## END FIXME
7672
7673## FIXME: this should be a separate macro
7674##
7675# The second clause should only fire when bootstrapping the
7676# libtool distribution, otherwise you forgot to ship ltmain.sh
7677# with your package, and you will get complaints that there are
7678# no rules to generate ltmain.sh.
7679if test -f "$ltmain"; then
7680 :
7681else
7682 # If there is no Makefile yet, we rely on a make rule to execute
7683 # `config.status --recheck' to rerun these tests and create the
7684 # libtool script then.
7685 test -f Makefile && make "$ltmain"
7686fi
7687
7688if test -f "$ltmain"; then
7689 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7690 $rm -f "${ofile}T"
7691
7692 echo creating $ofile
7693
7694 # Now quote all the things that may contain metacharacters while being
7695 # careful not to overquote the AC_SUBSTed values. We take copies of the
7696 # variables and quote the copies for generation of the libtool script.
7697 for var in echo old_CC old_CFLAGS \
7698 AR AR_FLAGS CC LD LN_S NM SHELL \
7699 reload_flag reload_cmds wl \
7700 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7701 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7702 library_names_spec soname_spec \
7703 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7704 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7705 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7706 old_striplib striplib file_magic_cmd export_symbols_cmds \
7707 deplibs_check_method allow_undefined_flag no_undefined_flag \
7708 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7709 hardcode_libdir_flag_spec hardcode_libdir_separator \
7710 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7711 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7712
7713 case "$var" in
7714 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7715 old_postinstall_cmds | old_postuninstall_cmds | \
7716 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7717 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7718 postinstall_cmds | postuninstall_cmds | \
7719 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7720 # Double-quote double-evaled strings.
7721 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7722 ;;
7723 *)
7724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7725 ;;
7726 esac
7727 done
7728
7729 cat <<__EOF__ > "${ofile}T"
7730#! $SHELL
7731
7732# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7733# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7734# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7735#
7736# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7737# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7738#
7739# This program is free software; you can redistribute it and/or modify
7740# it under the terms of the GNU General Public License as published by
7741# the Free Software Foundation; either version 2 of the License, or
7742# (at your option) any later version.
7743#
7744# This program is distributed in the hope that it will be useful, but
7745# WITHOUT ANY WARRANTY; without even the implied warranty of
7746# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7747# General Public License for more details.
7748#
7749# You should have received a copy of the GNU General Public License
7750# along with this program; if not, write to the Free Software
7751# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7752#
7753# As a special exception to the GNU General Public License, if you
7754# distribute this file as part of a program that contains a
7755# configuration script generated by Autoconf, you may include it under
7756# the same distribution terms that you use for the rest of that program.
7757
7758# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7759Xsed="sed -e s/^X//"
7760
7761# The HP-UX ksh and POSIX shell print the target directory to stdout
7762# if CDPATH is set.
7763if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7764
7765# ### BEGIN LIBTOOL CONFIG
7766
7767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7768
7769# Shell to use when invoking shell scripts.
7770SHELL=$lt_SHELL
7771
7772# Whether or not to build shared libraries.
7773build_libtool_libs=$enable_shared
7774
7775# Whether or not to add -lc for building shared libraries.
7776build_libtool_need_lc=$need_lc
7777
7778# Whether or not to build static libraries.
7779build_old_libs=$enable_static
7780
7781# Whether or not to optimize for fast installation.
7782fast_install=$enable_fast_install
7783
7784# The host system.
7785host_alias=$host_alias
7786host=$host
7787
7788# An echo program that does not interpret backslashes.
7789echo=$lt_echo
7790
7791# The archiver.
7792AR=$lt_AR
7793AR_FLAGS=$lt_AR_FLAGS
7794
7795# The default C compiler.
7796CC=$lt_CC
7797
7798# Is the compiler the GNU C compiler?
7799with_gcc=$GCC
7800
7801# The linker used to build libraries.
7802LD=$lt_LD
7803
7804# Whether we need hard or soft links.
7805LN_S=$lt_LN_S
7806
7807# A BSD-compatible nm program.
7808NM=$lt_NM
7809
7810# A symbol stripping program
7811STRIP=$STRIP
7812
7813# Used to examine libraries when file_magic_cmd begins "file"
7814MAGIC_CMD=$MAGIC_CMD
7815
7816# Used on cygwin: DLL creation program.
7817DLLTOOL="$DLLTOOL"
7818
7819# Used on cygwin: object dumper.
7820OBJDUMP="$OBJDUMP"
7821
7822# Used on cygwin: assembler.
7823AS="$AS"
7824
7825# The name of the directory that contains temporary libtool files.
7826objdir=$objdir
7827
7828# How to create reloadable object files.
7829reload_flag=$lt_reload_flag
7830reload_cmds=$lt_reload_cmds
7831
7832# How to pass a linker flag through the compiler.
7833wl=$lt_wl
7834
7835# Object file suffix (normally "o").
7836objext="$ac_objext"
7837
7838# Old archive suffix (normally "a").
7839libext="$libext"
7840
7841# Executable file suffix (normally "").
7842exeext="$exeext"
7843
7844# Additional compiler flags for building library objects.
7845pic_flag=$lt_pic_flag
7846pic_mode=$pic_mode
7847
7848# Does compiler simultaneously support -c and -o options?
7849compiler_c_o=$lt_compiler_c_o
7850
7851# Can we write directly to a .lo ?
7852compiler_o_lo=$lt_compiler_o_lo
7853
7854# Must we lock files when doing compilation ?
7855need_locks=$lt_need_locks
7856
7857# Do we need the lib prefix for modules?
7858need_lib_prefix=$need_lib_prefix
7859
7860# Do we need a version for libraries?
7861need_version=$need_version
7862
7863# Whether dlopen is supported.
7864dlopen_support=$enable_dlopen
7865
7866# Whether dlopen of programs is supported.
7867dlopen_self=$enable_dlopen_self
7868
7869# Whether dlopen of statically linked programs is supported.
7870dlopen_self_static=$enable_dlopen_self_static
7871
7872# Compiler flag to prevent dynamic linking.
7873link_static_flag=$lt_link_static_flag
7874
7875# Compiler flag to turn off builtin functions.
7876no_builtin_flag=$lt_no_builtin_flag
7877
7878# Compiler flag to allow reflexive dlopens.
7879export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7880
7881# Compiler flag to generate shared objects directly from archives.
7882whole_archive_flag_spec=$lt_whole_archive_flag_spec
7883
7884# Compiler flag to generate thread-safe objects.
7885thread_safe_flag_spec=$lt_thread_safe_flag_spec
7886
7887# Library versioning type.
7888version_type=$version_type
7889
7890# Format of library name prefix.
7891libname_spec=$lt_libname_spec
7892
7893# List of archive names. First name is the real one, the rest are links.
7894# The last name is the one that the linker finds with -lNAME.
7895library_names_spec=$lt_library_names_spec
7896
7897# The coded name of the library, if different from the real name.
7898soname_spec=$lt_soname_spec
7899
7900# Commands used to build and install an old-style archive.
7901RANLIB=$lt_RANLIB
7902old_archive_cmds=$lt_old_archive_cmds
7903old_postinstall_cmds=$lt_old_postinstall_cmds
7904old_postuninstall_cmds=$lt_old_postuninstall_cmds
7905
7906# Create an old-style archive from a shared archive.
7907old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7908
7909# Create a temporary old-style archive to link instead of a shared archive.
7910old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7911
7912# Commands used to build and install a shared archive.
7913archive_cmds=$lt_archive_cmds
7914archive_expsym_cmds=$lt_archive_expsym_cmds
7915postinstall_cmds=$lt_postinstall_cmds
7916postuninstall_cmds=$lt_postuninstall_cmds
7917
7918# Commands to strip libraries.
7919old_striplib=$lt_old_striplib
7920striplib=$lt_striplib
7921
7922# Method to check whether dependent libraries are shared objects.
7923deplibs_check_method=$lt_deplibs_check_method
7924
7925# Command to use when deplibs_check_method == file_magic.
7926file_magic_cmd=$lt_file_magic_cmd
7927
7928# Flag that allows shared libraries with undefined symbols to be built.
7929allow_undefined_flag=$lt_allow_undefined_flag
7930
7931# Flag that forces no undefined symbols.
7932no_undefined_flag=$lt_no_undefined_flag
7933
7934# Commands used to finish a libtool library installation in a directory.
7935finish_cmds=$lt_finish_cmds
7936
7937# Same as above, but a single script fragment to be evaled but not shown.
7938finish_eval=$lt_finish_eval
7939
7940# Take the output of nm and produce a listing of raw symbols and C names.
7941global_symbol_pipe=$lt_global_symbol_pipe
7942
7943# Transform the output of nm in a proper C declaration
7944global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7945
7946# This is the shared library runtime path variable.
7947runpath_var=$runpath_var
7948
7949# This is the shared library path variable.
7950shlibpath_var=$shlibpath_var
7951
7952# Is shlibpath searched before the hard-coded library search path?
7953shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7954
7955# How to hardcode a shared library path into an executable.
7956hardcode_action=$hardcode_action
7957
7958# Whether we should hardcode library paths into libraries.
7959hardcode_into_libs=$hardcode_into_libs
7960
7961# Flag to hardcode \$libdir into a binary during linking.
7962# This must work even if \$libdir does not exist.
7963hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7964
7965# Whether we need a single -rpath flag with a separated argument.
7966hardcode_libdir_separator=$lt_hardcode_libdir_separator
7967
7968# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7969# resulting binary.
7970hardcode_direct=$hardcode_direct
7971
7972# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7973# resulting binary.
7974hardcode_minus_L=$hardcode_minus_L
7975
7976# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7977# the resulting binary.
7978hardcode_shlibpath_var=$hardcode_shlibpath_var
7979
7980# Variables whose values should be saved in libtool wrapper scripts and
7981# restored at relink time.
7982variables_saved_for_relink="$variables_saved_for_relink"
7983
7984# Whether libtool must link a program against all its dependency libraries.
7985link_all_deplibs=$link_all_deplibs
7986
7987# Compile-time system search path for libraries
7988sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7989
7990# Run-time system search path for libraries
7991sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7992
7993# Fix the shell variable \$srcfile for the compiler.
7994fix_srcfile_path="$fix_srcfile_path"
7995
7996# Set to yes if exported symbols are required.
7997always_export_symbols=$always_export_symbols
7998
7999# The commands to list exported symbols.
8000export_symbols_cmds=$lt_export_symbols_cmds
8001
8002# The commands to extract the exported symbol list from a shared archive.
8003extract_expsyms_cmds=$lt_extract_expsyms_cmds
8004
8005# Symbols that should not be listed in the preloaded symbols.
8006exclude_expsyms=$lt_exclude_expsyms
8007
8008# Symbols that must always be exported.
8009include_expsyms=$lt_include_expsyms
8010
8011# ### END LIBTOOL CONFIG
8012
8013__EOF__
8014
8015 case "$host_os" in
8016 aix3*)
8017 cat <<\EOF >> "${ofile}T"
8018
8019# AIX sometimes has problems with the GCC collect2 program. For some
8020# reason, if we set the COLLECT_NAMES environment variable, the problems
8021# vanish in a puff of smoke.
8022if test "X${COLLECT_NAMES+set}" != Xset; then
8023 COLLECT_NAMES=
8024 export COLLECT_NAMES
8025fi
8026EOF
8027 ;;
8028 esac
8029
8030 case "$host_os" in
8031 cygwin* | mingw* | pw32* | os2*)
8032 cat <<'EOF' >> "${ofile}T"
8033 # This is a source program that is used to create dlls on Windows
8034 # Don't remove nor modify the starting and closing comments
8035# /* ltdll.c starts here */
8036# #define WIN32_LEAN_AND_MEAN
8037# #include <windows.h>
8038# #undef WIN32_LEAN_AND_MEAN
8039# #include <stdio.h>
8040#
8041# #ifndef __CYGWIN__
8042# # ifdef __CYGWIN32__
8043# # define __CYGWIN__ __CYGWIN32__
8044# # endif
8045# #endif
8046#
8047# #ifdef __cplusplus
8048# extern "C" {
8049# #endif
8050# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8051# #ifdef __cplusplus
8052# }
8053# #endif
8054#
8055# #ifdef __CYGWIN__
8056# #include <cygwin/cygwin_dll.h>
8057# DECLARE_CYGWIN_DLL( DllMain );
8058# #endif
8059# HINSTANCE __hDllInstance_base;
8060#
8061# BOOL APIENTRY
8062# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8063# {
8064# __hDllInstance_base = hInst;
8065# return TRUE;
8066# }
8067# /* ltdll.c ends here */
8068 # This is a source program that is used to create import libraries
8069 # on Windows for dlls which lack them. Don't remove nor modify the
8070 # starting and closing comments
8071# /* impgen.c starts here */
8072# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8073#
8074# This file is part of GNU libtool.
8075#
8076# This program is free software; you can redistribute it and/or modify
8077# it under the terms of the GNU General Public License as published by
8078# the Free Software Foundation; either version 2 of the License, or
8079# (at your option) any later version.
8080#
8081# This program is distributed in the hope that it will be useful,
8082# but WITHOUT ANY WARRANTY; without even the implied warranty of
8083# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8084# GNU General Public License for more details.
8085#
8086# You should have received a copy of the GNU General Public License
8087# along with this program; if not, write to the Free Software
8088# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8089# */
8090#
8091# #include <stdio.h> /* for printf() */
8092# #include <unistd.h> /* for open(), lseek(), read() */
8093# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8094# #include <string.h> /* for strdup() */
8095#
8096# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8097# #ifndef O_BINARY
8098# #define O_BINARY 0
8099# #endif
8100#
8101# static unsigned int
8102# pe_get16 (fd, offset)
8103# int fd;
8104# int offset;
8105# {
8106# unsigned char b[2];
8107# lseek (fd, offset, SEEK_SET);
8108# read (fd, b, 2);
8109# return b[0] + (b[1]<<8);
8110# }
8111#
8112# static unsigned int
8113# pe_get32 (fd, offset)
8114# int fd;
8115# int offset;
8116# {
8117# unsigned char b[4];
8118# lseek (fd, offset, SEEK_SET);
8119# read (fd, b, 4);
8120# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8121# }
8122#
8123# static unsigned int
8124# pe_as32 (ptr)
8125# void *ptr;
8126# {
8127# unsigned char *b = ptr;
8128# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8129# }
8130#
8131# int
8132# main (argc, argv)
8133# int argc;
8134# char *argv[];
8135# {
8136# int dll;
8137# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8138# unsigned long export_rva, export_size, nsections, secptr, expptr;
8139# unsigned long name_rvas, nexp;
8140# unsigned char *expdata, *erva;
8141# char *filename, *dll_name;
8142#
8143# filename = argv[1];
8144#
8145# dll = open(filename, O_RDONLY|O_BINARY);
8146# if (!dll)
8147# return 1;
8148#
8149# dll_name = filename;
8150#
8151# for (i=0; filename[i]; i++)
8152# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8153# dll_name = filename + i +1;
8154#
8155# pe_header_offset = pe_get32 (dll, 0x3c);
8156# opthdr_ofs = pe_header_offset + 4 + 20;
8157# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8158#
8159# if (num_entries < 1) /* no exports */
8160# return 1;
8161#
8162# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8163# export_size = pe_get32 (dll, opthdr_ofs + 100);
8164# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8165# secptr = (pe_header_offset + 4 + 20 +
8166# pe_get16 (dll, pe_header_offset + 4 + 16));
8167#
8168# expptr = 0;
8169# for (i = 0; i < nsections; i++)
8170# {
8171# char sname[8];
8172# unsigned long secptr1 = secptr + 40 * i;
8173# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8174# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8175# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8176# lseek(dll, secptr1, SEEK_SET);
8177# read(dll, sname, 8);
8178# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8179# {
8180# expptr = fptr + (export_rva - vaddr);
8181# if (export_rva + export_size > vaddr + vsize)
8182# export_size = vsize - (export_rva - vaddr);
8183# break;
8184# }
8185# }
8186#
8187# expdata = (unsigned char*)malloc(export_size);
8188# lseek (dll, expptr, SEEK_SET);
8189# read (dll, expdata, export_size);
8190# erva = expdata - export_rva;
8191#
8192# nexp = pe_as32 (expdata+24);
8193# name_rvas = pe_as32 (expdata+32);
8194#
8195# printf ("EXPORTS\n");
8196# for (i = 0; i<nexp; i++)
8197# {
8198# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8199# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8200# }
8201#
8202# return 0;
8203# }
8204# /* impgen.c ends here */
8205
8206EOF
8207 ;;
8208 esac
8209
8210 # We use sed instead of cat because bash on DJGPP gets confused if
8211 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8212 # text mode, it properly converts lines to CR/LF. This bash problem
8213 # is reportedly fixed, but why not run on old versions too?
8214 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8215
8216 mv -f "${ofile}T" "$ofile" || \
8217 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8218 chmod +x "$ofile"
8219fi
8220##
8221## END FIXME
8222
8223
8224
8225
8226
8227# This can be used to rebuild libtool when needed
8228LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8229
8230# Always use our own libtool.
8231LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8232
8233# Prevent multiple expansion
8234 4319
8235 4320
8236MALLOC_TYPE=S 4321MALLOC_TYPE=S
8237support_addstrings=no 4322
8238support_frills=no 4323support_frills=yes
8239support_linespace=no
8240support_inheritpixmap=no 4324support_inheritpixmap=yes
8241support_tinting=no 4325support_tinting=yes
8242support_fading=no 4326support_fading=yes
8243support_keepscrolling=no 4327support_keepscrolling=yes
8244support_selectionscrolling=no 4328support_selectionscrolling=yes
8245support_menubar=no
8246support_mousewheel=no 4329support_mousewheel=yes
8247support_mouseslipwheel=no 4330support_mouseslipwheel=yes
8248support_utmp=no 4331support_utmp=yes
8249support_wtmp=no 4332support_wtmp=yes
8250support_lastlog=no 4333support_lastlog=yes
8251support_cursor_blink=no
8252support_text_blink=no 4334support_text_blink=yes
8253support_pointer_blank=no 4335support_pointer_blank=yes
8254support_scroll_rxvt=no 4336support_scroll_rxvt=yes
8255support_scroll_next=no 4337support_scroll_next=yes
8256support_scroll_xterm=no 4338support_scroll_xterm=yes
8257support_scroll_plain=no 4339support_scroll_plain=yes
8258support_xim=no 4340support_xim=yes
8259support_xpm=no 4341support_xpm=yes
8260support_xft=no 4342support_xft=yes
8261support_unicode3=no 4343support_unicode3=no
8262support_combining=no 4344support_combining=yes
8263support_8bitctrls=no 4345support_8bitctrls=no
8264support_iso14755=no 4346support_iso14755=yes
4347support_styles=yes
4348support_perl=yes
8265codesets= 4349codesets=all
8266 4350
8267 4351
8268if test "x$enable_shared" = xyes; then 4352if test "x$enable_shared" = xyes; then
8269 4353
8270cat >>confdefs.h <<\_ACEOF 4354cat >>confdefs.h <<\_ACEOF
8276 4360
8277 4361
8278# Check whether --enable-everything or --disable-everything was given. 4362# Check whether --enable-everything or --disable-everything was given.
8279if test "${enable_everything+set}" = set; then 4363if test "${enable_everything+set}" = set; then
8280 enableval="$enable_everything" 4364 enableval="$enable_everything"
4365
4366 if test x$enableval = xno; then
4367 support_24bit=no
4368 support_frills=no
4369 support_inheritpixmap=no
4370 support_tinting=no
4371 support_fading=no
4372 support_keepscrolling=no
4373 support_selectionscrolling=no
4374 support_lastlog=no
4375 support_mousewheel=no
4376 support_mouseslipwheel=no
4377 support_text_blink=no
4378 support_pointer_blank=no
4379 support_scroll_rxvt=no
4380 support_scroll_next=no
4381 support_scroll_xterm=no
4382 support_scroll_plain=no
4383 support_utmp=no
4384 support_wtmp=no
4385 support_xim=no
4386 support_xpm=no
4387 support_xft=no
4388 support_unicode3=no
4389 support_combining=no
4390 support_8bitctrls=no
4391 support_iso14755=no
4392 support_styles=no
4393 support_perl=no
4394 codesets=
4395 fi
8281 if test x$enableval = xyes; then 4396 if test x$enableval = xyes; then
8282 support_24bit=yes 4397 support_24bit=yes
8283 support_frills=yes 4398 support_frills=yes
8284 support_linespace=yes
8285 support_inheritpixmap=yes 4399 support_inheritpixmap=yes
8286 support_tinting=yes 4400 support_tinting=yes
8287 support_fading=yes 4401 support_fading=yes
8288 support_keepscrolling=yes 4402 support_keepscrolling=yes
8289 support_selectionscrolling=yes 4403 support_selectionscrolling=yes
8290 support_lastlog=yes 4404 support_lastlog=yes
8291 support_menubar=yes
8292 support_mousewheel=yes 4405 support_mousewheel=yes
8293 support_mouseslipwheel=yes 4406 support_mouseslipwheel=yes
8294 support_cursor_blink=yes
8295 support_text_blink=yes 4407 support_text_blink=yes
8296 support_pointer_blank=yes 4408 support_pointer_blank=yes
8297 support_scroll_rxvt=yes 4409 support_scroll_rxvt=yes
8298 support_scroll_next=yes 4410 support_scroll_next=yes
8299 support_scroll_xterm=yes 4411 support_scroll_xterm=yes
8300 support_scroll_plain=yes 4412 support_scroll_plain=yes
8301 support_utmp=yes 4413 support_utmp=yes
8302 support_wtmp=yes 4414 support_wtmp=yes
8303 support_xim=yes 4415 support_xim=yes
8304 support_xpm=yes 4416 support_xpm=yes
8305 support_xft=yes 4417 support_xft=yes
8306 support_unicode3=yes 4418 support_unicode3=yes
8307 support_combining=yes 4419 support_combining=yes
8308 #support_8bitctrls=yes 4420 #support_8bitctrls=yes
8309 support_iso14755=yes 4421 support_iso14755=yes
4422 support_styles=yes
4423 support_perl=yes
8310 codesets=all 4424 codesets=all
8311 fi 4425 fi
4426
8312fi; 4427fi;
8313 4428
8314# Check whether --enable-unicode3 or --disable-unicode3 was given. 4429# Check whether --enable-unicode3 or --disable-unicode3 was given.
8315if test "${enable_unicode3+set}" = set; then 4430if test "${enable_unicode3+set}" = set; then
8316 enableval="$enable_unicode3" 4431 enableval="$enable_unicode3"
8317 if test x$enableval = xyes -o x$enableval = xno; then 4432 if test x$enableval = xyes -o x$enableval = xno; then
8318 support_unicode3=yes 4433 support_unicode3=$enableval
8319 fi 4434 fi
8320fi; 4435fi;
8321 4436
8322# Check whether --enable-combining or --disable-combining was given. 4437# Check whether --enable-combining or --disable-combining was given.
8323if test "${enable_combining+set}" = set; then 4438if test "${enable_combining+set}" = set; then
8324 enableval="$enable_combining" 4439 enableval="$enable_combining"
8325 if test x$enableval = xyes -o x$enableval = xno; then 4440 if test x$enableval = xyes -o x$enableval = xno; then
8326 support_combining=yes 4441 support_combining=$enableval
8327 fi 4442 fi
8328fi; 4443fi;
8329 4444
8330# Check whether --enable-xft or --disable-xft was given. 4445# Check whether --enable-xft or --disable-xft was given.
8331if test "${enable_xft+set}" = set; then 4446if test "${enable_xft+set}" = set; then
8332 enableval="$enable_xft" 4447 enableval="$enable_xft"
8333 if test x$enableval = xyes -o x$enableval = xno; then 4448 if test x$enableval = xyes -o x$enableval = xno; then
8334 support_xft=yes 4449 support_xft=$enableval
4450 fi
4451fi;
4452
4453# Check whether --enable-font-styles or --disable-font-styles was given.
4454if test "${enable_font_styles+set}" = set; then
4455 enableval="$enable_font_styles"
4456 if test x$enableval = xyes -o x$enableval = xno; then
4457 support_styles=$enableval
8335 fi 4458 fi
8336fi; 4459fi;
8337 4460
8338# Check whether --enable-utmp or --disable-utmp was given. 4461# Check whether --enable-utmp or --disable-utmp was given.
8339if test "${enable_utmp+set}" = set; then 4462if test "${enable_utmp+set}" = set; then
8389 if test x$enableval = xyes -o x$enableval = xno; then 4512 if test x$enableval = xyes -o x$enableval = xno; then
8390 support_fading=$enableval 4513 support_fading=$enableval
8391 fi 4514 fi
8392fi; 4515fi;
8393 4516
8394# Check whether --enable-menubar or --disable-menubar was given.
8395if test "${enable_menubar+set}" = set; then
8396 enableval="$enable_menubar"
8397 if test x$enableval = xyes -o x$enableval = xno; then
8398 support_menubar=$enableval
8399 fi
8400fi;
8401
8402# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4517# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8403if test "${enable_rxvt_scroll+set}" = set; then 4518if test "${enable_rxvt_scroll+set}" = set; then
8404 enableval="$enable_rxvt_scroll" 4519 enableval="$enable_rxvt_scroll"
8405 if test x$enableval = xyes -o x$enableval = xno; then 4520 if test x$enableval = xyes -o x$enableval = xno; then
8406 support_scroll_rxvt=$enableval 4521 support_scroll_rxvt=$enableval
8421 if test x$enableval = xyes -o x$enableval = xno; then 4536 if test x$enableval = xyes -o x$enableval = xno; then
8422 support_scroll_xterm=$enableval 4537 support_scroll_xterm=$enableval
8423 fi 4538 fi
8424fi; 4539fi;
8425 4540
4541# Check whether --enable-perl or --disable-perl was given.
4542if test "${enable_perl+set}" = set; then
4543 enableval="$enable_perl"
4544 if test x$enableval = xyes -o x$enableval = xno; then
4545 support_perl=$enableval
4546 fi
4547fi;
4548
8426# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4549# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8427if test "${enable_plain_scroll+set}" = set; then 4550if test "${enable_plain_scroll+set}" = set; then
8428 enableval="$enable_plain_scroll" 4551 enableval="$enable_plain_scroll"
8429 if test x$enableval = xyes -o x$enableval = xno; then 4552 if test x$enableval = xyes -o x$enableval = xno; then
8430 support_scroll_plain=$enableval 4553 support_scroll_plain=$enableval
8431 fi 4554 fi
8432fi; 4555fi;
8433 4556
8434# Check whether --enable-half-shadow or --disable-half-shadow was given.
8435if test "${enable_half_shadow+set}" = set; then
8436 enableval="$enable_half_shadow"
8437 if test x$enableval = xyes; then
8438
8439cat >>confdefs.h <<\_ACEOF
8440#define HALFSHADOW 1
8441_ACEOF
8442
8443 fi
8444fi;
8445 4557
8446 4558
8447# Check whether --with-codesets or --without-codesets was given. 4559# Check whether --with-codesets or --without-codesets was given.
8448if test "${with_codesets+set}" = set; then 4560if test "${with_codesets+set}" = set; then
8449 withval="$with_codesets" 4561 withval="$with_codesets"
8504_ACEOF 4616_ACEOF
8505 4617
8506 fi 4618 fi
8507fi; 4619fi;
8508 4620
8509# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
8510if test "${enable_xgetdefault+set}" = set; then
8511 enableval="$enable_xgetdefault"
8512 if test x$enableval = xyes; then
8513
8514cat >>confdefs.h <<\_ACEOF
8515#define USE_XGETDEFAULT 1
8516_ACEOF
8517
8518 fi
8519fi;
8520
8521# Check whether --enable-8bitctrls or --disable-8bitctrls was given. 4621# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8522if test "${enable_8bitctrls+set}" = set; then 4622if test "${enable_8bitctrls+set}" = set; then
8523 enableval="$enable_8bitctrls" 4623 enableval="$enable_8bitctrls"
8524 if test x$enableval = xyes -o x$enableval = xno; then 4624 if test x$enableval = xyes -o x$enableval = xno; then
8525 support_8bitctrls=yes 4625 support_8bitctrls=$enableval
8526 fi 4626 fi
8527fi; 4627fi;
8528 4628
8529RESFALLBACK=Rxvt 4629RESFALLBACK=Rxvt
8530# Check whether --enable-fallback or --disable-fallback was given. 4630# Check whether --enable-fallback or --disable-fallback was given.
8577if test "${with_name+set}" = set; then 4677if test "${with_name+set}" = set; then
8578 withval="$with_name" 4678 withval="$with_name"
8579 RXVTNAME="$withval" 4679 RXVTNAME="$withval"
8580fi; 4680fi;
8581 4681
4682cat >>confdefs.h <<_ACEOF
4683#define RXVTNAME "$RXVTNAME"
4684_ACEOF
4685
4686
8582RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4687RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8583 4688
8584
8585# Check whether --enable-strings or --disable-strings was given.
8586if test "${enable_strings+set}" = set; then
8587 enableval="$enable_strings"
8588 if test x$enableval = xyes -o x$enableval = xno; then
8589 support_addstrings=$enableval
8590 fi
8591fi;
8592 4689
8593# Check whether --enable-swapscreen or --disable-swapscreen was given. 4690# Check whether --enable-swapscreen or --disable-swapscreen was given.
8594if test "${enable_swapscreen+set}" = set; then 4691if test "${enable_swapscreen+set}" = set; then
8595 enableval="$enable_swapscreen" 4692 enableval="$enable_swapscreen"
8596 if test x$enableval = xno; then 4693 if test x$enableval = xno; then
8613# Check whether --enable-frills or --disable-frills was given. 4710# Check whether --enable-frills or --disable-frills was given.
8614if test "${enable_frills+set}" = set; then 4711if test "${enable_frills+set}" = set; then
8615 enableval="$enable_frills" 4712 enableval="$enable_frills"
8616 if test x$enableval = xyes -o x$enableval = xno; then 4713 if test x$enableval = xyes -o x$enableval = xno; then
8617 support_frills=$enableval 4714 support_frills=$enableval
8618 fi
8619fi;
8620
8621# Check whether --enable-linespace or --disable-linespace was given.
8622if test "${enable_linespace+set}" = set; then
8623 enableval="$enable_linespace"
8624 if test x$enableval = xyes -o x$enableval = xno; then
8625 support_linespace=$enableval
8626 fi 4715 fi
8627fi; 4716fi;
8628 4717
8629# Check whether --enable-24bit or --disable-24bit was given. 4718# Check whether --enable-24bit or --disable-24bit was given.
8630if test "${enable_24bit+set}" = set; then 4719if test "${enable_24bit+set}" = set; then
8698_ACEOF 4787_ACEOF
8699 4788
8700 fi 4789 fi
8701fi; 4790fi;
8702 4791
8703# Check whether --enable-256-color or --disable-256-color was given.
8704if test "${enable_256_color+set}" = set; then
8705 enableval="$enable_256_color"
8706 if test x$enableval = xyes; then
8707
8708cat >>confdefs.h <<\_ACEOF
8709#define TTY_256COLOR 1
8710_ACEOF
8711
8712 fi
8713fi;
8714
8715# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8716if test "${enable_cursor_blink+set}" = set; then
8717 enableval="$enable_cursor_blink"
8718 if test x$enableval = xyes -o x$enableval = xno; then
8719 support_cursor_blink=$enableval
8720 fi
8721fi;
8722
8723# Check whether --enable-text-blink or --disable-text-blink was given. 4792# Check whether --enable-text-blink or --disable-text-blink was given.
8724if test "${enable_text_blink+set}" = set; then 4793if test "${enable_text_blink+set}" = set; then
8725 enableval="$enable_text_blink" 4794 enableval="$enable_text_blink"
8726 if test x$enableval = xyes -o x$enableval = xno; then 4795 if test x$enableval = xyes -o x$enableval = xno; then
8727 support_text_blink=$enableval 4796 support_text_blink=$enableval
8766 4835
8767cat >>confdefs.h <<\_ACEOF 4836cat >>confdefs.h <<\_ACEOF
8768#define PROTOTYPES 1 4837#define PROTOTYPES 1
8769_ACEOF 4838_ACEOF
8770 4839
8771
8772if test -z "$CFLAGS"; then
8773 if test -z "$CCOPTS"; then
8774 CCOPTS='-O'
8775 fi
8776 CFLAGS="$CCOPTS"
8777fi
8778 4840
8779# Extract the first word of "mv", so it can be a program name with args. 4841# Extract the first word of "mv", so it can be a program name with args.
8780set dummy mv; ac_word=$2 4842set dummy mv; ac_word=$2
8781echo "$as_me:$LINENO: checking for $ac_word" >&5 4843echo "$as_me:$LINENO: checking for $ac_word" >&5
8782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9088TBL=$ac_cv_path_TBL 5150TBL=$ac_cv_path_TBL
9089 5151
9090if test -n "$TBL"; then 5152if test -n "$TBL"; then
9091 echo "$as_me:$LINENO: result: $TBL" >&5 5153 echo "$as_me:$LINENO: result: $TBL" >&5
9092echo "${ECHO_T}$TBL" >&6 5154echo "${ECHO_T}$TBL" >&6
5155else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158fi
5159
5160# Extract the first word of "tic", so it can be a program name with args.
5161set dummy tic; ac_word=$2
5162echo "$as_me:$LINENO: checking for $ac_word" >&5
5163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5164if test "${ac_cv_path_TIC+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166else
5167 case $TIC in
5168 [\\/]* | ?:[\\/]*)
5169 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5170 ;;
5171 *)
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH
5174do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5182 fi
5183done
5184done
5185
5186 ;;
5187esac
5188fi
5189TIC=$ac_cv_path_TIC
5190
5191if test -n "$TIC"; then
5192 echo "$as_me:$LINENO: result: $TIC" >&5
5193echo "${ECHO_T}$TIC" >&6
9093else 5194else
9094 echo "$as_me:$LINENO: result: no" >&5 5195 echo "$as_me:$LINENO: result: no" >&5
9095echo "${ECHO_T}no" >&6 5196echo "${ECHO_T}no" >&6
9096fi 5197fi
9097 5198
9202/* confdefs.h. */ 5303/* confdefs.h. */
9203_ACEOF 5304_ACEOF
9204cat confdefs.h >>conftest.$ac_ext 5305cat confdefs.h >>conftest.$ac_ext
9205cat >>conftest.$ac_ext <<_ACEOF 5306cat >>conftest.$ac_ext <<_ACEOF
9206/* end confdefs.h. */ 5307/* end confdefs.h. */
9207#include <X11/Intrinsic.h> 5308#include <X11/Xlib.h>
9208_ACEOF 5309_ACEOF
9209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9211 ac_status=$? 5312 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err 5313 grep -v '^ *+' conftest.er1 >conftest.err
9229else 5330else
9230 echo "$as_me: failed program was:" >&5 5331 echo "$as_me: failed program was:" >&5
9231sed 's/^/| /' conftest.$ac_ext >&5 5332sed 's/^/| /' conftest.$ac_ext >&5
9232 5333
9233 for ac_dir in $ac_x_header_dirs; do 5334 for ac_dir in $ac_x_header_dirs; do
9234 if test -r "$ac_dir/X11/Intrinsic.h"; then 5335 if test -r "$ac_dir/X11/Xlib.h"; then
9235 ac_x_includes=$ac_dir 5336 ac_x_includes=$ac_dir
9236 break 5337 break
9237 fi 5338 fi
9238done 5339done
9239fi 5340fi
9243if test "$ac_x_libraries" = no; then 5344if test "$ac_x_libraries" = no; then
9244 # Check for the libraries. 5345 # Check for the libraries.
9245 # See if we find them without any special options. 5346 # See if we find them without any special options.
9246 # Don't add to $LIBS permanently. 5347 # Don't add to $LIBS permanently.
9247 ac_save_LIBS=$LIBS 5348 ac_save_LIBS=$LIBS
9248 LIBS="-lXt $LIBS" 5349 LIBS="-lX11 $LIBS"
9249 cat >conftest.$ac_ext <<_ACEOF 5350 cat >conftest.$ac_ext <<_ACEOF
9250/* confdefs.h. */ 5351/* confdefs.h. */
9251_ACEOF 5352_ACEOF
9252cat confdefs.h >>conftest.$ac_ext 5353cat confdefs.h >>conftest.$ac_ext
9253cat >>conftest.$ac_ext <<_ACEOF 5354cat >>conftest.$ac_ext <<_ACEOF
9254/* end confdefs.h. */ 5355/* end confdefs.h. */
9255#include <X11/Intrinsic.h> 5356#include <X11/Xlib.h>
9256int 5357int
9257main () 5358main ()
9258{ 5359{
9259XtMalloc (0) 5360XrmInitialize ()
9260 ; 5361 ;
9261 return 0; 5362 return 0;
9262} 5363}
9263_ACEOF 5364_ACEOF
9264rm -f conftest.$ac_objext conftest$ac_exeext 5365rm -f conftest.$ac_objext conftest$ac_exeext
9292LIBS=$ac_save_LIBS 5393LIBS=$ac_save_LIBS
9293for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5394for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9294do 5395do
9295 # Don't even attempt the hair of trying to link an X program! 5396 # Don't even attempt the hair of trying to link an X program!
9296 for ac_extension in a so sl; do 5397 for ac_extension in a so sl; do
9297 if test -r $ac_dir/libXt.$ac_extension; then 5398 if test -r $ac_dir/libX11.$ac_extension; then
9298 ac_x_libraries=$ac_dir 5399 ac_x_libraries=$ac_dir
9299 break 2 5400 break 2
9300 fi 5401 fi
9301 done 5402 done
9302done 5403done
10904#define HAVE_SYS_WAIT_H 1 7005#define HAVE_SYS_WAIT_H 1
10905_ACEOF 7006_ACEOF
10906 7007
10907fi 7008fi
10908 7009
7010echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7011echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7012if test "${ac_cv_header_stdc+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014else
7015 cat >conftest.$ac_ext <<_ACEOF
7016/* confdefs.h. */
7017_ACEOF
7018cat confdefs.h >>conftest.$ac_ext
7019cat >>conftest.$ac_ext <<_ACEOF
7020/* end confdefs.h. */
7021#include <stdlib.h>
7022#include <stdarg.h>
7023#include <string.h>
7024#include <float.h>
7025
7026int
7027main ()
7028{
7029
7030 ;
7031 return 0;
7032}
7033_ACEOF
7034rm -f conftest.$ac_objext
7035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036 (eval $ac_compile) 2>conftest.er1
7037 ac_status=$?
7038 grep -v '^ *+' conftest.er1 >conftest.err
7039 rm -f conftest.er1
7040 cat conftest.err >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } &&
7043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest.$ac_objext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_cv_header_stdc=yes
7056else
7057 echo "$as_me: failed program was:" >&5
7058sed 's/^/| /' conftest.$ac_ext >&5
7059
7060ac_cv_header_stdc=no
7061fi
7062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063
7064if test $ac_cv_header_stdc = yes; then
7065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7066 cat >conftest.$ac_ext <<_ACEOF
7067/* confdefs.h. */
7068_ACEOF
7069cat confdefs.h >>conftest.$ac_ext
7070cat >>conftest.$ac_ext <<_ACEOF
7071/* end confdefs.h. */
7072#include <string.h>
7073
7074_ACEOF
7075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "memchr" >/dev/null 2>&1; then
7077 :
7078else
7079 ac_cv_header_stdc=no
7080fi
7081rm -f conftest*
7082
7083fi
7084
7085if test $ac_cv_header_stdc = yes; then
7086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7087 cat >conftest.$ac_ext <<_ACEOF
7088/* confdefs.h. */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h. */
7093#include <stdlib.h>
7094
7095_ACEOF
7096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097 $EGREP "free" >/dev/null 2>&1; then
7098 :
7099else
7100 ac_cv_header_stdc=no
7101fi
7102rm -f conftest*
7103
7104fi
7105
7106if test $ac_cv_header_stdc = yes; then
7107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7108 if test "$cross_compiling" = yes; then
7109 :
7110else
7111 cat >conftest.$ac_ext <<_ACEOF
7112/* confdefs.h. */
7113_ACEOF
7114cat confdefs.h >>conftest.$ac_ext
7115cat >>conftest.$ac_ext <<_ACEOF
7116/* end confdefs.h. */
7117#include <ctype.h>
7118#if ((' ' & 0x0FF) == 0x020)
7119# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7120# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7121#else
7122# define ISLOWER(c) \
7123 (('a' <= (c) && (c) <= 'i') \
7124 || ('j' <= (c) && (c) <= 'r') \
7125 || ('s' <= (c) && (c) <= 'z'))
7126# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7127#endif
7128
7129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7130int
7131main ()
7132{
7133 int i;
7134 for (i = 0; i < 256; i++)
7135 if (XOR (islower (i), ISLOWER (i))
7136 || toupper (i) != TOUPPER (i))
7137 exit(2);
7138 exit (0);
7139}
7140_ACEOF
7141rm -f conftest$ac_exeext
7142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 (eval $ac_try) 2>&5
7149 ac_status=$?
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 :
7153else
7154 echo "$as_me: program exited with status $ac_status" >&5
7155echo "$as_me: failed program was:" >&5
7156sed 's/^/| /' conftest.$ac_ext >&5
7157
7158( exit $ac_status )
7159ac_cv_header_stdc=no
7160fi
7161rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7162fi
7163fi
7164fi
7165echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7166echo "${ECHO_T}$ac_cv_header_stdc" >&6
7167if test $ac_cv_header_stdc = yes; then
7168
7169cat >>confdefs.h <<\_ACEOF
7170#define STDC_HEADERS 1
7171_ACEOF
7172
7173fi
7174
7175# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7186 inttypes.h stdint.h unistd.h
7187do
7188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7189echo "$as_me:$LINENO: checking for $ac_header" >&5
7190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7191if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194 cat >conftest.$ac_ext <<_ACEOF
7195/* confdefs.h. */
7196_ACEOF
7197cat confdefs.h >>conftest.$ac_ext
7198cat >>conftest.$ac_ext <<_ACEOF
7199/* end confdefs.h. */
7200$ac_includes_default
7201
7202#include <$ac_header>
7203_ACEOF
7204rm -f conftest.$ac_objext
7205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7206 (eval $ac_compile) 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } &&
7219 { ac_try='test -s conftest.$ac_objext'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 (eval $ac_try) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; }; then
7225 eval "$as_ac_Header=yes"
7226else
7227 echo "$as_me: failed program was:" >&5
7228sed 's/^/| /' conftest.$ac_ext >&5
7229
7230eval "$as_ac_Header=no"
7231fi
7232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7233fi
7234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7236if test `eval echo '${'$as_ac_Header'}'` = yes; then
7237 cat >>confdefs.h <<_ACEOF
7238#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7239_ACEOF
7240
7241fi
7242
7243done
7244
7245
7246
7247
7248
7249
7250
7251
10909 7252
10910 7253
10911 7254
10912 7255
10913 7256
10945 sys/stropts.h \ 7288 sys/stropts.h \
10946 sys/time.h \ 7289 sys/time.h \
10947 utmp.h \ 7290 utmp.h \
10948 utmpx.h \ 7291 utmpx.h \
10949 stdint.h \ 7292 stdint.h \
7293 pty.h \
7294 util.h \
7295 libutil.h \
7296 wchar.h \
7297 cwchar \
7298 clocale \
10950 7299
10951do 7300do
10952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10953if eval "test \"\${$as_ac_Header+set}\" = set"; then 7302if eval "test \"\${$as_ac_Header+set}\" = set"; then
10954 echo "$as_me:$LINENO: checking for $ac_header" >&5 7303 echo "$as_me:$LINENO: checking for $ac_header" >&5
11738_ACEOF 8087_ACEOF
11739 8088
11740fi 8089fi
11741 8090
11742 8091
11743echo "$as_me:$LINENO: checking for char" >&5
11744echo $ECHO_N "checking for char... $ECHO_C" >&6
11745if test "${ac_cv_type_char+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754$ac_includes_default
11755int
11756main ()
11757{
11758if ((char *) 0)
11759 return 0;
11760if (sizeof (char))
11761 return 0;
11762 ;
11763 return 0;
11764}
11765_ACEOF
11766rm -f conftest.$ac_objext
11767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>conftest.er1
11769 ac_status=$?
11770 grep -v '^ *+' conftest.er1 >conftest.err
11771 rm -f conftest.er1
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11778 ac_status=$?
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest.$ac_objext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_cv_type_char=yes
11788else
11789 echo "$as_me: failed program was:" >&5
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
11792ac_cv_type_char=no
11793fi
11794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11795fi
11796echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11797echo "${ECHO_T}$ac_cv_type_char" >&6
11798
11799echo "$as_me:$LINENO: checking size of char" >&5
11800echo $ECHO_N "checking size of char... $ECHO_C" >&6
11801if test "${ac_cv_sizeof_char+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803else
11804 if test "$ac_cv_type_char" = yes; then
11805 # The cast to unsigned long works around a bug in the HP C Compiler
11806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11808 # This bug is HP SR number 8606223364.
11809 if test "$cross_compiling" = yes; then
11810 # Depending upon the size, compute the lo and hi bounds.
11811cat >conftest.$ac_ext <<_ACEOF
11812/* confdefs.h. */
11813_ACEOF
11814cat confdefs.h >>conftest.$ac_ext
11815cat >>conftest.$ac_ext <<_ACEOF
11816/* end confdefs.h. */
11817$ac_includes_default
11818int
11819main ()
11820{
11821static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11822test_array [0] = 0
11823
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828rm -f conftest.$ac_objext
11829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830 (eval $ac_compile) 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest.$ac_objext'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11849 ac_lo=0 ac_mid=0
11850 while :; do
11851 cat >conftest.$ac_ext <<_ACEOF
11852/* confdefs.h. */
11853_ACEOF
11854cat confdefs.h >>conftest.$ac_ext
11855cat >>conftest.$ac_ext <<_ACEOF
11856/* end confdefs.h. */
11857$ac_includes_default
11858int
11859main ()
11860{
11861static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11862test_array [0] = 0
11863
11864 ;
11865 return 0;
11866}
11867_ACEOF
11868rm -f conftest.$ac_objext
11869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest.$ac_objext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 ac_hi=$ac_mid; break
11890else
11891 echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
11894ac_lo=`expr $ac_mid + 1`
11895 if test $ac_lo -le $ac_mid; then
11896 ac_lo= ac_hi=
11897 break
11898 fi
11899 ac_mid=`expr 2 '*' $ac_mid + 1`
11900fi
11901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11902 done
11903else
11904 echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
11907cat >conftest.$ac_ext <<_ACEOF
11908/* confdefs.h. */
11909_ACEOF
11910cat confdefs.h >>conftest.$ac_ext
11911cat >>conftest.$ac_ext <<_ACEOF
11912/* end confdefs.h. */
11913$ac_includes_default
11914int
11915main ()
11916{
11917static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11918test_array [0] = 0
11919
11920 ;
11921 return 0;
11922}
11923_ACEOF
11924rm -f conftest.$ac_objext
11925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 (eval $ac_compile) 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest.$ac_objext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_hi=-1 ac_mid=-1
11946 while :; do
11947 cat >conftest.$ac_ext <<_ACEOF
11948/* confdefs.h. */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h. */
11953$ac_includes_default
11954int
11955main ()
11956{
11957static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11958test_array [0] = 0
11959
11960 ;
11961 return 0;
11962}
11963_ACEOF
11964rm -f conftest.$ac_objext
11965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11976 ac_status=$?
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11982 ac_status=$?
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_lo=$ac_mid; break
11986else
11987 echo "$as_me: failed program was:" >&5
11988sed 's/^/| /' conftest.$ac_ext >&5
11989
11990ac_hi=`expr '(' $ac_mid ')' - 1`
11991 if test $ac_mid -le $ac_hi; then
11992 ac_lo= ac_hi=
11993 break
11994 fi
11995 ac_mid=`expr 2 '*' $ac_mid`
11996fi
11997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11998 done
11999else
12000 echo "$as_me: failed program was:" >&5
12001sed 's/^/| /' conftest.$ac_ext >&5
12002
12003ac_lo= ac_hi=
12004fi
12005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12006fi
12007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12008# Binary search between lo and hi bounds.
12009while test "x$ac_lo" != "x$ac_hi"; do
12010 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12011 cat >conftest.$ac_ext <<_ACEOF
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
12017$ac_includes_default
12018int
12019main ()
12020{
12021static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12022test_array [0] = 0
12023
12024 ;
12025 return 0;
12026}
12027_ACEOF
12028rm -f conftest.$ac_objext
12029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>conftest.er1
12031 ac_status=$?
12032 grep -v '^ *+' conftest.er1 >conftest.err
12033 rm -f conftest.er1
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12040 ac_status=$?
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest.$ac_objext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12049 ac_hi=$ac_mid
12050else
12051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054ac_lo=`expr '(' $ac_mid ')' + 1`
12055fi
12056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12057done
12058case $ac_lo in
12059?*) ac_cv_sizeof_char=$ac_lo;;
12060'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12061See \`config.log' for more details." >&5
12062echo "$as_me: error: cannot compute sizeof (char), 77
12063See \`config.log' for more details." >&2;}
12064 { (exit 1); exit 1; }; } ;;
12065esac
12066else
12067 if test "$cross_compiling" = yes; then
12068 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12069echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12070 { (exit 1); exit 1; }; }
12071else
12072 cat >conftest.$ac_ext <<_ACEOF
12073/* confdefs.h. */
12074_ACEOF
12075cat confdefs.h >>conftest.$ac_ext
12076cat >>conftest.$ac_ext <<_ACEOF
12077/* end confdefs.h. */
12078$ac_includes_default
12079long longval () { return (long) (sizeof (char)); }
12080unsigned long ulongval () { return (long) (sizeof (char)); }
12081#include <stdio.h>
12082#include <stdlib.h>
12083int
12084main ()
12085{
12086
12087 FILE *f = fopen ("conftest.val", "w");
12088 if (! f)
12089 exit (1);
12090 if (((long) (sizeof (char))) < 0)
12091 {
12092 long i = longval ();
12093 if (i != ((long) (sizeof (char))))
12094 exit (1);
12095 fprintf (f, "%ld\n", i);
12096 }
12097 else
12098 {
12099 unsigned long i = ulongval ();
12100 if (i != ((long) (sizeof (char))))
12101 exit (1);
12102 fprintf (f, "%lu\n", i);
12103 }
12104 exit (ferror (f) || fclose (f) != 0);
12105
12106 ;
12107 return 0;
12108}
12109_ACEOF
12110rm -f conftest$ac_exeext
12111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112 (eval $ac_link) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_cv_sizeof_char=`cat conftest.val`
12122else
12123 echo "$as_me: program exited with status $ac_status" >&5
12124echo "$as_me: failed program was:" >&5
12125sed 's/^/| /' conftest.$ac_ext >&5
12126
12127( exit $ac_status )
12128{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12129See \`config.log' for more details." >&5
12130echo "$as_me: error: cannot compute sizeof (char), 77
12131See \`config.log' for more details." >&2;}
12132 { (exit 1); exit 1; }; }
12133fi
12134rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12135fi
12136fi
12137rm -f conftest.val
12138else
12139 ac_cv_sizeof_char=0
12140fi
12141fi
12142echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12143echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12144cat >>confdefs.h <<_ACEOF
12145#define SIZEOF_CHAR $ac_cv_sizeof_char
12146_ACEOF
12147
12148
12149echo "$as_me:$LINENO: checking for short" >&5 8092echo "$as_me:$LINENO: checking for short" >&5
12150echo $ECHO_N "checking for short... $ECHO_C" >&6 8093echo $ECHO_N "checking for short... $ECHO_C" >&6
12151if test "${ac_cv_type_short+set}" = set; then 8094if test "${ac_cv_type_short+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6 8095 echo $ECHO_N "(cached) $ECHO_C" >&6
12153else 8096else
12956cat >>confdefs.h <<_ACEOF 8899cat >>confdefs.h <<_ACEOF
12957#define SIZEOF_INT $ac_cv_sizeof_int 8900#define SIZEOF_INT $ac_cv_sizeof_int
12958_ACEOF 8901_ACEOF
12959 8902
12960 8903
12961echo "$as_me:$LINENO: checking for long" >&5
12962echo $ECHO_N "checking for long... $ECHO_C" >&6
12963if test "${ac_cv_type_long+set}" = set; then
12964 echo $ECHO_N "(cached) $ECHO_C" >&6
12965else
12966 cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h. */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
12971/* end confdefs.h. */
12972$ac_includes_default
12973int
12974main ()
12975{
12976if ((long *) 0)
12977 return 0;
12978if (sizeof (long))
12979 return 0;
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest.$ac_objext
12985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986 (eval $ac_compile) 2>conftest.er1
12987 ac_status=$?
12988 grep -v '^ *+' conftest.er1 >conftest.err
12989 rm -f conftest.er1
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13002 ac_status=$?
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13005 ac_cv_type_long=yes
13006else
13007 echo "$as_me: failed program was:" >&5
13008sed 's/^/| /' conftest.$ac_ext >&5
13009
13010ac_cv_type_long=no
13011fi
13012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13013fi
13014echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13015echo "${ECHO_T}$ac_cv_type_long" >&6
13016
13017echo "$as_me:$LINENO: checking size of long" >&5
13018echo $ECHO_N "checking size of long... $ECHO_C" >&6
13019if test "${ac_cv_sizeof_long+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022 if test "$ac_cv_type_long" = yes; then
13023 # The cast to unsigned long works around a bug in the HP C Compiler
13024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13026 # This bug is HP SR number 8606223364.
13027 if test "$cross_compiling" = yes; then
13028 # Depending upon the size, compute the lo and hi bounds.
13029cat >conftest.$ac_ext <<_ACEOF
13030/* confdefs.h. */
13031_ACEOF
13032cat confdefs.h >>conftest.$ac_ext
13033cat >>conftest.$ac_ext <<_ACEOF
13034/* end confdefs.h. */
13035$ac_includes_default
13036int
13037main ()
13038{
13039static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13040test_array [0] = 0
13041
13042 ;
13043 return 0;
13044}
13045_ACEOF
13046rm -f conftest.$ac_objext
13047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>conftest.er1
13049 ac_status=$?
13050 grep -v '^ *+' conftest.er1 >conftest.err
13051 rm -f conftest.er1
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; } &&
13061 { ac_try='test -s conftest.$ac_objext'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_lo=0 ac_mid=0
13068 while :; do
13069 cat >conftest.$ac_ext <<_ACEOF
13070/* confdefs.h. */
13071_ACEOF
13072cat confdefs.h >>conftest.$ac_ext
13073cat >>conftest.$ac_ext <<_ACEOF
13074/* end confdefs.h. */
13075$ac_includes_default
13076int
13077main ()
13078{
13079static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13080test_array [0] = 0
13081
13082 ;
13083 return 0;
13084}
13085_ACEOF
13086rm -f conftest.$ac_objext
13087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13088 (eval $ac_compile) 2>conftest.er1
13089 ac_status=$?
13090 grep -v '^ *+' conftest.er1 >conftest.err
13091 rm -f conftest.er1
13092 cat conftest.err >&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } &&
13095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; } &&
13101 { ac_try='test -s conftest.$ac_objext'
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; }; then
13107 ac_hi=$ac_mid; break
13108else
13109 echo "$as_me: failed program was:" >&5
13110sed 's/^/| /' conftest.$ac_ext >&5
13111
13112ac_lo=`expr $ac_mid + 1`
13113 if test $ac_lo -le $ac_mid; then
13114 ac_lo= ac_hi=
13115 break
13116 fi
13117 ac_mid=`expr 2 '*' $ac_mid + 1`
13118fi
13119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13120 done
13121else
13122 echo "$as_me: failed program was:" >&5
13123sed 's/^/| /' conftest.$ac_ext >&5
13124
13125cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131$ac_includes_default
13132int
13133main ()
13134{
13135static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13136test_array [0] = 0
13137
13138 ;
13139 return 0;
13140}
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144 (eval $ac_compile) 2>conftest.er1
13145 ac_status=$?
13146 grep -v '^ *+' conftest.er1 >conftest.err
13147 rm -f conftest.er1
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
13151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest.$ac_objext'
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 ac_hi=-1 ac_mid=-1
13164 while :; do
13165 cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
13171$ac_includes_default
13172int
13173main ()
13174{
13175static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13176test_array [0] = 0
13177
13178 ;
13179 return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext
13183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13193 (eval $ac_try) 2>&5
13194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; } &&
13197 { ac_try='test -s conftest.$ac_objext'
13198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13199 (eval $ac_try) 2>&5
13200 ac_status=$?
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_lo=$ac_mid; break
13204else
13205 echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208ac_hi=`expr '(' $ac_mid ')' - 1`
13209 if test $ac_mid -le $ac_hi; then
13210 ac_lo= ac_hi=
13211 break
13212 fi
13213 ac_mid=`expr 2 '*' $ac_mid`
13214fi
13215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13216 done
13217else
13218 echo "$as_me: failed program was:" >&5
13219sed 's/^/| /' conftest.$ac_ext >&5
13220
13221ac_lo= ac_hi=
13222fi
13223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13224fi
13225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13226# Binary search between lo and hi bounds.
13227while test "x$ac_lo" != "x$ac_hi"; do
13228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13229 cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235$ac_includes_default
13236int
13237main ()
13238{
13239static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13240test_array [0] = 0
13241
13242 ;
13243 return 0;
13244}
13245_ACEOF
13246rm -f conftest.$ac_objext
13247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13248 (eval $ac_compile) 2>conftest.er1
13249 ac_status=$?
13250 grep -v '^ *+' conftest.er1 >conftest.err
13251 rm -f conftest.er1
13252 cat conftest.err >&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } &&
13255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_hi=$ac_mid
13268else
13269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272ac_lo=`expr '(' $ac_mid ')' + 1`
13273fi
13274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13275done
13276case $ac_lo in
13277?*) ac_cv_sizeof_long=$ac_lo;;
13278'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13279See \`config.log' for more details." >&5
13280echo "$as_me: error: cannot compute sizeof (long), 77
13281See \`config.log' for more details." >&2;}
13282 { (exit 1); exit 1; }; } ;;
13283esac
13284else
13285 if test "$cross_compiling" = yes; then
13286 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13287echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13288 { (exit 1); exit 1; }; }
13289else
13290 cat >conftest.$ac_ext <<_ACEOF
13291/* confdefs.h. */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */
13296$ac_includes_default
13297long longval () { return (long) (sizeof (long)); }
13298unsigned long ulongval () { return (long) (sizeof (long)); }
13299#include <stdio.h>
13300#include <stdlib.h>
13301int
13302main ()
13303{
13304
13305 FILE *f = fopen ("conftest.val", "w");
13306 if (! f)
13307 exit (1);
13308 if (((long) (sizeof (long))) < 0)
13309 {
13310 long i = longval ();
13311 if (i != ((long) (sizeof (long))))
13312 exit (1);
13313 fprintf (f, "%ld\n", i);
13314 }
13315 else
13316 {
13317 unsigned long i = ulongval ();
13318 if (i != ((long) (sizeof (long))))
13319 exit (1);
13320 fprintf (f, "%lu\n", i);
13321 }
13322 exit (ferror (f) || fclose (f) != 0);
13323
13324 ;
13325 return 0;
13326}
13327_ACEOF
13328rm -f conftest$ac_exeext
13329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13330 (eval $ac_link) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_cv_sizeof_long=`cat conftest.val`
13340else
13341 echo "$as_me: program exited with status $ac_status" >&5
13342echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345( exit $ac_status )
13346{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13347See \`config.log' for more details." >&5
13348echo "$as_me: error: cannot compute sizeof (long), 77
13349See \`config.log' for more details." >&2;}
13350 { (exit 1); exit 1; }; }
13351fi
13352rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13353fi
13354fi
13355rm -f conftest.val
13356else
13357 ac_cv_sizeof_long=0
13358fi
13359fi
13360echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13361echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13362cat >>confdefs.h <<_ACEOF
13363#define SIZEOF_LONG $ac_cv_sizeof_long
13364_ACEOF
13365
13366
13367echo "$as_me:$LINENO: checking for long long" >&5 8904echo "$as_me:$LINENO: checking for long long" >&5
13368echo $ECHO_N "checking for long long... $ECHO_C" >&6 8905echo $ECHO_N "checking for long long... $ECHO_C" >&6
13369if test "${ac_cv_type_long_long+set}" = set; then 8906if test "${ac_cv_type_long_long+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6 8907 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else 8908else
14222 rxvt_cv_int16_t=yes 9759 rxvt_cv_int16_t=yes
14223else 9760else
14224 echo "$as_me: failed program was:" >&5 9761 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5 9762sed 's/^/| /' conftest.$ac_ext >&5
14226 9763
14227if test $ac_cv_sizeof_char -ge 2; then 9764if test "$ac_cv_sizeof_char" -ge 2; then
14228 rxvt_cv_int16_t=" char" 9765 rxvt_cv_int16_t=" char"
14229else 9766else
14230 if test $ac_cv_sizeof_short -ge 2; then 9767 if test "$ac_cv_sizeof_short" -ge 2; then
14231 rxvt_cv_int16_t=" short" 9768 rxvt_cv_int16_t=" short"
14232 else 9769 else
14233 if test $ac_cv_sizeof_int -ge 2; then 9770 if test "$ac_cv_sizeof_int" -ge 2; then
14234 rxvt_cv_int16_t=" int" 9771 rxvt_cv_int16_t=" int"
14235 else 9772 else
14236 if test $ac_cv_sizeof_long -ge 2; then 9773 if test "$ac_cv_sizeof_long" -ge 2; then
14237 rxvt_cv_int16_t=" long" 9774 rxvt_cv_int16_t=" long"
14238 else 9775 else
14239 if test $ac_cv_sizeof_long_long -ge 2; then 9776 if test "$ac_cv_sizeof_long_long" -ge 2; then
14240 rxvt_cv_int16_t=" long long" 9777 rxvt_cv_int16_t=" long long"
14241 else 9778 else
14242 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9779 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14243 fi 9780 fi
14244 fi 9781 fi
14304 rxvt_cv_uint16_t=yes 9841 rxvt_cv_uint16_t=yes
14305else 9842else
14306 echo "$as_me: failed program was:" >&5 9843 echo "$as_me: failed program was:" >&5
14307sed 's/^/| /' conftest.$ac_ext >&5 9844sed 's/^/| /' conftest.$ac_ext >&5
14308 9845
14309if test $ac_cv_sizeof_char -ge 2; then 9846if test "$ac_cv_sizeof_char" -ge 2; then
14310 rxvt_cv_uint16_t="unsigned char" 9847 rxvt_cv_uint16_t="unsigned char"
14311else 9848else
14312 if test $ac_cv_sizeof_short -ge 2; then 9849 if test "$ac_cv_sizeof_short" -ge 2; then
14313 rxvt_cv_uint16_t="unsigned short" 9850 rxvt_cv_uint16_t="unsigned short"
14314 else 9851 else
14315 if test $ac_cv_sizeof_int -ge 2; then 9852 if test "$ac_cv_sizeof_int" -ge 2; then
14316 rxvt_cv_uint16_t="unsigned int" 9853 rxvt_cv_uint16_t="unsigned int"
14317 else 9854 else
14318 if test $ac_cv_sizeof_long -ge 2; then 9855 if test "$ac_cv_sizeof_long" -ge 2; then
14319 rxvt_cv_uint16_t="unsigned long" 9856 rxvt_cv_uint16_t="unsigned long"
14320 else 9857 else
14321 if test $ac_cv_sizeof_long_long -ge 2; then 9858 if test "$ac_cv_sizeof_long_long" -ge 2; then
14322 rxvt_cv_uint16_t="unsigned long long" 9859 rxvt_cv_uint16_t="unsigned long long"
14323 else 9860 else
14324 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9861 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14325 fi 9862 fi
14326 fi 9863 fi
14386 rxvt_cv_int32_t=yes 9923 rxvt_cv_int32_t=yes
14387else 9924else
14388 echo "$as_me: failed program was:" >&5 9925 echo "$as_me: failed program was:" >&5
14389sed 's/^/| /' conftest.$ac_ext >&5 9926sed 's/^/| /' conftest.$ac_ext >&5
14390 9927
14391if test $ac_cv_sizeof_char -ge 4; then 9928if test "$ac_cv_sizeof_char" -ge 4; then
14392 rxvt_cv_int32_t=" char" 9929 rxvt_cv_int32_t=" char"
14393else 9930else
14394 if test $ac_cv_sizeof_short -ge 4; then 9931 if test "$ac_cv_sizeof_short" -ge 4; then
14395 rxvt_cv_int32_t=" short" 9932 rxvt_cv_int32_t=" short"
14396 else 9933 else
14397 if test $ac_cv_sizeof_int -ge 4; then 9934 if test "$ac_cv_sizeof_int" -ge 4; then
14398 rxvt_cv_int32_t=" int" 9935 rxvt_cv_int32_t=" int"
14399 else 9936 else
14400 if test $ac_cv_sizeof_long -ge 4; then 9937 if test "$ac_cv_sizeof_long" -ge 4; then
14401 rxvt_cv_int32_t=" long" 9938 rxvt_cv_int32_t=" long"
14402 else 9939 else
14403 if test $ac_cv_sizeof_long_long -ge 4; then 9940 if test "$ac_cv_sizeof_long_long" -ge 4; then
14404 rxvt_cv_int32_t=" long long" 9941 rxvt_cv_int32_t=" long long"
14405 else 9942 else
14406 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9943 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14407 fi 9944 fi
14408 fi 9945 fi
14468 rxvt_cv_uint32_t=yes 10005 rxvt_cv_uint32_t=yes
14469else 10006else
14470 echo "$as_me: failed program was:" >&5 10007 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5 10008sed 's/^/| /' conftest.$ac_ext >&5
14472 10009
14473if test $ac_cv_sizeof_char -ge 4; then 10010if test "$ac_cv_sizeof_char" -ge 4; then
14474 rxvt_cv_uint32_t="unsigned char" 10011 rxvt_cv_uint32_t="unsigned char"
14475else 10012else
14476 if test $ac_cv_sizeof_short -ge 4; then 10013 if test "$ac_cv_sizeof_short" -ge 4; then
14477 rxvt_cv_uint32_t="unsigned short" 10014 rxvt_cv_uint32_t="unsigned short"
14478 else 10015 else
14479 if test $ac_cv_sizeof_int -ge 4; then 10016 if test "$ac_cv_sizeof_int" -ge 4; then
14480 rxvt_cv_uint32_t="unsigned int" 10017 rxvt_cv_uint32_t="unsigned int"
14481 else 10018 else
14482 if test $ac_cv_sizeof_long -ge 4; then 10019 if test "$ac_cv_sizeof_long" -ge 4; then
14483 rxvt_cv_uint32_t="unsigned long" 10020 rxvt_cv_uint32_t="unsigned long"
14484 else 10021 else
14485 if test $ac_cv_sizeof_long_long -ge 4; then 10022 if test "$ac_cv_sizeof_long_long" -ge 4; then
14486 rxvt_cv_uint32_t="unsigned long long" 10023 rxvt_cv_uint32_t="unsigned long long"
14487 else 10024 else
14488 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 10025 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14489 fi 10026 fi
14490 fi 10027 fi
14504 else 10041 else
14505 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 10042 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14506 fi 10043 fi
14507fi 10044fi
14508 10045
14509if test $ac_cv_sizeof_int_p -eq 8; then 10046if test "$ac_cv_sizeof_int_p" -eq 8; then
14510 rxvt_intp_define="#define intp_t int64_t" 10047 rxvt_intp_define="#define intp_t int64_t"
14511 rxvt_u_intp_define="#define u_intp_t u_int64_t" 10048 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14512else 10049else
14513 if test $ac_cv_sizeof_int_p -eq 4; then 10050 if test "$ac_cv_sizeof_int_p" -eq 4; then
14514 rxvt_intp_define="#define intp_t int32_t" 10051 rxvt_intp_define="#define intp_t int32_t"
14515 rxvt_u_intp_define="#define u_intp_t u_int32_t" 10052 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14516 else 10053 else
14517 if test $ac_cv_sizeof_int_p -eq 2; then 10054 if test "$ac_cv_sizeof_int_p" -eq 2; then
14518 rxvt_intp_define="#define intp_t int16_t" 10055 rxvt_intp_define="#define intp_t int16_t"
14519 rxvt_u_intp_define="#define u_intp_t u_int16_t" 10056 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14520 else 10057 else
14521 rxvt_intp_define="#error set intp_t" 10058 rxvt_intp_define="#error set intp_t"
14522 rxvt_u_intp_define="#error set u_intp_t" 10059 rxvt_u_intp_define="#error set u_intp_t"
14616 10153
14617 10154
14618 10155
14619 10156
14620 10157
10158
10159
14621for ac_func in \ 10160for ac_func in \
14622 atexit \ 10161 atexit \
14623 revoke \ 10162 revoke \
14624 unsetenv \ 10163 unsetenv \
14625 setutent \ 10164 setutent \
14626 seteuid \ 10165 seteuid \
14627 setreuid \ 10166 setreuid \
14628 setsid \ 10167 setsid \
14629 setpgrp \ 10168 setpgrp \
14630 setpgid \ 10169 setpgid \
14631 openpty \
14632 _getpty \ 10170 _getpty \
10171 getpt \
10172 posix_openpt \
14633 grantpt \ 10173 grantpt \
14634 unlockpt \ 10174 unlockpt \
14635 isastream \ 10175 isastream \
14636 on_exit \ 10176 on_exit \
14637 nanosleep \ 10177 nanosleep \
14638 updwtmp \ 10178 updwtmp \
10179 updwtmpx \
14639 ttyslot \ 10180 ttyslot \
14640 10181
14641do 10182do
14642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14643echo "$as_me:$LINENO: checking for $ac_func" >&5 10184echo "$as_me:$LINENO: checking for $ac_func" >&5
15323#define HAVE_UTMPX_HOST 1 10864#define HAVE_UTMPX_HOST 1
15324_ACEOF 10865_ACEOF
15325 10866
15326fi 10867fi
15327 10868
15328fi 10869echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10870echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10871if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874 cat >conftest.$ac_ext <<_ACEOF
10875/* confdefs.h. */
10876_ACEOF
10877cat confdefs.h >>conftest.$ac_ext
10878cat >>conftest.$ac_ext <<_ACEOF
10879/* end confdefs.h. */
10880#include <sys/types.h>
10881#include <utmpx.h>
10882int
10883main ()
10884{
10885struct utmpx utx; utx.ut_session;
10886 ;
10887 return 0;
10888}
10889_ACEOF
10890rm -f conftest.$ac_objext
10891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10892 (eval $ac_compile) 2>conftest.er1
10893 ac_status=$?
10894 grep -v '^ *+' conftest.er1 >conftest.err
10895 rm -f conftest.er1
10896 cat conftest.err >&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); } &&
10899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try='test -s conftest.$ac_objext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 rxvt_cv_struct_utmpx_session=yes
10912else
10913 echo "$as_me: failed program was:" >&5
10914sed 's/^/| /' conftest.$ac_ext >&5
15329 10915
10916rxvt_cv_struct_utmpx_session=no
10917fi
10918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10919fi
10920echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10921echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10922if test x$rxvt_cv_struct_utmpx_session = xyes; then
10923
10924cat >>confdefs.h <<\_ACEOF
10925#define HAVE_UTMPX_SESSION 1
10926_ACEOF
10927
10928fi
10929
10930fi
15330 10931
15331 10932
15332echo "$as_me:$LINENO: checking for struct lastlog" >&5 10933echo "$as_me:$LINENO: checking for struct lastlog" >&5
15333echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10934echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15334if test "${rxvt_cv_struct_lastlog+set}" = set; then 10935if test "${rxvt_cv_struct_lastlog+set}" = set; then
16211#define HAVE_NL_LANGINFO 1 11812#define HAVE_NL_LANGINFO 1
16212_ACEOF 11813_ACEOF
16213 11814
16214fi 11815fi
16215 11816
11817echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11818echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11819if test "${rxvt_can_pass_fds+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11821else
11822 cat >conftest.$ac_ext <<_ACEOF
11823/* confdefs.h. */
11824_ACEOF
11825cat confdefs.h >>conftest.$ac_ext
11826cat >>conftest.$ac_ext <<_ACEOF
11827/* end confdefs.h. */
11828
11829#include <sys/types.h>
11830#include <sys/socket.h>
11831
11832int
11833main ()
11834{
11835
11836{
11837 msghdr msg;
11838 iovec iov;
11839 char buf [100];
11840 char data = 0;
11841
11842 iov.iov_base = &data;
11843 iov.iov_len = 1;
11844
11845 msg.msg_iov = &iov;
11846 msg.msg_iovlen = 1;
11847 msg.msg_control = buf;
11848 msg.msg_controllen = sizeof buf;
11849
11850 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11851 cmsg->cmsg_level = SOL_SOCKET;
11852 cmsg->cmsg_type = SCM_RIGHTS;
11853 cmsg->cmsg_len = 100;
11854
11855 *(int *)CMSG_DATA (cmsg) = 5;
11856
11857 return sendmsg (3, &msg, 0);
11858}
11859
11860 ;
11861 return 0;
11862}
11863_ACEOF
11864rm -f conftest.$ac_objext conftest$ac_exeext
11865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11866 (eval $ac_link) 2>conftest.er1
11867 ac_status=$?
11868 grep -v '^ *+' conftest.er1 >conftest.err
11869 rm -f conftest.er1
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
11873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; } &&
11879 { ac_try='test -s conftest$ac_exeext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11882 ac_status=$?
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 rxvt_can_pass_fds=yes
11886else
11887 echo "$as_me: failed program was:" >&5
11888sed 's/^/| /' conftest.$ac_ext >&5
11889
11890rxvt_can_pass_fds=no
11891fi
11892rm -f conftest.err conftest.$ac_objext \
11893 conftest$ac_exeext conftest.$ac_ext
11894fi
11895echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
11896echo "${ECHO_T}$rxvt_can_pass_fds" >&6
11897if test x$rxvt_can_pass_fds = xyes; then
11898
11899cat >>confdefs.h <<\_ACEOF
11900#define HAVE_UNIX_FDPASS 1
11901_ACEOF
11902
11903fi
11904
16216echo "$as_me:$LINENO: checking for broken XIM callback" >&5 11905echo "$as_me:$LINENO: checking for broken XIM callback" >&5
16217echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 11906echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
16218if test "${rxvt_broken_ximcb+set}" = set; then 11907if test "${rxvt_broken_ximcb+set}" = set; then
16219 echo $ECHO_N "(cached) $ECHO_C" >&6 11908 echo $ECHO_N "(cached) $ECHO_C" >&6
16220else 11909else
16269#define XIMCB_PROTO_BROKEN 1 11958#define XIMCB_PROTO_BROKEN 1
16270_ACEOF 11959_ACEOF
16271 11960
16272fi 11961fi
16273 11962
11963if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then
16274echo "$as_me:$LINENO: checking for getpt" >&5 11964 echo "$as_me:$LINENO: checking for openpty" >&5
16275echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11965echo $ECHO_N "checking for openpty... $ECHO_C" >&6
16276if test "${rxvt_cv_func_getpt+set}" = set; then 11966if test "${ac_cv_func_openpty+set}" = set; then
16277 echo $ECHO_N "(cached) $ECHO_C" >&6 11967 echo $ECHO_N "(cached) $ECHO_C" >&6
16278else 11968else
16279 cat >conftest.$ac_ext <<_ACEOF 11969 cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h. */ 11970/* confdefs.h. */
16281_ACEOF 11971_ACEOF
16282cat confdefs.h >>conftest.$ac_ext 11972cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF 11973cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h. */ 11974/* end confdefs.h. */
16285#define _GNU_SOURCE 11975/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
16286#ifdef HAVE_STDLIB_H 11976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16287# include <cstdlib> 11977#define openpty innocuous_openpty
11978
11979/* System header to define __stub macros and hopefully few prototypes,
11980 which can conflict with char openpty (); below.
11981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11982 <limits.h> exists even on freestanding compilers. */
11983
11984#ifdef __STDC__
11985# include <limits.h>
11986#else
11987# include <assert.h>
16288#endif 11988#endif
11989
11990#undef openpty
11991
11992/* Override any gcc2 internal prototype to avoid an error. */
11993#ifdef __cplusplus
11994extern "C"
11995{
11996#endif
11997/* We use char because int might match the return type of a gcc2
11998 builtin and then its argument prototype would still apply. */
11999char openpty ();
12000/* The GNU C library defines this for functions which it implements
12001 to always fail with ENOSYS. Some functions are actually named
12002 something starting with __ and the normal name is an alias. */
12003#if defined (__stub_openpty) || defined (__stub___openpty)
12004choke me
12005#else
12006char (*f) () = openpty;
12007#endif
12008#ifdef __cplusplus
12009}
12010#endif
12011
16289int 12012int
16290main () 12013main ()
16291{ 12014{
16292(void)getpt(); 12015return f != openpty;
16293 ; 12016 ;
16294 return 0; 12017 return 0;
16295} 12018}
16296_ACEOF 12019_ACEOF
16297rm -f conftest.$ac_objext conftest$ac_exeext 12020rm -f conftest.$ac_objext conftest$ac_exeext
16313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16314 (eval $ac_try) 2>&5 12037 (eval $ac_try) 2>&5
16315 ac_status=$? 12038 ac_status=$?
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); }; }; then 12040 (exit $ac_status); }; }; then
16318 rxvt_cv_func_getpt=yes 12041 ac_cv_func_openpty=yes
16319else 12042else
16320 echo "$as_me: failed program was:" >&5 12043 echo "$as_me: failed program was:" >&5
16321sed 's/^/| /' conftest.$ac_ext >&5 12044sed 's/^/| /' conftest.$ac_ext >&5
16322 12045
16323rxvt_cv_func_getpt=no 12046ac_cv_func_openpty=no
16324fi 12047fi
16325rm -f conftest.err conftest.$ac_objext \ 12048rm -f conftest.err conftest.$ac_objext \
16326 conftest$ac_exeext conftest.$ac_ext 12049 conftest$ac_exeext conftest.$ac_ext
16327fi 12050fi
16328echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 12051echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
16329echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 12052echo "${ECHO_T}$ac_cv_func_openpty" >&6
16330if test x$rxvt_cv_func_getpt = xyes; then 12053if test $ac_cv_func_openpty = yes; then
16331 12054 :
12055else
12056 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12057echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12058if test "${ac_cv_lib_util_openpty+set}" = set; then
12059 echo $ECHO_N "(cached) $ECHO_C" >&6
12060else
12061 ac_check_lib_save_LIBS=$LIBS
12062LIBS="-lutil $LIBS"
12063cat >conftest.$ac_ext <<_ACEOF
12064/* confdefs.h. */
12065_ACEOF
12066cat confdefs.h >>conftest.$ac_ext
16332cat >>confdefs.h <<\_ACEOF 12067cat >>conftest.$ac_ext <<_ACEOF
16333#define HAVE_GETPT 1 12068/* end confdefs.h. */
12069
12070/* Override any gcc2 internal prototype to avoid an error. */
12071#ifdef __cplusplus
12072extern "C"
12073#endif
12074/* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12076char openpty ();
12077int
12078main ()
12079{
12080openpty ();
12081 ;
12082 return 0;
12083}
16334_ACEOF 12084_ACEOF
12085rm -f conftest.$ac_objext conftest$ac_exeext
12086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12087 (eval $ac_link) 2>conftest.er1
12088 ac_status=$?
12089 grep -v '^ *+' conftest.er1 >conftest.err
12090 rm -f conftest.er1
12091 cat conftest.err >&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } &&
12094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12096 (eval $ac_try) 2>&5
12097 ac_status=$?
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; } &&
12100 { ac_try='test -s conftest$ac_exeext'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; }; then
12106 ac_cv_lib_util_openpty=yes
12107else
12108 echo "$as_me: failed program was:" >&5
12109sed 's/^/| /' conftest.$ac_ext >&5
12110
12111ac_cv_lib_util_openpty=no
12112fi
12113rm -f conftest.err conftest.$ac_objext \
12114 conftest$ac_exeext conftest.$ac_ext
12115LIBS=$ac_check_lib_save_LIBS
12116fi
12117echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12118echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12119if test $ac_cv_lib_util_openpty = yes; then
12120 LIBS="$LIBS -lutil"
12121fi
12122
12123fi
16335 12124
16336fi 12125fi
16337 12126
16338echo "$as_me:$LINENO: checking for pty/tty type" >&5 12127echo "$as_me:$LINENO: checking for pty/tty type" >&5
16339echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 12128echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
16340if test "${rxvt_cv_ptys+set}" = set; then 12129if test "${rxvt_cv_ptys+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6 12130 echo $ECHO_N "(cached) $ECHO_C" >&6
16342else 12131else
16343 if test x$ac_cv_func_openpty = xyes; then 12132 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
16344 rxvt_cv_ptys=OPENPTY 12133 rxvt_cv_ptys=OPENPTY
12134 else if test x$ac_cv_func_getpt = xyes; then
12135 rxvt_cv_ptys=GLIBC
12136 else if test x$ac_cv_func_posix_openpt = xyes; then
12137 rxvt_cv_ptys=POSIX
16345 else if test x$ac_cv_func__getpty = xyes; then 12138 else if test x$ac_cv_func__getpty = xyes; then
16346 rxvt_cv_ptys=SGI4 12139 rxvt_cv_ptys=SGI4
16347 else if test -c /dev/ttyp20; then 12140 else if test -c /dev/ttyp20; then
16348 rxvt_cv_ptys=SCO 12141 rxvt_cv_ptys=SCO
16349 else if test -c /dev/ptym/clone; then 12142 else if test -c /dev/ptym/clone; then
16350 rxvt_cv_ptys=HPUX 12143 rxvt_cv_ptys=HPUX
16351 else if test x$rxvt_cv_func_getpt = xyes; then
16352 rxvt_cv_ptys=GLIBC
16353 else if test -c /dev/ptc -a -c /dev/pts; then 12144 else if test -c /dev/ptc -a -c /dev/pts; then
16354 rxvt_cv_ptys=PTC 12145 rxvt_cv_ptys=PTC
16355 else if test -c /dev/ptc -a -d /dev/pts; then 12146 else if test -c /dev/ptc -a -d /dev/pts; then
16356 rxvt_cv_ptys=PTC 12147 rxvt_cv_ptys=PTC
16357 else if test -c /dev/ptmx -a -c /dev/pts/0; then 12148 else if test -c /dev/ptmx -a -c /dev/pts/0; then
16367fi 12158fi
16368fi 12159fi
16369fi 12160fi
16370fi 12161fi
16371fi 12162fi
12163fi
16372 12164
16373fi 12165fi
16374echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 12166echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16375echo "${ECHO_T}$rxvt_cv_ptys" >&6 12167echo "${ECHO_T}$rxvt_cv_ptys" >&6
16376 12168
12169if test x$rxvt_cv_ptys = xGLIBC; then
12170
12171cat >>confdefs.h <<\_ACEOF
12172#define PTYS_ARE_GETPT 1
12173_ACEOF
12174
12175fi
12176if test x$rxvt_cv_ptys = xPOSIX; then
12177
12178cat >>confdefs.h <<\_ACEOF
12179#define PTYS_ARE_POSIX 1
12180_ACEOF
12181
12182fi
16377if test x$rxvt_cv_ptys = xOPENPTY; then 12183if test x$rxvt_cv_ptys = xOPENPTY; then
16378 12184
16379cat >>confdefs.h <<\_ACEOF 12185cat >>confdefs.h <<\_ACEOF
16380#define PTYS_ARE_OPENPTY 1 12186#define PTYS_ARE_OPENPTY 1
16381_ACEOF 12187_ACEOF
16407cat >>confdefs.h <<\_ACEOF 12213cat >>confdefs.h <<\_ACEOF
16408#define PTYS_ARE__GETPTY 1 12214#define PTYS_ARE__GETPTY 1
16409_ACEOF 12215_ACEOF
16410 12216
16411fi 12217fi
16412if test x$rxvt_cv_ptys = xCONVEX; then
16413
16414cat >>confdefs.h <<\_ACEOF
16415#define PTYS_ARE_GETPTY 1
16416_ACEOF
16417
16418fi
16419if test x$rxvt_cv_ptys = xGLIBC; then
16420
16421cat >>confdefs.h <<\_ACEOF
16422#define PTYS_ARE_GETPT 1
16423_ACEOF
16424
16425fi
16426if test x$rxvt_cv_ptys = xHPUX; then 12218if test x$rxvt_cv_ptys = xHPUX; then
16427 12219
16428cat >>confdefs.h <<\_ACEOF 12220cat >>confdefs.h <<\_ACEOF
16429#define PTYS_ARE_CLONE 1 12221#define PTYS_ARE_CLONE 1
16430_ACEOF 12222_ACEOF
16431 12223
16432fi 12224fi
16433if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 12225if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
16434 12226
16435cat >>confdefs.h <<\_ACEOF 12227cat >>confdefs.h <<\_ACEOF
16436#define PTYS_ARE_SEARCHED 1 12228#define PTYS_ARE_SEARCHED 1
16437_ACEOF 12229_ACEOF
16438 12230
16457#define PTYCHAR2 "$pch2" 12249#define PTYCHAR2 "$pch2"
16458_ACEOF 12250_ACEOF
16459 12251
16460fi 12252fi
16461 12253
16462if test x$support_iso14755 = xyes; then
16463
16464cat >>confdefs.h <<\_ACEOF
16465#define ISO_14755 1
16466_ACEOF
16467
16468fi
16469if test x$support_8bitctrls = xyes; then
16470
16471cat >>confdefs.h <<\_ACEOF
16472#define EIGHT_BIT_CONTROLS 1
16473_ACEOF
16474
16475fi
16476if test x$support_fading = xyes; then
16477
16478cat >>confdefs.h <<\_ACEOF
16479#define OFF_FOCUS_FADING 1
16480_ACEOF
16481
16482fi
16483if test x$support_tinting = xyes; then
16484
16485cat >>confdefs.h <<\_ACEOF
16486#define TINTING 1
16487_ACEOF
16488
16489fi
16490if test x$support_inheritpixmap = xyes; then
16491
16492cat >>confdefs.h <<\_ACEOF
16493#define TRANSPARENT 1
16494_ACEOF
16495
16496fi
16497if test x$support_keepscrolling = xno; then
16498
16499cat >>confdefs.h <<\_ACEOF
16500#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16501_ACEOF
16502
16503fi
16504if test x$support_selectionscrolling = xyes; then
16505
16506cat >>confdefs.h <<\_ACEOF
16507#define SELECTION_SCROLLING 1
16508_ACEOF
16509
16510fi
16511if test x$support_menubar = xyes; then
16512
16513cat >>confdefs.h <<\_ACEOF
16514#define MENUBAR 1
16515_ACEOF
16516
16517fi
16518if test x$support_frills = xyes; then
16519
16520cat >>confdefs.h <<\_ACEOF
16521#define ENABLE_FRILLS 1
16522_ACEOF
16523
16524fi
16525if test x$support_linespace = xno; then
16526
16527cat >>confdefs.h <<\_ACEOF
16528#define NO_LINESPACE 1
16529_ACEOF
16530
16531fi
16532if test x$support_24bit = xyes; then
16533
16534cat >>confdefs.h <<\_ACEOF
16535#define PREFER_24BIT 1
16536_ACEOF
16537
16538fi
16539if test x$support_mousewheel = xyes; then
16540
16541cat >>confdefs.h <<\_ACEOF
16542#define MOUSE_WHEEL 1
16543_ACEOF
16544
16545fi
16546if test x$support_mouseslipwheel = xyes; then
16547
16548cat >>confdefs.h <<\_ACEOF
16549#define MOUSE_SLIP_WHEELING 1
16550_ACEOF
16551
16552fi
16553if test x$support_utmp = xyes; then
16554
16555cat >>confdefs.h <<\_ACEOF
16556#define UTMP_SUPPORT 1
16557_ACEOF
16558
16559fi
16560if test x$support_wtmp = xyes; then
16561
16562cat >>confdefs.h <<\_ACEOF
16563#define WTMP_SUPPORT 1
16564_ACEOF
16565
16566fi
16567if test x$support_lastlog = xyes; then
16568
16569cat >>confdefs.h <<\_ACEOF
16570#define LASTLOG_SUPPORT 1
16571_ACEOF
16572
16573fi
16574if test x$support_xim = xyes -o x$multichar_set = xyes; then
16575 if test x$rxvt_cv_func_xlocale = xyes; then
16576
16577cat >>confdefs.h <<\_ACEOF
16578#define USE_XIM 1
16579_ACEOF
16580
16581 fi
16582fi
16583if test x$support_xpm = xyes; then
16584
16585cat >>confdefs.h <<\_ACEOF
16586#define XPM_BACKGROUND 1
16587_ACEOF
16588
16589fi
16590if test x$support_scroll_rxvt = xyes; then
16591
16592cat >>confdefs.h <<\_ACEOF
16593#define RXVT_SCROLLBAR 1
16594_ACEOF
16595
16596 scrolltypes="rxvt"
16597fi
16598if test x$support_scroll_next = xyes; then
16599
16600cat >>confdefs.h <<\_ACEOF
16601#define NEXT_SCROLLBAR 1
16602_ACEOF
16603
16604 scrolltypes="$scrolltypes next"
16605fi
16606if test x$support_scroll_xterm = xyes; then
16607
16608cat >>confdefs.h <<\_ACEOF
16609#define XTERM_SCROLLBAR 1
16610_ACEOF
16611
16612 scrolltypes="$scrolltypes xterm"
16613fi
16614if test x$support_scroll_plain = xyes; then
16615
16616cat >>confdefs.h <<\_ACEOF
16617#define PLAIN_SCROLLBAR 1
16618_ACEOF
16619
16620 scrolltypes="$scrolltypes plain"
16621fi
16622if test x$support_pointer_blank = xyes; then
16623
16624cat >>confdefs.h <<\_ACEOF
16625#define POINTER_BLANK 1
16626_ACEOF
16627
16628fi
16629if test x$support_cursor_blink = xyes; then
16630
16631cat >>confdefs.h <<\_ACEOF
16632#define CURSOR_BLINK 1
16633_ACEOF
16634
16635fi
16636if test x$support_text_blink = xyes; then
16637
16638cat >>confdefs.h <<\_ACEOF
16639#define TEXT_BLINK 1
16640_ACEOF
16641
16642fi
16643if test x$support_unicode3 = xyes; then
16644
16645cat >>confdefs.h <<\_ACEOF
16646#define UNICODE_3 1
16647_ACEOF
16648
16649fi
16650if test x$support_combining = xyes; then
16651
16652cat >>confdefs.h <<\_ACEOF
16653#define ENABLE_COMBINING 1
16654_ACEOF
16655
16656fi
16657if test x$codesets = xall; then
16658 codesets=jp,jp-ext,kr,cn,cn-ext
16659fi
16660
16661cat >>confdefs.h <<\_ACEOF
16662#define ENCODING_EU 1
16663_ACEOF
16664
16665
16666cat >>confdefs.h <<\_ACEOF
16667#define ENCODING_VN 1
16668_ACEOF
16669
16670for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16671 case "$codeset" in
16672 JP )
16673cat >>confdefs.h <<\_ACEOF
16674#define ENCODING_JP 1
16675_ACEOF
16676 ;;
16677 JP_EXT )
16678cat >>confdefs.h <<\_ACEOF
16679#define ENCODING_JP_EXT 1
16680_ACEOF
16681 ;;
16682 KR )
16683cat >>confdefs.h <<\_ACEOF
16684#define ENCODING_KR 1
16685_ACEOF
16686 ;;
16687 CN )
16688cat >>confdefs.h <<\_ACEOF
16689#define ENCODING_CN 1
16690_ACEOF
16691 ;;
16692 CN_EXT )
16693cat >>confdefs.h <<\_ACEOF
16694#define ENCODING_CN_EXT 1
16695_ACEOF
16696 ;;
16697 esac
16698done
16699
16700
16701CFLAGS=${CFLAGS--O}
16702LDFLAGS=${LDFLAGS--O}
16703
16704CPPFLAGS="$CPPFLAGS"
16705
16706
16707
16708
16709
16710
16711
16712if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16713 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16714 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16715 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16716 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16717 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16718fi
16719
16720
16721
16722
16723
16724if test x$support_addstrings = xno; then
16725
16726cat >>confdefs.h <<\_ACEOF
16727#define NO_STRINGS 1
16728_ACEOF
16729
16730fi
16731
16732MCOMMON=./autoconf/Make.common
16733
16734
16735test "$program_prefix" != NONE &&
16736 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16737# Use a double $ so make ignores it.
16738test "$program_suffix" != NONE &&
16739 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16740# Double any \ or $. echo might interpret backslashes.
16741# By default was `s,x,x', remove it if useless.
16742cat <<\_ACEOF >conftest.sed
16743s/[\\$]/&&/g;s/;s,x,x,$//
16744_ACEOF
16745program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16746rm conftest.sed
16747
16748
16749
16750
16751
16752if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16753 include_stdint_h="#include <stdint.h>"
16754else
16755 include_stdint_h="/* #include <stdint.h> */"
16756fi
16757if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16758 include_stdarg_h="#include <cstdarg>"
16759else
16760 include_stdarg_h="/* #include <cstdarg> */"
16761fi
16762if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16763 include_stdlib_h="#include <cstdlib>"
16764else
16765 include_stdlib_h="/* #include <cstdlib> */"
16766fi
16767if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16768 include_unistd_h="#include <unistd.h>"
16769else
16770 include_unistd_h="/* #include <unistd.h> */"
16771fi
16772if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16773 include_string_h="#include <cstring>"
16774else
16775 include_string_h="/* #include <cstring> */"
16776fi
16777if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16778 include_fcntl_h="#include <fcntl.h>"
16779else
16780 include_fcntl_h="/* #include <fcntl.h> */"
16781fi
16782if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16783 include_util_h="#include <util.h>"
16784else
16785 include_util_h="/* #include <util.h> */"
16786fi
16787if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16788 include_assert_h="#include <assert.h>"
16789else
16790 include_assert_h="/* #include <assert.h> */"
16791fi
16792if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16793 include_sys_ioctl_h="#include <sys/ioctl.h>"
16794else
16795 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16796fi
16797if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16798 include_sys_select_h="#include <sys/select.h>"
16799else
16800 include_sys_select_h="/* #include <sys/select.h> */"
16801fi
16802if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16803 include_sys_strredir_h="#include <sys/strredir.h>"
16804else
16805 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16806fi
16807if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16808 include_sys_time_h="#include <sys/time.h>"
16809else
16810 include_sys_time_h="/* #include <sys/time.h> */"
16811fi
16812if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16813 include_time_h="#include <time.h>"
16814else
16815 include_time_h="/* #include <time.h> */"
16816fi
16817
16818if test x$support_xft = xyes; then 12254if test x$support_xft = xyes; then
16819 LIBS="$LIBS `pkg-config xft --libs`" 12255 LIBS="$LIBS `pkg-config xft --libs`"
16820 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16821 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 12256 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16822 12257
16823 12258
16824for ac_header in X11/Xft/Xft.h 12259for ac_header in X11/Xft/Xft.h
16825do 12260do
17053#define XFT 1 12488#define XFT 1
17054_ACEOF 12489_ACEOF
17055 12490
17056 fi 12491 fi
17057fi 12492fi
12493if test x$support_styles = xyes; then
17058 12494
12495cat >>confdefs.h <<\_ACEOF
12496#define ENABLE_STYLES 1
12497_ACEOF
12498
12499fi
12500if test x$support_iso14755 = xyes; then
12501
12502cat >>confdefs.h <<\_ACEOF
12503#define ISO_14755 1
12504_ACEOF
12505
12506fi
12507if test x$support_8bitctrls = xyes; then
12508
12509cat >>confdefs.h <<\_ACEOF
12510#define EIGHT_BIT_CONTROLS 1
12511_ACEOF
12512
12513fi
12514if test x$support_fading = xyes; then
12515
12516cat >>confdefs.h <<\_ACEOF
12517#define OFF_FOCUS_FADING 1
12518_ACEOF
12519
12520fi
12521if test x$support_tinting = xyes; then
12522
12523cat >>confdefs.h <<\_ACEOF
12524#define TINTING 1
12525_ACEOF
12526
12527fi
12528if test x$support_inheritpixmap = xyes; then
12529
12530cat >>confdefs.h <<\_ACEOF
12531#define TRANSPARENT 1
12532_ACEOF
12533
12534fi
12535if test x$support_keepscrolling = xno; then
12536
12537cat >>confdefs.h <<\_ACEOF
12538#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12539_ACEOF
12540
12541fi
12542if test x$support_selectionscrolling = xyes; then
12543
12544cat >>confdefs.h <<\_ACEOF
12545#define SELECTION_SCROLLING 1
12546_ACEOF
12547
12548fi
12549if test x$support_frills = xyes; then
12550
12551cat >>confdefs.h <<\_ACEOF
12552#define ENABLE_FRILLS 1
12553_ACEOF
12554
12555fi
12556if test x$support_24bit = xyes; then
12557
12558cat >>confdefs.h <<\_ACEOF
12559#define PREFER_24BIT 1
12560_ACEOF
12561
12562fi
12563if test x$support_mousewheel = xyes; then
12564
12565cat >>confdefs.h <<\_ACEOF
12566#define MOUSE_WHEEL 1
12567_ACEOF
12568
12569fi
12570if test x$support_mouseslipwheel = xyes; then
12571
12572cat >>confdefs.h <<\_ACEOF
12573#define MOUSE_SLIP_WHEELING 1
12574_ACEOF
12575
12576fi
12577if test x$support_utmp = xyes; then
12578
12579cat >>confdefs.h <<\_ACEOF
12580#define UTMP_SUPPORT 1
12581_ACEOF
12582
12583fi
12584if test x$support_wtmp = xyes; then
12585
12586cat >>confdefs.h <<\_ACEOF
12587#define WTMP_SUPPORT 1
12588_ACEOF
12589
12590fi
12591if test x$support_lastlog = xyes; then
12592
12593cat >>confdefs.h <<\_ACEOF
12594#define LASTLOG_SUPPORT 1
12595_ACEOF
12596
12597fi
12598if test x$support_xim = xyes -o x$multichar_set = xyes; then
12599 if test x$rxvt_cv_func_xlocale = xyes; then
12600
12601cat >>confdefs.h <<\_ACEOF
12602#define USE_XIM 1
12603_ACEOF
12604
12605 fi
12606fi
12607if test x$support_xpm = xyes; then
12608
12609cat >>confdefs.h <<\_ACEOF
12610#define XPM_BACKGROUND 1
12611_ACEOF
12612
12613fi
12614if test x$support_scroll_rxvt = xyes; then
12615
12616cat >>confdefs.h <<\_ACEOF
12617#define RXVT_SCROLLBAR 1
12618_ACEOF
12619
12620 scrolltypes="rxvt"
12621fi
12622if test x$support_scroll_next = xyes; then
12623
12624cat >>confdefs.h <<\_ACEOF
12625#define NEXT_SCROLLBAR 1
12626_ACEOF
12627
12628 scrolltypes="$scrolltypes next"
12629fi
12630if test x$support_scroll_xterm = xyes; then
12631
12632cat >>confdefs.h <<\_ACEOF
12633#define XTERM_SCROLLBAR 1
12634_ACEOF
12635
12636 scrolltypes="$scrolltypes xterm"
12637fi
12638if test x$support_scroll_plain = xyes; then
12639
12640cat >>confdefs.h <<\_ACEOF
12641#define PLAIN_SCROLLBAR 1
12642_ACEOF
12643
12644 scrolltypes="$scrolltypes plain"
12645fi
12646if test x$support_pointer_blank = xyes; then
12647
12648cat >>confdefs.h <<\_ACEOF
12649#define POINTER_BLANK 1
12650_ACEOF
12651
12652fi
12653if test x$support_text_blink = xyes; then
12654
12655cat >>confdefs.h <<\_ACEOF
12656#define TEXT_BLINK 1
12657_ACEOF
12658
12659fi
12660if test x$support_unicode3 = xyes; then
12661
12662cat >>confdefs.h <<\_ACEOF
12663#define UNICODE_3 1
12664_ACEOF
12665
12666fi
12667if test x$support_combining = xyes; then
12668
12669cat >>confdefs.h <<\_ACEOF
12670#define ENABLE_COMBINING 1
12671_ACEOF
12672
12673fi
12674if test x$codesets = xall; then
12675 codesets=jp,jp-ext,kr,zh,zh-ext
12676fi
12677
12678cat >>confdefs.h <<\_ACEOF
12679#define ENCODING_EU 1
12680_ACEOF
12681
12682
12683cat >>confdefs.h <<\_ACEOF
12684#define ENCODING_VN 1
12685_ACEOF
12686
12687for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12688 case "$codeset" in
12689 JP )
12690cat >>confdefs.h <<\_ACEOF
12691#define ENCODING_JP 1
12692_ACEOF
12693 ;;
12694 JP_EXT )
12695cat >>confdefs.h <<\_ACEOF
12696#define ENCODING_JP_EXT 1
12697_ACEOF
12698 ;;
12699 KR )
12700cat >>confdefs.h <<\_ACEOF
12701#define ENCODING_KR 1
12702_ACEOF
12703 ;;
12704 ZH )
12705cat >>confdefs.h <<\_ACEOF
12706#define ENCODING_ZH 1
12707_ACEOF
12708 ;;
12709 ZH_EXT )
12710cat >>confdefs.h <<\_ACEOF
12711#define ENCODING_ZH_EXT 1
12712_ACEOF
12713 ;;
12714 esac
12715done
12716
12717IF_PERL=\#
12718if test x$support_perl = xyes; then
12719 # Extract the first word of "perl5", so it can be a program name with args.
12720set dummy perl5; ac_word=$2
12721echo "$as_me:$LINENO: checking for $ac_word" >&5
12722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12723if test "${ac_cv_path_PERL+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12725else
12726 case $PERL in
12727 [\\/]* | ?:[\\/]*)
12728 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12729 ;;
12730 *)
12731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12732for as_dir in $PATH
12733do
12734 IFS=$as_save_IFS
12735 test -z "$as_dir" && as_dir=.
12736 for ac_exec_ext in '' $ac_executable_extensions; do
12737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12738 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 break 2
12741 fi
12742done
12743done
12744
12745 ;;
12746esac
12747fi
12748PERL=$ac_cv_path_PERL
12749
12750if test -n "$PERL"; then
12751 echo "$as_me:$LINENO: result: $PERL" >&5
12752echo "${ECHO_T}$PERL" >&6
12753else
12754 echo "$as_me:$LINENO: result: no" >&5
12755echo "${ECHO_T}no" >&6
12756fi
12757
12758 # Extract the first word of "perl", so it can be a program name with args.
12759set dummy perl; ac_word=$2
12760echo "$as_me:$LINENO: checking for $ac_word" >&5
12761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12762if test "${ac_cv_path_PERL+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764else
12765 case $PERL in
12766 [\\/]* | ?:[\\/]*)
12767 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12768 ;;
12769 *)
12770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771for as_dir in $PATH
12772do
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
12775 for ac_exec_ext in '' $ac_executable_extensions; do
12776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12777 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 break 2
12780 fi
12781done
12782done
12783
12784 ;;
12785esac
12786fi
12787PERL=$ac_cv_path_PERL
12788
12789if test -n "$PERL"; then
12790 echo "$as_me:$LINENO: result: $PERL" >&5
12791echo "${ECHO_T}$PERL" >&6
12792else
12793 echo "$as_me:$LINENO: result: no" >&5
12794echo "${ECHO_T}no" >&6
12795fi
12796
12797
12798 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
12799echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
12800 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
12801
12802 save_CXXFLAGS="$CXXFLAGS"
12803 save_LIBS="$LIBS"
12804 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
12805 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
12806 cat >conftest.$ac_ext <<_ACEOF
12807/* confdefs.h. */
12808_ACEOF
12809cat confdefs.h >>conftest.$ac_ext
12810cat >>conftest.$ac_ext <<_ACEOF
12811/* end confdefs.h. */
12812
12813#include <EXTERN.h>
12814#include <perl.h>
12815#include <XSUB.h>
12816
12817int
12818main ()
12819{
12820
12821 PerlInterpreter *perl = perl_alloc ();
12822
12823 ;
12824 return 0;
12825}
12826_ACEOF
12827rm -f conftest.$ac_objext conftest$ac_exeext
12828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12829 (eval $ac_link) 2>conftest.er1
12830 ac_status=$?
12831 grep -v '^ *+' conftest.er1 >conftest.err
12832 rm -f conftest.er1
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; } &&
12842 { ac_try='test -s conftest$ac_exeext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12845 ac_status=$?
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 rxvt_perl_link=yes
12849else
12850 echo "$as_me: failed program was:" >&5
12851sed 's/^/| /' conftest.$ac_ext >&5
12852
12853rxvt_perl_link=no
12854fi
12855rm -f conftest.err conftest.$ac_objext \
12856 conftest$ac_exeext conftest.$ac_ext
12857 CXXFLAGS="$save_CXXFLAGS"
12858 LIBS="$save_LIBS"
12859
12860 if test x$rxvt_perl_link = xyes; then
12861 echo "$as_me:$LINENO: result: ok" >&5
12862echo "${ECHO_T}ok" >&6
12863
12864cat >>confdefs.h <<\_ACEOF
12865#define ENABLE_PERL 1
12866_ACEOF
12867
12868 IF_PERL=
12869 PERL_O=rxvtperl.o
12870 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12871 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12872 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12873 else
12874 support_perl=no
12875 echo "$as_me:$LINENO: result: no, unable to link" >&5
12876echo "${ECHO_T}no, unable to link" >&6
12877 fi
12878 else
12879 { { echo "$as_me:$LINENO: error: no working perl found" >&5
12880echo "$as_me: error: no working perl found" >&2;}
12881 { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; }
12882 support_perl=no
12883 fi
12884fi
12885
12886
12887
12888
12889
12890
12891
12892if test x$support_perl = xyes; then
12893 support_frills=yes
12894fi
12895
12896
12897CFLAGS=${CFLAGS--O}
12898LDFLAGS=${LDFLAGS--O}
12899
12900CPPFLAGS="$CPPFLAGS"
12901
12902
12903
12904
12905
12906
12907
12908if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12909 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12910 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12911 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12912 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12913 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12914fi
12915
12916
12917
12918
12919
12920test "$program_prefix" != NONE &&
12921 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12922# Use a double $ so make ignores it.
12923test "$program_suffix" != NONE &&
12924 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12925# Double any \ or $. echo might interpret backslashes.
12926# By default was `s,x,x', remove it if useless.
12927cat <<\_ACEOF >conftest.sed
12928s/[\\$]/&&/g;s/;s,x,x,$//
12929_ACEOF
12930program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12931rm conftest.sed
12932
12933
12934
12935
12936
12937if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12938 include_stdint_h="#include <stdint.h>"
12939else
12940 include_stdint_h="/* #include <stdint.h> */"
12941fi
12942if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12943 include_stdarg_h="#include <cstdarg>"
12944else
12945 include_stdarg_h="/* #include <cstdarg> */"
12946fi
12947if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12948 include_stdlib_h="#include <cstdlib>"
12949else
12950 include_stdlib_h="/* #include <cstdlib> */"
12951fi
12952if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12953 include_unistd_h="#include <unistd.h>"
12954else
12955 include_unistd_h="/* #include <unistd.h> */"
12956fi
12957if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12958 include_string_h="#include <cstring>"
12959else
12960 include_string_h="/* #include <cstring> */"
12961fi
12962if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12963 include_fcntl_h="#include <fcntl.h>"
12964else
12965 include_fcntl_h="/* #include <fcntl.h> */"
12966fi
12967if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12968 include_util_h="#include <util.h>"
12969else
12970 include_util_h="/* #include <util.h> */"
12971fi
12972if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12973 include_assert_h="#include <assert.h>"
12974else
12975 include_assert_h="/* #include <assert.h> */"
12976fi
12977if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12978 include_sys_ioctl_h="#include <sys/ioctl.h>"
12979else
12980 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12981fi
12982if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12983 include_sys_select_h="#include <sys/select.h>"
12984else
12985 include_sys_select_h="/* #include <sys/select.h> */"
12986fi
12987if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12988 include_sys_strredir_h="#include <sys/strredir.h>"
12989else
12990 include_sys_strredir_h="/* #include <sys/strredir.h> */"
12991fi
12992if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12993 include_sys_time_h="#include <sys/time.h>"
12994else
12995 include_sys_time_h="/* #include <sys/time.h> */"
12996fi
12997if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12998 include_time_h="#include <time.h>"
12999else
13000 include_time_h="/* #include <time.h> */"
13001fi
13002
17059 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13003 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
17060 13004
17061cat >confcache <<\_ACEOF 13005cat >confcache <<\_ACEOF
17062# This file is a shell script that caches the results of configure 13006# This file is a shell script that caches the results of configure
17063# tests run on this system so they can be shared between configure 13007# tests run on this system so they can be shared between configure
17064# scripts and configure runs, see configure's option --config-cache. 13008# scripts and configure runs, see configure's option --config-cache.
17581cat >>$CONFIG_STATUS <<\_ACEOF 13525cat >>$CONFIG_STATUS <<\_ACEOF
17582for ac_config_target in $ac_config_targets 13526for ac_config_target in $ac_config_targets
17583do 13527do
17584 case "$ac_config_target" in 13528 case "$ac_config_target" in
17585 # Handling of arguments. 13529 # Handling of arguments.
17586 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17587 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13530 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17588 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13531 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17589 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13532 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17590 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17591 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13533 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17592 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17593 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13534 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
17594 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13535 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17595echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13536echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17596 { (exit 1); exit 1; }; };; 13537 { (exit 1); exit 1; }; };;
17597 esac 13538 esac
17673s,@DEFS@,$DEFS,;t t 13614s,@DEFS@,$DEFS,;t t
17674s,@ECHO_C@,$ECHO_C,;t t 13615s,@ECHO_C@,$ECHO_C,;t t
17675s,@ECHO_N@,$ECHO_N,;t t 13616s,@ECHO_N@,$ECHO_N,;t t
17676s,@ECHO_T@,$ECHO_T,;t t 13617s,@ECHO_T@,$ECHO_T,;t t
17677s,@LIBS@,$LIBS,;t t 13618s,@LIBS@,$LIBS,;t t
13619s,@build@,$build,;t t
13620s,@build_cpu@,$build_cpu,;t t
13621s,@build_vendor@,$build_vendor,;t t
13622s,@build_os@,$build_os,;t t
13623s,@host@,$host,;t t
13624s,@host_cpu@,$host_cpu,;t t
13625s,@host_vendor@,$host_vendor,;t t
13626s,@host_os@,$host_os,;t t
17678s,@VERSION@,$VERSION,;t t 13627s,@VERSION@,$VERSION,;t t
17679s,@DATE@,$DATE,;t t 13628s,@DATE@,$DATE,;t t
17680s,@LSMDATE@,$LSMDATE,;t t 13629s,@LSMDATE@,$LSMDATE,;t t
17681s,@LIBVERSION@,$LIBVERSION,;t t 13630s,@LIBVERSION@,$LIBVERSION,;t t
17682s,@CC@,$CC,;t t 13631s,@CC@,$CC,;t t
17695s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13644s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17696s,@AWK@,$AWK,;t t 13645s,@AWK@,$AWK,;t t
17697s,@LINKER@,$LINKER,;t t 13646s,@LINKER@,$LINKER,;t t
17698s,@CXXCPP@,$CXXCPP,;t t 13647s,@CXXCPP@,$CXXCPP,;t t
17699s,@EGREP@,$EGREP,;t t 13648s,@EGREP@,$EGREP,;t t
17700s,@build@,$build,;t t
17701s,@build_cpu@,$build_cpu,;t t
17702s,@build_vendor@,$build_vendor,;t t
17703s,@build_os@,$build_os,;t t
17704s,@host@,$host,;t t
17705s,@host_cpu@,$host_cpu,;t t
17706s,@host_vendor@,$host_vendor,;t t
17707s,@host_os@,$host_os,;t t
17708s,@LN_S@,$LN_S,;t t
17709s,@ECHO@,$ECHO,;t t
17710s,@RANLIB@,$RANLIB,;t t
17711s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17712s,@STRIP@,$STRIP,;t t
17713s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17714s,@LIBTOOL@,$LIBTOOL,;t t
17715s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 13649s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17716s,@RXVTNAME@,$RXVTNAME,;t t 13650s,@RXVTNAME@,$RXVTNAME,;t t
17717s,@MV@,$MV,;t t 13651s,@MV@,$MV,;t t
17718s,@RM@,$RM,;t t 13652s,@RM@,$RM,;t t
17719s,@CP@,$CP,;t t 13653s,@CP@,$CP,;t t
17720s,@LN@,$LN,;t t 13654s,@LN@,$LN,;t t
17721s,@SED@,$SED,;t t 13655s,@SED@,$SED,;t t
13656s,@ECHO@,$ECHO,;t t
17722s,@CMP@,$CMP,;t t 13657s,@CMP@,$CMP,;t t
17723s,@TBL@,$TBL,;t t 13658s,@TBL@,$TBL,;t t
13659s,@TIC@,$TIC,;t t
17724s,@X_CFLAGS@,$X_CFLAGS,;t t 13660s,@X_CFLAGS@,$X_CFLAGS,;t t
17725s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 13661s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17726s,@X_LIBS@,$X_LIBS,;t t 13662s,@X_LIBS@,$X_LIBS,;t t
17727s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 13663s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17728s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 13664s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17732s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 13668s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17733s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 13669s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17734s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 13670s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17735s,@rxvt_intp_define@,$rxvt_intp_define,;t t 13671s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17736s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 13672s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13673s,@PERL@,$PERL,;t t
13674s,@PERLLIB@,$PERLLIB,;t t
13675s,@PERLFLAGS@,$PERLFLAGS,;t t
13676s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13677s,@IF_PERL@,$IF_PERL,;t t
13678s,@PERL_O@,$PERL_O,;t t
17737s,@DEBUG@,$DEBUG,;t t 13679s,@DEBUG@,$DEBUG,;t t
17738s,@DINCLUDE@,$DINCLUDE,;t t 13680s,@DINCLUDE@,$DINCLUDE,;t t
17739s,@DLIB@,$DLIB,;t t 13681s,@DLIB@,$DLIB,;t t
17740s,@include_stdint_h@,$include_stdint_h,;t t 13682s,@include_stdint_h@,$include_stdint_h,;t t
17741s,@include_stdarg_h@,$include_stdarg_h,;t t 13683s,@include_stdarg_h@,$include_stdarg_h,;t t
17750s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 13692s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
17751s,@include_sys_time_h@,$include_sys_time_h,;t t 13693s,@include_sys_time_h@,$include_sys_time_h,;t t
17752s,@include_time_h@,$include_time_h,;t t 13694s,@include_time_h@,$include_time_h,;t t
17753s,@LIBOBJS@,$LIBOBJS,;t t 13695s,@LIBOBJS@,$LIBOBJS,;t t
17754s,@LTLIBOBJS@,$LTLIBOBJS,;t t 13696s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17755/@MCOMMON@/r $MCOMMON
17756s,@MCOMMON@,,;t t
17757CEOF 13697CEOF
17758 13698
17759_ACEOF 13699_ACEOF
17760 13700
17761 cat >>$CONFIG_STATUS <<\_ACEOF 13701 cat >>$CONFIG_STATUS <<\_ACEOF
18282 utmp file: $rxvt_cv_path_utmp 14222 utmp file: $rxvt_cv_path_utmp
18283 utmpx file: $rxvt_cv_path_utmpx 14223 utmpx file: $rxvt_cv_path_utmpx
18284 wtmp file: $rxvt_cv_path_wtmp 14224 wtmp file: $rxvt_cv_path_wtmp
18285 wtmpx file: $rxvt_cv_path_wtmpx 14225 wtmpx file: $rxvt_cv_path_wtmpx
18286 lastlog file: $rxvt_cv_path_lastlog 14226 lastlog file: $rxvt_cv_path_lastlog
18287 ttys/ttytab file: $rxvt_cv_path_ttytab" 14227 ttys/ttytab file: $rxvt_cv_path_ttytab
14228 embedded perl: $support_perl"
18288 echo 14229 echo
18289fi 14230fi
18290if test x$term != x; then 14231if test x$term != x; then
18291 echo " set TERM to: $term" 14232 echo " set TERM to: $term"
18292fi 14233fi
18321 echo ". functions could not be found. ." 14262 echo ". functions could not be found. ."
18322 echo ". XIM is now being DISABLED! ." 14263 echo ". XIM is now being DISABLED! ."
18323 echo ".----------------------------------------------------------------." 14264 echo ".----------------------------------------------------------------."
18324fi 14265fi
18325 14266
18326echo " *** Please check src/feature.h for further options ***" 14267echo " *** Optionally check src/feature.h for further options ***"
18327echo 14268echo
18328 14269
18329echo ".----------------------------------------------------------------." 14270echo ".----------------------------------------------------------------."
18330echo ". NOTE: most features are disabled by default, try ." 14271echo ". NOTE: some features are disabled by default, try ."
18331echo ". configure --help to get an idea of the optional features ." 14272echo ". configure --help to get an idea of the optional features, ."
14273echo ". or read ./README.configure ."
14274echo ". ."
14275echo ". The script ./reconf gives a reasonable baseline, try it if ."
14276echo ". you do not want to read documentation and still want some ."
14277echo ". useful features. ."
18332echo ".----------------------------------------------------------------." 14278echo ".----------------------------------------------------------------."
18333echo 14279echo
18334 14280

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines