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

Comparing rxvt-unicode/configure (file contents):
Revision 1.49 by root, Wed Feb 2 08:09:23 2005 UTC vs.
Revision 1.90 by root, Sun Jan 22 17:10:01 2006 UTC

239 239
240# CDPATH. 240# CDPATH.
241$as_unset CDPATH 241$as_unset CDPATH
242 242
243 243
244# Find the correct PATH separator. Usually this is `:', but
245# DJGPP uses `;' like DOS.
246if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
248 case X$UNAME in
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
251 esac
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case "X$ECHO" in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running ltconfig again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host. 244# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too. 246# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406 248
465#endif 307#endif
466#if HAVE_UNISTD_H 308#if HAVE_UNISTD_H
467# include <unistd.h> 309# include <unistd.h>
468#endif" 310#endif"
469 311
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED 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 DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PKG_CONFIG XFT_CONFIG PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
471ac_subst_files='MCOMMON' 313ac_subst_files=''
472 314
473# Initialize some variables set by options. 315# Initialize some variables set by options.
474ac_init_help= 316ac_init_help=
475ac_init_version=false 317ac_init_version=false
476# The variables have the same names as the options, with 318# The variables have the same names as the options, with
1021 cat <<\_ACEOF 863 cat <<\_ACEOF
1022 864
1023Optional Features: 865Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features 868 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent 869 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
1039 --enable-lastlog enable lastlog support (requires --enable-utmp) 877 --enable-lastlog enable lastlog support (requires --enable-utmp)
1040 --enable-xpm-background enable XPM background pixmaps 878 --enable-xpm-background enable XPM background pixmaps
1041 --enable-transparency enable transparent backgrounds 879 --enable-transparency enable transparent backgrounds
1042 --enable-tinting enable tinting of transparent bg 880 --enable-tinting enable tinting of transparent bg
1043 --enable-fading enable colors fading when off focus 881 --enable-fading enable colors fading when off focus
1044 --enable-menubar enable menubar
1045 --enable-rxvt-scroll enable rxvt style scrollbar 882 --enable-rxvt-scroll enable rxvt style scrollbar
1046 --enable-next-scroll enable NeXT style scrollbar 883 --enable-next-scroll enable NeXT style scrollbar
1047 --enable-xterm-scroll enable Xterm style scrollbar 884 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter
1048 --enable-plain-scroll enable plain style scrollbar 886 --enable-plain-scroll enable plain style scrollbar
1049 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1050 --enable-xim XIM (X Input Method) protocol support 887 --enable-xim XIM (X Input Method) protocol support
1051 --enable-ttygid enable tty setting to group named "tty"
1052 --disable-backspace-key disable handling of the backspace key 888 --disable-backspace-key disable handling of the backspace key
1053 --disable-delete-key disable handling of the delete key 889 --disable-delete-key disable handling of the delete key
1054 --disable-resources disable all resource checking 890 --disable-resources disable all resource checking
1055 --enable-xgetdefault enable resources via X instead of our small version
1056 --enable-8bitctrls enable 8 bit control sequences (not recommended) 891 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1057 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 892 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1058 --enable-strings enable some replacement system functions
1059 --disable-swapscreen disable swap screen support 893 --disable-swapscreen disable swap screen support
1060 --enable-iso14755 enable support for extended ISO 14755 modes 894 --enable-iso14755 enable support for extended ISO 14755 modes
1061 --enable-frills enable support for rarely used features 895 --enable-frills enable support for rarely used features
1062 --enable-24bit enable support for using 24bit visuals if available 896 --enable-24bit enable support for using 24bit visuals if available
1063 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 897 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1066 --enable-slipwheeling enable slip wheel scrolling (requires previous) 900 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1067 --enable-dmalloc enable Gray Watson's malloc - for debugging use 901 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1068 --enable-dlmalloc enable Doug Lea's malloc - for production use 902 --enable-dlmalloc enable Doug Lea's malloc - for production use
1069 NOTE: enable only one malloc package 903 NOTE: enable only one malloc package
1070 --enable-smart-resize enable smart growth/shrink behaviour 904 --enable-smart-resize enable smart growth/shrink behaviour
1071 --enable-cursor-blink enable blinking cursor
1072 --enable-text-blink enable blinking text 905 --enable-text-blink enable blinking text
1073 --enable-pointer-blank enable pointer blank when typing or inactive pointer 906 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1074 907
1075Optional Packages: 908Optional Packages:
1076 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 909 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1077 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 910 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1078 --with-gnu-ld assume the C compiler uses GNU ld default=no
1079 --with-pic try to use only PIC/non-PIC objects default=use both
1080 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 911 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1081 --with-res-name=NAME use this as default resource name (default: urxvt) 912 --with-res-name=NAME use this as default resource name (default: urxvt)
1082 --with-res-class=CLASS use this as the resource class (default: URxvt) 913 --with-res-class=CLASS use this as the resource class (default: URxvt)
1083 --with-name=NAME set the basename for the installed binaries (default: urxvt) 914 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1084 --with-term=NAME set the terminal to NAME (default: rxvt) 915 --with-term=NAME set the terminal to NAME (default: rxvt)
1537 1368
1538 1369
1539 1370
1540 1371
1541 1372
1373
1374 ac_config_headers="$ac_config_headers config.h:config.h.in"
1375
1376
1542ac_aux_dir= 1377ac_aux_dir=
1543for ac_dir in autoconf $srcdir/autoconf; do 1378for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1544 if test -f $ac_dir/install-sh; then 1379 if test -f $ac_dir/install-sh; then
1545 ac_aux_dir=$ac_dir 1380 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/install-sh -c" 1381 ac_install_sh="$ac_aux_dir/install-sh -c"
1547 break 1382 break
1548 elif test -f $ac_dir/install.sh; then 1383 elif test -f $ac_dir/install.sh; then
1554 ac_install_sh="$ac_aux_dir/shtool install -c" 1389 ac_install_sh="$ac_aux_dir/shtool install -c"
1555 break 1390 break
1556 fi 1391 fi
1557done 1392done
1558if test -z "$ac_aux_dir"; then 1393if test -z "$ac_aux_dir"; then
1559 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 1394 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1560echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} 1395echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1561 { (exit 1); exit 1; }; } 1396 { (exit 1); exit 1; }; }
1562fi 1397fi
1563ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1398ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1564ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1399ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1565ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1400ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1566
1567 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1568
1569 1401
1570# Make sure we can run config.sub. 1402# Make sure we can run config.sub.
1571$ac_config_sub sun4 >/dev/null 2>&1 || 1403$ac_config_sub sun4 >/dev/null 2>&1 ||
1572 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1404 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1573echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1405echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622 1454
1623 1455
1624 1456
1625VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1457VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1626DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1458DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1627LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1628LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1629echo "" 1459echo ""
1630echo "configuring for rxvt $VERSION" 1460echo "configuring for rxvt $VERSION"
1631echo "" 1461echo ""
1462
1463orig_CXXFLAGS="$CXXFLAGS"
1632 1464
1633 1465
1634ac_ext=c 1466ac_ext=c
1635ac_cpp='$CPP $CPPFLAGS' 1467ac_cpp='$CPP $CPPFLAGS'
1636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 3049
3218test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3050test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3219 3051
3220test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3052test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3221 3053
3222for ac_prog in gawk mawk nawk awk
3223do
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225set dummy $ac_prog; ac_word=$2
3226echo "$as_me:$LINENO: checking for $ac_word" >&5
3227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228if test "${ac_cv_prog_AWK+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
3231 if test -n "$AWK"; then
3232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3233else
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_AWK="$ac_prog"
3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3244 fi
3245done
3246done
3247 3054
3248fi
3249fi
3250AWK=$ac_cv_prog_AWK
3251if test -n "$AWK"; then
3252 echo "$as_me:$LINENO: result: $AWK" >&5
3253echo "${ECHO_T}$AWK" >&6
3254else
3255 echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257fi
3258
3259 test -n "$AWK" && break
3260done
3261
3262
3263ac_ext=c
3264ac_cpp='$CPP $CPPFLAGS'
3265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267ac_compiler_gnu=$ac_cv_c_compiler_gnu
3268
3269
3270if test -z "$orig_CXXFLAGS"; then
3271 CXXFLAGS='-O'
3272 if test x$GCC = xyes && test "x$GXX" = xyes; then
3273 CXXFLAGS="-g -O3"
3274 fi
3275 CFLAGS="$CXXFLAGS"
3276fi
3277
3278LINKER="$CXX"
3279if test x$GCC = xyes && test x$GXX = xyes; then
3280
3281echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3282echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3283if test "${ac_cv_lib_supcpp_main+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286 ac_check_lib_save_LIBS=$LIBS
3287LIBS="-lsupc++ $LIBS"
3288cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h. */
3294
3295
3296int
3297main ()
3298{
3299main ();
3300 ;
3301 return 0;
3302}
3303_ACEOF
3304rm -f conftest.$ac_objext conftest$ac_exeext
3305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3306 (eval $ac_link) 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest$ac_exeext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_cv_lib_supcpp_main=yes
3326else
3327 echo "$as_me: failed program was:" >&5
3328sed 's/^/| /' conftest.$ac_ext >&5
3329
3330ac_cv_lib_supcpp_main=no
3331fi
3332rm -f conftest.err conftest.$ac_objext \
3333 conftest$ac_exeext conftest.$ac_ext
3334LIBS=$ac_check_lib_save_LIBS
3335fi
3336echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5
3337echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6
3338if test $ac_cv_lib_supcpp_main = yes; then
3339
3340 LINKER="$CC"
3341 LIBS="$LIBS -lsupc++"
3342
3343fi
3344
3345fi
3346LINKER=$LINKER
3347
3348
3349
3350cat >>confdefs.h <<\_ACEOF
3351#define _GNU_SOURCE 1
3352_ACEOF
3353
3354
3355case $host in
3356 *-*-solaris* )
3357
3358cat >>confdefs.h <<\_ACEOF
3359#define _XOPEN_SOURCE_EXTENDED 1
3360_ACEOF
3361
3362
3363cat >>confdefs.h <<\_ACEOF
3364#define _XOPEN_SOURCE 2
3365_ACEOF
3366
3367
3368cat >>confdefs.h <<\_ACEOF
3369#define __EXTENSIONS__ 1
3370_ACEOF
3371
3372 ;;
3373esac
3374
3375
3376ac_ext=cc
3377ac_cpp='$CXXCPP $CPPFLAGS'
3378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3381
3382
3383
3384ac_ext=cc
3385ac_cpp='$CXXCPP $CPPFLAGS'
3386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3389echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3390echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3391if test -z "$CXXCPP"; then
3392 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394else
3395 # Double quotes because CXXCPP needs to be expanded
3396 for CXXCPP in "$CXX -E" "/lib/cpp"
3397 do
3398 ac_preproc_ok=false
3399for ac_cxx_preproc_warn_flag in '' yes
3400do
3401 # Use a header file that comes with gcc, so configuring glibc
3402 # with a fresh cross-compiler works.
3403 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3404 # <limits.h> exists even on freestanding compilers.
3405 # On the NeXT, cc -E runs the code through the compiler's parser,
3406 # not just through cpp. "Syntax error" is here to catch this case.
3407 cat >conftest.$ac_ext <<_ACEOF
3408/* confdefs.h. */
3409_ACEOF
3410cat confdefs.h >>conftest.$ac_ext
3411cat >>conftest.$ac_ext <<_ACEOF
3412/* end confdefs.h. */
3413#ifdef __STDC__
3414# include <limits.h>
3415#else
3416# include <assert.h>
3417#endif
3418 Syntax error
3419_ACEOF
3420if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3422 ac_status=$?
3423 grep -v '^ *+' conftest.er1 >conftest.err
3424 rm -f conftest.er1
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_cxx_preproc_warn_flag
3430 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3431 else
3432 ac_cpp_err=
3433 fi
3434else
3435 ac_cpp_err=yes
3436fi
3437if test -z "$ac_cpp_err"; then
3438 :
3439else
3440 echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 # Broken: fails on valid input.
3444continue
3445fi
3446rm -f conftest.err conftest.$ac_ext
3447
3448 # OK, works on sane cases. Now check whether non-existent headers
3449 # can be detected and how.
3450 cat >conftest.$ac_ext <<_ACEOF
3451/* confdefs.h. */
3452_ACEOF
3453cat confdefs.h >>conftest.$ac_ext
3454cat >>conftest.$ac_ext <<_ACEOF
3455/* end confdefs.h. */
3456#include <ac_nonexistent.h>
3457_ACEOF
3458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } >/dev/null; then
3466 if test -s conftest.err; then
3467 ac_cpp_err=$ac_cxx_preproc_warn_flag
3468 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3469 else
3470 ac_cpp_err=
3471 fi
3472else
3473 ac_cpp_err=yes
3474fi
3475if test -z "$ac_cpp_err"; then
3476 # Broken: success on invalid input.
3477continue
3478else
3479 echo "$as_me: failed program was:" >&5
3480sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 # Passes both tests.
3483ac_preproc_ok=:
3484break
3485fi
3486rm -f conftest.err conftest.$ac_ext
3487
3488done
3489# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3490rm -f conftest.err conftest.$ac_ext
3491if $ac_preproc_ok; then
3492 break
3493fi
3494
3495 done
3496 ac_cv_prog_CXXCPP=$CXXCPP
3497
3498fi
3499 CXXCPP=$ac_cv_prog_CXXCPP
3500else
3501 ac_cv_prog_CXXCPP=$CXXCPP
3502fi
3503echo "$as_me:$LINENO: result: $CXXCPP" >&5
3504echo "${ECHO_T}$CXXCPP" >&6
3505ac_preproc_ok=false
3506for ac_cxx_preproc_warn_flag in '' yes
3507do
3508 # Use a header file that comes with gcc, so configuring glibc
3509 # with a fresh cross-compiler works.
3510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3511 # <limits.h> exists even on freestanding compilers.
3512 # On the NeXT, cc -E runs the code through the compiler's parser,
3513 # not just through cpp. "Syntax error" is here to catch this case.
3514 cat >conftest.$ac_ext <<_ACEOF
3515/* confdefs.h. */
3516_ACEOF
3517cat confdefs.h >>conftest.$ac_ext
3518cat >>conftest.$ac_ext <<_ACEOF
3519/* end confdefs.h. */
3520#ifdef __STDC__
3521# include <limits.h>
3522#else
3523# include <assert.h>
3524#endif
3525 Syntax error
3526_ACEOF
3527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } >/dev/null; then
3535 if test -s conftest.err; then
3536 ac_cpp_err=$ac_cxx_preproc_warn_flag
3537 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3538 else
3539 ac_cpp_err=
3540 fi
3541else
3542 ac_cpp_err=yes
3543fi
3544if test -z "$ac_cpp_err"; then
3545 :
3546else
3547 echo "$as_me: failed program was:" >&5
3548sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 # Broken: fails on valid input.
3551continue
3552fi
3553rm -f conftest.err conftest.$ac_ext
3554
3555 # OK, works on sane cases. Now check whether non-existent headers
3556 # can be detected and how.
3557 cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h. */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h. */
3563#include <ac_nonexistent.h>
3564_ACEOF
3565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } >/dev/null; then
3573 if test -s conftest.err; then
3574 ac_cpp_err=$ac_cxx_preproc_warn_flag
3575 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3576 else
3577 ac_cpp_err=
3578 fi
3579else
3580 ac_cpp_err=yes
3581fi
3582if test -z "$ac_cpp_err"; then
3583 # Broken: success on invalid input.
3584continue
3585else
3586 echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589 # Passes both tests.
3590ac_preproc_ok=:
3591break
3592fi
3593rm -f conftest.err conftest.$ac_ext
3594
3595done
3596# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3597rm -f conftest.err conftest.$ac_ext
3598if $ac_preproc_ok; then
3599 :
3600else
3601 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3602See \`config.log' for more details." >&5
3603echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3604See \`config.log' for more details." >&2;}
3605 { (exit 1); exit 1; }; }
3606fi
3607
3608ac_ext=cc
3609ac_cpp='$CXXCPP $CPPFLAGS'
3610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3613 3055
3614 3056
3615echo "$as_me:$LINENO: checking for egrep" >&5 3057echo "$as_me:$LINENO: checking for egrep" >&5
3616echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3058echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3617if test "${ac_cv_prog_egrep+set}" = set; then 3059if test "${ac_cv_prog_egrep+set}" = set; then
3692 grep -v '^ *+' conftest.er1 >conftest.err 3134 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1 3135 rm -f conftest.er1
3694 cat conftest.err >&5 3136 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } && 3138 (exit $ac_status); } &&
3697 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699 (eval $ac_try) 2>&5 3141 (eval $ac_try) 2>&5
3700 ac_status=$? 3142 ac_status=$?
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; } && 3144 (exit $ac_status); }; } &&
3746 grep -v '^ *+' conftest.er1 >conftest.err 3188 grep -v '^ *+' conftest.er1 >conftest.err
3747 rm -f conftest.er1 3189 rm -f conftest.er1
3748 cat conftest.err >&5 3190 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } && 3192 (exit $ac_status); } &&
3751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' 3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5 3195 (eval $ac_try) 2>&5
3754 ac_status=$? 3196 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; } && 3198 (exit $ac_status); }; } &&
3778if test "$ac_cv_search_strerror" != no; then 3220if test "$ac_cv_search_strerror" != no; then
3779 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3221 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3780 3222
3781fi 3223fi
3782 3224
3225ac_ext=cc
3226ac_cpp='$CXXCPP $CPPFLAGS'
3227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3783 3230
3231
3232if test x$GCC = xyes && test x$GXX = xyes; then
3233 echo "$as_me:$LINENO: checking for working libsupc++" >&5
3234echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6
3235 save_CXX="$CXX"
3236 save_LIBS="$LIBS"
3237 CXX="$CC"
3238 LIBS="$LIBS -lsupc++"
3239 LINKER="$CC"
3240
3241cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */
3247struct test { }; void f() try { throw new test; } catch (...) { throw; }
3248int
3249main ()
3250{
3251
3252 ;
3253 return 0;
3254}
3255_ACEOF
3256rm -f conftest.$ac_objext conftest$ac_exeext
3257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3258 (eval $ac_link) 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; } &&
3271 { ac_try='test -s conftest$ac_exeext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 echo "$as_me:$LINENO: result: ok" >&5
3278echo "${ECHO_T}ok" >&6
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282
3283
3284 echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5
3285echo "${ECHO_T}no, making everything bigger and slower" >&6
3286 LIBS="$save_LIBS"
3287 LINKER="$save_CXX"
3288
3289
3290fi
3291rm -f conftest.err conftest.$ac_objext \
3292 conftest$ac_exeext conftest.$ac_ext
3293 CXX="$save_CXX"
3294fi
3295LINKER=$LINKER
3296
3297
3298ac_ext=cc
3299ac_cpp='$CXXCPP $CPPFLAGS'
3300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3303
3304if test -z "$orig_CXXFLAGS"; then
3305 if test x$GCC = xyes && test "x$GXX" = xyes; then
3306 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs"
3307 cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h. */
3313
3314int
3315main ()
3316{
3317
3318 ;
3319 return 0;
3320}
3321_ACEOF
3322rm -f conftest.$ac_objext
3323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>conftest.er1
3325 ac_status=$?
3326 grep -v '^ *+' conftest.er1 >conftest.err
3327 rm -f conftest.er1
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333 (eval $ac_try) 2>&5
3334 ac_status=$?
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); }; } &&
3337 { ac_try='test -s conftest.$ac_objext'
3338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339 (eval $ac_try) 2>&5
3340 ac_status=$?
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3343 :
3344else
3345 echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348CXXFLAGS="-g -O3"
3349fi
3350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3351 else
3352 CXXFLAGS="-O"
3353 fi
3354 CFLAGS="$CXXFLAGS"
3355fi
3356
3357
3358cat >>confdefs.h <<\_ACEOF
3359#define _GNU_SOURCE 1
3360_ACEOF
3361
3362
3363case $host in
3364 *-*-solaris* )
3365
3366cat >>confdefs.h <<\_ACEOF
3367#define _XOPEN_SOURCE_EXTENDED 1
3368_ACEOF
3369
3370
3371cat >>confdefs.h <<\_ACEOF
3372#define _XOPEN_SOURCE 2
3373_ACEOF
3374
3375
3376cat >>confdefs.h <<\_ACEOF
3377#define __EXTENSIONS__ 1
3378_ACEOF
3379
3380 ;;
3381esac
3382
3383
3384echo "$as_me:$LINENO: checking for setlocale" >&5
3385echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3386if test "${ac_cv_func_setlocale+set}" = set; then
3387 echo $ECHO_N "(cached) $ECHO_C" >&6
3388else
3389 cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h. */
3395/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3397#define setlocale innocuous_setlocale
3398
3399/* System header to define __stub macros and hopefully few prototypes,
3400 which can conflict with char setlocale (); below.
3401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3402 <limits.h> exists even on freestanding compilers. */
3403
3404#ifdef __STDC__
3405# include <limits.h>
3406#else
3407# include <assert.h>
3408#endif
3409
3410#undef setlocale
3411
3412/* Override any gcc2 internal prototype to avoid an error. */
3413#ifdef __cplusplus
3414extern "C"
3415{
3416#endif
3417/* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3419char setlocale ();
3420/* The GNU C library defines this for functions which it implements
3421 to always fail with ENOSYS. Some functions are actually named
3422 something starting with __ and the normal name is an alias. */
3423#if defined (__stub_setlocale) || defined (__stub___setlocale)
3424choke me
3425#else
3426char (*f) () = setlocale;
3427#endif
3428#ifdef __cplusplus
3429}
3430#endif
3431
3432int
3433main ()
3434{
3435return f != setlocale;
3436 ;
3437 return 0;
3438}
3439_ACEOF
3440rm -f conftest.$ac_objext conftest$ac_exeext
3441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3442 (eval $ac_link) 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } &&
3449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; } &&
3455 { ac_try='test -s conftest$ac_exeext'
3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457 (eval $ac_try) 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3461 ac_cv_func_setlocale=yes
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466ac_cv_func_setlocale=no
3467fi
3468rm -f conftest.err conftest.$ac_objext \
3469 conftest$ac_exeext conftest.$ac_ext
3470fi
3471echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3472echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3473if test $ac_cv_func_setlocale = yes; then
3474 :
3475else
3784echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 3476 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3785echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 3477echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3786if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then 3478if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6 3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else 3480else
3789 ac_check_lib_save_LIBS=$LIBS 3481 ac_check_lib_save_LIBS=$LIBS
3846echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 3538echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3847if test $ac_cv_lib_xpg4_setlocale = yes; then 3539if test $ac_cv_lib_xpg4_setlocale = yes; then
3848 LIBS="$LIBS -lxpg4" 3540 LIBS="$LIBS -lxpg4"
3849fi 3541fi
3850 3542
3543fi
3851 3544
3545
3546echo "$as_me:$LINENO: checking for gethostbyname" >&5
3547echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3548if test "${ac_cv_func_gethostbyname+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551 cat >conftest.$ac_ext <<_ACEOF
3552/* confdefs.h. */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h. */
3557/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3559#define gethostbyname innocuous_gethostbyname
3560
3561/* System header to define __stub macros and hopefully few prototypes,
3562 which can conflict with char gethostbyname (); below.
3563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3564 <limits.h> exists even on freestanding compilers. */
3565
3566#ifdef __STDC__
3567# include <limits.h>
3568#else
3569# include <assert.h>
3570#endif
3571
3572#undef gethostbyname
3573
3574/* Override any gcc2 internal prototype to avoid an error. */
3575#ifdef __cplusplus
3576extern "C"
3577{
3578#endif
3579/* We use char because int might match the return type of a gcc2
3580 builtin and then its argument prototype would still apply. */
3581char gethostbyname ();
3582/* The GNU C library defines this for functions which it implements
3583 to always fail with ENOSYS. Some functions are actually named
3584 something starting with __ and the normal name is an alias. */
3585#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3586choke me
3587#else
3588char (*f) () = gethostbyname;
3589#endif
3590#ifdef __cplusplus
3591}
3592#endif
3593
3594int
3595main ()
3596{
3597return f != gethostbyname;
3598 ;
3599 return 0;
3600}
3601_ACEOF
3602rm -f conftest.$ac_objext conftest$ac_exeext
3603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3604 (eval $ac_link) 2>conftest.er1
3605 ac_status=$?
3606 grep -v '^ *+' conftest.er1 >conftest.err
3607 rm -f conftest.er1
3608 cat conftest.err >&5
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); } &&
3611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; } &&
3617 { ac_try='test -s conftest$ac_exeext'
3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619 (eval $ac_try) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); }; }; then
3623 ac_cv_func_gethostbyname=yes
3624else
3625 echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628ac_cv_func_gethostbyname=no
3629fi
3630rm -f conftest.err conftest.$ac_objext \
3631 conftest$ac_exeext conftest.$ac_ext
3632fi
3633echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3634echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3635if test $ac_cv_func_gethostbyname = yes; then
3636 :
3637else
3852echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 3638 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3853echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 3639echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3854if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 3640if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6 3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3856else 3642else
3857 ac_check_lib_save_LIBS=$LIBS 3643 ac_check_lib_save_LIBS=$LIBS
3914echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 3700echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3915if test $ac_cv_lib_nsl_gethostbyname = yes; then 3701if test $ac_cv_lib_nsl_gethostbyname = yes; then
3916 LIBS="$LIBS -lnsl" 3702 LIBS="$LIBS -lnsl"
3917fi 3703fi
3918 3704
3705fi
3706
3707echo "$as_me:$LINENO: checking for socket" >&5
3708echo $ECHO_N "checking for socket... $ECHO_C" >&6
3709if test "${ac_cv_func_socket+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712 cat >conftest.$ac_ext <<_ACEOF
3713/* confdefs.h. */
3714_ACEOF
3715cat confdefs.h >>conftest.$ac_ext
3716cat >>conftest.$ac_ext <<_ACEOF
3717/* end confdefs.h. */
3718/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3720#define socket innocuous_socket
3721
3722/* System header to define __stub macros and hopefully few prototypes,
3723 which can conflict with char socket (); below.
3724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3725 <limits.h> exists even on freestanding compilers. */
3726
3727#ifdef __STDC__
3728# include <limits.h>
3729#else
3730# include <assert.h>
3731#endif
3732
3733#undef socket
3734
3735/* Override any gcc2 internal prototype to avoid an error. */
3736#ifdef __cplusplus
3737extern "C"
3738{
3739#endif
3740/* We use char because int might match the return type of a gcc2
3741 builtin and then its argument prototype would still apply. */
3742char socket ();
3743/* The GNU C library defines this for functions which it implements
3744 to always fail with ENOSYS. Some functions are actually named
3745 something starting with __ and the normal name is an alias. */
3746#if defined (__stub_socket) || defined (__stub___socket)
3747choke me
3748#else
3749char (*f) () = socket;
3750#endif
3751#ifdef __cplusplus
3752}
3753#endif
3754
3755int
3756main ()
3757{
3758return f != socket;
3759 ;
3760 return 0;
3761}
3762_ACEOF
3763rm -f conftest.$ac_objext conftest$ac_exeext
3764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3765 (eval $ac_link) 2>conftest.er1
3766 ac_status=$?
3767 grep -v '^ *+' conftest.er1 >conftest.err
3768 rm -f conftest.er1
3769 cat conftest.err >&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
3778 { ac_try='test -s conftest$ac_exeext'
3779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3780 (eval $ac_try) 2>&5
3781 ac_status=$?
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); }; }; then
3784 ac_cv_func_socket=yes
3785else
3786 echo "$as_me: failed program was:" >&5
3787sed 's/^/| /' conftest.$ac_ext >&5
3788
3789ac_cv_func_socket=no
3790fi
3791rm -f conftest.err conftest.$ac_objext \
3792 conftest$ac_exeext conftest.$ac_ext
3793fi
3794echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3795echo "${ECHO_T}$ac_cv_func_socket" >&6
3796if test $ac_cv_func_socket = yes; then
3797 :
3798else
3919echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 3799 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3920echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 3800echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3921if test "${ac_cv_lib_socket_socket+set}" = set; then 3801if test "${ac_cv_lib_socket_socket+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6 3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else 3803else
3924 ac_check_lib_save_LIBS=$LIBS 3804 ac_check_lib_save_LIBS=$LIBS
3981echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 3861echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3982if test $ac_cv_lib_socket_socket = yes; then 3862if test $ac_cv_lib_socket_socket = yes; then
3983 LIBS="$LIBS -lsocket" 3863 LIBS="$LIBS -lsocket"
3984fi 3864fi
3985 3865
3986
3987# Check whether --enable-shared or --disable-shared was given.
3988if test "${enable_shared+set}" = set; then
3989 enableval="$enable_shared"
3990 p=${PACKAGE-default}
3991case "$enableval" in
3992yes) enable_shared=yes ;;
3993no) enable_shared=no ;;
3994*)
3995 enable_shared=no
3996 # Look at the argument we got. We use all the common list separators.
3997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3998 for pkg in $enableval; do
3999 if test "X$pkg" = "X$p"; then
4000 enable_shared=yes
4001 fi
4002 done
4003 IFS="$ac_save_ifs"
4004 ;;
4005esac
4006else
4007 enable_shared=no
4008fi; # Check whether --enable-static or --disable-static was given.
4009if test "${enable_static+set}" = set; then
4010 enableval="$enable_static"
4011 p=${PACKAGE-default}
4012case "$enableval" in
4013yes) enable_static=yes ;;
4014no) enable_static=no ;;
4015*)
4016 enable_static=no
4017 # Look at the argument we got. We use all the common list separators.
4018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4019 for pkg in $enableval; do
4020 if test "X$pkg" = "X$p"; then
4021 enable_static=yes
4022 fi
4023 done
4024 IFS="$ac_save_ifs"
4025 ;;
4026esac
4027else
4028 enable_static=yes
4029fi; # Check whether --enable-fast-install or --disable-fast-install was given.
4030if test "${enable_fast_install+set}" = set; then
4031 enableval="$enable_fast_install"
4032 p=${PACKAGE-default}
4033case "$enableval" in
4034yes) enable_fast_install=yes ;;
4035no) enable_fast_install=no ;;
4036*)
4037 enable_fast_install=no
4038 # Look at the argument we got. We use all the common list separators.
4039 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4040 for pkg in $enableval; do
4041 if test "X$pkg" = "X$p"; then
4042 enable_fast_install=yes
4043 fi
4044 done
4045 IFS="$ac_save_ifs"
4046 ;;
4047esac
4048else
4049 enable_fast_install=yes
4050fi; 3866fi
4051 3867
4052# Check whether --with-gnu-ld or --without-gnu-ld was given. 3868
4053if test "${with_gnu_ld+set}" = set; then
4054 withval="$with_gnu_ld"
4055 test "$withval" = no || with_gnu_ld=yes
4056else
4057 with_gnu_ld=no
4058fi;
4059ac_prog=ld
4060if test "$GCC" = yes; then
4061 # Check if gcc -print-prog-name=ld gives a path.
4062 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4063echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4064 case $host in
4065 *-*-mingw*)
4066 # gcc leaves a trailing carriage return which upsets mingw
4067 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4068 *)
4069 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4070 esac
4071 case "$ac_prog" in
4072 # Accept absolute paths.
4073 [\\/]* | [A-Za-z]:[\\/]*)
4074 re_direlt='/[^/][^/]*/\.\./'
4075 # Canonicalize the path of ld
4076 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4077 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4078 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4079 done
4080 test -z "$LD" && LD="$ac_prog"
4081 ;;
4082 "")
4083 # If it fails, then pretend we aren't using GCC.
4084 ac_prog=ld
4085 ;;
4086 *)
4087 # If it is relative, then search for the first ld in PATH.
4088 with_gnu_ld=unknown
4089 ;;
4090 esac
4091elif test "$with_gnu_ld" = yes; then
4092 echo "$as_me:$LINENO: checking for GNU ld" >&5 3869echo "$as_me:$LINENO: checking for sched_yield" >&5
4093echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3870echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4094else
4095 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4096echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4097fi
4098if test "${lt_cv_path_LD+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100else
4101 if test -z "$LD"; then
4102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4103 for ac_dir in $PATH; do
4104 test -z "$ac_dir" && ac_dir=.
4105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4106 lt_cv_path_LD="$ac_dir/$ac_prog"
4107 # Check to see if the program is GNU ld. I'd rather use --version,
4108 # but apparently some GNU ld's only accept -v.
4109 # Break only if it was the GNU/non-GNU ld that we prefer.
4110 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4111 test "$with_gnu_ld" != no && break
4112 else
4113 test "$with_gnu_ld" != yes && break
4114 fi
4115 fi
4116 done
4117 IFS="$ac_save_ifs"
4118else
4119 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4120fi
4121fi
4122
4123LD="$lt_cv_path_LD"
4124if test -n "$LD"; then
4125 echo "$as_me:$LINENO: result: $LD" >&5
4126echo "${ECHO_T}$LD" >&6
4127else
4128 echo "$as_me:$LINENO: result: no" >&5
4129echo "${ECHO_T}no" >&6
4130fi
4131test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4132echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4133 { (exit 1); exit 1; }; }
4134echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4135echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4136if test "${lt_cv_prog_gnu_ld+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138else
4139 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4140if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4141 lt_cv_prog_gnu_ld=yes
4142else
4143 lt_cv_prog_gnu_ld=no
4144fi
4145fi
4146echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4147echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4148with_gnu_ld=$lt_cv_prog_gnu_ld
4149
4150
4151echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4152echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4153if test "${lt_cv_ld_reload_flag+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156 lt_cv_ld_reload_flag='-r'
4157fi
4158echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4159echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4160reload_flag=$lt_cv_ld_reload_flag
4161test -n "$reload_flag" && reload_flag=" $reload_flag"
4162
4163echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4164echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4165if test "${lt_cv_path_NM+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168 if test -n "$NM"; then
4169 # Let the user override the test.
4170 lt_cv_path_NM="$NM"
4171else
4172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4173 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4174 test -z "$ac_dir" && ac_dir=.
4175 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4176 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4177 # Check to see if the nm accepts a BSD-compat flag.
4178 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4179 # nm: unknown option "B" ignored
4180 # Tru64's nm complains that /dev/null is an invalid object file
4181 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4182 lt_cv_path_NM="$tmp_nm -B"
4183 break
4184 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4185 lt_cv_path_NM="$tmp_nm -p"
4186 break
4187 else
4188 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4189 continue # so that we can try to find one that supports BSD flags
4190 fi
4191 fi
4192 done
4193 IFS="$ac_save_ifs"
4194 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4195fi
4196fi
4197
4198NM="$lt_cv_path_NM"
4199echo "$as_me:$LINENO: result: $NM" >&5
4200echo "${ECHO_T}$NM" >&6
4201
4202echo "$as_me:$LINENO: checking whether ln -s works" >&5
4203echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4204LN_S=$as_ln_s
4205if test "$LN_S" = "ln -s"; then
4206 echo "$as_me:$LINENO: result: yes" >&5
4207echo "${ECHO_T}yes" >&6
4208else
4209 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4210echo "${ECHO_T}no, using $LN_S" >&6
4211fi
4212
4213echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4214echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4215if test "${lt_cv_deplibs_check_method+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4217else
4218 lt_cv_file_magic_cmd='$MAGIC_CMD'
4219lt_cv_file_magic_test_file=
4220lt_cv_deplibs_check_method='unknown'
4221# Need to set the preceding variable on all platforms that support
4222# interlibrary dependencies.
4223# 'none' -- dependencies not supported.
4224# `unknown' -- same as none, but documents that we really don't know.
4225# 'pass_all' -- all dependencies passed with no checks.
4226# 'test_compile' -- check by making test program.
4227# ['file_magic [regex]'] -- check by looking for files in library path
4228# which responds to the $file_magic_cmd with a given egrep regex.
4229# If you have `file' or equivalent on your system and you're not sure
4230# whether `pass_all' will *always* work, you probably want this one.
4231
4232case "$host_os" in
4233aix4*)
4234 lt_cv_deplibs_check_method=pass_all
4235 ;;
4236
4237beos*)
4238 lt_cv_deplibs_check_method=pass_all
4239 ;;
4240
4241bsdi4*)
4242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4243 lt_cv_file_magic_cmd='/usr/bin/file -L'
4244 lt_cv_file_magic_test_file=/shlib/libc.so
4245 ;;
4246
4247cygwin* | mingw* | pw32*)
4248 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4249 lt_cv_file_magic_cmd='$OBJDUMP -f'
4250 ;;
4251
4252darwin*|rhapsody*)
4253 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4254 lt_cv_file_magiic_cmd=/usr/bin/file
4255 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4256 ;;
4257
4258freebsd*)
4259 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4260 case "$host_cpu" in
4261 i*86 )
4262 # Not sure whether the presence of OpenBSD here was a mistake.
4263 # Let's accept both of them until this is cleared up.
4264 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4265 lt_cv_file_magic_cmd=/usr/bin/file
4266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4267 ;;
4268 esac
4269 else
4270 lt_cv_deplibs_check_method=pass_all
4271 fi
4272 ;;
4273
4274gnu*)
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277
4278hpux10.20*|hpux11*)
4279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4280 lt_cv_file_magic_cmd=/usr/bin/file
4281 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4282 ;;
4283
4284irix5* | irix6*)
4285 case "$host_os" in
4286 irix5*)
4287 # this will be overridden with pass_all, but let us keep it just in case
4288 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4289 ;;
4290 *)
4291 case "$LD" in
4292 *-32|*"-32 ") libmagic=32-bit;;
4293 *-n32|*"-n32 ") libmagic=N32;;
4294 *-64|*"-64 ") libmagic=64-bit;;
4295 *) libmagic=never-match;;
4296 esac
4297 # this will be overridden with pass_all, but let us keep it just in case
4298 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4299 ;;
4300 esac
4301 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4302 lt_cv_deplibs_check_method=pass_all
4303 ;;
4304
4305# This must be Linux ELF.
4306linux-gnu*)
4307 case "$host_cpu" in
4308 alpha* | i*86 | powerpc* | sparc* | ia64* )
4309 lt_cv_deplibs_check_method=pass_all ;;
4310 *)
4311 # glibc up to 2.1.1 does not perform some relocations on ARM
4312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4313 esac
4314 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4315 ;;
4316
4317netbsd*)
4318 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4319 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4320 else
4321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4322 fi
4323 lt_cv_file_magic_cmd='/usr/bin/file -L'
4324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4325 ;;
4326
4327newos6*)
4328 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4329 lt_cv_file_magic_cmd=/usr/bin/file
4330 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4331 ;;
4332
4333osf3* | osf4* | osf5*)
4334 # this will be overridden with pass_all, but let us keep it just in case
4335 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4336 lt_cv_file_magic_test_file=/shlib/libc.so
4337 lt_cv_deplibs_check_method=pass_all
4338 ;;
4339
4340sco3.2v5*)
4341 lt_cv_deplibs_check_method=pass_all
4342 ;;
4343
4344solaris*)
4345 lt_cv_deplibs_check_method=pass_all
4346 lt_cv_file_magic_test_file=/lib/libc.so
4347 ;;
4348
4349sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4350 case "$host_vendor" in
4351 motorola)
4352 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]'
4353 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4354 ;;
4355 ncr)
4356 lt_cv_deplibs_check_method=pass_all
4357 ;;
4358 sequent)
4359 lt_cv_file_magic_cmd='/bin/file'
4360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4361 ;;
4362 sni)
4363 lt_cv_file_magic_cmd='/bin/file'
4364 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4365 lt_cv_file_magic_test_file=/lib/libc.so
4366 ;;
4367 esac
4368 ;;
4369esac
4370
4371fi
4372echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4373echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4374file_magic_cmd=$lt_cv_file_magic_cmd
4375deplibs_check_method=$lt_cv_deplibs_check_method
4376
4377
4378
4379
4380
4381
4382
4383# Check for command to grab the raw symbol name followed by C symbol from nm.
4384echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4385echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4386if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4388else
4389
4390# These are sane defaults that work on at least a few old systems.
4391# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4392
4393# Character class describing NM global symbol codes.
4394symcode='[BCDEGRST]'
4395
4396# Regexp to match symbols that can be accessed directly from C.
4397sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4398
4399# Transform the above into a raw symbol and a C symbol.
4400symxfrm='\1 \2\3 \3'
4401
4402# Transform an extracted symbol line into a proper C declaration
4403lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4404
4405# Define system-specific variables.
4406case "$host_os" in
4407aix*)
4408 symcode='[BCDT]'
4409 ;;
4410cygwin* | mingw* | pw32*)
4411 symcode='[ABCDGISTW]'
4412 ;;
4413hpux*) # Its linker distinguishes data from code symbols
4414 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4415 ;;
4416irix*)
4417 symcode='[BCDEGRST]'
4418 ;;
4419solaris* | sysv5*)
4420 symcode='[BDT]'
4421 ;;
4422sysv4)
4423 symcode='[DFNSTU]'
4424 ;;
4425esac
4426
4427# Handle CRLF in mingw tool chain
4428opt_cr=
4429case "$host_os" in
4430mingw*)
4431 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4432 ;;
4433esac
4434
4435# If we're using GNU nm, then use its standard symbol codes.
4436if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4437 symcode='[ABCDGISTW]'
4438fi
4439
4440# Try without a prefix undercore, then with it.
4441for ac_symprfx in "" "_"; do
4442
4443 # Write the raw and C identifiers.
4444lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4445
4446 # Check to see that the pipe works correctly.
4447 pipe_works=no
4448 rm -f conftest*
4449 cat > conftest.$ac_ext <<EOF
4450#ifdef __cplusplus
4451extern "C" {
4452#endif
4453char nm_test_var;
4454void nm_test_func(){}
4455#ifdef __cplusplus
4456}
4457#endif
4458main(){nm_test_var='a';nm_test_func();return(0);}
4459EOF
4460
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>&5
4463 ac_status=$?
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; then
4466 # Now try to grab the symbols.
4467 nlist=conftest.nm
4468 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4469 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } && test -s "$nlist"; then
4473 # Try sorting and uniquifying the output.
4474 if sort "$nlist" | uniq > "$nlist"T; then
4475 mv -f "$nlist"T "$nlist"
4476 else
4477 rm -f "$nlist"T
4478 fi
4479
4480 # Make sure that we snagged all the symbols we need.
4481 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4482 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4483 cat <<EOF > conftest.$ac_ext
4484#ifdef __cplusplus
4485extern "C" {
4486#endif
4487
4488EOF
4489 # Now generate the symbol file.
4490 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4491
4492 cat <<EOF >> conftest.$ac_ext
4493#if defined (__STDC__) && __STDC__
4494# define lt_ptr_t void *
4495#else
4496# define lt_ptr_t char *
4497# define const
4498#endif
4499
4500/* The mapping between symbol names and symbols. */
4501const struct {
4502 const char *name;
4503 lt_ptr_t address;
4504}
4505lt_preloaded_symbols[] =
4506{
4507EOF
4508 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4509 cat <<\EOF >> conftest.$ac_ext
4510 {0, (lt_ptr_t) 0}
4511};
4512
4513#ifdef __cplusplus
4514}
4515#endif
4516EOF
4517 # Now try linking the two files.
4518 mv conftest.$ac_objext conftstm.$ac_objext
4519 save_LIBS="$LIBS"
4520 save_CFLAGS="$CFLAGS"
4521 LIBS="conftstm.$ac_objext"
4522 CFLAGS="$CFLAGS$no_builtin_flag"
4523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4524 (eval $ac_link) 2>&5
4525 ac_status=$?
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } && test -s conftest; then
4528 pipe_works=yes
4529 fi
4530 LIBS="$save_LIBS"
4531 CFLAGS="$save_CFLAGS"
4532 else
4533 echo "cannot find nm_test_func in $nlist" >&5
4534 fi
4535 else
4536 echo "cannot find nm_test_var in $nlist" >&5
4537 fi
4538 else
4539 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4540 fi
4541 else
4542 echo "$progname: failed program was:" >&5
4543 cat conftest.$ac_ext >&5
4544 fi
4545 rm -f conftest* conftst*
4546
4547 # Do not use the global_symbol_pipe unless it works.
4548 if test "$pipe_works" = yes; then
4549 break
4550 else
4551 lt_cv_sys_global_symbol_pipe=
4552 fi
4553done
4554
4555fi
4556
4557global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4558if test -z "$lt_cv_sys_global_symbol_pipe"; then
4559 global_symbol_to_cdecl=
4560else
4561 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4562fi
4563if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4564 echo "$as_me:$LINENO: result: failed" >&5
4565echo "${ECHO_T}failed" >&6
4566else
4567 echo "$as_me:$LINENO: result: ok" >&5
4568echo "${ECHO_T}ok" >&6
4569fi
4570
4571echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4572echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4573if test "${ac_cv_header_stdc+set}" = set; then 3871if test "${ac_cv_func_sched_yield+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6 3872 echo $ECHO_N "(cached) $ECHO_C" >&6
4575else 3873else
4576 cat >conftest.$ac_ext <<_ACEOF 3874 cat >conftest.$ac_ext <<_ACEOF
4577/* confdefs.h. */ 3875/* confdefs.h. */
4578_ACEOF 3876_ACEOF
4579cat confdefs.h >>conftest.$ac_ext 3877cat confdefs.h >>conftest.$ac_ext
4580cat >>conftest.$ac_ext <<_ACEOF 3878cat >>conftest.$ac_ext <<_ACEOF
4581/* end confdefs.h. */ 3879/* end confdefs.h. */
4582#include <stdlib.h>
4583#include <stdarg.h>
4584#include <string.h>
4585#include <float.h>
4586
4587int
4588main ()
4589{
4590
4591 ;
4592 return 0;
4593}
4594_ACEOF
4595rm -f conftest.$ac_objext
4596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597 (eval $ac_compile) 2>conftest.er1
4598 ac_status=$?
4599 grep -v '^ *+' conftest.er1 >conftest.err
4600 rm -f conftest.er1
4601 cat conftest.err >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4606 (eval $ac_try) 2>&5
4607 ac_status=$?
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612 (eval $ac_try) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_header_stdc=yes
4617else
4618 echo "$as_me: failed program was:" >&5
4619sed 's/^/| /' conftest.$ac_ext >&5
4620
4621ac_cv_header_stdc=no
4622fi
4623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4624
4625if test $ac_cv_header_stdc = yes; then
4626 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4627 cat >conftest.$ac_ext <<_ACEOF
4628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
4633#include <string.h>
4634
4635_ACEOF
4636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637 $EGREP "memchr" >/dev/null 2>&1; then
4638 :
4639else
4640 ac_cv_header_stdc=no
4641fi
4642rm -f conftest*
4643
4644fi
4645
4646if test $ac_cv_header_stdc = yes; then
4647 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4648 cat >conftest.$ac_ext <<_ACEOF
4649/* confdefs.h. */
4650_ACEOF
4651cat confdefs.h >>conftest.$ac_ext
4652cat >>conftest.$ac_ext <<_ACEOF
4653/* end confdefs.h. */
4654#include <stdlib.h>
4655
4656_ACEOF
4657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658 $EGREP "free" >/dev/null 2>&1; then
4659 :
4660else
4661 ac_cv_header_stdc=no
4662fi
4663rm -f conftest*
4664
4665fi
4666
4667if test $ac_cv_header_stdc = yes; then
4668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4669 if test "$cross_compiling" = yes; then
4670 :
4671else
4672 cat >conftest.$ac_ext <<_ACEOF
4673/* confdefs.h. */
4674_ACEOF
4675cat confdefs.h >>conftest.$ac_ext
4676cat >>conftest.$ac_ext <<_ACEOF
4677/* end confdefs.h. */
4678#include <ctype.h>
4679#if ((' ' & 0x0FF) == 0x020)
4680# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4681# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4682#else
4683# define ISLOWER(c) \
4684 (('a' <= (c) && (c) <= 'i') \
4685 || ('j' <= (c) && (c) <= 'r') \
4686 || ('s' <= (c) && (c) <= 'z'))
4687# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4688#endif
4689
4690#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4691int
4692main ()
4693{
4694 int i;
4695 for (i = 0; i < 256; i++)
4696 if (XOR (islower (i), ISLOWER (i))
4697 || toupper (i) != TOUPPER (i))
4698 exit(2);
4699 exit (0);
4700}
4701_ACEOF
4702rm -f conftest$ac_exeext
4703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4704 (eval $ac_link) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709 (eval $ac_try) 2>&5
4710 ac_status=$?
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; }; then
4713 :
4714else
4715 echo "$as_me: program exited with status $ac_status" >&5
4716echo "$as_me: failed program was:" >&5
4717sed 's/^/| /' conftest.$ac_ext >&5
4718
4719( exit $ac_status )
4720ac_cv_header_stdc=no
4721fi
4722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4723fi
4724fi
4725fi
4726echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4727echo "${ECHO_T}$ac_cv_header_stdc" >&6
4728if test $ac_cv_header_stdc = yes; then
4729
4730cat >>confdefs.h <<\_ACEOF
4731#define STDC_HEADERS 1
4732_ACEOF
4733
4734fi
4735
4736# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4747 inttypes.h stdint.h unistd.h
4748do
4749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4750echo "$as_me:$LINENO: checking for $ac_header" >&5
4751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4752if eval "test \"\${$as_ac_Header+set}\" = set"; then
4753 echo $ECHO_N "(cached) $ECHO_C" >&6
4754else
4755 cat >conftest.$ac_ext <<_ACEOF
4756/* confdefs.h. */
4757_ACEOF
4758cat confdefs.h >>conftest.$ac_ext
4759cat >>conftest.$ac_ext <<_ACEOF
4760/* end confdefs.h. */
4761$ac_includes_default
4762
4763#include <$ac_header>
4764_ACEOF
4765rm -f conftest.$ac_objext
4766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4767 (eval $ac_compile) 2>conftest.er1
4768 ac_status=$?
4769 grep -v '^ *+' conftest.er1 >conftest.err
4770 rm -f conftest.er1
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } &&
4774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4776 (eval $ac_try) 2>&5
4777 ac_status=$?
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; } &&
4780 { ac_try='test -s conftest.$ac_objext'
4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4782 (eval $ac_try) 2>&5
4783 ac_status=$?
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); }; }; then
4786 eval "$as_ac_Header=yes"
4787else
4788 echo "$as_me: failed program was:" >&5
4789sed 's/^/| /' conftest.$ac_ext >&5
4790
4791eval "$as_ac_Header=no"
4792fi
4793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4794fi
4795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4796echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4797if test `eval echo '${'$as_ac_Header'}'` = yes; then
4798 cat >>confdefs.h <<_ACEOF
4799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4800_ACEOF
4801
4802fi
4803
4804done
4805
4806
4807
4808for ac_header in dlfcn.h
4809do
4810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4811if eval "test \"\${$as_ac_Header+set}\" = set"; then
4812 echo "$as_me:$LINENO: checking for $ac_header" >&5
4813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4814if eval "test \"\${$as_ac_Header+set}\" = set"; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816fi
4817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4819else
4820 # Is the header compilable?
4821echo "$as_me:$LINENO: checking $ac_header usability" >&5
4822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4823cat >conftest.$ac_ext <<_ACEOF
4824/* confdefs.h. */
4825_ACEOF
4826cat confdefs.h >>conftest.$ac_ext
4827cat >>conftest.$ac_ext <<_ACEOF
4828/* end confdefs.h. */
4829$ac_includes_default
4830#include <$ac_header>
4831_ACEOF
4832rm -f conftest.$ac_objext
4833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>conftest.er1
4835 ac_status=$?
4836 grep -v '^ *+' conftest.er1 >conftest.err
4837 rm -f conftest.er1
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } &&
4841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843 (eval $ac_try) 2>&5
4844 ac_status=$?
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849 (eval $ac_try) 2>&5
4850 ac_status=$?
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4853 ac_header_compiler=yes
4854else
4855 echo "$as_me: failed program was:" >&5
4856sed 's/^/| /' conftest.$ac_ext >&5
4857
4858ac_header_compiler=no
4859fi
4860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4862echo "${ECHO_T}$ac_header_compiler" >&6
4863
4864# Is the header present?
4865echo "$as_me:$LINENO: checking $ac_header presence" >&5
4866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4867cat >conftest.$ac_ext <<_ACEOF
4868/* confdefs.h. */
4869_ACEOF
4870cat confdefs.h >>conftest.$ac_ext
4871cat >>conftest.$ac_ext <<_ACEOF
4872/* end confdefs.h. */
4873#include <$ac_header>
4874_ACEOF
4875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4877 ac_status=$?
4878 grep -v '^ *+' conftest.er1 >conftest.err
4879 rm -f conftest.er1
4880 cat conftest.err >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev/null; then
4883 if test -s conftest.err; then
4884 ac_cpp_err=$ac_cxx_preproc_warn_flag
4885 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4886 else
4887 ac_cpp_err=
4888 fi
4889else
4890 ac_cpp_err=yes
4891fi
4892if test -z "$ac_cpp_err"; then
4893 ac_header_preproc=yes
4894else
4895 echo "$as_me: failed program was:" >&5
4896sed 's/^/| /' conftest.$ac_ext >&5
4897
4898 ac_header_preproc=no
4899fi
4900rm -f conftest.err conftest.$ac_ext
4901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4902echo "${ECHO_T}$ac_header_preproc" >&6
4903
4904# So? What about this header?
4905case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4906 yes:no: )
4907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4911 ac_header_preproc=yes
4912 ;;
4913 no:yes:* )
4914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4921echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4926 (
4927 cat <<\_ASBOX
4928## ------------------------------------------ ##
4929## Report this to the AC_PACKAGE_NAME lists. ##
4930## ------------------------------------------ ##
4931_ASBOX
4932 ) |
4933 sed "s/^/$as_me: WARNING: /" >&2
4934 ;;
4935esac
4936echo "$as_me:$LINENO: checking for $ac_header" >&5
4937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4938if eval "test \"\${$as_ac_Header+set}\" = set"; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941 eval "$as_ac_Header=\$ac_header_preproc"
4942fi
4943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4945
4946fi
4947if test `eval echo '${'$as_ac_Header'}'` = yes; then
4948 cat >>confdefs.h <<_ACEOF
4949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4950_ACEOF
4951
4952fi
4953
4954done
4955
4956
4957
4958
4959
4960# Only perform the check for file, if the check method requires it
4961case "$deplibs_check_method" in
4962file_magic*)
4963 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4964 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4965echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4966if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4967 echo $ECHO_N "(cached) $ECHO_C" >&6
4968else
4969 case "$MAGIC_CMD" in
4970 /*)
4971 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4972 ;;
4973 ?:/*)
4974 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4975 ;;
4976 *)
4977 ac_save_MAGIC_CMD="$MAGIC_CMD"
4978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4979 ac_dummy="/usr/bin:$PATH"
4980 for ac_dir in $ac_dummy; do
4981 test -z "$ac_dir" && ac_dir=.
4982 if test -f $ac_dir/${ac_tool_prefix}file; then
4983 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4984 if test -n "$file_magic_test_file"; then
4985 case "$deplibs_check_method" in
4986 "file_magic "*)
4987 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4988 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4989 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4990 egrep "$file_magic_regex" > /dev/null; then
4991 :
4992 else
4993 cat <<EOF 1>&2
4994
4995*** Warning: the command libtool uses to detect shared libraries,
4996*** $file_magic_cmd, produces output that libtool cannot recognize.
4997*** The result is that libtool may fail to recognize shared libraries
4998*** as such. This will affect the creation of libtool libraries that
4999*** depend on shared libraries, but programs linked with such libtool
5000*** libraries will work regardless of this problem. Nevertheless, you
5001*** may want to report the problem to your system manager and/or to
5002*** bug-libtool@gnu.org
5003
5004EOF
5005 fi ;;
5006 esac
5007 fi
5008 break
5009 fi
5010 done
5011 IFS="$ac_save_ifs"
5012 MAGIC_CMD="$ac_save_MAGIC_CMD"
5013 ;;
5014esac
5015fi
5016
5017MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5018if test -n "$MAGIC_CMD"; then
5019 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5020echo "${ECHO_T}$MAGIC_CMD" >&6
5021else
5022 echo "$as_me:$LINENO: result: no" >&5
5023echo "${ECHO_T}no" >&6
5024fi
5025
5026if test -z "$lt_cv_path_MAGIC_CMD"; then
5027 if test -n "$ac_tool_prefix"; then
5028 echo "$as_me:$LINENO: checking for file" >&5
5029echo $ECHO_N "checking for file... $ECHO_C" >&6
5030if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5031 echo $ECHO_N "(cached) $ECHO_C" >&6
5032else
5033 case "$MAGIC_CMD" in
5034 /*)
5035 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5036 ;;
5037 ?:/*)
5038 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5039 ;;
5040 *)
5041 ac_save_MAGIC_CMD="$MAGIC_CMD"
5042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5043 ac_dummy="/usr/bin:$PATH"
5044 for ac_dir in $ac_dummy; do
5045 test -z "$ac_dir" && ac_dir=.
5046 if test -f $ac_dir/file; then
5047 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5048 if test -n "$file_magic_test_file"; then
5049 case "$deplibs_check_method" in
5050 "file_magic "*)
5051 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5053 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5054 egrep "$file_magic_regex" > /dev/null; then
5055 :
5056 else
5057 cat <<EOF 1>&2
5058
5059*** Warning: the command libtool uses to detect shared libraries,
5060*** $file_magic_cmd, produces output that libtool cannot recognize.
5061*** The result is that libtool may fail to recognize shared libraries
5062*** as such. This will affect the creation of libtool libraries that
5063*** depend on shared libraries, but programs linked with such libtool
5064*** libraries will work regardless of this problem. Nevertheless, you
5065*** may want to report the problem to your system manager and/or to
5066*** bug-libtool@gnu.org
5067
5068EOF
5069 fi ;;
5070 esac
5071 fi
5072 break
5073 fi
5074 done
5075 IFS="$ac_save_ifs"
5076 MAGIC_CMD="$ac_save_MAGIC_CMD"
5077 ;;
5078esac
5079fi
5080
5081MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5082if test -n "$MAGIC_CMD"; then
5083 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5084echo "${ECHO_T}$MAGIC_CMD" >&6
5085else
5086 echo "$as_me:$LINENO: result: no" >&5
5087echo "${ECHO_T}no" >&6
5088fi
5089
5090 else
5091 MAGIC_CMD=:
5092 fi
5093fi
5094
5095 fi
5096 ;;
5097esac
5098
5099if test -n "$ac_tool_prefix"; then
5100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5101set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5102echo "$as_me:$LINENO: checking for $ac_word" >&5
5103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5104if test "${ac_cv_prog_RANLIB+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106else
5107 if test -n "$RANLIB"; then
5108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5109else
5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121done
5122done
5123
5124fi
5125fi
5126RANLIB=$ac_cv_prog_RANLIB
5127if test -n "$RANLIB"; then
5128 echo "$as_me:$LINENO: result: $RANLIB" >&5
5129echo "${ECHO_T}$RANLIB" >&6
5130else
5131 echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6
5133fi
5134
5135fi
5136if test -z "$ac_cv_prog_RANLIB"; then
5137 ac_ct_RANLIB=$RANLIB
5138 # Extract the first word of "ranlib", so it can be a program name with args.
5139set dummy ranlib; ac_word=$2
5140echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 if test -n "$ac_ct_RANLIB"; then
5146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5147else
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_prog_ac_ct_RANLIB="ranlib"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159done
5160done
5161
5162 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5163fi
5164fi
5165ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5166if test -n "$ac_ct_RANLIB"; then
5167 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5168echo "${ECHO_T}$ac_ct_RANLIB" >&6
5169else
5170 echo "$as_me:$LINENO: result: no" >&5
5171echo "${ECHO_T}no" >&6
5172fi
5173
5174 RANLIB=$ac_ct_RANLIB
5175else
5176 RANLIB="$ac_cv_prog_RANLIB"
5177fi
5178
5179if test -n "$ac_tool_prefix"; then
5180 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5181set dummy ${ac_tool_prefix}strip; ac_word=$2
5182echo "$as_me:$LINENO: checking for $ac_word" >&5
5183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5184if test "${ac_cv_prog_STRIP+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186else
5187 if test -n "$STRIP"; then
5188 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5189else
5190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201done
5202done
5203
5204fi
5205fi
5206STRIP=$ac_cv_prog_STRIP
5207if test -n "$STRIP"; then
5208 echo "$as_me:$LINENO: result: $STRIP" >&5
5209echo "${ECHO_T}$STRIP" >&6
5210else
5211 echo "$as_me:$LINENO: result: no" >&5
5212echo "${ECHO_T}no" >&6
5213fi
5214
5215fi
5216if test -z "$ac_cv_prog_STRIP"; then
5217 ac_ct_STRIP=$STRIP
5218 # Extract the first word of "strip", so it can be a program name with args.
5219set dummy strip; ac_word=$2
5220echo "$as_me:$LINENO: checking for $ac_word" >&5
5221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 if test -n "$ac_ct_STRIP"; then
5226 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5227else
5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_ac_ct_STRIP="strip"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239done
5240done
5241
5242 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5243fi
5244fi
5245ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5246if test -n "$ac_ct_STRIP"; then
5247 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5248echo "${ECHO_T}$ac_ct_STRIP" >&6
5249else
5250 echo "$as_me:$LINENO: result: no" >&5
5251echo "${ECHO_T}no" >&6
5252fi
5253
5254 STRIP=$ac_ct_STRIP
5255else
5256 STRIP="$ac_cv_prog_STRIP"
5257fi
5258
5259
5260enable_dlopen=no
5261enable_win32_dll=no
5262
5263# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5264if test "${enable_libtool_lock+set}" = set; then
5265 enableval="$enable_libtool_lock"
5266
5267fi;
5268test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5269
5270# Some flags need to be propagated to the compiler or linker for good
5271# libtool support.
5272case "$host" in
5273*-*-irix6*)
5274 # Find out which ABI we are using.
5275 echo '#line 5275 "configure"' > conftest.$ac_ext
5276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5277 (eval $ac_compile) 2>&5
5278 ac_status=$?
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; then
5281 case "`/usr/bin/file conftest.$ac_objext`" in
5282 *32-bit*)
5283 LD="${LD-ld} -32"
5284 ;;
5285 *N32*)
5286 LD="${LD-ld} -n32"
5287 ;;
5288 *64-bit*)
5289 LD="${LD-ld} -64"
5290 ;;
5291 esac
5292 fi
5293 rm -rf conftest*
5294 ;;
5295
5296*-*-sco3.2v5*)
5297 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5298 SAVE_CFLAGS="$CFLAGS"
5299 CFLAGS="$CFLAGS -belf"
5300 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5301echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5302if test "${lt_cv_cc_needs_belf+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
5305
5306
5307 ac_ext=c
5308ac_cpp='$CPP $CPPFLAGS'
5309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312
5313 cat >conftest.$ac_ext <<_ACEOF
5314/* confdefs.h. */
5315_ACEOF
5316cat confdefs.h >>conftest.$ac_ext
5317cat >>conftest.$ac_ext <<_ACEOF
5318/* end confdefs.h. */
5319
5320int
5321main ()
5322{
5323
5324 ;
5325 return 0;
5326}
5327_ACEOF
5328rm -f conftest.$ac_objext conftest$ac_exeext
5329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5330 (eval $ac_link) 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 (eval $ac_try) 2>&5
5340 ac_status=$?
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; } &&
5343 { ac_try='test -s conftest$ac_exeext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5349 lt_cv_cc_needs_belf=yes
5350else
5351 echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354lt_cv_cc_needs_belf=no
5355fi
5356rm -f conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5358 ac_ext=cc
5359ac_cpp='$CXXCPP $CPPFLAGS'
5360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5363
5364fi
5365echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5366echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5367 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5368 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5369 CFLAGS="$SAVE_CFLAGS"
5370 fi
5371 ;;
5372
5373
5374esac
5375
5376# Sed substitution that helps us do robust quoting. It backslashifies
5377# metacharacters that are still active within double-quoted strings.
5378Xsed='sed -e s/^X//'
5379sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5380
5381# Same as above, but do not quote variable references.
5382double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5383
5384# Sed substitution to delay expansion of an escaped shell variable in a
5385# double_quote_subst'ed string.
5386delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5387
5388# Constants:
5389rm="rm -f"
5390
5391# Global variables:
5392default_ofile=libtool
5393can_build_shared=yes
5394
5395# All known linkers require a `.a' archive for static linking (except M$VC,
5396# which needs '.lib').
5397libext=a
5398ltmain="$ac_aux_dir/ltmain.sh"
5399ofile="$default_ofile"
5400with_gnu_ld="$lt_cv_prog_gnu_ld"
5401need_locks="$enable_libtool_lock"
5402
5403old_CC="$CC"
5404old_CFLAGS="$CFLAGS"
5405
5406# Set sane defaults for various variables
5407test -z "$AR" && AR=ar
5408test -z "$AR_FLAGS" && AR_FLAGS=cru
5409test -z "$AS" && AS=as
5410test -z "$CC" && CC=cc
5411test -z "$DLLTOOL" && DLLTOOL=dlltool
5412test -z "$LD" && LD=ld
5413test -z "$LN_S" && LN_S="ln -s"
5414test -z "$MAGIC_CMD" && MAGIC_CMD=file
5415test -z "$NM" && NM=nm
5416test -z "$OBJDUMP" && OBJDUMP=objdump
5417test -z "$RANLIB" && RANLIB=:
5418test -z "$STRIP" && STRIP=:
5419test -z "$ac_objext" && ac_objext=o
5420
5421if test x"$host" != x"$build"; then
5422 ac_tool_prefix=${host_alias}-
5423else
5424 ac_tool_prefix=
5425fi
5426
5427# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5428case "$host_os" in
5429linux-gnu*) ;;
5430linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5431esac
5432
5433case "$host_os" in
5434aix3*)
5435 # AIX sometimes has problems with the GCC collect2 program. For some
5436 # reason, if we set the COLLECT_NAMES environment variable, the problems
5437 # vanish in a puff of smoke.
5438 if test "X${COLLECT_NAMES+set}" != Xset; then
5439 COLLECT_NAMES=
5440 export COLLECT_NAMES
5441 fi
5442 ;;
5443esac
5444
5445# Determine commands to create old-style static archives.
5446old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5447old_postinstall_cmds='chmod 644 $oldlib'
5448old_postuninstall_cmds=
5449
5450if test -n "$RANLIB"; then
5451 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5452 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5453fi
5454
5455# Allow CC to be a program name with arguments.
5456set dummy $CC
5457compiler="$2"
5458
5459## FIXME: this should be a separate macro
5460##
5461echo "$as_me:$LINENO: checking for objdir" >&5
5462echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5463rm -f .libs 2>/dev/null
5464mkdir .libs 2>/dev/null
5465if test -d .libs; then
5466 objdir=.libs
5467else
5468 # MS-DOS does not allow filenames that begin with a dot.
5469 objdir=_libs
5470fi
5471rmdir .libs 2>/dev/null
5472echo "$as_me:$LINENO: result: $objdir" >&5
5473echo "${ECHO_T}$objdir" >&6
5474##
5475## END FIXME
5476
5477
5478## FIXME: this should be a separate macro
5479##
5480
5481# Check whether --with-pic or --without-pic was given.
5482if test "${with_pic+set}" = set; then
5483 withval="$with_pic"
5484 pic_mode="$withval"
5485else
5486 pic_mode=default
5487fi;
5488test -z "$pic_mode" && pic_mode=default
5489
5490# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5491# in isolation, and that seeing it set (from the cache) indicates that
5492# the associated values are set (in the cache) correctly too.
5493echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5494echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5495if test "${lt_cv_prog_cc_pic+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497else
5498 lt_cv_prog_cc_pic=
5499 lt_cv_prog_cc_shlib=
5500 lt_cv_prog_cc_wl=
5501 lt_cv_prog_cc_static=
5502 lt_cv_prog_cc_no_builtin=
5503 lt_cv_prog_cc_can_build_shared=$can_build_shared
5504
5505 if test "$GCC" = yes; then
5506 lt_cv_prog_cc_wl='-Wl,'
5507 lt_cv_prog_cc_static='-static'
5508
5509 case "$host_os" in
5510 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5511 # PIC is the default for these OSes.
5512 ;;
5513 aix*)
5514 # Below there is a dirty hack to force normal static linking with -ldl
5515 # The problem is because libdl dynamically linked with both libc and
5516 # libC (AIX C++ library), which obviously doesn't included in libraries
5517 # list by gcc. This cause undefined symbols with -static flags.
5518 # This hack allows C programs to be linked with "-static -ldl", but
5519 # we not sure about C++ programs.
5520 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5521 ;;
5522 cygwin* | mingw* | pw32* | os2*)
5523 # This hack is so that the source file can tell whether it is being
5524 # built for inclusion in a dll (and should export symbols for example).
5525 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5526 ;;
5527 amigaos*)
5528 # FIXME: we need at least 68020 code to build shared libraries, but
5529 # adding the `-m68020' flag to GCC prevents building anything better,
5530 # like `-m68040'.
5531 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5532 ;;
5533 sysv4*MP*)
5534 if test -d /usr/nec; then
5535 lt_cv_prog_cc_pic=-Kconform_pic
5536 fi
5537 ;;
5538 *)
5539 lt_cv_prog_cc_pic='-fPIC'
5540 ;;
5541 esac
5542 else
5543 # PORTME Check for PIC flags for the system compiler.
5544 case "$host_os" in
5545 aix3* | aix4*)
5546 # All AIX code is PIC.
5547 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5548 ;;
5549
5550 hpux9* | hpux10* | hpux11*)
5551 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5552 lt_cv_prog_cc_wl='-Wl,'
5553 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5554 lt_cv_prog_cc_pic='+Z'
5555 ;;
5556
5557 irix5* | irix6*)
5558 lt_cv_prog_cc_wl='-Wl,'
5559 lt_cv_prog_cc_static='-non_shared'
5560 # PIC (with -KPIC) is the default.
5561 ;;
5562
5563 cygwin* | mingw* | pw32* | os2*)
5564 # This hack is so that the source file can tell whether it is being
5565 # built for inclusion in a dll (and should export symbols for example).
5566 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5567 ;;
5568
5569 newsos6)
5570 lt_cv_prog_cc_pic='-KPIC'
5571 lt_cv_prog_cc_static='-Bstatic'
5572 ;;
5573
5574 osf3* | osf4* | osf5*)
5575 # All OSF/1 code is PIC.
5576 lt_cv_prog_cc_wl='-Wl,'
5577 lt_cv_prog_cc_static='-non_shared'
5578 ;;
5579
5580 sco3.2v5*)
5581 lt_cv_prog_cc_pic='-Kpic'
5582 lt_cv_prog_cc_static='-dn'
5583 lt_cv_prog_cc_shlib='-belf'
5584 ;;
5585
5586 solaris*)
5587 lt_cv_prog_cc_pic='-KPIC'
5588 lt_cv_prog_cc_static='-Bstatic'
5589 lt_cv_prog_cc_wl='-Wl,'
5590 ;;
5591
5592 sunos4*)
5593 lt_cv_prog_cc_pic='-PIC'
5594 lt_cv_prog_cc_static='-Bstatic'
5595 lt_cv_prog_cc_wl='-Qoption ld '
5596 ;;
5597
5598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5599 lt_cv_prog_cc_pic='-KPIC'
5600 lt_cv_prog_cc_static='-Bstatic'
5601 if test "x$host_vendor" = xsni; then
5602 lt_cv_prog_cc_wl='-LD'
5603 else
5604 lt_cv_prog_cc_wl='-Wl,'
5605 fi
5606 ;;
5607
5608 uts4*)
5609 lt_cv_prog_cc_pic='-pic'
5610 lt_cv_prog_cc_static='-Bstatic'
5611 ;;
5612
5613 sysv4*MP*)
5614 if test -d /usr/nec ;then
5615 lt_cv_prog_cc_pic='-Kconform_pic'
5616 lt_cv_prog_cc_static='-Bstatic'
5617 fi
5618 ;;
5619
5620 *)
5621 lt_cv_prog_cc_can_build_shared=no
5622 ;;
5623 esac
5624 fi
5625
5626fi
5627
5628if test -z "$lt_cv_prog_cc_pic"; then
5629 echo "$as_me:$LINENO: result: none" >&5
5630echo "${ECHO_T}none" >&6
5631else
5632 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5633echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5634
5635 # Check to make sure the pic_flag actually works.
5636 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5637echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5638 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641 save_CFLAGS="$CFLAGS"
5642 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5643 cat >conftest.$ac_ext <<_ACEOF
5644/* confdefs.h. */
5645_ACEOF
5646cat confdefs.h >>conftest.$ac_ext
5647cat >>conftest.$ac_ext <<_ACEOF
5648/* end confdefs.h. */
5649
5650int
5651main ()
5652{
5653
5654 ;
5655 return 0;
5656}
5657_ACEOF
5658rm -f conftest.$ac_objext
5659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>conftest.er1
5661 ac_status=$?
5662 grep -v '^ *+' conftest.er1 >conftest.err
5663 rm -f conftest.er1
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5669 (eval $ac_try) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 case "$host_os" in
5680 hpux9* | hpux10* | hpux11*)
5681 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5682 # they create non-PIC objects. So, if there were any warnings, we
5683 # assume that PIC is not supported.
5684 if test -s conftest.err; then
5685 lt_cv_prog_cc_pic_works=no
5686 else
5687 lt_cv_prog_cc_pic_works=yes
5688 fi
5689 ;;
5690 *)
5691 lt_cv_prog_cc_pic_works=yes
5692 ;;
5693 esac
5694
5695else
5696 echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 lt_cv_prog_cc_pic_works=no
5700
5701fi
5702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5703 CFLAGS="$save_CFLAGS"
5704
5705fi
5706
5707
5708 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5709 lt_cv_prog_cc_pic=
5710 lt_cv_prog_cc_can_build_shared=no
5711 else
5712 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5713 fi
5714
5715 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5716echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5717fi
5718##
5719## END FIXME
5720
5721# Check for any special shared library compilation flags.
5722if test -n "$lt_cv_prog_cc_shlib"; then
5723 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5724echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5725 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5726 else
5727 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5728echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5729 lt_cv_prog_cc_can_build_shared=no
5730 fi
5731fi
5732
5733## FIXME: this should be a separate macro
5734##
5735echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5736echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5737if test "${lt_cv_prog_cc_static_works+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739else
5740 lt_cv_prog_cc_static_works=no
5741 save_LDFLAGS="$LDFLAGS"
5742 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5743 cat >conftest.$ac_ext <<_ACEOF
5744/* confdefs.h. */
5745_ACEOF
5746cat confdefs.h >>conftest.$ac_ext
5747cat >>conftest.$ac_ext <<_ACEOF
5748/* end confdefs.h. */
5749
5750int
5751main ()
5752{
5753
5754 ;
5755 return 0;
5756}
5757_ACEOF
5758rm -f conftest.$ac_objext conftest$ac_exeext
5759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5760 (eval $ac_link) 2>conftest.er1
5761 ac_status=$?
5762 grep -v '^ *+' conftest.er1 >conftest.err
5763 rm -f conftest.er1
5764 cat conftest.err >&5
5765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5766 (exit $ac_status); } &&
5767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769 (eval $ac_try) 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest$ac_exeext'
5774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 (eval $ac_try) 2>&5
5776 ac_status=$?
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5779 lt_cv_prog_cc_static_works=yes
5780else
5781 echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784fi
5785rm -f conftest.err conftest.$ac_objext \
5786 conftest$ac_exeext conftest.$ac_ext
5787 LDFLAGS="$save_LDFLAGS"
5788
5789fi
5790
5791
5792# Belt *and* braces to stop my trousers falling down:
5793test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5794echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5795echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5796
5797pic_flag="$lt_cv_prog_cc_pic"
5798special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5799wl="$lt_cv_prog_cc_wl"
5800link_static_flag="$lt_cv_prog_cc_static"
5801no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5802can_build_shared="$lt_cv_prog_cc_can_build_shared"
5803##
5804## END FIXME
5805
5806
5807## FIXME: this should be a separate macro
5808##
5809# Check to see if options -o and -c are simultaneously supported by compiler
5810echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5811echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5812$rm -r conftest 2>/dev/null
5813mkdir conftest
5814cd conftest
5815echo "int some_variable = 0;" > conftest.$ac_ext
5816mkdir out
5817# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5818# that will create temporary files in the current directory regardless of
5819# the output directory. Thus, making CWD read-only will cause this test
5820# to fail, enabling locking or at least warning the user not to do parallel
5821# builds.
5822chmod -w .
5823save_CFLAGS="$CFLAGS"
5824CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5825compiler_c_o=no
5826if { (eval echo configure:5826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5827 # The compiler can only warn and ignore the option if not recognized
5828 # So say no if there are warnings
5829 if test -s out/conftest.err; then
5830 compiler_c_o=no
5831 else
5832 compiler_c_o=yes
5833 fi
5834else
5835 # Append any errors to the config.log.
5836 cat out/conftest.err 1>&5
5837 compiler_c_o=no
5838fi
5839echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5840echo "${ECHO_T}$compiler_c_o" >&6
5841CFLAGS="$save_CFLAGS"
5842chmod u+w .
5843$rm conftest* out/*
5844rmdir out
5845cd ..
5846rmdir conftest
5847$rm -r conftest 2>/dev/null
5848
5849if test x"$compiler_c_o" = x"yes"; then
5850 # Check to see if we can write to a .lo
5851 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5852echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5853 compiler_o_lo=no
5854 save_CFLAGS="$CFLAGS"
5855 CFLAGS="$CFLAGS -c -o conftest.lo"
5856 cat >conftest.$ac_ext <<_ACEOF
5857/* confdefs.h. */
5858_ACEOF
5859cat confdefs.h >>conftest.$ac_ext
5860cat >>conftest.$ac_ext <<_ACEOF
5861/* end confdefs.h. */
5862
5863int
5864main ()
5865{
5866int some_variable = 0;
5867 ;
5868 return 0;
5869}
5870_ACEOF
5871rm -f conftest.$ac_objext
5872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5873 (eval $ac_compile) 2>conftest.er1
5874 ac_status=$?
5875 grep -v '^ *+' conftest.er1 >conftest.err
5876 rm -f conftest.er1
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } &&
5880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; } &&
5886 { ac_try='test -s conftest.$ac_objext'
5887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5888 (eval $ac_try) 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; }; then
5892 # The compiler can only warn and ignore the option if not recognized
5893 # So say no if there are warnings
5894 if test -s conftest.err; then
5895 compiler_o_lo=no
5896 else
5897 compiler_o_lo=yes
5898 fi
5899
5900else
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904fi
5905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5907echo "${ECHO_T}$compiler_c_o" >&6
5908 CFLAGS="$save_CFLAGS"
5909else
5910 compiler_o_lo=no
5911fi
5912##
5913## END FIXME
5914
5915## FIXME: this should be a separate macro
5916##
5917# Check to see if we can do hard links to lock some files if needed
5918hard_links="nottested"
5919if test "$compiler_c_o" = no && test "$need_locks" != no; then
5920 # do not overwrite the value of need_locks provided by the user
5921 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5922echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5923 hard_links=yes
5924 $rm conftest*
5925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5926 touch conftest.a
5927 ln conftest.a conftest.b 2>&5 || hard_links=no
5928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5929 echo "$as_me:$LINENO: result: $hard_links" >&5
5930echo "${ECHO_T}$hard_links" >&6
5931 if test "$hard_links" = no; then
5932 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5933echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5934 need_locks=warn
5935 fi
5936else
5937 need_locks=no
5938fi
5939##
5940## END FIXME
5941
5942## FIXME: this should be a separate macro
5943##
5944if test "$GCC" = yes; then
5945 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5946 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5947echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5948 echo "int some_variable = 0;" > conftest.$ac_ext
5949 save_CFLAGS="$CFLAGS"
5950 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5951 compiler_rtti_exceptions=no
5952 cat >conftest.$ac_ext <<_ACEOF
5953/* confdefs.h. */
5954_ACEOF
5955cat confdefs.h >>conftest.$ac_ext
5956cat >>conftest.$ac_ext <<_ACEOF
5957/* end confdefs.h. */
5958
5959int
5960main ()
5961{
5962int some_variable = 0;
5963 ;
5964 return 0;
5965}
5966_ACEOF
5967rm -f conftest.$ac_objext
5968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5969 (eval $ac_compile) 2>conftest.er1
5970 ac_status=$?
5971 grep -v '^ *+' conftest.er1 >conftest.err
5972 rm -f conftest.er1
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } &&
5976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978 (eval $ac_try) 2>&5
5979 ac_status=$?
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; } &&
5982 { ac_try='test -s conftest.$ac_objext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984 (eval $ac_try) 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 # The compiler can only warn and ignore the option if not recognized
5989 # So say no if there are warnings
5990 if test -s conftest.err; then
5991 compiler_rtti_exceptions=no
5992 else
5993 compiler_rtti_exceptions=yes
5994 fi
5995
5996else
5997 echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000fi
6001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6002 CFLAGS="$save_CFLAGS"
6003 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
6004echo "${ECHO_T}$compiler_rtti_exceptions" >&6
6005
6006 if test "$compiler_rtti_exceptions" = "yes"; then
6007 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
6008 else
6009 no_builtin_flag=' -fno-builtin'
6010 fi
6011fi
6012##
6013## END FIXME
6014
6015## FIXME: this should be a separate macro
6016##
6017# See if the linker supports building shared libraries.
6018echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
6019echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
6020
6021allow_undefined_flag=
6022no_undefined_flag=
6023need_lib_prefix=unknown
6024need_version=unknown
6025# when you set need_version to no, make sure it does not cause -set_version
6026# flags to be left without arguments
6027archive_cmds=
6028archive_expsym_cmds=
6029old_archive_from_new_cmds=
6030old_archive_from_expsyms_cmds=
6031export_dynamic_flag_spec=
6032whole_archive_flag_spec=
6033thread_safe_flag_spec=
6034hardcode_into_libs=no
6035hardcode_libdir_flag_spec=
6036hardcode_libdir_separator=
6037hardcode_direct=no
6038hardcode_minus_L=no
6039hardcode_shlibpath_var=unsupported
6040runpath_var=
6041link_all_deplibs=unknown
6042always_export_symbols=no
6043export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6044# include_expsyms should be a list of space-separated symbols to be *always*
6045# included in the symbol list
6046include_expsyms=
6047# exclude_expsyms can be an egrep regular expression of symbols to exclude
6048# it will be wrapped by ` (' and `)$', so one must not match beginning or
6049# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6050# as well as any symbol that contains `d'.
6051exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6052# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6053# platforms (ab)use it in PIC code, but their linkers get confused if
6054# the symbol is explicitly referenced. Since portable code cannot
6055# rely on this symbol name, it's probably fine to never include it in
6056# preloaded symbol tables.
6057extract_expsyms_cmds=
6058
6059case "$host_os" in
6060cygwin* | mingw* | pw32* )
6061 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6062 # When not using gcc, we currently assume that we are using
6063 # Microsoft Visual C++.
6064 if test "$GCC" != yes; then
6065 with_gnu_ld=no
6066 fi
6067 ;;
6068
6069esac
6070
6071ld_shlibs=yes
6072if test "$with_gnu_ld" = yes; then
6073 # If archive_cmds runs LD, not CC, wlarc should be empty
6074 wlarc='${wl}'
6075
6076 # See if GNU ld supports shared libraries.
6077 case "$host_os" in
6078 aix3* | aix4*)
6079 # On AIX, the GNU linker is very broken
6080 ld_shlibs=no
6081 cat <<EOF 1>&2
6082
6083*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6084*** to be unable to reliably create shared libraries on AIX.
6085*** Therefore, libtool is disabling shared libraries support. If you
6086*** really care for shared libraries, you may want to modify your PATH
6087*** so that a non-GNU linker is found, and then restart.
6088
6089EOF
6090 ;;
6091
6092 amigaos*)
6093 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)'
6094 hardcode_libdir_flag_spec='-L$libdir'
6095 hardcode_minus_L=yes
6096
6097 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6098 # that the semantics of dynamic libraries on AmigaOS, at least up
6099 # to version 4, is to share data among multiple programs linked
6100 # with the same dynamic library. Since this doesn't match the
6101 # behavior of shared libraries on other platforms, we can use
6102 # them.
6103 ld_shlibs=no
6104 ;;
6105
6106 beos*)
6107 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6108 allow_undefined_flag=unsupported
6109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6110 # support --undefined. This deserves some investigation. FIXME
6111 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6112 else
6113 ld_shlibs=no
6114 fi
6115 ;;
6116
6117 cygwin* | mingw* | pw32*)
6118 # hardcode_libdir_flag_spec is actually meaningless, as there is
6119 # no search path for DLLs.
6120 hardcode_libdir_flag_spec='-L$libdir'
6121 allow_undefined_flag=unsupported
6122 always_export_symbols=yes
6123
6124 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6125 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6126 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6127 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6128 else $CC -o impgen impgen.c ; fi)~
6129 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
6130
6131 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6132
6133 # cygwin and mingw dlls have different entry points and sets of symbols
6134 # to exclude.
6135 # FIXME: what about values for MSVC?
6136 dll_entry=__cygwin_dll_entry@12
6137 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6138 case "$host_os" in
6139 mingw*)
6140 # mingw values
6141 dll_entry=_DllMainCRTStartup@12
6142 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6143 ;;
6144 esac
6145
6146 # mingw and cygwin differ, and it's simplest to just exclude the union
6147 # of the two symbol sets.
6148 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6149
6150 # recent cygwin and mingw systems supply a stub DllMain which the user
6151 # can override, but on older systems we have to supply one (in ltdll.c)
6152 if test "x$lt_cv_need_dllmain" = "xyes"; then
6153 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6154 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~
6155 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6156 else
6157 ltdll_obj=
6158 ltdll_cmds=
6159 fi
6160
6161 # Extract the symbol export list from an `--export-all' def file,
6162 # then regenerate the def file from the symbol export list, so that
6163 # the compiled dll only exports the symbol export list.
6164 # Be careful not to strip the DATA tag left be newer dlltools.
6165 export_symbols_cmds="$ltdll_cmds"'
6166 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6167 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6168
6169 # If DATA tags from a recent dlltool are present, honour them!
6170 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
6171 _lt_hint=1;
6172 cat $export_symbols | while read symbol; do
6173 set dummy \$symbol;
6174 case \$# in
6175 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6176 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6177 esac;
6178 _lt_hint=`expr 1 + \$_lt_hint`;
6179 done~
6180 '"$ltdll_cmds"'
6181 $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~
6182 $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~
6183 $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~
6184 $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~
6185 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6186 ;;
6187
6188 netbsd*)
6189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6190 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6191 wlarc=
6192 else
6193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6194 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6195 fi
6196 ;;
6197
6198 solaris* | sysv5*)
6199 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6200 ld_shlibs=no
6201 cat <<EOF 1>&2
6202
6203*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6204*** create shared libraries on Solaris systems. Therefore, libtool
6205*** is disabling shared libraries support. We urge you to upgrade GNU
6206*** binutils to release 2.9.1 or newer. Another option is to modify
6207*** your PATH or compiler configuration so that the native linker is
6208*** used, and then restart.
6209
6210EOF
6211 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6213 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6214 else
6215 ld_shlibs=no
6216 fi
6217 ;;
6218
6219 sunos4*)
6220 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6221 wlarc=
6222 hardcode_direct=yes
6223 hardcode_shlibpath_var=no
6224 ;;
6225
6226 *)
6227 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6229 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6230 else
6231 ld_shlibs=no
6232 fi
6233 ;;
6234 esac
6235
6236 if test "$ld_shlibs" = yes; then
6237 runpath_var=LD_RUN_PATH
6238 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6239 export_dynamic_flag_spec='${wl}--export-dynamic'
6240 case $host_os in
6241 cygwin* | mingw* | pw32*)
6242 # dlltool doesn't understand --whole-archive et. al.
6243 whole_archive_flag_spec=
6244 ;;
6245 *)
6246 # ancient GNU ld didn't support --whole-archive et. al.
6247 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6248 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6249 else
6250 whole_archive_flag_spec=
6251 fi
6252 ;;
6253 esac
6254 fi
6255else
6256 # PORTME fill in a description of your system's linker (not GNU ld)
6257 case "$host_os" in
6258 aix3*)
6259 allow_undefined_flag=unsupported
6260 always_export_symbols=yes
6261 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'
6262 # Note: this linker hardcodes the directories in LIBPATH if there
6263 # are no directories specified by -L.
6264 hardcode_minus_L=yes
6265 if test "$GCC" = yes && test -z "$link_static_flag"; then
6266 # Neither direct hardcoding nor static linking is supported with a
6267 # broken collect2.
6268 hardcode_direct=unsupported
6269 fi
6270 ;;
6271
6272 aix4*)
6273 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6274 hardcode_libdir_separator=':'
6275 if test "$GCC" = yes; then
6276 collect2name=`${CC} -print-prog-name=collect2`
6277 if test -f "$collect2name" && \
6278 strings "$collect2name" | grep resolve_lib_name >/dev/null
6279 then
6280 # We have reworked collect2
6281 hardcode_direct=yes
6282 else
6283 # We have old collect2
6284 hardcode_direct=unsupported
6285 # It fails to find uninstalled libraries when the uninstalled
6286 # path is not listed in the libpath. Setting hardcode_minus_L
6287 # to unsupported forces relinking
6288 hardcode_minus_L=yes
6289 hardcode_libdir_flag_spec='-L$libdir'
6290 hardcode_libdir_separator=
6291 fi
6292 shared_flag='-shared'
6293 else
6294 shared_flag='${wl}-bM:SRE'
6295 hardcode_direct=yes
6296 fi
6297 allow_undefined_flag=' ${wl}-berok'
6298 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6299 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6300 case "$host_os" in aix4.[01]|aix4.[01].*)
6301 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6302 always_export_symbols=yes ;;
6303 esac
6304
6305 # We don't want to build shared libraries on unknown CPU types.
6306 case $host_cpu in
6307 powerpc | rs6000) ;;
6308 *) ld_shlibs=no ;;
6309 esac
6310 ;;
6311
6312 amigaos*)
6313 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)'
6314 hardcode_libdir_flag_spec='-L$libdir'
6315 hardcode_minus_L=yes
6316 # see comment about different semantics on the GNU ld section
6317 ld_shlibs=no
6318 ;;
6319
6320 cygwin* | mingw* | pw32*)
6321 # When not using gcc, we currently assume that we are using
6322 # Microsoft Visual C++.
6323 # hardcode_libdir_flag_spec is actually meaningless, as there is
6324 # no search path for DLLs.
6325 hardcode_libdir_flag_spec=' '
6326 allow_undefined_flag=unsupported
6327 # Tell ltmain to make .lib files, not .a files.
6328 libext=lib
6329 # FIXME: Setting linknames here is a bad hack.
6330 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6331 # The linker will automatically build a .lib file if we build a DLL.
6332 old_archive_from_new_cmds='true'
6333 # FIXME: Should let the user specify the lib program.
6334 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6335 fix_srcfile_path='`cygpath -w "$srcfile"`'
6336 ;;
6337
6338 darwin* | rhapsody*)
6339 allow_undefined_flag='-undefined warning'
6340 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6341 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6342 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6343 ## What we need is to hardcode the path to the library, not the search path
6344 #hardcode_direct=yes
6345 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6346 hardcode_shlibpath_var=no
6347 whole_archive_flag_spec='-all_load'
6348 ;;
6349
6350 freebsd1*)
6351 ld_shlibs=no
6352 ;;
6353
6354 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6355 # support. Future versions do this automatically, but an explicit c++rt0.o
6356 # does not break anything, and helps significantly (at the cost of a little
6357 # extra space).
6358 freebsd2.2*)
6359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6360 hardcode_libdir_flag_spec='-R$libdir'
6361 hardcode_direct=yes
6362 hardcode_shlibpath_var=no
6363 ;;
6364
6365 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6366 freebsd2*)
6367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6368 hardcode_direct=yes
6369 hardcode_minus_L=yes
6370 hardcode_shlibpath_var=no
6371 ;;
6372
6373 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6374 freebsd*)
6375 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6376 hardcode_libdir_flag_spec='-R$libdir'
6377 hardcode_direct=yes
6378 hardcode_shlibpath_var=no
6379 ;;
6380
6381 hpux9* | hpux10* | hpux11*)
6382 case "$host_os" in
6383 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' ;;
6384 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6385 esac
6386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6387 hardcode_libdir_separator=:
6388 hardcode_direct=yes
6389 hardcode_minus_L=yes # Not in the search PATH, but as the default
6390 # location of the library.
6391 export_dynamic_flag_spec='${wl}-E'
6392 ;;
6393
6394 irix5* | irix6*)
6395 if test "$GCC" = yes; then
6396 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'
6397 else
6398 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'
6399 fi
6400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6401 hardcode_libdir_separator=:
6402 link_all_deplibs=yes
6403 ;;
6404
6405 netbsd*)
6406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6407 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6408 else
6409 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6410 fi
6411 hardcode_libdir_flag_spec='-R$libdir'
6412 hardcode_direct=yes
6413 hardcode_shlibpath_var=no
6414 ;;
6415
6416 newsos6)
6417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6418 hardcode_direct=yes
6419 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6420 hardcode_libdir_separator=:
6421 hardcode_shlibpath_var=no
6422 ;;
6423
6424 openbsd*)
6425 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6426 hardcode_libdir_flag_spec='-R$libdir'
6427 hardcode_direct=yes
6428 hardcode_shlibpath_var=no
6429 ;;
6430
6431 os2*)
6432 hardcode_libdir_flag_spec='-L$libdir'
6433 hardcode_minus_L=yes
6434 allow_undefined_flag=unsupported
6435 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'
6436 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6437 ;;
6438
6439 osf3*)
6440 if test "$GCC" = yes; then
6441 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6442 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'
6443 else
6444 allow_undefined_flag=' -expect_unresolved \*'
6445 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'
6446 fi
6447 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6448 hardcode_libdir_separator=:
6449 ;;
6450
6451 osf4* | osf5*) # as osf3* with the addition of -msym flag
6452 if test "$GCC" = yes; then
6453 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6454 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'
6455 else
6456 allow_undefined_flag=' -expect_unresolved \*'
6457 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'
6458 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6459 $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'
6460 fi
6461#Both c and cxx compiler support -rpath directly
6462 hardcode_libdir_flag_spec='-rpath $libdir'
6463 hardcode_libdir_separator=:
6464 ;;
6465
6466 sco3.2v5*)
6467 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6468 hardcode_shlibpath_var=no
6469 runpath_var=LD_RUN_PATH
6470 hardcode_runpath_var=yes
6471 ;;
6472
6473 solaris*)
6474 no_undefined_flag=' -z text'
6475 # $CC -shared without GNU ld will not create a library from C++
6476 # object files and a static libstdc++, better avoid it by now
6477 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6478 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6479 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6480 hardcode_libdir_flag_spec='-R$libdir'
6481 hardcode_shlibpath_var=no
6482 case "$host_os" in
6483 solaris2.[0-5] | solaris2.[0-5].*) ;;
6484 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6485 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6486 esac
6487 link_all_deplibs=yes
6488 ;;
6489
6490 sunos4*)
6491 if test "x$host_vendor" = xsequent; then
6492 # Use $CC to link under sequent, because it throws in some extra .o
6493 # files that make .init and .fini sections work.
6494 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6495 else
6496 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6497 fi
6498 hardcode_libdir_flag_spec='-L$libdir'
6499 hardcode_direct=yes
6500 hardcode_minus_L=yes
6501 hardcode_shlibpath_var=no
6502 ;;
6503
6504 sysv4)
6505 if test "x$host_vendor" = xsno; then
6506 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6507 hardcode_direct=yes # is this really true???
6508 else
6509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6510 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6511 fi
6512 runpath_var='LD_RUN_PATH'
6513 hardcode_shlibpath_var=no
6514 ;;
6515
6516 sysv4.3*)
6517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6518 hardcode_shlibpath_var=no
6519 export_dynamic_flag_spec='-Bexport'
6520 ;;
6521
6522 sysv5*)
6523 no_undefined_flag=' -z text'
6524 # $CC -shared without GNU ld will not create a library from C++
6525 # object files and a static libstdc++, better avoid it by now
6526 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6527 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6528 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6529 hardcode_libdir_flag_spec=
6530 hardcode_shlibpath_var=no
6531 runpath_var='LD_RUN_PATH'
6532 ;;
6533
6534 uts4*)
6535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6536 hardcode_libdir_flag_spec='-L$libdir'
6537 hardcode_shlibpath_var=no
6538 ;;
6539
6540 dgux*)
6541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6542 hardcode_libdir_flag_spec='-L$libdir'
6543 hardcode_shlibpath_var=no
6544 ;;
6545
6546 sysv4*MP*)
6547 if test -d /usr/nec; then
6548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6549 hardcode_shlibpath_var=no
6550 runpath_var=LD_RUN_PATH
6551 hardcode_runpath_var=yes
6552 ld_shlibs=yes
6553 fi
6554 ;;
6555
6556 sysv4.2uw2*)
6557 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6558 hardcode_direct=yes
6559 hardcode_minus_L=no
6560 hardcode_shlibpath_var=no
6561 hardcode_runpath_var=yes
6562 runpath_var=LD_RUN_PATH
6563 ;;
6564
6565 unixware7*)
6566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6567 runpath_var='LD_RUN_PATH'
6568 hardcode_shlibpath_var=no
6569 ;;
6570
6571 *)
6572 ld_shlibs=no
6573 ;;
6574 esac
6575fi
6576echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6577echo "${ECHO_T}$ld_shlibs" >&6
6578test "$ld_shlibs" = no && can_build_shared=no
6579##
6580## END FIXME
6581
6582## FIXME: this should be a separate macro
6583##
6584# Check hardcoding attributes.
6585echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6586echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6587hardcode_action=
6588if test -n "$hardcode_libdir_flag_spec" || \
6589 test -n "$runpath_var"; then
6590
6591 # We can hardcode non-existant directories.
6592 if test "$hardcode_direct" != no &&
6593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6594 # have to relink, otherwise we might link with an installed library
6595 # when we should be linking with a yet-to-be-installed one
6596 ## test "$hardcode_shlibpath_var" != no &&
6597 test "$hardcode_minus_L" != no; then
6598 # Linking always hardcodes the temporary library directory.
6599 hardcode_action=relink
6600 else
6601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6602 hardcode_action=immediate
6603 fi
6604else
6605 # We cannot hardcode anything, or else we can only hardcode existing
6606 # directories.
6607 hardcode_action=unsupported
6608fi
6609echo "$as_me:$LINENO: result: $hardcode_action" >&5
6610echo "${ECHO_T}$hardcode_action" >&6
6611##
6612## END FIXME
6613
6614## FIXME: this should be a separate macro
6615##
6616striplib=
6617old_striplib=
6618echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6619echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6620if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6621 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6622 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
6625else
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628fi
6629##
6630## END FIXME
6631
6632reload_cmds='$LD$reload_flag -o $output$reload_objs'
6633test -z "$deplibs_check_method" && deplibs_check_method=unknown
6634
6635## FIXME: this should be a separate macro
6636##
6637# PORTME Fill in your ld.so characteristics
6638echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6639echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6640library_names_spec=
6641libname_spec='lib$name'
6642soname_spec=
6643postinstall_cmds=
6644postuninstall_cmds=
6645finish_cmds=
6646finish_eval=
6647shlibpath_var=
6648shlibpath_overrides_runpath=unknown
6649version_type=none
6650dynamic_linker="$host_os ld.so"
6651sys_lib_dlsearch_path_spec="/lib /usr/lib"
6652sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6653
6654case "$host_os" in
6655aix3*)
6656 version_type=linux
6657 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6658 shlibpath_var=LIBPATH
6659
6660 # AIX has no versioning support, so we append a major version to the name.
6661 soname_spec='${libname}${release}.so$major'
6662 ;;
6663
6664aix4*)
6665 version_type=linux
6666 # AIX has no versioning support, so currently we can not hardcode correct
6667 # soname into executable. Probably we can add versioning support to
6668 # collect2, so additional links can be useful in future.
6669 # We preserve .a as extension for shared libraries though AIX4.2
6670 # and later linker supports .so
6671 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6672 shlibpath_var=LIBPATH
6673 ;;
6674
6675amigaos*)
6676 library_names_spec='$libname.ixlibrary $libname.a'
6677 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6678 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'
6679 ;;
6680
6681beos*)
6682 library_names_spec='${libname}.so'
6683 dynamic_linker="$host_os ld.so"
6684 shlibpath_var=LIBRARY_PATH
6685 ;;
6686
6687bsdi4*)
6688 version_type=linux
6689 need_version=no
6690 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6691 soname_spec='${libname}${release}.so$major'
6692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6693 shlibpath_var=LD_LIBRARY_PATH
6694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6696 export_dynamic_flag_spec=-rdynamic
6697 # the default ld.so.conf also contains /usr/contrib/lib and
6698 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6699 # libtool to hard-code these into programs
6700 ;;
6701
6702cygwin* | mingw* | pw32*)
6703 version_type=windows
6704 need_version=no
6705 need_lib_prefix=no
6706 if test "$GCC" = yes; then
6707 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6708 else
6709 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6710 fi
6711 dynamic_linker='Win32 ld.exe'
6712 # FIXME: first we should search . and the directory the executable is in
6713 shlibpath_var=PATH
6714 ;;
6715
6716darwin* | rhapsody*)
6717 need_lib_prefix=no
6718 need_version=no
6719 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6720 shlibpath_overrides_runpath=yes
6721 shlibpath_var=DYLD_LIBRARY_PATH
6722 postinstall_cmds='chmod +x $lib'
6723 ;;
6724
6725freebsd1*)
6726 dynamic_linker=no
6727 ;;
6728
6729freebsd*)
6730 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6731 version_type=freebsd-$objformat
6732 case "$version_type" in
6733 freebsd-elf*)
6734 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6735 need_version=no
6736 need_lib_prefix=no
6737 ;;
6738 freebsd-*)
6739 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6740 need_version=yes
6741 ;;
6742 esac
6743 shlibpath_var=LD_LIBRARY_PATH
6744 case "$host_os" in
6745 freebsd2*)
6746 shlibpath_overrides_runpath=yes
6747 ;;
6748 *)
6749 shlibpath_overrides_runpath=no
6750 hardcode_into_libs=yes
6751 ;;
6752 esac
6753 ;;
6754
6755gnu*)
6756 version_type=linux
6757 need_lib_prefix=no
6758 need_version=no
6759 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6760 soname_spec='${libname}${release}.so$major'
6761 shlibpath_var=LD_LIBRARY_PATH
6762 hardcode_into_libs=yes
6763 ;;
6764
6765hpux9* | hpux10* | hpux11*)
6766 # Give a soname corresponding to the major version so that dld.sl refuses to
6767 # link against other versions.
6768 dynamic_linker="$host_os dld.sl"
6769 version_type=sunos
6770 need_lib_prefix=no
6771 need_version=no
6772 shlibpath_var=SHLIB_PATH
6773 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6774 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6775 soname_spec='${libname}${release}.sl$major'
6776 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6777 postinstall_cmds='chmod 555 $lib'
6778 ;;
6779
6780irix5* | irix6*)
6781 version_type=irix
6782 need_lib_prefix=no
6783 need_version=no
6784 soname_spec='${libname}${release}.so$major'
6785 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6786 case "$host_os" in
6787 irix5*)
6788 libsuff= shlibsuff=
6789 ;;
6790 *)
6791 case "$LD" in # libtool.m4 will add one of these switches to LD
6792 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6793 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6794 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6795 *) libsuff= shlibsuff= libmagic=never-match;;
6796 esac
6797 ;;
6798 esac
6799 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6800 shlibpath_overrides_runpath=no
6801 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6802 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6803 ;;
6804
6805# No shared lib support for Linux oldld, aout, or coff.
6806linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6807 dynamic_linker=no
6808 ;;
6809
6810# This must be Linux ELF.
6811linux-gnu*)
6812 version_type=linux
6813 need_lib_prefix=no
6814 need_version=no
6815 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6816 soname_spec='${libname}${release}.so$major'
6817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6818 shlibpath_var=LD_LIBRARY_PATH
6819 shlibpath_overrides_runpath=no
6820 # This implies no fast_install, which is unacceptable.
6821 # Some rework will be needed to allow for fast_install
6822 # before this can be enabled.
6823 hardcode_into_libs=yes
6824
6825 # We used to test for /lib/ld.so.1 and disable shared libraries on
6826 # powerpc, because MkLinux only supported shared libraries with the
6827 # GNU dynamic linker. Since this was broken with cross compilers,
6828 # most powerpc-linux boxes support dynamic linking these days and
6829 # people can always --disable-shared, the test was removed, and we
6830 # assume the GNU/Linux dynamic linker is in use.
6831 dynamic_linker='GNU/Linux ld.so'
6832 ;;
6833
6834netbsd*)
6835 version_type=sunos
6836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6837 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6839 dynamic_linker='NetBSD (a.out) ld.so'
6840 else
6841 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6842 soname_spec='${libname}${release}.so$major'
6843 dynamic_linker='NetBSD ld.elf_so'
6844 fi
6845 shlibpath_var=LD_LIBRARY_PATH
6846 shlibpath_overrides_runpath=yes
6847 hardcode_into_libs=yes
6848 ;;
6849
6850newsos6)
6851 version_type=linux
6852 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6853 shlibpath_var=LD_LIBRARY_PATH
6854 shlibpath_overrides_runpath=yes
6855 ;;
6856
6857openbsd*)
6858 version_type=sunos
6859 if test "$with_gnu_ld" = yes; then
6860 need_lib_prefix=no
6861 need_version=no
6862 fi
6863 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6865 shlibpath_var=LD_LIBRARY_PATH
6866 ;;
6867
6868os2*)
6869 libname_spec='$name'
6870 need_lib_prefix=no
6871 library_names_spec='$libname.dll $libname.a'
6872 dynamic_linker='OS/2 ld.exe'
6873 shlibpath_var=LIBPATH
6874 ;;
6875
6876osf3* | osf4* | osf5*)
6877 version_type=osf
6878 need_version=no
6879 soname_spec='${libname}${release}.so'
6880 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6881 shlibpath_var=LD_LIBRARY_PATH
6882 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6883 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6884 ;;
6885
6886sco3.2v5*)
6887 version_type=osf
6888 soname_spec='${libname}${release}.so$major'
6889 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6890 shlibpath_var=LD_LIBRARY_PATH
6891 ;;
6892
6893solaris*)
6894 version_type=linux
6895 need_lib_prefix=no
6896 need_version=no
6897 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6898 soname_spec='${libname}${release}.so$major'
6899 shlibpath_var=LD_LIBRARY_PATH
6900 shlibpath_overrides_runpath=yes
6901 hardcode_into_libs=yes
6902 # ldd complains unless libraries are executable
6903 postinstall_cmds='chmod +x $lib'
6904 ;;
6905
6906sunos4*)
6907 version_type=sunos
6908 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6909 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6910 shlibpath_var=LD_LIBRARY_PATH
6911 shlibpath_overrides_runpath=yes
6912 if test "$with_gnu_ld" = yes; then
6913 need_lib_prefix=no
6914 fi
6915 need_version=yes
6916 ;;
6917
6918sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6919 version_type=linux
6920 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6921 soname_spec='${libname}${release}.so$major'
6922 shlibpath_var=LD_LIBRARY_PATH
6923 case "$host_vendor" in
6924 sni)
6925 shlibpath_overrides_runpath=no
6926 ;;
6927 motorola)
6928 need_lib_prefix=no
6929 need_version=no
6930 shlibpath_overrides_runpath=no
6931 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6932 ;;
6933 esac
6934 ;;
6935
6936uts4*)
6937 version_type=linux
6938 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6939 soname_spec='${libname}${release}.so$major'
6940 shlibpath_var=LD_LIBRARY_PATH
6941 ;;
6942
6943dgux*)
6944 version_type=linux
6945 need_lib_prefix=no
6946 need_version=no
6947 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6948 soname_spec='${libname}${release}.so$major'
6949 shlibpath_var=LD_LIBRARY_PATH
6950 ;;
6951
6952sysv4*MP*)
6953 if test -d /usr/nec ;then
6954 version_type=linux
6955 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6956 soname_spec='$libname.so.$major'
6957 shlibpath_var=LD_LIBRARY_PATH
6958 fi
6959 ;;
6960
6961*)
6962 dynamic_linker=no
6963 ;;
6964esac
6965echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6966echo "${ECHO_T}$dynamic_linker" >&6
6967test "$dynamic_linker" = no && can_build_shared=no
6968##
6969## END FIXME
6970
6971## FIXME: this should be a separate macro
6972##
6973# Report the final consequences.
6974echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6975echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6976echo "$as_me:$LINENO: result: $can_build_shared" >&5
6977echo "${ECHO_T}$can_build_shared" >&6
6978##
6979## END FIXME
6980
6981if test "$hardcode_action" = relink; then
6982 # Fast installation is not supported
6983 enable_fast_install=no
6984elif test "$shlibpath_overrides_runpath" = yes ||
6985 test "$enable_shared" = no; then
6986 # Fast installation is not necessary
6987 enable_fast_install=needless
6988fi
6989
6990variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6991if test "$GCC" = yes; then
6992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6993fi
6994
6995if test "x$enable_dlopen" != xyes; then
6996 enable_dlopen=unknown
6997 enable_dlopen_self=unknown
6998 enable_dlopen_self_static=unknown
6999else
7000 lt_cv_dlopen=no
7001 lt_cv_dlopen_libs=
7002
7003 case "$host_os" in
7004 beos*)
7005 lt_cv_dlopen="load_add_on"
7006 lt_cv_dlopen_libs=
7007 lt_cv_dlopen_self=yes
7008 ;;
7009
7010 cygwin* | mingw* | pw32*)
7011 lt_cv_dlopen="LoadLibrary"
7012 lt_cv_dlopen_libs=
7013 ;;
7014
7015 *)
7016 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7017echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7018if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7020else
7021 ac_check_lib_save_LIBS=$LIBS
7022LIBS="-ldl $LIBS"
7023cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h. */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h. */
7029
7030/* Override any gcc2 internal prototype to avoid an error. */
7031#ifdef __cplusplus
7032extern "C"
7033#endif
7034/* We use char because int might match the return type of a gcc2
7035 builtin and then its argument prototype would still apply. */
7036char dlopen ();
7037int
7038main ()
7039{
7040dlopen ();
7041 ;
7042 return 0;
7043}
7044_ACEOF
7045rm -f conftest.$ac_objext conftest$ac_exeext
7046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047 (eval $ac_link) 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } &&
7054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; } &&
7060 { ac_try='test -s conftest$ac_exeext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 (eval $ac_try) 2>&5
7063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 ac_cv_lib_dl_dlopen=yes
7067else
7068 echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071ac_cv_lib_dl_dlopen=no
7072fi
7073rm -f conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
7075LIBS=$ac_check_lib_save_LIBS
7076fi
7077echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7078echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7079if test $ac_cv_lib_dl_dlopen = yes; then
7080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7081else
7082 echo "$as_me:$LINENO: checking for dlopen" >&5
7083echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7084if test "${ac_cv_func_dlopen+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7086else
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/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 3880/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
7094 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7095#define dlopen innocuous_dlopen 3882#define sched_yield innocuous_sched_yield
7096 3883
7097/* System header to define __stub macros and hopefully few prototypes, 3884/* System header to define __stub macros and hopefully few prototypes,
7098 which can conflict with char dlopen (); below. 3885 which can conflict with char sched_yield (); below.
7099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7100 <limits.h> exists even on freestanding compilers. */ 3887 <limits.h> exists even on freestanding compilers. */
7101 3888
7102#ifdef __STDC__ 3889#ifdef __STDC__
7103# include <limits.h> 3890# include <limits.h>
7104#else 3891#else
7105# include <assert.h> 3892# include <assert.h>
7106#endif 3893#endif
7107 3894
7108#undef dlopen 3895#undef sched_yield
7109 3896
7110/* Override any gcc2 internal prototype to avoid an error. */ 3897/* Override any gcc2 internal prototype to avoid an error. */
7111#ifdef __cplusplus 3898#ifdef __cplusplus
7112extern "C" 3899extern "C"
7113{ 3900{
7114#endif 3901#endif
7115/* We use char because int might match the return type of a gcc2 3902/* We use char because int might match the return type of a gcc2
7116 builtin and then its argument prototype would still apply. */ 3903 builtin and then its argument prototype would still apply. */
7117char dlopen (); 3904char sched_yield ();
7118/* The GNU C library defines this for functions which it implements 3905/* The GNU C library defines this for functions which it implements
7119 to always fail with ENOSYS. Some functions are actually named 3906 to always fail with ENOSYS. Some functions are actually named
7120 something starting with __ and the normal name is an alias. */ 3907 something starting with __ and the normal name is an alias. */
7121#if defined (__stub_dlopen) || defined (__stub___dlopen) 3908#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
7122choke me 3909choke me
7123#else 3910#else
7124char (*f) () = dlopen; 3911char (*f) () = sched_yield;
7125#endif 3912#endif
7126#ifdef __cplusplus 3913#ifdef __cplusplus
7127} 3914}
7128#endif 3915#endif
7129 3916
7130int 3917int
7131main () 3918main ()
7132{ 3919{
7133return f != dlopen; 3920return f != sched_yield;
7134 ; 3921 ;
7135 return 0; 3922 return 0;
7136} 3923}
7137_ACEOF 3924_ACEOF
7138rm -f conftest.$ac_objext conftest$ac_exeext 3925rm -f conftest.$ac_objext conftest$ac_exeext
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5 3942 (eval $ac_try) 2>&5
7156 ac_status=$? 3943 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; }; then 3945 (exit $ac_status); }; }; then
7159 ac_cv_func_dlopen=yes 3946 ac_cv_func_sched_yield=yes
7160else 3947else
7161 echo "$as_me: failed program was:" >&5 3948 echo "$as_me: failed program was:" >&5
7162sed 's/^/| /' conftest.$ac_ext >&5 3949sed 's/^/| /' conftest.$ac_ext >&5
7163 3950
7164ac_cv_func_dlopen=no 3951ac_cv_func_sched_yield=no
7165fi 3952fi
7166rm -f conftest.err conftest.$ac_objext \ 3953rm -f conftest.err conftest.$ac_objext \
7167 conftest$ac_exeext conftest.$ac_ext 3954 conftest$ac_exeext conftest.$ac_ext
7168fi 3955fi
7169echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 3956echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
7170echo "${ECHO_T}$ac_cv_func_dlopen" >&6 3957echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
7171if test $ac_cv_func_dlopen = yes; then 3958if test $ac_cv_func_sched_yield = yes; then
7172 lt_cv_dlopen="dlopen" 3959 :
7173else 3960else
7174 echo "$as_me:$LINENO: checking for shl_load" >&5 3961 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
7175echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 3962echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
7176if test "${ac_cv_func_shl_load+set}" = set; then 3963if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6 3964 echo $ECHO_N "(cached) $ECHO_C" >&6
7178else 3965else
7179 cat >conftest.$ac_ext <<_ACEOF
7180/* confdefs.h. */
7181_ACEOF
7182cat confdefs.h >>conftest.$ac_ext
7183cat >>conftest.$ac_ext <<_ACEOF
7184/* end confdefs.h. */
7185/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7187#define shl_load innocuous_shl_load
7188
7189/* System header to define __stub macros and hopefully few prototypes,
7190 which can conflict with char shl_load (); below.
7191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7192 <limits.h> exists even on freestanding compilers. */
7193
7194#ifdef __STDC__
7195# include <limits.h>
7196#else
7197# include <assert.h>
7198#endif
7199
7200#undef shl_load
7201
7202/* Override any gcc2 internal prototype to avoid an error. */
7203#ifdef __cplusplus
7204extern "C"
7205{
7206#endif
7207/* We use char because int might match the return type of a gcc2
7208 builtin and then its argument prototype would still apply. */
7209char shl_load ();
7210/* The GNU C library defines this for functions which it implements
7211 to always fail with ENOSYS. Some functions are actually named
7212 something starting with __ and the normal name is an alias. */
7213#if defined (__stub_shl_load) || defined (__stub___shl_load)
7214choke me
7215#else
7216char (*f) () = shl_load;
7217#endif
7218#ifdef __cplusplus
7219}
7220#endif
7221
7222int
7223main ()
7224{
7225return f != shl_load;
7226 ;
7227 return 0;
7228}
7229_ACEOF
7230rm -f conftest.$ac_objext conftest$ac_exeext
7231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7232 (eval $ac_link) 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 (eval $ac_try) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } &&
7245 { ac_try='test -s conftest$ac_exeext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 (eval $ac_try) 2>&5
7248 ac_status=$?
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7251 ac_cv_func_shl_load=yes
7252else
7253 echo "$as_me: failed program was:" >&5
7254sed 's/^/| /' conftest.$ac_ext >&5
7255
7256ac_cv_func_shl_load=no
7257fi
7258rm -f conftest.err conftest.$ac_objext \
7259 conftest$ac_exeext conftest.$ac_ext
7260fi
7261echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7262echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7263if test $ac_cv_func_shl_load = yes; then
7264 lt_cv_dlopen="shl_load"
7265else
7266 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7267echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7268if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271 ac_check_lib_save_LIBS=$LIBS 3966 ac_check_lib_save_LIBS=$LIBS
7272LIBS="-lsvld $LIBS" 3967LIBS="-lrt $LIBS"
7273cat >conftest.$ac_ext <<_ACEOF 3968cat >conftest.$ac_ext <<_ACEOF
7274/* confdefs.h. */ 3969/* confdefs.h. */
7275_ACEOF 3970_ACEOF
7276cat confdefs.h >>conftest.$ac_ext 3971cat confdefs.h >>conftest.$ac_ext
7277cat >>conftest.$ac_ext <<_ACEOF 3972cat >>conftest.$ac_ext <<_ACEOF
7281#ifdef __cplusplus 3976#ifdef __cplusplus
7282extern "C" 3977extern "C"
7283#endif 3978#endif
7284/* We use char because int might match the return type of a gcc2 3979/* We use char because int might match the return type of a gcc2
7285 builtin and then its argument prototype would still apply. */ 3980 builtin and then its argument prototype would still apply. */
7286char dlopen (); 3981char sched_yield ();
7287int 3982int
7288main () 3983main ()
7289{ 3984{
7290dlopen (); 3985sched_yield ();
7291 ; 3986 ;
7292 return 0; 3987 return 0;
7293} 3988}
7294_ACEOF 3989_ACEOF
7295rm -f conftest.$ac_objext conftest$ac_exeext 3990rm -f conftest.$ac_objext conftest$ac_exeext
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5 4007 (eval $ac_try) 2>&5
7313 ac_status=$? 4008 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; }; then 4010 (exit $ac_status); }; }; then
7316 ac_cv_lib_svld_dlopen=yes 4011 ac_cv_lib_rt_sched_yield=yes
7317else 4012else
7318 echo "$as_me: failed program was:" >&5 4013 echo "$as_me: failed program was:" >&5
7319sed 's/^/| /' conftest.$ac_ext >&5 4014sed 's/^/| /' conftest.$ac_ext >&5
7320 4015
7321ac_cv_lib_svld_dlopen=no 4016ac_cv_lib_rt_sched_yield=no
7322fi 4017fi
7323rm -f conftest.err conftest.$ac_objext \ 4018rm -f conftest.err conftest.$ac_objext \
7324 conftest$ac_exeext conftest.$ac_ext 4019 conftest$ac_exeext conftest.$ac_ext
7325LIBS=$ac_check_lib_save_LIBS 4020LIBS=$ac_check_lib_save_LIBS
7326fi 4021fi
7327echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 4022echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
7328echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 4023echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
7329if test $ac_cv_lib_svld_dlopen = yes; then 4024if test $ac_cv_lib_rt_sched_yield = yes; then
7330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 4025 LIBS="$LIBS -lrt"
7331else 4026fi
4027
4028fi
4029
4030
7332 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 4031echo "$as_me:$LINENO: checking for sched_yield support" >&5
7333echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 4032echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
7334if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337 ac_check_lib_save_LIBS=$LIBS
7338LIBS="-ldld $LIBS"
7339cat >conftest.$ac_ext <<_ACEOF 4033cat >conftest.$ac_ext <<_ACEOF
7340/* confdefs.h. */ 4034/* confdefs.h. */
7341_ACEOF 4035_ACEOF
7342cat confdefs.h >>conftest.$ac_ext 4036cat confdefs.h >>conftest.$ac_ext
7343cat >>conftest.$ac_ext <<_ACEOF 4037cat >>conftest.$ac_ext <<_ACEOF
7344/* end confdefs.h. */ 4038/* end confdefs.h. */
7345 4039#include <sched.h>
7346/* Override any gcc2 internal prototype to avoid an error. */
7347#ifdef __cplusplus
7348extern "C"
7349#endif
7350/* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7352char shl_load ();
7353int 4040int
7354main () 4041main ()
7355{ 4042{
7356shl_load (); 4043sched_yield ()
7357 ; 4044 ;
7358 return 0; 4045 return 0;
7359} 4046}
7360_ACEOF 4047_ACEOF
7361rm -f conftest.$ac_objext conftest$ac_exeext 4048rm -f conftest.$ac_objext conftest$ac_exeext
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378 (eval $ac_try) 2>&5 4065 (eval $ac_try) 2>&5
7379 ac_status=$? 4066 ac_status=$?
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; }; then 4068 (exit $ac_status); }; }; then
7382 ac_cv_lib_dld_shl_load=yes 4069 echo "$as_me:$LINENO: result: yes" >&5
4070echo "${ECHO_T}yes" >&6
4071
4072cat >>confdefs.h <<\_ACEOF
4073#define HAVE_SCHED_YIELD 1
4074_ACEOF
4075
7383else 4076else
7384 echo "$as_me: failed program was:" >&5 4077 echo "$as_me: failed program was:" >&5
7385sed 's/^/| /' conftest.$ac_ext >&5 4078sed 's/^/| /' conftest.$ac_ext >&5
7386 4079
7387ac_cv_lib_dld_shl_load=no 4080echo "$as_me:$LINENO: result: no" >&5
4081echo "${ECHO_T}no" >&6
7388fi 4082fi
7389rm -f conftest.err conftest.$ac_objext \ 4083rm -f conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext 4084 conftest$ac_exeext conftest.$ac_ext
7391LIBS=$ac_check_lib_save_LIBS
7392fi
7393echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7394echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7395if test $ac_cv_lib_dld_shl_load = yes; then
7396 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7397fi
7398
7399
7400fi
7401
7402
7403fi
7404
7405
7406fi
7407
7408
7409fi
7410
7411 ;;
7412 esac
7413
7414 if test "x$lt_cv_dlopen" != xno; then
7415 enable_dlopen=yes
7416 else
7417 enable_dlopen=no
7418 fi
7419
7420 case "$lt_cv_dlopen" in
7421 dlopen)
7422 save_CPPFLAGS="$CPP_FLAGS"
7423 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7424
7425 save_LDFLAGS="$LDFLAGS"
7426 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7427
7428 save_LIBS="$LIBS"
7429 LIBS="$lt_cv_dlopen_libs $LIBS"
7430
7431 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7432echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7433if test "${lt_cv_dlopen_self+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436 if test "$cross_compiling" = yes; then :
7437 lt_cv_dlopen_self=cross
7438else
7439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7440 lt_status=$lt_dlunknown
7441 cat > conftest.$ac_ext <<EOF
7442#line 7442 "configure"
7443#include "confdefs.h"
7444
7445#if HAVE_DLFCN_H
7446#include <dlfcn.h>
7447#endif
7448
7449#include <stdio.h>
7450
7451#ifdef RTLD_GLOBAL
7452# define LT_DLGLOBAL RTLD_GLOBAL
7453#else
7454# ifdef DL_GLOBAL
7455# define LT_DLGLOBAL DL_GLOBAL
7456# else
7457# define LT_DLGLOBAL 0
7458# endif
7459#endif
7460
7461/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7462 find out it does not work in some platform. */
7463#ifndef LT_DLLAZY_OR_NOW
7464# ifdef RTLD_LAZY
7465# define LT_DLLAZY_OR_NOW RTLD_LAZY
7466# else
7467# ifdef DL_LAZY
7468# define LT_DLLAZY_OR_NOW DL_LAZY
7469# else
7470# ifdef RTLD_NOW
7471# define LT_DLLAZY_OR_NOW RTLD_NOW
7472# else
7473# ifdef DL_NOW
7474# define LT_DLLAZY_OR_NOW DL_NOW
7475# else
7476# define LT_DLLAZY_OR_NOW 0
7477# endif
7478# endif
7479# endif
7480# endif
7481#endif
7482
7483#ifdef __cplusplus
7484extern "C" void exit (int);
7485#endif
7486
7487fnord() { int i=42;}
7488main ()
7489{
7490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7491 int status = $lt_dlunknown;
7492
7493 if (self)
7494 {
7495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7496 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7497 /* dlclose (self); */
7498 }
7499
7500 exit (status);
7501}
7502EOF
7503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7504 (eval $ac_link) 2>&5
7505 ac_status=$?
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7508 (./conftest; exit; ) 2>/dev/null
7509 lt_status=$?
7510 case x$lt_status in
7511 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7512 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7513 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7514 esac
7515 else :
7516 # compilation failed
7517 lt_cv_dlopen_self=no
7518 fi
7519fi
7520rm -fr conftest*
7521
7522
7523fi
7524echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7525echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7526
7527 if test "x$lt_cv_dlopen_self" = xyes; then
7528 LDFLAGS="$LDFLAGS $link_static_flag"
7529 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7530echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7531if test "${lt_cv_dlopen_self_static+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533else
7534 if test "$cross_compiling" = yes; then :
7535 lt_cv_dlopen_self_static=cross
7536else
7537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7538 lt_status=$lt_dlunknown
7539 cat > conftest.$ac_ext <<EOF
7540#line 7540 "configure"
7541#include "confdefs.h"
7542
7543#if HAVE_DLFCN_H
7544#include <dlfcn.h>
7545#endif
7546
7547#include <stdio.h>
7548
7549#ifdef RTLD_GLOBAL
7550# define LT_DLGLOBAL RTLD_GLOBAL
7551#else
7552# ifdef DL_GLOBAL
7553# define LT_DLGLOBAL DL_GLOBAL
7554# else
7555# define LT_DLGLOBAL 0
7556# endif
7557#endif
7558
7559/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7560 find out it does not work in some platform. */
7561#ifndef LT_DLLAZY_OR_NOW
7562# ifdef RTLD_LAZY
7563# define LT_DLLAZY_OR_NOW RTLD_LAZY
7564# else
7565# ifdef DL_LAZY
7566# define LT_DLLAZY_OR_NOW DL_LAZY
7567# else
7568# ifdef RTLD_NOW
7569# define LT_DLLAZY_OR_NOW RTLD_NOW
7570# else
7571# ifdef DL_NOW
7572# define LT_DLLAZY_OR_NOW DL_NOW
7573# else
7574# define LT_DLLAZY_OR_NOW 0
7575# endif
7576# endif
7577# endif
7578# endif
7579#endif
7580
7581#ifdef __cplusplus
7582extern "C" void exit (int);
7583#endif
7584
7585fnord() { int i=42;}
7586main ()
7587{
7588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7589 int status = $lt_dlunknown;
7590
7591 if (self)
7592 {
7593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7594 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7595 /* dlclose (self); */
7596 }
7597
7598 exit (status);
7599}
7600EOF
7601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7602 (eval $ac_link) 2>&5
7603 ac_status=$?
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7606 (./conftest; exit; ) 2>/dev/null
7607 lt_status=$?
7608 case x$lt_status in
7609 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7610 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7611 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7612 esac
7613 else :
7614 # compilation failed
7615 lt_cv_dlopen_self_static=no
7616 fi
7617fi
7618rm -fr conftest*
7619
7620
7621fi
7622echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7623echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7624 fi
7625
7626 CPPFLAGS="$save_CPPFLAGS"
7627 LDFLAGS="$save_LDFLAGS"
7628 LIBS="$save_LIBS"
7629 ;;
7630 esac
7631
7632 case "$lt_cv_dlopen_self" in
7633 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7634 *) enable_dlopen_self=unknown ;;
7635 esac
7636
7637 case "$lt_cv_dlopen_self_static" in
7638 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7639 *) enable_dlopen_self_static=unknown ;;
7640 esac
7641fi
7642
7643
7644## FIXME: this should be a separate macro
7645##
7646if test "$enable_shared" = yes && test "$GCC" = yes; then
7647 case "$archive_cmds" in
7648 *'~'*)
7649 # FIXME: we may have to deal with multi-command sequences.
7650 ;;
7651 '$CC '*)
7652 # Test whether the compiler implicitly links with -lc since on some
7653 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7654 # to ld, don't add -lc before -lgcc.
7655 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7656echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7657 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659else
7660 $rm conftest*
7661 echo 'static int dummy;' > conftest.$ac_ext
7662
7663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7664 (eval $ac_compile) 2>&5
7665 ac_status=$?
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); }; then
7668 soname=conftest
7669 lib=conftest
7670 libobjs=conftest.$ac_objext
7671 deplibs=
7672 wl=$lt_cv_prog_cc_wl
7673 compiler_flags=-v
7674 linker_flags=-v
7675 verstring=
7676 output_objdir=.
7677 libname=conftest
7678 save_allow_undefined_flag=$allow_undefined_flag
7679 allow_undefined_flag=
7680 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7681 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7682 ac_status=$?
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }
7685 then
7686 lt_cv_archive_cmds_need_lc=no
7687 else
7688 lt_cv_archive_cmds_need_lc=yes
7689 fi
7690 allow_undefined_flag=$save_allow_undefined_flag
7691 else
7692 cat conftest.err 1>&5
7693 fi
7694fi
7695
7696 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7697echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7698 ;;
7699 esac
7700fi
7701need_lc=${lt_cv_archive_cmds_need_lc-yes}
7702##
7703## END FIXME
7704
7705## FIXME: this should be a separate macro
7706##
7707# The second clause should only fire when bootstrapping the
7708# libtool distribution, otherwise you forgot to ship ltmain.sh
7709# with your package, and you will get complaints that there are
7710# no rules to generate ltmain.sh.
7711if test -f "$ltmain"; then
7712 :
7713else
7714 # If there is no Makefile yet, we rely on a make rule to execute
7715 # `config.status --recheck' to rerun these tests and create the
7716 # libtool script then.
7717 test -f Makefile && make "$ltmain"
7718fi
7719
7720if test -f "$ltmain"; then
7721 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7722 $rm -f "${ofile}T"
7723
7724 echo creating $ofile
7725
7726 # Now quote all the things that may contain metacharacters while being
7727 # careful not to overquote the AC_SUBSTed values. We take copies of the
7728 # variables and quote the copies for generation of the libtool script.
7729 for var in echo old_CC old_CFLAGS \
7730 AR AR_FLAGS CC LD LN_S NM SHELL \
7731 reload_flag reload_cmds wl \
7732 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7733 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7734 library_names_spec soname_spec \
7735 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7736 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7737 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7738 old_striplib striplib file_magic_cmd export_symbols_cmds \
7739 deplibs_check_method allow_undefined_flag no_undefined_flag \
7740 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7741 hardcode_libdir_flag_spec hardcode_libdir_separator \
7742 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7743 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7744
7745 case "$var" in
7746 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7747 old_postinstall_cmds | old_postuninstall_cmds | \
7748 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7749 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7750 postinstall_cmds | postuninstall_cmds | \
7751 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7752 # Double-quote double-evaled strings.
7753 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7754 ;;
7755 *)
7756 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7757 ;;
7758 esac
7759 done
7760
7761 cat <<__EOF__ > "${ofile}T"
7762#! $SHELL
7763
7764# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7765# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7766# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7767#
7768# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7769# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7770#
7771# This program is free software; you can redistribute it and/or modify
7772# it under the terms of the GNU General Public License as published by
7773# the Free Software Foundation; either version 2 of the License, or
7774# (at your option) any later version.
7775#
7776# This program is distributed in the hope that it will be useful, but
7777# WITHOUT ANY WARRANTY; without even the implied warranty of
7778# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7779# General Public License for more details.
7780#
7781# You should have received a copy of the GNU General Public License
7782# along with this program; if not, write to the Free Software
7783# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7784#
7785# As a special exception to the GNU General Public License, if you
7786# distribute this file as part of a program that contains a
7787# configuration script generated by Autoconf, you may include it under
7788# the same distribution terms that you use for the rest of that program.
7789
7790# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7791Xsed="sed -e s/^X//"
7792
7793# The HP-UX ksh and POSIX shell print the target directory to stdout
7794# if CDPATH is set.
7795if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7796
7797# ### BEGIN LIBTOOL CONFIG
7798
7799# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7800
7801# Shell to use when invoking shell scripts.
7802SHELL=$lt_SHELL
7803
7804# Whether or not to build shared libraries.
7805build_libtool_libs=$enable_shared
7806
7807# Whether or not to add -lc for building shared libraries.
7808build_libtool_need_lc=$need_lc
7809
7810# Whether or not to build static libraries.
7811build_old_libs=$enable_static
7812
7813# Whether or not to optimize for fast installation.
7814fast_install=$enable_fast_install
7815
7816# The host system.
7817host_alias=$host_alias
7818host=$host
7819
7820# An echo program that does not interpret backslashes.
7821echo=$lt_echo
7822
7823# The archiver.
7824AR=$lt_AR
7825AR_FLAGS=$lt_AR_FLAGS
7826
7827# The default C compiler.
7828CC=$lt_CC
7829
7830# Is the compiler the GNU C compiler?
7831with_gcc=$GCC
7832
7833# The linker used to build libraries.
7834LD=$lt_LD
7835
7836# Whether we need hard or soft links.
7837LN_S=$lt_LN_S
7838
7839# A BSD-compatible nm program.
7840NM=$lt_NM
7841
7842# A symbol stripping program
7843STRIP=$STRIP
7844
7845# Used to examine libraries when file_magic_cmd begins "file"
7846MAGIC_CMD=$MAGIC_CMD
7847
7848# Used on cygwin: DLL creation program.
7849DLLTOOL="$DLLTOOL"
7850
7851# Used on cygwin: object dumper.
7852OBJDUMP="$OBJDUMP"
7853
7854# Used on cygwin: assembler.
7855AS="$AS"
7856
7857# The name of the directory that contains temporary libtool files.
7858objdir=$objdir
7859
7860# How to create reloadable object files.
7861reload_flag=$lt_reload_flag
7862reload_cmds=$lt_reload_cmds
7863
7864# How to pass a linker flag through the compiler.
7865wl=$lt_wl
7866
7867# Object file suffix (normally "o").
7868objext="$ac_objext"
7869
7870# Old archive suffix (normally "a").
7871libext="$libext"
7872
7873# Executable file suffix (normally "").
7874exeext="$exeext"
7875
7876# Additional compiler flags for building library objects.
7877pic_flag=$lt_pic_flag
7878pic_mode=$pic_mode
7879
7880# Does compiler simultaneously support -c and -o options?
7881compiler_c_o=$lt_compiler_c_o
7882
7883# Can we write directly to a .lo ?
7884compiler_o_lo=$lt_compiler_o_lo
7885
7886# Must we lock files when doing compilation ?
7887need_locks=$lt_need_locks
7888
7889# Do we need the lib prefix for modules?
7890need_lib_prefix=$need_lib_prefix
7891
7892# Do we need a version for libraries?
7893need_version=$need_version
7894
7895# Whether dlopen is supported.
7896dlopen_support=$enable_dlopen
7897
7898# Whether dlopen of programs is supported.
7899dlopen_self=$enable_dlopen_self
7900
7901# Whether dlopen of statically linked programs is supported.
7902dlopen_self_static=$enable_dlopen_self_static
7903
7904# Compiler flag to prevent dynamic linking.
7905link_static_flag=$lt_link_static_flag
7906
7907# Compiler flag to turn off builtin functions.
7908no_builtin_flag=$lt_no_builtin_flag
7909
7910# Compiler flag to allow reflexive dlopens.
7911export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7912
7913# Compiler flag to generate shared objects directly from archives.
7914whole_archive_flag_spec=$lt_whole_archive_flag_spec
7915
7916# Compiler flag to generate thread-safe objects.
7917thread_safe_flag_spec=$lt_thread_safe_flag_spec
7918
7919# Library versioning type.
7920version_type=$version_type
7921
7922# Format of library name prefix.
7923libname_spec=$lt_libname_spec
7924
7925# List of archive names. First name is the real one, the rest are links.
7926# The last name is the one that the linker finds with -lNAME.
7927library_names_spec=$lt_library_names_spec
7928
7929# The coded name of the library, if different from the real name.
7930soname_spec=$lt_soname_spec
7931
7932# Commands used to build and install an old-style archive.
7933RANLIB=$lt_RANLIB
7934old_archive_cmds=$lt_old_archive_cmds
7935old_postinstall_cmds=$lt_old_postinstall_cmds
7936old_postuninstall_cmds=$lt_old_postuninstall_cmds
7937
7938# Create an old-style archive from a shared archive.
7939old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7940
7941# Create a temporary old-style archive to link instead of a shared archive.
7942old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7943
7944# Commands used to build and install a shared archive.
7945archive_cmds=$lt_archive_cmds
7946archive_expsym_cmds=$lt_archive_expsym_cmds
7947postinstall_cmds=$lt_postinstall_cmds
7948postuninstall_cmds=$lt_postuninstall_cmds
7949
7950# Commands to strip libraries.
7951old_striplib=$lt_old_striplib
7952striplib=$lt_striplib
7953
7954# Method to check whether dependent libraries are shared objects.
7955deplibs_check_method=$lt_deplibs_check_method
7956
7957# Command to use when deplibs_check_method == file_magic.
7958file_magic_cmd=$lt_file_magic_cmd
7959
7960# Flag that allows shared libraries with undefined symbols to be built.
7961allow_undefined_flag=$lt_allow_undefined_flag
7962
7963# Flag that forces no undefined symbols.
7964no_undefined_flag=$lt_no_undefined_flag
7965
7966# Commands used to finish a libtool library installation in a directory.
7967finish_cmds=$lt_finish_cmds
7968
7969# Same as above, but a single script fragment to be evaled but not shown.
7970finish_eval=$lt_finish_eval
7971
7972# Take the output of nm and produce a listing of raw symbols and C names.
7973global_symbol_pipe=$lt_global_symbol_pipe
7974
7975# Transform the output of nm in a proper C declaration
7976global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7977
7978# This is the shared library runtime path variable.
7979runpath_var=$runpath_var
7980
7981# This is the shared library path variable.
7982shlibpath_var=$shlibpath_var
7983
7984# Is shlibpath searched before the hard-coded library search path?
7985shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7986
7987# How to hardcode a shared library path into an executable.
7988hardcode_action=$hardcode_action
7989
7990# Whether we should hardcode library paths into libraries.
7991hardcode_into_libs=$hardcode_into_libs
7992
7993# Flag to hardcode \$libdir into a binary during linking.
7994# This must work even if \$libdir does not exist.
7995hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7996
7997# Whether we need a single -rpath flag with a separated argument.
7998hardcode_libdir_separator=$lt_hardcode_libdir_separator
7999
8000# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8001# resulting binary.
8002hardcode_direct=$hardcode_direct
8003
8004# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8005# resulting binary.
8006hardcode_minus_L=$hardcode_minus_L
8007
8008# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8009# the resulting binary.
8010hardcode_shlibpath_var=$hardcode_shlibpath_var
8011
8012# Variables whose values should be saved in libtool wrapper scripts and
8013# restored at relink time.
8014variables_saved_for_relink="$variables_saved_for_relink"
8015
8016# Whether libtool must link a program against all its dependency libraries.
8017link_all_deplibs=$link_all_deplibs
8018
8019# Compile-time system search path for libraries
8020sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8021
8022# Run-time system search path for libraries
8023sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8024
8025# Fix the shell variable \$srcfile for the compiler.
8026fix_srcfile_path="$fix_srcfile_path"
8027
8028# Set to yes if exported symbols are required.
8029always_export_symbols=$always_export_symbols
8030
8031# The commands to list exported symbols.
8032export_symbols_cmds=$lt_export_symbols_cmds
8033
8034# The commands to extract the exported symbol list from a shared archive.
8035extract_expsyms_cmds=$lt_extract_expsyms_cmds
8036
8037# Symbols that should not be listed in the preloaded symbols.
8038exclude_expsyms=$lt_exclude_expsyms
8039
8040# Symbols that must always be exported.
8041include_expsyms=$lt_include_expsyms
8042
8043# ### END LIBTOOL CONFIG
8044
8045__EOF__
8046
8047 case "$host_os" in
8048 aix3*)
8049 cat <<\EOF >> "${ofile}T"
8050
8051# AIX sometimes has problems with the GCC collect2 program. For some
8052# reason, if we set the COLLECT_NAMES environment variable, the problems
8053# vanish in a puff of smoke.
8054if test "X${COLLECT_NAMES+set}" != Xset; then
8055 COLLECT_NAMES=
8056 export COLLECT_NAMES
8057fi
8058EOF
8059 ;;
8060 esac
8061
8062 case "$host_os" in
8063 cygwin* | mingw* | pw32* | os2*)
8064 cat <<'EOF' >> "${ofile}T"
8065 # This is a source program that is used to create dlls on Windows
8066 # Don't remove nor modify the starting and closing comments
8067# /* ltdll.c starts here */
8068# #define WIN32_LEAN_AND_MEAN
8069# #include <windows.h>
8070# #undef WIN32_LEAN_AND_MEAN
8071# #include <stdio.h>
8072#
8073# #ifndef __CYGWIN__
8074# # ifdef __CYGWIN32__
8075# # define __CYGWIN__ __CYGWIN32__
8076# # endif
8077# #endif
8078#
8079# #ifdef __cplusplus
8080# extern "C" {
8081# #endif
8082# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8083# #ifdef __cplusplus
8084# }
8085# #endif
8086#
8087# #ifdef __CYGWIN__
8088# #include <cygwin/cygwin_dll.h>
8089# DECLARE_CYGWIN_DLL( DllMain );
8090# #endif
8091# HINSTANCE __hDllInstance_base;
8092#
8093# BOOL APIENTRY
8094# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8095# {
8096# __hDllInstance_base = hInst;
8097# return TRUE;
8098# }
8099# /* ltdll.c ends here */
8100 # This is a source program that is used to create import libraries
8101 # on Windows for dlls which lack them. Don't remove nor modify the
8102 # starting and closing comments
8103# /* impgen.c starts here */
8104# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8105#
8106# This file is part of GNU libtool.
8107#
8108# This program is free software; you can redistribute it and/or modify
8109# it under the terms of the GNU General Public License as published by
8110# the Free Software Foundation; either version 2 of the License, or
8111# (at your option) any later version.
8112#
8113# This program is distributed in the hope that it will be useful,
8114# but WITHOUT ANY WARRANTY; without even the implied warranty of
8115# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8116# GNU General Public License for more details.
8117#
8118# You should have received a copy of the GNU General Public License
8119# along with this program; if not, write to the Free Software
8120# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8121# */
8122#
8123# #include <stdio.h> /* for printf() */
8124# #include <unistd.h> /* for open(), lseek(), read() */
8125# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8126# #include <string.h> /* for strdup() */
8127#
8128# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8129# #ifndef O_BINARY
8130# #define O_BINARY 0
8131# #endif
8132#
8133# static unsigned int
8134# pe_get16 (fd, offset)
8135# int fd;
8136# int offset;
8137# {
8138# unsigned char b[2];
8139# lseek (fd, offset, SEEK_SET);
8140# read (fd, b, 2);
8141# return b[0] + (b[1]<<8);
8142# }
8143#
8144# static unsigned int
8145# pe_get32 (fd, offset)
8146# int fd;
8147# int offset;
8148# {
8149# unsigned char b[4];
8150# lseek (fd, offset, SEEK_SET);
8151# read (fd, b, 4);
8152# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8153# }
8154#
8155# static unsigned int
8156# pe_as32 (ptr)
8157# void *ptr;
8158# {
8159# unsigned char *b = ptr;
8160# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8161# }
8162#
8163# int
8164# main (argc, argv)
8165# int argc;
8166# char *argv[];
8167# {
8168# int dll;
8169# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8170# unsigned long export_rva, export_size, nsections, secptr, expptr;
8171# unsigned long name_rvas, nexp;
8172# unsigned char *expdata, *erva;
8173# char *filename, *dll_name;
8174#
8175# filename = argv[1];
8176#
8177# dll = open(filename, O_RDONLY|O_BINARY);
8178# if (!dll)
8179# return 1;
8180#
8181# dll_name = filename;
8182#
8183# for (i=0; filename[i]; i++)
8184# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8185# dll_name = filename + i +1;
8186#
8187# pe_header_offset = pe_get32 (dll, 0x3c);
8188# opthdr_ofs = pe_header_offset + 4 + 20;
8189# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8190#
8191# if (num_entries < 1) /* no exports */
8192# return 1;
8193#
8194# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8195# export_size = pe_get32 (dll, opthdr_ofs + 100);
8196# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8197# secptr = (pe_header_offset + 4 + 20 +
8198# pe_get16 (dll, pe_header_offset + 4 + 16));
8199#
8200# expptr = 0;
8201# for (i = 0; i < nsections; i++)
8202# {
8203# char sname[8];
8204# unsigned long secptr1 = secptr + 40 * i;
8205# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8206# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8207# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8208# lseek(dll, secptr1, SEEK_SET);
8209# read(dll, sname, 8);
8210# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8211# {
8212# expptr = fptr + (export_rva - vaddr);
8213# if (export_rva + export_size > vaddr + vsize)
8214# export_size = vsize - (export_rva - vaddr);
8215# break;
8216# }
8217# }
8218#
8219# expdata = (unsigned char*)malloc(export_size);
8220# lseek (dll, expptr, SEEK_SET);
8221# read (dll, expdata, export_size);
8222# erva = expdata - export_rva;
8223#
8224# nexp = pe_as32 (expdata+24);
8225# name_rvas = pe_as32 (expdata+32);
8226#
8227# printf ("EXPORTS\n");
8228# for (i = 0; i<nexp; i++)
8229# {
8230# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8231# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8232# }
8233#
8234# return 0;
8235# }
8236# /* impgen.c ends here */
8237
8238EOF
8239 ;;
8240 esac
8241
8242 # We use sed instead of cat because bash on DJGPP gets confused if
8243 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8244 # text mode, it properly converts lines to CR/LF. This bash problem
8245 # is reportedly fixed, but why not run on old versions too?
8246 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8247
8248 mv -f "${ofile}T" "$ofile" || \
8249 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8250 chmod +x "$ofile"
8251fi
8252##
8253## END FIXME
8254
8255
8256
8257
8258
8259# This can be used to rebuild libtool when needed
8260LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8261
8262# Always use our own libtool.
8263LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8264
8265# Prevent multiple expansion
8266 4085
8267 4086
8268MALLOC_TYPE=S 4087MALLOC_TYPE=S
8269support_addstrings=no 4088
8270support_frills=no 4089support_frills=yes
8271support_inheritpixmap=no 4090support_inheritpixmap=yes
8272support_tinting=no 4091support_tinting=yes
8273support_fading=no 4092support_fading=yes
8274support_keepscrolling=no 4093support_keepscrolling=yes
8275support_selectionscrolling=no 4094support_selectionscrolling=yes
8276support_menubar=no
8277support_mousewheel=no 4095support_mousewheel=yes
8278support_mouseslipwheel=no 4096support_mouseslipwheel=yes
8279support_utmp=no 4097support_utmp=yes
8280support_wtmp=no 4098support_wtmp=yes
8281support_lastlog=no 4099support_lastlog=yes
8282support_cursor_blink=no
8283support_text_blink=no 4100support_text_blink=yes
8284support_pointer_blank=no 4101support_pointer_blank=yes
8285support_scroll_rxvt=no 4102support_scroll_rxvt=yes
8286support_scroll_next=no 4103support_scroll_next=yes
8287support_scroll_xterm=no 4104support_scroll_xterm=yes
8288support_scroll_plain=no 4105support_scroll_plain=yes
8289support_xim=no 4106support_xim=yes
8290support_xpm=no 4107support_xpm=yes
8291support_xft=no 4108support_xft=yes
8292support_unicode3=no 4109support_unicode3=no
8293support_combining=no 4110support_combining=yes
8294support_8bitctrls=no 4111support_8bitctrls=no
8295support_iso14755=no 4112support_iso14755=yes
8296support_styles=no 4113support_styles=yes
4114support_perl=yes
8297codesets= 4115codesets=all
8298 4116
8299 4117
8300if test "x$enable_shared" = xyes; then 4118if test "x$enable_shared" = xyes; then
8301 4119
8302cat >>confdefs.h <<\_ACEOF 4120cat >>confdefs.h <<\_ACEOF
8308 4126
8309 4127
8310# Check whether --enable-everything or --disable-everything was given. 4128# Check whether --enable-everything or --disable-everything was given.
8311if test "${enable_everything+set}" = set; then 4129if test "${enable_everything+set}" = set; then
8312 enableval="$enable_everything" 4130 enableval="$enable_everything"
4131
4132 if test x$enableval = xno; then
4133 support_24bit=no
4134 support_frills=no
4135 support_inheritpixmap=no
4136 support_tinting=no
4137 support_fading=no
4138 support_keepscrolling=no
4139 support_selectionscrolling=no
4140 support_lastlog=no
4141 support_mousewheel=no
4142 support_mouseslipwheel=no
4143 support_text_blink=no
4144 support_pointer_blank=no
4145 support_scroll_rxvt=no
4146 support_scroll_next=no
4147 support_scroll_xterm=no
4148 support_scroll_plain=no
4149 support_utmp=no
4150 support_wtmp=no
4151 support_xim=no
4152 support_xpm=no
4153 support_xft=no
4154 support_unicode3=no
4155 support_combining=no
4156 support_8bitctrls=no
4157 support_iso14755=no
4158 support_styles=no
4159 support_perl=no
4160 codesets=
4161 fi
8313 if test x$enableval = xyes; then 4162 if test x$enableval = xyes; then
8314 support_24bit=yes 4163 support_24bit=yes
8315 support_frills=yes 4164 support_frills=yes
8316 support_inheritpixmap=yes 4165 support_inheritpixmap=yes
8317 support_tinting=yes 4166 support_tinting=yes
8318 support_fading=yes 4167 support_fading=yes
8319 support_keepscrolling=yes 4168 support_keepscrolling=yes
8320 support_selectionscrolling=yes 4169 support_selectionscrolling=yes
8321 support_lastlog=yes 4170 support_lastlog=yes
8322 support_menubar=yes
8323 support_mousewheel=yes 4171 support_mousewheel=yes
8324 support_mouseslipwheel=yes 4172 support_mouseslipwheel=yes
8325 support_cursor_blink=yes
8326 support_text_blink=yes 4173 support_text_blink=yes
8327 support_pointer_blank=yes 4174 support_pointer_blank=yes
8328 support_scroll_rxvt=yes 4175 support_scroll_rxvt=yes
8329 support_scroll_next=yes 4176 support_scroll_next=yes
8330 support_scroll_xterm=yes 4177 support_scroll_xterm=yes
8331 support_scroll_plain=yes 4178 support_scroll_plain=yes
8332 support_utmp=yes 4179 support_utmp=yes
8333 support_wtmp=yes 4180 support_wtmp=yes
8334 support_xim=yes 4181 support_xim=yes
8335 support_xpm=yes 4182 support_xpm=yes
8336 support_xft=yes 4183 support_xft=yes
8337 support_unicode3=yes 4184 support_unicode3=yes
8338 support_combining=yes 4185 support_combining=yes
8339 #support_8bitctrls=yes 4186 #support_8bitctrls=yes
8340 support_iso14755=yes 4187 support_iso14755=yes
8341 support_styles=yes 4188 support_styles=yes
4189 support_perl=yes
8342 codesets=all 4190 codesets=all
8343 fi 4191 fi
4192
8344fi; 4193fi;
8345 4194
8346# Check whether --enable-unicode3 or --disable-unicode3 was given. 4195# Check whether --enable-unicode3 or --disable-unicode3 was given.
8347if test "${enable_unicode3+set}" = set; then 4196if test "${enable_unicode3+set}" = set; then
8348 enableval="$enable_unicode3" 4197 enableval="$enable_unicode3"
8429 if test x$enableval = xyes -o x$enableval = xno; then 4278 if test x$enableval = xyes -o x$enableval = xno; then
8430 support_fading=$enableval 4279 support_fading=$enableval
8431 fi 4280 fi
8432fi; 4281fi;
8433 4282
8434# Check whether --enable-menubar or --disable-menubar was given.
8435if test "${enable_menubar+set}" = set; then
8436 enableval="$enable_menubar"
8437 if test x$enableval = xyes -o x$enableval = xno; then
8438 support_menubar=$enableval
8439 fi
8440fi;
8441
8442# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4283# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8443if test "${enable_rxvt_scroll+set}" = set; then 4284if test "${enable_rxvt_scroll+set}" = set; then
8444 enableval="$enable_rxvt_scroll" 4285 enableval="$enable_rxvt_scroll"
8445 if test x$enableval = xyes -o x$enableval = xno; then 4286 if test x$enableval = xyes -o x$enableval = xno; then
8446 support_scroll_rxvt=$enableval 4287 support_scroll_rxvt=$enableval
8461 if test x$enableval = xyes -o x$enableval = xno; then 4302 if test x$enableval = xyes -o x$enableval = xno; then
8462 support_scroll_xterm=$enableval 4303 support_scroll_xterm=$enableval
8463 fi 4304 fi
8464fi; 4305fi;
8465 4306
4307# Check whether --enable-perl or --disable-perl was given.
4308if test "${enable_perl+set}" = set; then
4309 enableval="$enable_perl"
4310 if test x$enableval = xyes -o x$enableval = xno; then
4311 support_perl=$enableval
4312 fi
4313fi;
4314
8466# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4315# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8467if test "${enable_plain_scroll+set}" = set; then 4316if test "${enable_plain_scroll+set}" = set; then
8468 enableval="$enable_plain_scroll" 4317 enableval="$enable_plain_scroll"
8469 if test x$enableval = xyes -o x$enableval = xno; then 4318 if test x$enableval = xyes -o x$enableval = xno; then
8470 support_scroll_plain=$enableval 4319 support_scroll_plain=$enableval
8471 fi 4320 fi
8472fi; 4321fi;
8473 4322
8474# Check whether --enable-half-shadow or --disable-half-shadow was given.
8475if test "${enable_half_shadow+set}" = set; then
8476 enableval="$enable_half_shadow"
8477 if test x$enableval = xyes; then
8478
8479cat >>confdefs.h <<\_ACEOF
8480#define HALFSHADOW 1
8481_ACEOF
8482
8483 fi
8484fi;
8485 4323
8486 4324
8487# Check whether --with-codesets or --without-codesets was given. 4325# Check whether --with-codesets or --without-codesets was given.
8488if test "${with_codesets+set}" = set; then 4326if test "${with_codesets+set}" = set; then
8489 withval="$with_codesets" 4327 withval="$with_codesets"
8496 if test x$enableval = xyes -o x$enableval = xno; then 4334 if test x$enableval = xyes -o x$enableval = xno; then
8497 support_xim=$enableval 4335 support_xim=$enableval
8498 fi 4336 fi
8499fi; 4337fi;
8500 4338
8501# Check whether --enable-ttygid or --disable-ttygid was given.
8502if test "${enable_ttygid+set}" = set; then
8503 enableval="$enable_ttygid"
8504 if test x$enableval = xyes; then
8505
8506cat >>confdefs.h <<\_ACEOF
8507#define TTY_GID_SUPPORT 1
8508_ACEOF
8509
8510 fi
8511fi;
8512
8513# Check whether --enable-backspace-key or --disable-backspace-key was given. 4339# Check whether --enable-backspace-key or --disable-backspace-key was given.
8514if test "${enable_backspace_key+set}" = set; then 4340if test "${enable_backspace_key+set}" = set; then
8515 enableval="$enable_backspace_key" 4341 enableval="$enable_backspace_key"
8516 if test x$enableval = xno; then 4342 if test x$enableval = xno; then
8517 4343
8539 enableval="$enable_resources" 4365 enableval="$enable_resources"
8540 if test x$enableval = xno; then 4366 if test x$enableval = xno; then
8541 4367
8542cat >>confdefs.h <<\_ACEOF 4368cat >>confdefs.h <<\_ACEOF
8543#define NO_RESOURCES 1 4369#define NO_RESOURCES 1
8544_ACEOF
8545
8546 fi
8547fi;
8548
8549# Check whether --enable-xgetdefault or --disable-xgetdefault was given.
8550if test "${enable_xgetdefault+set}" = set; then
8551 enableval="$enable_xgetdefault"
8552 if test x$enableval = xyes; then
8553
8554cat >>confdefs.h <<\_ACEOF
8555#define USE_XGETDEFAULT 1
8556_ACEOF 4370_ACEOF
8557 4371
8558 fi 4372 fi
8559fi; 4373fi;
8560 4374
8624_ACEOF 4438_ACEOF
8625 4439
8626 4440
8627RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4441RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8628 4442
8629
8630# Check whether --enable-strings or --disable-strings was given.
8631if test "${enable_strings+set}" = set; then
8632 enableval="$enable_strings"
8633 if test x$enableval = xyes -o x$enableval = xno; then
8634 support_addstrings=$enableval
8635 fi
8636fi;
8637 4443
8638# Check whether --enable-swapscreen or --disable-swapscreen was given. 4444# Check whether --enable-swapscreen or --disable-swapscreen was given.
8639if test "${enable_swapscreen+set}" = set; then 4445if test "${enable_swapscreen+set}" = set; then
8640 enableval="$enable_swapscreen" 4446 enableval="$enable_swapscreen"
8641 if test x$enableval = xno; then 4447 if test x$enableval = xno; then
8735_ACEOF 4541_ACEOF
8736 4542
8737 fi 4543 fi
8738fi; 4544fi;
8739 4545
8740# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8741if test "${enable_cursor_blink+set}" = set; then
8742 enableval="$enable_cursor_blink"
8743 if test x$enableval = xyes -o x$enableval = xno; then
8744 support_cursor_blink=$enableval
8745 fi
8746fi;
8747
8748# Check whether --enable-text-blink or --disable-text-blink was given. 4546# Check whether --enable-text-blink or --disable-text-blink was given.
8749if test "${enable_text_blink+set}" = set; then 4547if test "${enable_text_blink+set}" = set; then
8750 enableval="$enable_text_blink" 4548 enableval="$enable_text_blink"
8751 if test x$enableval = xyes -o x$enableval = xno; then 4549 if test x$enableval = xyes -o x$enableval = xno; then
8752 support_text_blink=$enableval 4550 support_text_blink=$enableval
8784#define RXVT_TERMINFO "$withval" 4582#define RXVT_TERMINFO "$withval"
8785_ACEOF 4583_ACEOF
8786 terminfo="$withval" 4584 terminfo="$withval"
8787 fi 4585 fi
8788fi; 4586fi;
8789
8790
8791
8792cat >>confdefs.h <<\_ACEOF
8793#define PROTOTYPES 1
8794_ACEOF
8795 4587
8796 4588
8797# Extract the first word of "mv", so it can be a program name with args. 4589# Extract the first word of "mv", so it can be a program name with args.
8798set dummy mv; ac_word=$2 4590set dummy mv; ac_word=$2
8799echo "$as_me:$LINENO: checking for $ac_word" >&5 4591echo "$as_me:$LINENO: checking for $ac_word" >&5
9072else 4864else
9073 echo "$as_me:$LINENO: result: no" >&5 4865 echo "$as_me:$LINENO: result: no" >&5
9074echo "${ECHO_T}no" >&6 4866echo "${ECHO_T}no" >&6
9075fi 4867fi
9076 4868
9077# Extract the first word of "tbl", so it can be a program name with args.
9078set dummy tbl; ac_word=$2
9079echo "$as_me:$LINENO: checking for $ac_word" >&5
9080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9081if test "${ac_cv_path_TBL+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9083else
9084 case $TBL in
9085 [\\/]* | ?:[\\/]*)
9086 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
9087 ;;
9088 *)
9089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9090for as_dir in $PATH
9091do
9092 IFS=$as_save_IFS
9093 test -z "$as_dir" && as_dir=.
9094 for ac_exec_ext in '' $ac_executable_extensions; do
9095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9096 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
9097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9098 break 2
9099 fi
9100done
9101done
9102
9103 ;;
9104esac
9105fi
9106TBL=$ac_cv_path_TBL
9107
9108if test -n "$TBL"; then
9109 echo "$as_me:$LINENO: result: $TBL" >&5
9110echo "${ECHO_T}$TBL" >&6
9111else
9112 echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6
9114fi
9115
9116# Extract the first word of "tic", so it can be a program name with args. 4869# Extract the first word of "tic", so it can be a program name with args.
9117set dummy tic; ac_word=$2 4870set dummy tic; ac_word=$2
9118echo "$as_me:$LINENO: checking for $ac_word" >&5 4871echo "$as_me:$LINENO: checking for $ac_word" >&5
9119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9120if test "${ac_cv_path_TIC+set}" = set; then 4873if test "${ac_cv_path_TIC+set}" = set; then
9151 echo "$as_me:$LINENO: result: no" >&5 4904 echo "$as_me:$LINENO: result: no" >&5
9152echo "${ECHO_T}no" >&6 4905echo "${ECHO_T}no" >&6
9153fi 4906fi
9154 4907
9155 4908
4909
4910
4911ac_ext=cc
4912ac_cpp='$CXXCPP $CPPFLAGS'
4913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4916echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4917echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4918if test -z "$CXXCPP"; then
4919 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921else
4922 # Double quotes because CXXCPP needs to be expanded
4923 for CXXCPP in "$CXX -E" "/lib/cpp"
4924 do
4925 ac_preproc_ok=false
4926for ac_cxx_preproc_warn_flag in '' yes
4927do
4928 # Use a header file that comes with gcc, so configuring glibc
4929 # with a fresh cross-compiler works.
4930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4931 # <limits.h> exists even on freestanding compilers.
4932 # On the NeXT, cc -E runs the code through the compiler's parser,
4933 # not just through cpp. "Syntax error" is here to catch this case.
4934 cat >conftest.$ac_ext <<_ACEOF
4935/* confdefs.h. */
4936_ACEOF
4937cat confdefs.h >>conftest.$ac_ext
4938cat >>conftest.$ac_ext <<_ACEOF
4939/* end confdefs.h. */
4940#ifdef __STDC__
4941# include <limits.h>
4942#else
4943# include <assert.h>
4944#endif
4945 Syntax error
4946_ACEOF
4947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } >/dev/null; then
4955 if test -s conftest.err; then
4956 ac_cpp_err=$ac_cxx_preproc_warn_flag
4957 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4958 else
4959 ac_cpp_err=
4960 fi
4961else
4962 ac_cpp_err=yes
4963fi
4964if test -z "$ac_cpp_err"; then
4965 :
4966else
4967 echo "$as_me: failed program was:" >&5
4968sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 # Broken: fails on valid input.
4971continue
4972fi
4973rm -f conftest.err conftest.$ac_ext
4974
4975 # OK, works on sane cases. Now check whether non-existent headers
4976 # can be detected and how.
4977 cat >conftest.$ac_ext <<_ACEOF
4978/* confdefs.h. */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h. */
4983#include <ac_nonexistent.h>
4984_ACEOF
4985if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4987 ac_status=$?
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } >/dev/null; then
4993 if test -s conftest.err; then
4994 ac_cpp_err=$ac_cxx_preproc_warn_flag
4995 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4996 else
4997 ac_cpp_err=
4998 fi
4999else
5000 ac_cpp_err=yes
5001fi
5002if test -z "$ac_cpp_err"; then
5003 # Broken: success on invalid input.
5004continue
5005else
5006 echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 # Passes both tests.
5010ac_preproc_ok=:
5011break
5012fi
5013rm -f conftest.err conftest.$ac_ext
5014
5015done
5016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5017rm -f conftest.err conftest.$ac_ext
5018if $ac_preproc_ok; then
5019 break
5020fi
5021
5022 done
5023 ac_cv_prog_CXXCPP=$CXXCPP
5024
5025fi
5026 CXXCPP=$ac_cv_prog_CXXCPP
5027else
5028 ac_cv_prog_CXXCPP=$CXXCPP
5029fi
5030echo "$as_me:$LINENO: result: $CXXCPP" >&5
5031echo "${ECHO_T}$CXXCPP" >&6
5032ac_preproc_ok=false
5033for ac_cxx_preproc_warn_flag in '' yes
5034do
5035 # Use a header file that comes with gcc, so configuring glibc
5036 # with a fresh cross-compiler works.
5037 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5038 # <limits.h> exists even on freestanding compilers.
5039 # On the NeXT, cc -E runs the code through the compiler's parser,
5040 # not just through cpp. "Syntax error" is here to catch this case.
5041 cat >conftest.$ac_ext <<_ACEOF
5042/* confdefs.h. */
5043_ACEOF
5044cat confdefs.h >>conftest.$ac_ext
5045cat >>conftest.$ac_ext <<_ACEOF
5046/* end confdefs.h. */
5047#ifdef __STDC__
5048# include <limits.h>
5049#else
5050# include <assert.h>
5051#endif
5052 Syntax error
5053_ACEOF
5054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5056 ac_status=$?
5057 grep -v '^ *+' conftest.er1 >conftest.err
5058 rm -f conftest.er1
5059 cat conftest.err >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); } >/dev/null; then
5062 if test -s conftest.err; then
5063 ac_cpp_err=$ac_cxx_preproc_warn_flag
5064 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5065 else
5066 ac_cpp_err=
5067 fi
5068else
5069 ac_cpp_err=yes
5070fi
5071if test -z "$ac_cpp_err"; then
5072 :
5073else
5074 echo "$as_me: failed program was:" >&5
5075sed 's/^/| /' conftest.$ac_ext >&5
5076
5077 # Broken: fails on valid input.
5078continue
5079fi
5080rm -f conftest.err conftest.$ac_ext
5081
5082 # OK, works on sane cases. Now check whether non-existent headers
5083 # can be detected and how.
5084 cat >conftest.$ac_ext <<_ACEOF
5085/* confdefs.h. */
5086_ACEOF
5087cat confdefs.h >>conftest.$ac_ext
5088cat >>conftest.$ac_ext <<_ACEOF
5089/* end confdefs.h. */
5090#include <ac_nonexistent.h>
5091_ACEOF
5092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5094 ac_status=$?
5095 grep -v '^ *+' conftest.er1 >conftest.err
5096 rm -f conftest.er1
5097 cat conftest.err >&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } >/dev/null; then
5100 if test -s conftest.err; then
5101 ac_cpp_err=$ac_cxx_preproc_warn_flag
5102 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5103 else
5104 ac_cpp_err=
5105 fi
5106else
5107 ac_cpp_err=yes
5108fi
5109if test -z "$ac_cpp_err"; then
5110 # Broken: success on invalid input.
5111continue
5112else
5113 echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
5116 # Passes both tests.
5117ac_preproc_ok=:
5118break
5119fi
5120rm -f conftest.err conftest.$ac_ext
5121
5122done
5123# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124rm -f conftest.err conftest.$ac_ext
5125if $ac_preproc_ok; then
5126 :
5127else
5128 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5129See \`config.log' for more details." >&5
5130echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5131See \`config.log' for more details." >&2;}
5132 { (exit 1); exit 1; }; }
5133fi
5134
5135ac_ext=cc
5136ac_cpp='$CXXCPP $CPPFLAGS'
5137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9156 5140
9157 5141
9158 5142
9159if test "x$ac_path_x_has_been_run" != xyes; then 5143if test "x$ac_path_x_has_been_run" != xyes; then
9160 echo "$as_me:$LINENO: checking for X" >&5 5144 echo "$as_me:$LINENO: checking for X" >&5
9259/* confdefs.h. */ 5243/* confdefs.h. */
9260_ACEOF 5244_ACEOF
9261cat confdefs.h >>conftest.$ac_ext 5245cat confdefs.h >>conftest.$ac_ext
9262cat >>conftest.$ac_ext <<_ACEOF 5246cat >>conftest.$ac_ext <<_ACEOF
9263/* end confdefs.h. */ 5247/* end confdefs.h. */
9264#include <X11/Intrinsic.h> 5248#include <X11/Xlib.h>
9265_ACEOF 5249_ACEOF
9266if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9268 ac_status=$? 5252 ac_status=$?
9269 grep -v '^ *+' conftest.er1 >conftest.err 5253 grep -v '^ *+' conftest.er1 >conftest.err
9286else 5270else
9287 echo "$as_me: failed program was:" >&5 5271 echo "$as_me: failed program was:" >&5
9288sed 's/^/| /' conftest.$ac_ext >&5 5272sed 's/^/| /' conftest.$ac_ext >&5
9289 5273
9290 for ac_dir in $ac_x_header_dirs; do 5274 for ac_dir in $ac_x_header_dirs; do
9291 if test -r "$ac_dir/X11/Intrinsic.h"; then 5275 if test -r "$ac_dir/X11/Xlib.h"; then
9292 ac_x_includes=$ac_dir 5276 ac_x_includes=$ac_dir
9293 break 5277 break
9294 fi 5278 fi
9295done 5279done
9296fi 5280fi
9300if test "$ac_x_libraries" = no; then 5284if test "$ac_x_libraries" = no; then
9301 # Check for the libraries. 5285 # Check for the libraries.
9302 # See if we find them without any special options. 5286 # See if we find them without any special options.
9303 # Don't add to $LIBS permanently. 5287 # Don't add to $LIBS permanently.
9304 ac_save_LIBS=$LIBS 5288 ac_save_LIBS=$LIBS
9305 LIBS="-lXt $LIBS" 5289 LIBS="-lX11 $LIBS"
9306 cat >conftest.$ac_ext <<_ACEOF 5290 cat >conftest.$ac_ext <<_ACEOF
9307/* confdefs.h. */ 5291/* confdefs.h. */
9308_ACEOF 5292_ACEOF
9309cat confdefs.h >>conftest.$ac_ext 5293cat confdefs.h >>conftest.$ac_ext
9310cat >>conftest.$ac_ext <<_ACEOF 5294cat >>conftest.$ac_ext <<_ACEOF
9311/* end confdefs.h. */ 5295/* end confdefs.h. */
9312#include <X11/Intrinsic.h> 5296#include <X11/Xlib.h>
9313int 5297int
9314main () 5298main ()
9315{ 5299{
9316XtMalloc (0) 5300XrmInitialize ()
9317 ; 5301 ;
9318 return 0; 5302 return 0;
9319} 5303}
9320_ACEOF 5304_ACEOF
9321rm -f conftest.$ac_objext conftest$ac_exeext 5305rm -f conftest.$ac_objext conftest$ac_exeext
9349LIBS=$ac_save_LIBS 5333LIBS=$ac_save_LIBS
9350for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5334for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9351do 5335do
9352 # Don't even attempt the hair of trying to link an X program! 5336 # Don't even attempt the hair of trying to link an X program!
9353 for ac_extension in a so sl; do 5337 for ac_extension in a so sl; do
9354 if test -r $ac_dir/libXt.$ac_extension; then 5338 if test -r $ac_dir/libX11.$ac_extension; then
9355 ac_x_libraries=$ac_dir 5339 ac_x_libraries=$ac_dir
9356 break 2 5340 break 2
9357 fi 5341 fi
9358 done 5342 done
9359done 5343done
10961#define HAVE_SYS_WAIT_H 1 6945#define HAVE_SYS_WAIT_H 1
10962_ACEOF 6946_ACEOF
10963 6947
10964fi 6948fi
10965 6949
6950echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6951echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6952if test "${ac_cv_header_stdc+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961#include <stdlib.h>
6962#include <stdarg.h>
6963#include <string.h>
6964#include <float.h>
10966 6965
6966int
6967main ()
6968{
10967 6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
6974rm -f conftest.$ac_objext
6975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6976 (eval $ac_compile) 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } &&
6983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6985 (eval $ac_try) 2>&5
6986 ac_status=$?
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; } &&
6989 { ac_try='test -s conftest.$ac_objext'
6990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6991 (eval $ac_try) 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; }; then
6995 ac_cv_header_stdc=yes
6996else
6997 echo "$as_me: failed program was:" >&5
6998sed 's/^/| /' conftest.$ac_ext >&5
6999
7000ac_cv_header_stdc=no
7001fi
7002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003
7004if test $ac_cv_header_stdc = yes; then
7005 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7006 cat >conftest.$ac_ext <<_ACEOF
7007/* confdefs.h. */
7008_ACEOF
7009cat confdefs.h >>conftest.$ac_ext
7010cat >>conftest.$ac_ext <<_ACEOF
7011/* end confdefs.h. */
7012#include <string.h>
7013
7014_ACEOF
7015if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7016 $EGREP "memchr" >/dev/null 2>&1; then
7017 :
7018else
7019 ac_cv_header_stdc=no
7020fi
7021rm -f conftest*
7022
7023fi
7024
7025if test $ac_cv_header_stdc = yes; then
7026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7027 cat >conftest.$ac_ext <<_ACEOF
7028/* confdefs.h. */
7029_ACEOF
7030cat confdefs.h >>conftest.$ac_ext
7031cat >>conftest.$ac_ext <<_ACEOF
7032/* end confdefs.h. */
7033#include <stdlib.h>
7034
7035_ACEOF
7036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7037 $EGREP "free" >/dev/null 2>&1; then
7038 :
7039else
7040 ac_cv_header_stdc=no
7041fi
7042rm -f conftest*
7043
7044fi
7045
7046if test $ac_cv_header_stdc = yes; then
7047 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7048 if test "$cross_compiling" = yes; then
7049 :
7050else
7051 cat >conftest.$ac_ext <<_ACEOF
7052/* confdefs.h. */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h. */
7057#include <ctype.h>
7058#if ((' ' & 0x0FF) == 0x020)
7059# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7060# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7061#else
7062# define ISLOWER(c) \
7063 (('a' <= (c) && (c) <= 'i') \
7064 || ('j' <= (c) && (c) <= 'r') \
7065 || ('s' <= (c) && (c) <= 'z'))
7066# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7067#endif
7068
7069#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7070int
7071main ()
7072{
7073 int i;
7074 for (i = 0; i < 256; i++)
7075 if (XOR (islower (i), ISLOWER (i))
7076 || toupper (i) != TOUPPER (i))
7077 exit(2);
7078 exit (0);
7079}
7080_ACEOF
7081rm -f conftest$ac_exeext
7082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7083 (eval $ac_link) 2>&5
7084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088 (eval $ac_try) 2>&5
7089 ac_status=$?
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7092 :
7093else
7094 echo "$as_me: program exited with status $ac_status" >&5
7095echo "$as_me: failed program was:" >&5
7096sed 's/^/| /' conftest.$ac_ext >&5
7097
7098( exit $ac_status )
7099ac_cv_header_stdc=no
7100fi
7101rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7102fi
7103fi
7104fi
7105echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7106echo "${ECHO_T}$ac_cv_header_stdc" >&6
7107if test $ac_cv_header_stdc = yes; then
7108
7109cat >>confdefs.h <<\_ACEOF
7110#define STDC_HEADERS 1
7111_ACEOF
7112
7113fi
7114
7115# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7126 inttypes.h stdint.h unistd.h
7127do
7128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7129echo "$as_me:$LINENO: checking for $ac_header" >&5
7130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7131if eval "test \"\${$as_ac_Header+set}\" = set"; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134 cat >conftest.$ac_ext <<_ACEOF
7135/* confdefs.h. */
7136_ACEOF
7137cat confdefs.h >>conftest.$ac_ext
7138cat >>conftest.$ac_ext <<_ACEOF
7139/* end confdefs.h. */
7140$ac_includes_default
7141
7142#include <$ac_header>
7143_ACEOF
7144rm -f conftest.$ac_objext
7145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7146 (eval $ac_compile) 2>conftest.er1
7147 ac_status=$?
7148 grep -v '^ *+' conftest.er1 >conftest.err
7149 rm -f conftest.er1
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } &&
7153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155 (eval $ac_try) 2>&5
7156 ac_status=$?
7157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; } &&
7159 { ac_try='test -s conftest.$ac_objext'
7160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161 (eval $ac_try) 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); }; }; then
7165 eval "$as_ac_Header=yes"
7166else
7167 echo "$as_me: failed program was:" >&5
7168sed 's/^/| /' conftest.$ac_ext >&5
7169
7170eval "$as_ac_Header=no"
7171fi
7172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7173fi
7174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7176if test `eval echo '${'$as_ac_Header'}'` = yes; then
7177 cat >>confdefs.h <<_ACEOF
7178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7179_ACEOF
7180
7181fi
7182
7183done
10968 7184
10969 7185
10970 7186
10971 7187
10972 7188
10985 7201
10986 7202
10987for ac_header in \ 7203for ac_header in \
10988 assert.h \ 7204 assert.h \
10989 fcntl.h \ 7205 fcntl.h \
10990 grp.h \
10991 libc.h \
10992 lastlog.h \
10993 stdarg.h \ 7206 stdarg.h \
10994 stdlib.h \ 7207 stdlib.h \
10995 string.h \ 7208 string.h \
10996 termios.h \ 7209 termios.h \
10997 unistd.h \ 7210 unistd.h \
10998 sys/byteorder.h \ 7211 sys/byteorder.h \
10999 sys/ioctl.h \ 7212 sys/ioctl.h \
11000 sys/select.h \ 7213 sys/select.h \
11001 sys/sockio.h \ 7214 sys/sockio.h \
11002 sys/strredir.h \ 7215 sys/strredir.h \
11003 sys/stropts.h \
11004 sys/time.h \ 7216 sys/time.h \
11005 utmp.h \ 7217 stdint.h \
11006 utmpx.h \ 7218 wchar.h \
11007 stdint.h \ 7219 cwchar \
11008 pty.h \ 7220 clocale \
11009 7221
11010do 7222do
11011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7223as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11012if eval "test \"\${$as_ac_Header+set}\" = set"; then 7224if eval "test \"\${$as_ac_Header+set}\" = set"; then
11013 echo "$as_me:$LINENO: checking for $ac_header" >&5 7225 echo "$as_me:$LINENO: checking for $ac_header" >&5
13469 rxvt_cv_int16_t=yes 9681 rxvt_cv_int16_t=yes
13470else 9682else
13471 echo "$as_me: failed program was:" >&5 9683 echo "$as_me: failed program was:" >&5
13472sed 's/^/| /' conftest.$ac_ext >&5 9684sed 's/^/| /' conftest.$ac_ext >&5
13473 9685
13474if test $ac_cv_sizeof_char -ge 2; then 9686if test "$ac_cv_sizeof_char" -ge 2; then
13475 rxvt_cv_int16_t=" char" 9687 rxvt_cv_int16_t=" char"
13476else 9688else
13477 if test $ac_cv_sizeof_short -ge 2; then 9689 if test "$ac_cv_sizeof_short" -ge 2; then
13478 rxvt_cv_int16_t=" short" 9690 rxvt_cv_int16_t=" short"
13479 else 9691 else
13480 if test $ac_cv_sizeof_int -ge 2; then 9692 if test "$ac_cv_sizeof_int" -ge 2; then
13481 rxvt_cv_int16_t=" int" 9693 rxvt_cv_int16_t=" int"
13482 else 9694 else
13483 if test $ac_cv_sizeof_long -ge 2; then 9695 if test "$ac_cv_sizeof_long" -ge 2; then
13484 rxvt_cv_int16_t=" long" 9696 rxvt_cv_int16_t=" long"
13485 else 9697 else
13486 if test $ac_cv_sizeof_long_long -ge 2; then 9698 if test "$ac_cv_sizeof_long_long" -ge 2; then
13487 rxvt_cv_int16_t=" long long" 9699 rxvt_cv_int16_t=" long long"
13488 else 9700 else
13489 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9701 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
13490 fi 9702 fi
13491 fi 9703 fi
13551 rxvt_cv_uint16_t=yes 9763 rxvt_cv_uint16_t=yes
13552else 9764else
13553 echo "$as_me: failed program was:" >&5 9765 echo "$as_me: failed program was:" >&5
13554sed 's/^/| /' conftest.$ac_ext >&5 9766sed 's/^/| /' conftest.$ac_ext >&5
13555 9767
13556if test $ac_cv_sizeof_char -ge 2; then 9768if test "$ac_cv_sizeof_char" -ge 2; then
13557 rxvt_cv_uint16_t="unsigned char" 9769 rxvt_cv_uint16_t="unsigned char"
13558else 9770else
13559 if test $ac_cv_sizeof_short -ge 2; then 9771 if test "$ac_cv_sizeof_short" -ge 2; then
13560 rxvt_cv_uint16_t="unsigned short" 9772 rxvt_cv_uint16_t="unsigned short"
13561 else 9773 else
13562 if test $ac_cv_sizeof_int -ge 2; then 9774 if test "$ac_cv_sizeof_int" -ge 2; then
13563 rxvt_cv_uint16_t="unsigned int" 9775 rxvt_cv_uint16_t="unsigned int"
13564 else 9776 else
13565 if test $ac_cv_sizeof_long -ge 2; then 9777 if test "$ac_cv_sizeof_long" -ge 2; then
13566 rxvt_cv_uint16_t="unsigned long" 9778 rxvt_cv_uint16_t="unsigned long"
13567 else 9779 else
13568 if test $ac_cv_sizeof_long_long -ge 2; then 9780 if test "$ac_cv_sizeof_long_long" -ge 2; then
13569 rxvt_cv_uint16_t="unsigned long long" 9781 rxvt_cv_uint16_t="unsigned long long"
13570 else 9782 else
13571 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9783 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
13572 fi 9784 fi
13573 fi 9785 fi
13633 rxvt_cv_int32_t=yes 9845 rxvt_cv_int32_t=yes
13634else 9846else
13635 echo "$as_me: failed program was:" >&5 9847 echo "$as_me: failed program was:" >&5
13636sed 's/^/| /' conftest.$ac_ext >&5 9848sed 's/^/| /' conftest.$ac_ext >&5
13637 9849
13638if test $ac_cv_sizeof_char -ge 4; then 9850if test "$ac_cv_sizeof_char" -ge 4; then
13639 rxvt_cv_int32_t=" char" 9851 rxvt_cv_int32_t=" char"
13640else 9852else
13641 if test $ac_cv_sizeof_short -ge 4; then 9853 if test "$ac_cv_sizeof_short" -ge 4; then
13642 rxvt_cv_int32_t=" short" 9854 rxvt_cv_int32_t=" short"
13643 else 9855 else
13644 if test $ac_cv_sizeof_int -ge 4; then 9856 if test "$ac_cv_sizeof_int" -ge 4; then
13645 rxvt_cv_int32_t=" int" 9857 rxvt_cv_int32_t=" int"
13646 else 9858 else
13647 if test $ac_cv_sizeof_long -ge 4; then 9859 if test "$ac_cv_sizeof_long" -ge 4; then
13648 rxvt_cv_int32_t=" long" 9860 rxvt_cv_int32_t=" long"
13649 else 9861 else
13650 if test $ac_cv_sizeof_long_long -ge 4; then 9862 if test "$ac_cv_sizeof_long_long" -ge 4; then
13651 rxvt_cv_int32_t=" long long" 9863 rxvt_cv_int32_t=" long long"
13652 else 9864 else
13653 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9865 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
13654 fi 9866 fi
13655 fi 9867 fi
13715 rxvt_cv_uint32_t=yes 9927 rxvt_cv_uint32_t=yes
13716else 9928else
13717 echo "$as_me: failed program was:" >&5 9929 echo "$as_me: failed program was:" >&5
13718sed 's/^/| /' conftest.$ac_ext >&5 9930sed 's/^/| /' conftest.$ac_ext >&5
13719 9931
13720if test $ac_cv_sizeof_char -ge 4; then 9932if test "$ac_cv_sizeof_char" -ge 4; then
13721 rxvt_cv_uint32_t="unsigned char" 9933 rxvt_cv_uint32_t="unsigned char"
13722else 9934else
13723 if test $ac_cv_sizeof_short -ge 4; then 9935 if test "$ac_cv_sizeof_short" -ge 4; then
13724 rxvt_cv_uint32_t="unsigned short" 9936 rxvt_cv_uint32_t="unsigned short"
13725 else 9937 else
13726 if test $ac_cv_sizeof_int -ge 4; then 9938 if test "$ac_cv_sizeof_int" -ge 4; then
13727 rxvt_cv_uint32_t="unsigned int" 9939 rxvt_cv_uint32_t="unsigned int"
13728 else 9940 else
13729 if test $ac_cv_sizeof_long -ge 4; then 9941 if test "$ac_cv_sizeof_long" -ge 4; then
13730 rxvt_cv_uint32_t="unsigned long" 9942 rxvt_cv_uint32_t="unsigned long"
13731 else 9943 else
13732 if test $ac_cv_sizeof_long_long -ge 4; then 9944 if test "$ac_cv_sizeof_long_long" -ge 4; then
13733 rxvt_cv_uint32_t="unsigned long long" 9945 rxvt_cv_uint32_t="unsigned long long"
13734 else 9946 else
13735 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9947 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
13736 fi 9948 fi
13737 fi 9949 fi
13751 else 9963 else
13752 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9964 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
13753 fi 9965 fi
13754fi 9966fi
13755 9967
13756if test $ac_cv_sizeof_int_p -eq 8; then 9968if test "$ac_cv_sizeof_int_p" -eq 8; then
13757 rxvt_intp_define="#define intp_t int64_t" 9969 rxvt_intp_define="#define intp_t int64_t"
13758 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9970 rxvt_u_intp_define="#define u_intp_t u_int64_t"
13759else 9971else
13760 if test $ac_cv_sizeof_int_p -eq 4; then 9972 if test "$ac_cv_sizeof_int_p" -eq 4; then
13761 rxvt_intp_define="#define intp_t int32_t" 9973 rxvt_intp_define="#define intp_t int32_t"
13762 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9974 rxvt_u_intp_define="#define u_intp_t u_int32_t"
13763 else 9975 else
13764 if test $ac_cv_sizeof_int_p -eq 2; then 9976 if test "$ac_cv_sizeof_int_p" -eq 2; then
13765 rxvt_intp_define="#define intp_t int16_t" 9977 rxvt_intp_define="#define intp_t int16_t"
13766 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9978 rxvt_u_intp_define="#define u_intp_t u_int16_t"
13767 else 9979 else
13768 rxvt_intp_define="#error set intp_t" 9980 rxvt_intp_define="#error set intp_t"
13769 rxvt_u_intp_define="#error set u_intp_t" 9981 rxvt_u_intp_define="#error set u_intp_t"
13840#define RETSIGTYPE $ac_cv_type_signal 10052#define RETSIGTYPE $ac_cv_type_signal
13841_ACEOF 10053_ACEOF
13842 10054
13843 10055
13844 10056
13845case "$host_alias" in
13846 *ultrix) ac_cv_func_setsid='no' ;;
13847 *) break;;
13848esac
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862 10057
13863 10058
13864 10059
13865 10060
13866 10061
13867 10062
13868for ac_func in \ 10063for ac_func in \
13869 atexit \
13870 revoke \
13871 unsetenv \ 10064 unsetenv \
13872 setutent \ 10065 setutent \
13873 seteuid \ 10066 seteuid \
10067 setresuid \
13874 setreuid \ 10068 setreuid \
13875 setsid \
13876 setpgrp \
13877 setpgid \
13878 openpty \
13879 _getpty \
13880 grantpt \
13881 unlockpt \
13882 isastream \
13883 on_exit \ 10069 on_exit \
13884 nanosleep \
13885 updwtmp \
13886 ttyslot \
13887 10070
13888do 10071do
13889as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13890echo "$as_me:$LINENO: checking for $ac_func" >&5 10073echo "$as_me:$LINENO: checking for $ac_func" >&5
13891echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13980 cat >>confdefs.h <<_ACEOF 10163 cat >>confdefs.h <<_ACEOF
13981#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13982_ACEOF 10165_ACEOF
13983 10166
13984fi 10167fi
10168done
10169
10170
10171
10172
10173
10174
10175for ac_func in \
10176 ttyslot \
10177 updwtmp \
10178 updwtmpx \
10179
10180do
10181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10182echo "$as_me:$LINENO: checking for $ac_func" >&5
10183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10184if eval "test \"\${$as_ac_var+set}\" = set"; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10186else
10187 cat >conftest.$ac_ext <<_ACEOF
10188/* confdefs.h. */
10189_ACEOF
10190cat confdefs.h >>conftest.$ac_ext
10191cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h. */
10193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10195#define $ac_func innocuous_$ac_func
10196
10197/* System header to define __stub macros and hopefully few prototypes,
10198 which can conflict with char $ac_func (); below.
10199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10200 <limits.h> exists even on freestanding compilers. */
10201
10202#ifdef __STDC__
10203# include <limits.h>
10204#else
10205# include <assert.h>
10206#endif
10207
10208#undef $ac_func
10209
10210/* Override any gcc2 internal prototype to avoid an error. */
10211#ifdef __cplusplus
10212extern "C"
10213{
10214#endif
10215/* We use char because int might match the return type of a gcc2
10216 builtin and then its argument prototype would still apply. */
10217char $ac_func ();
10218/* The GNU C library defines this for functions which it implements
10219 to always fail with ENOSYS. Some functions are actually named
10220 something starting with __ and the normal name is an alias. */
10221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10222choke me
10223#else
10224char (*f) () = $ac_func;
10225#endif
10226#ifdef __cplusplus
10227}
10228#endif
10229
10230int
10231main ()
10232{
10233return f != $ac_func;
10234 ;
10235 return 0;
10236}
10237_ACEOF
10238rm -f conftest.$ac_objext conftest$ac_exeext
10239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10240 (eval $ac_link) 2>conftest.er1
10241 ac_status=$?
10242 grep -v '^ *+' conftest.er1 >conftest.err
10243 rm -f conftest.er1
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10249 (eval $ac_try) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; } &&
10253 { ac_try='test -s conftest$ac_exeext'
10254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 eval "$as_ac_var=yes"
10260else
10261 echo "$as_me: failed program was:" >&5
10262sed 's/^/| /' conftest.$ac_ext >&5
10263
10264eval "$as_ac_var=no"
10265fi
10266rm -f conftest.err conftest.$ac_objext \
10267 conftest$ac_exeext conftest.$ac_ext
10268fi
10269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10271if test `eval echo '${'$as_ac_var'}'` = yes; then
10272 cat >>confdefs.h <<_ACEOF
10273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10274_ACEOF
10275
10276fi
10277done
10278
10279
10280
10281
10282
10283for ac_header in \
10284 utmp.h \
10285 utmpx.h \
10286 lastlog.h \
10287
10288do
10289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10290if eval "test \"\${$as_ac_Header+set}\" = set"; then
10291 echo "$as_me:$LINENO: checking for $ac_header" >&5
10292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10293if eval "test \"\${$as_ac_Header+set}\" = set"; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10295fi
10296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10298else
10299 # Is the header compilable?
10300echo "$as_me:$LINENO: checking $ac_header usability" >&5
10301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10302cat >conftest.$ac_ext <<_ACEOF
10303/* confdefs.h. */
10304_ACEOF
10305cat confdefs.h >>conftest.$ac_ext
10306cat >>conftest.$ac_ext <<_ACEOF
10307/* end confdefs.h. */
10308$ac_includes_default
10309#include <$ac_header>
10310_ACEOF
10311rm -f conftest.$ac_objext
10312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10313 (eval $ac_compile) 2>conftest.er1
10314 ac_status=$?
10315 grep -v '^ *+' conftest.er1 >conftest.err
10316 rm -f conftest.er1
10317 cat conftest.err >&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); } &&
10320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest.$ac_objext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
10332 ac_header_compiler=yes
10333else
10334 echo "$as_me: failed program was:" >&5
10335sed 's/^/| /' conftest.$ac_ext >&5
10336
10337ac_header_compiler=no
10338fi
10339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10341echo "${ECHO_T}$ac_header_compiler" >&6
10342
10343# Is the header present?
10344echo "$as_me:$LINENO: checking $ac_header presence" >&5
10345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10346cat >conftest.$ac_ext <<_ACEOF
10347/* confdefs.h. */
10348_ACEOF
10349cat confdefs.h >>conftest.$ac_ext
10350cat >>conftest.$ac_ext <<_ACEOF
10351/* end confdefs.h. */
10352#include <$ac_header>
10353_ACEOF
10354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10356 ac_status=$?
10357 grep -v '^ *+' conftest.er1 >conftest.err
10358 rm -f conftest.er1
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } >/dev/null; then
10362 if test -s conftest.err; then
10363 ac_cpp_err=$ac_cxx_preproc_warn_flag
10364 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10365 else
10366 ac_cpp_err=
10367 fi
10368else
10369 ac_cpp_err=yes
10370fi
10371if test -z "$ac_cpp_err"; then
10372 ac_header_preproc=yes
10373else
10374 echo "$as_me: failed program was:" >&5
10375sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 ac_header_preproc=no
10378fi
10379rm -f conftest.err conftest.$ac_ext
10380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10381echo "${ECHO_T}$ac_header_preproc" >&6
10382
10383# So? What about this header?
10384case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10385 yes:no: )
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10390 ac_header_preproc=yes
10391 ;;
10392 no:yes:* )
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10405 (
10406 cat <<\_ASBOX
10407## ------------------------------------------ ##
10408## Report this to the AC_PACKAGE_NAME lists. ##
10409## ------------------------------------------ ##
10410_ASBOX
10411 ) |
10412 sed "s/^/$as_me: WARNING: /" >&2
10413 ;;
10414esac
10415echo "$as_me:$LINENO: checking for $ac_header" >&5
10416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10417if eval "test \"\${$as_ac_Header+set}\" = set"; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10419else
10420 eval "$as_ac_Header=\$ac_header_preproc"
10421fi
10422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10424
10425fi
10426if test `eval echo '${'$as_ac_Header'}'` = yes; then
10427 cat >>confdefs.h <<_ACEOF
10428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10429_ACEOF
10430
10431fi
10432
13985done 10433done
13986 10434
13987 10435
13988 10436
13989if test "${ac_cv_header_utmp_h+set}" = set; then 10437if test "${ac_cv_header_utmp_h+set}" = set; then
14123 10571
14124fi 10572fi
14125if test $ac_cv_header_utmp_h = yes; then 10573if test $ac_cv_header_utmp_h = yes; then
14126 echo "$as_me:$LINENO: checking for struct utmp" >&5 10574 echo "$as_me:$LINENO: checking for struct utmp" >&5
14127echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6 10575echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
14128if test "${rxvt_cv_struct_utmp+set}" = set; then 10576if test "${struct_utmp+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6 10577 echo $ECHO_N "(cached) $ECHO_C" >&6
14130else 10578else
14131 cat >conftest.$ac_ext <<_ACEOF 10579 cat >conftest.$ac_ext <<_ACEOF
14132/* confdefs.h. */ 10580/* confdefs.h. */
14133_ACEOF 10581_ACEOF
14134cat confdefs.h >>conftest.$ac_ext 10582cat confdefs.h >>conftest.$ac_ext
14135cat >>conftest.$ac_ext <<_ACEOF 10583cat >>conftest.$ac_ext <<_ACEOF
14136/* end confdefs.h. */ 10584/* end confdefs.h. */
14137#include <sys/types.h> 10585#include <sys/types.h>
14138#include <stdint.h>
14139#include <utmp.h> 10586#include <utmp.h>
14140int 10587int
14141main () 10588main ()
14142{ 10589{
14143struct utmp ut; 10590struct utmp ut;
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5 10612 (eval $ac_try) 2>&5
14166 ac_status=$? 10613 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; }; then 10615 (exit $ac_status); }; }; then
14169 rxvt_cv_struct_utmp=yes 10616 struct_utmp=yes
14170else 10617else
14171 echo "$as_me: failed program was:" >&5 10618 echo "$as_me: failed program was:" >&5
14172sed 's/^/| /' conftest.$ac_ext >&5 10619sed 's/^/| /' conftest.$ac_ext >&5
14173 10620
14174rxvt_cv_struct_utmp=no 10621struct_utmp=no
14175fi 10622fi
14176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14177fi 10624fi
14178echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5 10625echo "$as_me:$LINENO: result: $struct_utmp" >&5
14179echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6 10626echo "${ECHO_T}$struct_utmp" >&6
14180if test x$rxvt_cv_struct_utmp = xyes; then 10627if test x$struct_utmp = xyes; then
14181 10628
14182cat >>confdefs.h <<\_ACEOF 10629cat >>confdefs.h <<\_ACEOF
14183#define HAVE_STRUCT_UTMP 1 10630#define HAVE_STRUCT_UTMP 1
14184_ACEOF 10631_ACEOF
14185 10632
14186fi 10633fi
14187 10634
14188 10635
14189echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 10636echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
14190echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6 10637echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
14191if test "${rxvt_cv_struct_utmp_host+set}" = set; then 10638if test "${struct_utmp_host+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6 10639 echo $ECHO_N "(cached) $ECHO_C" >&6
14193else 10640else
14194 cat >conftest.$ac_ext <<_ACEOF 10641 cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */ 10642/* confdefs.h. */
14196_ACEOF 10643_ACEOF
14226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14227 (eval $ac_try) 2>&5 10674 (eval $ac_try) 2>&5
14228 ac_status=$? 10675 ac_status=$?
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then 10677 (exit $ac_status); }; }; then
14231 rxvt_cv_struct_utmp_host=yes 10678 struct_utmp_host=yes
14232else 10679else
14233 echo "$as_me: failed program was:" >&5 10680 echo "$as_me: failed program was:" >&5
14234sed 's/^/| /' conftest.$ac_ext >&5 10681sed 's/^/| /' conftest.$ac_ext >&5
14235 10682
14236rxvt_cv_struct_utmp_host=no 10683struct_utmp_host=no
14237fi 10684fi
14238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14239fi 10686fi
14240echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5 10687echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
14241echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6 10688echo "${ECHO_T}$struct_utmp_host" >&6
14242if test x$rxvt_cv_struct_utmp_host = xyes; then 10689if test x$struct_utmp_host = xyes; then
14243 10690
14244cat >>confdefs.h <<\_ACEOF 10691cat >>confdefs.h <<\_ACEOF
14245#define HAVE_UTMP_HOST 1 10692#define HAVE_UTMP_HOST 1
14246_ACEOF 10693_ACEOF
14247 10694
14248fi 10695fi
14249 10696
14250echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 10697echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
14251echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 10698echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6
14252if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 10699if test "${struct_utmp_pid+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6 10700 echo $ECHO_N "(cached) $ECHO_C" >&6
14254else 10701else
14255 cat >conftest.$ac_ext <<_ACEOF 10702 cat >conftest.$ac_ext <<_ACEOF
14256/* confdefs.h. */ 10703/* confdefs.h. */
14257_ACEOF 10704_ACEOF
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5 10735 (eval $ac_try) 2>&5
14289 ac_status=$? 10736 ac_status=$?
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then 10738 (exit $ac_status); }; }; then
14292 rxvt_cv_struct_utmp_pid=yes 10739 struct_utmp_pid=yes
14293else 10740else
14294 echo "$as_me: failed program was:" >&5 10741 echo "$as_me: failed program was:" >&5
14295sed 's/^/| /' conftest.$ac_ext >&5 10742sed 's/^/| /' conftest.$ac_ext >&5
14296 10743
14297rxvt_cv_struct_utmp_pid=no 10744struct_utmp_pid=no
14298fi 10745fi
14299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14300fi 10747fi
14301echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5 10748echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
14302echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6 10749echo "${ECHO_T}$struct_utmp_pid" >&6
14303if test x$rxvt_cv_struct_utmp_pid = xyes; then 10750if test x$struct_utmp_pid = xyes; then
14304 10751
14305cat >>confdefs.h <<\_ACEOF 10752cat >>confdefs.h <<\_ACEOF
14306#define HAVE_UTMP_PID 1 10753#define HAVE_UTMP_PID 1
14307_ACEOF 10754_ACEOF
14308 10755
14449 10896
14450fi 10897fi
14451if test $ac_cv_header_utmpx_h = yes; then 10898if test $ac_cv_header_utmpx_h = yes; then
14452 echo "$as_me:$LINENO: checking for struct utmpx" >&5 10899 echo "$as_me:$LINENO: checking for struct utmpx" >&5
14453echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6 10900echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
14454if test "${rxvt_cv_struct_utmpx+set}" = set; then 10901if test "${struct_utmpx+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6 10902 echo $ECHO_N "(cached) $ECHO_C" >&6
14456else 10903else
14457 cat >conftest.$ac_ext <<_ACEOF 10904 cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h. */ 10905/* confdefs.h. */
14459_ACEOF 10906_ACEOF
14489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490 (eval $ac_try) 2>&5 10937 (eval $ac_try) 2>&5
14491 ac_status=$? 10938 ac_status=$?
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); }; }; then 10940 (exit $ac_status); }; }; then
14494 rxvt_cv_struct_utmpx=yes 10941 struct_utmpx=yes
14495else 10942else
14496 echo "$as_me: failed program was:" >&5 10943 echo "$as_me: failed program was:" >&5
14497sed 's/^/| /' conftest.$ac_ext >&5 10944sed 's/^/| /' conftest.$ac_ext >&5
14498 10945
14499rxvt_cv_struct_utmpx=no 10946struct_utmpx=no
14500fi 10947fi
14501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14502fi 10949fi
14503echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5 10950echo "$as_me:$LINENO: result: $struct_utmpx" >&5
14504echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6 10951echo "${ECHO_T}$struct_utmpx" >&6
14505if test x$rxvt_cv_struct_utmpx = xyes; then 10952if test x$struct_utmpx = xyes; then
14506 10953
14507cat >>confdefs.h <<\_ACEOF 10954cat >>confdefs.h <<\_ACEOF
14508#define HAVE_STRUCT_UTMPX 1 10955#define HAVE_STRUCT_UTMPX 1
14509_ACEOF 10956_ACEOF
14510 10957
14511fi 10958fi
14512 10959
14513 10960
14514echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 10961echo "$as_me:$LINENO: checking for host in utmpx struct" >&5
14515echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 10962echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6
14516if test "${rxvt_cv_struct_utmpx_host+set}" = set; then 10963if test "${struct_utmpx_host+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6 10964 echo $ECHO_N "(cached) $ECHO_C" >&6
14518else 10965else
14519 cat >conftest.$ac_ext <<_ACEOF 10966 cat >conftest.$ac_ext <<_ACEOF
14520/* confdefs.h. */ 10967/* confdefs.h. */
14521_ACEOF 10968_ACEOF
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5 10999 (eval $ac_try) 2>&5
14553 ac_status=$? 11000 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then 11002 (exit $ac_status); }; }; then
14556 rxvt_cv_struct_utmpx_host=yes 11003 struct_utmpx_host=yes
14557else 11004else
14558 echo "$as_me: failed program was:" >&5 11005 echo "$as_me: failed program was:" >&5
14559sed 's/^/| /' conftest.$ac_ext >&5 11006sed 's/^/| /' conftest.$ac_ext >&5
14560 11007
14561rxvt_cv_struct_utmpx_host=no 11008struct_utmpx_host=no
14562fi 11009fi
14563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14564fi 11011fi
14565echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5 11012echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
14566echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6 11013echo "${ECHO_T}$struct_utmpx_host" >&6
14567if test x$rxvt_cv_struct_utmpx_host = xyes; then 11014if test x$struct_utmpx_host = xyes; then
14568 11015
14569cat >>confdefs.h <<\_ACEOF 11016cat >>confdefs.h <<\_ACEOF
14570#define HAVE_UTMPX_HOST 1 11017#define HAVE_UTMPX_HOST 1
14571_ACEOF 11018_ACEOF
14572 11019
14573fi 11020fi
14574 11021
14575fi 11022echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
11023echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
11024if test "${struct_utmpx_session+set}" = set; then
11025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026else
11027 cat >conftest.$ac_ext <<_ACEOF
11028/* confdefs.h. */
11029_ACEOF
11030cat confdefs.h >>conftest.$ac_ext
11031cat >>conftest.$ac_ext <<_ACEOF
11032/* end confdefs.h. */
11033#include <sys/types.h>
11034#include <utmpx.h>
11035int
11036main ()
11037{
11038struct utmpx utx; utx.ut_session;
11039 ;
11040 return 0;
11041}
11042_ACEOF
11043rm -f conftest.$ac_objext
11044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11045 (eval $ac_compile) 2>conftest.er1
11046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try='test -s conftest.$ac_objext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 struct_utmpx_session=yes
11065else
11066 echo "$as_me: failed program was:" >&5
11067sed 's/^/| /' conftest.$ac_ext >&5
14576 11068
11069struct_utmpx_session=no
11070fi
11071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11072fi
11073echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
11074echo "${ECHO_T}$struct_utmpx_session" >&6
11075if test x$struct_utmpx_session = xyes; then
11076
11077cat >>confdefs.h <<\_ACEOF
11078#define HAVE_UTMPX_SESSION 1
11079_ACEOF
11080
11081fi
11082
11083fi
14577 11084
14578 11085
14579echo "$as_me:$LINENO: checking for struct lastlog" >&5 11086echo "$as_me:$LINENO: checking for struct lastlog" >&5
14580echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 11087echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
14581if test "${rxvt_cv_struct_lastlog+set}" = set; then 11088if test "${struct_lastlog+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6 11089 echo $ECHO_N "(cached) $ECHO_C" >&6
14583else 11090else
14584 cat >conftest.$ac_ext <<_ACEOF 11091 cat >conftest.$ac_ext <<_ACEOF
14585/* confdefs.h. */ 11092/* confdefs.h. */
14586_ACEOF 11093_ACEOF
14620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14621 (eval $ac_try) 2>&5 11128 (eval $ac_try) 2>&5
14622 ac_status=$? 11129 ac_status=$?
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); }; }; then 11131 (exit $ac_status); }; }; then
14625 rxvt_cv_struct_lastlog=yes 11132 struct_lastlog=yes
14626else 11133else
14627 echo "$as_me: failed program was:" >&5 11134 echo "$as_me: failed program was:" >&5
14628sed 's/^/| /' conftest.$ac_ext >&5 11135sed 's/^/| /' conftest.$ac_ext >&5
14629 11136
14630rxvt_cv_struct_lastlog=no 11137struct_lastlog=no
14631fi 11138fi
14632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14633fi 11140fi
14634echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5 11141echo "$as_me:$LINENO: result: $struct_lastlog" >&5
14635echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6 11142echo "${ECHO_T}$struct_lastlog" >&6
14636if test x$rxvt_cv_struct_lastlog = xyes; then 11143if test x$struct_lastlog = xyes; then
14637 11144
14638cat >>confdefs.h <<\_ACEOF 11145cat >>confdefs.h <<\_ACEOF
14639#define HAVE_STRUCT_LASTLOG 1 11146#define HAVE_STRUCT_LASTLOG 1
14640_ACEOF 11147_ACEOF
14641 11148
14642fi 11149fi
14643 11150
14644echo "$as_me:$LINENO: checking for struct lastlogx" >&5 11151echo "$as_me:$LINENO: checking for struct lastlogx" >&5
14645echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 11152echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6
14646if test "${rxvt_cv_struct_lastlogx+set}" = set; then 11153if test "${struct_lastlogx+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6 11154 echo $ECHO_N "(cached) $ECHO_C" >&6
14648else 11155else
14649 cat >conftest.$ac_ext <<_ACEOF 11156 cat >conftest.$ac_ext <<_ACEOF
14650/* confdefs.h. */ 11157/* confdefs.h. */
14651_ACEOF 11158_ACEOF
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5 11193 (eval $ac_try) 2>&5
14687 ac_status=$? 11194 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; }; then 11196 (exit $ac_status); }; }; then
14690 rxvt_cv_struct_lastlogx=yes 11197 struct_lastlogx=yes
14691else 11198else
14692 echo "$as_me: failed program was:" >&5 11199 echo "$as_me: failed program was:" >&5
14693sed 's/^/| /' conftest.$ac_ext >&5 11200sed 's/^/| /' conftest.$ac_ext >&5
14694 11201
14695rxvt_cv_struct_lastlogx=no 11202struct_lastlogx=no
14696fi 11203fi
14697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14698fi 11205fi
14699echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5 11206echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
14700echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6 11207echo "${ECHO_T}$struct_lastlogx" >&6
14701if test x$rxvt_cv_struct_lastlogx = xyes; then 11208if test x$struct_lastlogx = xyes; then
14702 11209
14703cat >>confdefs.h <<\_ACEOF 11210cat >>confdefs.h <<\_ACEOF
14704#define HAVE_STRUCT_LASTLOGX 1 11211#define HAVE_STRUCT_LASTLOGX 1
14705_ACEOF 11212_ACEOF
14706 11213
14707fi 11214fi
14708 11215
14709 11216
14710echo "$as_me:$LINENO: checking where utmp is located" >&5 11217echo "$as_me:$LINENO: checking where utmp is located" >&5
14711echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 11218echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6
14712if test "${rxvt_cv_path_utmp+set}" = set; then 11219if test "${path_utmp+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6 11220 echo $ECHO_N "(cached) $ECHO_C" >&6
14714else 11221else
14715 if test "$cross_compiling" = yes; then 11222 if test "$cross_compiling" = yes; then
14716 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 11223 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
14717echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;} 11224echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
14718else 11225else
14719 cat >conftest.$ac_ext <<_ACEOF 11226 cat >conftest.$ac_ext <<_ACEOF
14720/* confdefs.h. */ 11227/* confdefs.h. */
14721_ACEOF 11228_ACEOF
14722cat confdefs.h >>conftest.$ac_ext 11229cat confdefs.h >>conftest.$ac_ext
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5 11266 (eval $ac_try) 2>&5
14760 ac_status=$? 11267 ac_status=$?
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then 11269 (exit $ac_status); }; }; then
14763 rxvt_cv_path_utmp=`cat conftestval` 11270 path_utmp=`cat conftestval`
14764else 11271else
14765 echo "$as_me: program exited with status $ac_status" >&5 11272 echo "$as_me: program exited with status $ac_status" >&5
14766echo "$as_me: failed program was:" >&5 11273echo "$as_me: failed program was:" >&5
14767sed 's/^/| /' conftest.$ac_ext >&5 11274sed 's/^/| /' conftest.$ac_ext >&5
14768 11275
14769( exit $ac_status ) 11276( exit $ac_status )
14770rxvt_cv_path_utmp= 11277path_utmp=
14771fi 11278fi
14772rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11279rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14773fi 11280fi
14774fi 11281fi
14775echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 11282echo "$as_me:$LINENO: result: $path_utmp" >&5
14776echo "${ECHO_T}$rxvt_cv_path_utmp" >&6 11283echo "${ECHO_T}$path_utmp" >&6
14777if test x$rxvt_cv_path_utmp != x; then 11284if test x$path_utmp != x; then
14778 11285
14779cat >>confdefs.h <<_ACEOF 11286cat >>confdefs.h <<_ACEOF
14780#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp" 11287#define UTMP_FILE "$path_utmp"
14781_ACEOF 11288_ACEOF
14782 11289
14783fi 11290fi
14784 11291
14785 11292
14786echo "$as_me:$LINENO: checking where utmpx is located" >&5 11293echo "$as_me:$LINENO: checking where utmpx is located" >&5
14787echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6 11294echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
14788if test "${rxvt_cv_path_utmpx+set}" = set; then 11295if test "${path_utmpx+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6 11296 echo $ECHO_N "(cached) $ECHO_C" >&6
14790else 11297else
14791 if test "$cross_compiling" = yes; then 11298 if test "$cross_compiling" = yes; then
14792 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5 11299 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5
14793echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;} 11300echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;}
14794else 11301else
14795 cat >conftest.$ac_ext <<_ACEOF 11302 cat >conftest.$ac_ext <<_ACEOF
14796/* confdefs.h. */ 11303/* confdefs.h. */
14797_ACEOF 11304_ACEOF
14798cat confdefs.h >>conftest.$ac_ext 11305cat confdefs.h >>conftest.$ac_ext
14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14845 (eval $ac_try) 2>&5 11352 (eval $ac_try) 2>&5
14846 ac_status=$? 11353 ac_status=$?
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); }; }; then 11355 (exit $ac_status); }; }; then
14849 rxvt_cv_path_utmpx=`cat conftestval` 11356 path_utmpx=`cat conftestval`
14850else 11357else
14851 echo "$as_me: program exited with status $ac_status" >&5 11358 echo "$as_me: program exited with status $ac_status" >&5
14852echo "$as_me: failed program was:" >&5 11359echo "$as_me: failed program was:" >&5
14853sed 's/^/| /' conftest.$ac_ext >&5 11360sed 's/^/| /' conftest.$ac_ext >&5
14854 11361
14855( exit $ac_status ) 11362( exit $ac_status )
14856rxvt_cv_path_utmpx= 11363path_utmpx=
14857fi 11364fi
14858rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11365rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14859fi 11366fi
14860fi 11367fi
14861echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5 11368echo "$as_me:$LINENO: result: $path_utmpx" >&5
14862echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6 11369echo "${ECHO_T}$path_utmpx" >&6
14863if test x$rxvt_cv_path_utmpx != x; then 11370if test x$path_utmpx != x; then
14864 11371
14865cat >>confdefs.h <<_ACEOF 11372cat >>confdefs.h <<_ACEOF
14866#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx" 11373#define UTMPX_FILE "$path_utmpx"
14867_ACEOF 11374_ACEOF
14868 11375
14869fi 11376fi
14870 11377
14871 11378
14872echo "$as_me:$LINENO: checking where wtmp is located" >&5 11379echo "$as_me:$LINENO: checking where wtmp is located" >&5
14873echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6 11380echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
14874if test "${rxvt_cv_path_wtmp+set}" = set; then 11381if test "${path_wtmp+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6 11382 echo $ECHO_N "(cached) $ECHO_C" >&6
14876else 11383else
14877 if test "$cross_compiling" = yes; then 11384 if test "$cross_compiling" = yes; then
14878 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5 11385 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5
14879echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;} 11386echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;}
14880else 11387else
14881 cat >conftest.$ac_ext <<_ACEOF 11388 cat >conftest.$ac_ext <<_ACEOF
14882/* confdefs.h. */ 11389/* confdefs.h. */
14883_ACEOF 11390_ACEOF
14884cat confdefs.h >>conftest.$ac_ext 11391cat confdefs.h >>conftest.$ac_ext
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5 11430 (eval $ac_try) 2>&5
14924 ac_status=$? 11431 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then 11433 (exit $ac_status); }; }; then
14927 rxvt_cv_path_wtmp=`cat conftestval` 11434 path_wtmp=`cat conftestval`
14928else 11435else
14929 echo "$as_me: program exited with status $ac_status" >&5 11436 echo "$as_me: program exited with status $ac_status" >&5
14930echo "$as_me: failed program was:" >&5 11437echo "$as_me: failed program was:" >&5
14931sed 's/^/| /' conftest.$ac_ext >&5 11438sed 's/^/| /' conftest.$ac_ext >&5
14932 11439
14933( exit $ac_status ) 11440( exit $ac_status )
14934rxvt_cv_path_wtmp= 11441path_wtmp=
14935fi 11442fi
14936rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14937fi 11444fi
14938fi 11445fi
14939echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5 11446echo "$as_me:$LINENO: result: $path_wtmp" >&5
14940echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6 11447echo "${ECHO_T}$path_wtmp" >&6
14941if test x$rxvt_cv_path_wtmp != x; then 11448if test x$path_wtmp != x; then
14942 11449
14943cat >>confdefs.h <<_ACEOF 11450cat >>confdefs.h <<_ACEOF
14944#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp" 11451#define WTMP_FILE "$path_wtmp"
14945_ACEOF 11452_ACEOF
14946 11453
14947fi 11454fi
14948 11455
14949echo "$as_me:$LINENO: checking where wtmpx is located" >&5 11456echo "$as_me:$LINENO: checking where wtmpx is located" >&5
14950echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6 11457echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
14951if test "${rxvt_cv_path_wtmpx+set}" = set; then 11458if test "${path_wtmpx+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6 11459 echo $ECHO_N "(cached) $ECHO_C" >&6
14953else 11460else
14954 if test "$cross_compiling" = yes; then 11461 if test "$cross_compiling" = yes; then
14955 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5 11462 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5
14956echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;} 11463echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;}
14957else 11464else
14958 cat >conftest.$ac_ext <<_ACEOF 11465 cat >conftest.$ac_ext <<_ACEOF
14959/* confdefs.h. */ 11466/* confdefs.h. */
14960_ACEOF 11467_ACEOF
14961cat confdefs.h >>conftest.$ac_ext 11468cat confdefs.h >>conftest.$ac_ext
14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14999 (eval $ac_try) 2>&5 11506 (eval $ac_try) 2>&5
15000 ac_status=$? 11507 ac_status=$?
15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15002 (exit $ac_status); }; }; then 11509 (exit $ac_status); }; }; then
15003 rxvt_cv_path_wtmpx=`cat conftestval` 11510 path_wtmpx=`cat conftestval`
15004else 11511else
15005 echo "$as_me: program exited with status $ac_status" >&5 11512 echo "$as_me: program exited with status $ac_status" >&5
15006echo "$as_me: failed program was:" >&5 11513echo "$as_me: failed program was:" >&5
15007sed 's/^/| /' conftest.$ac_ext >&5 11514sed 's/^/| /' conftest.$ac_ext >&5
15008 11515
15009( exit $ac_status ) 11516( exit $ac_status )
15010rxvt_cv_path_wtmpx= 11517path_wtmpx=
15011fi 11518fi
15012rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11519rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15013fi 11520fi
15014fi 11521fi
15015echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5 11522echo "$as_me:$LINENO: result: $path_wtmpx" >&5
15016echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6 11523echo "${ECHO_T}$path_wtmpx" >&6
15017if test x$rxvt_cv_path_wtmpx != x; then 11524if test x$path_wtmpx != x; then
15018 11525
15019cat >>confdefs.h <<_ACEOF 11526cat >>confdefs.h <<_ACEOF
15020#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx" 11527#define WTMPX_FILE "$path_wtmpx"
15021_ACEOF 11528_ACEOF
15022 11529
15023fi 11530fi
15024 11531
15025echo "$as_me:$LINENO: checking where lastlog is located" >&5 11532echo "$as_me:$LINENO: checking where lastlog is located" >&5
15026echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6 11533echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
15027if test "${rxvt_cv_path_lastlog+set}" = set; then 11534if test "${path_lastlog+set}" = set; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6 11535 echo $ECHO_N "(cached) $ECHO_C" >&6
15029else 11536else
15030 if test "$cross_compiling" = yes; then 11537 if test "$cross_compiling" = yes; then
15031 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5 11538 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5
15032echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;} 11539echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;}
15033else 11540else
15034 cat >conftest.$ac_ext <<_ACEOF 11541 cat >conftest.$ac_ext <<_ACEOF
15035/* confdefs.h. */ 11542/* confdefs.h. */
15036_ACEOF 11543_ACEOF
15037cat confdefs.h >>conftest.$ac_ext 11544cat confdefs.h >>conftest.$ac_ext
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5 11587 (eval $ac_try) 2>&5
15081 ac_status=$? 11588 ac_status=$?
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; }; then 11590 (exit $ac_status); }; }; then
15084 rxvt_cv_path_lastlog=`cat conftestval` 11591 path_lastlog=`cat conftestval`
15085else 11592else
15086 echo "$as_me: program exited with status $ac_status" >&5 11593 echo "$as_me: program exited with status $ac_status" >&5
15087echo "$as_me: failed program was:" >&5 11594echo "$as_me: failed program was:" >&5
15088sed 's/^/| /' conftest.$ac_ext >&5 11595sed 's/^/| /' conftest.$ac_ext >&5
15089 11596
15090( exit $ac_status ) 11597( exit $ac_status )
15091rxvt_cv_path_lastlog= 11598path_lastlog=
15092fi 11599fi
15093rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11600rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15094fi 11601fi
15095fi 11602fi
15096echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5 11603echo "$as_me:$LINENO: result: $path_lastlog" >&5
15097echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6 11604echo "${ECHO_T}$path_lastlog" >&6
15098if test x$rxvt_cv_path_lastlog != x; then 11605if test x$path_lastlog != x; then
15099 11606
15100cat >>confdefs.h <<_ACEOF 11607cat >>confdefs.h <<_ACEOF
15101#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog" 11608#define LASTLOG_FILE "$path_lastlog"
15102_ACEOF 11609_ACEOF
15103 11610
15104 if test -d "$rxvt_cv_path_lastlog"; then 11611 if test -d "$path_lastlog"; then
15105 11612
15106cat >>confdefs.h <<\_ACEOF 11613cat >>confdefs.h <<\_ACEOF
15107#define LASTLOG_IS_DIR 1 11614#define LASTLOG_IS_DIR 1
15108_ACEOF 11615_ACEOF
15109 11616
15110 fi 11617 fi
15111fi 11618fi
15112 11619
15113echo "$as_me:$LINENO: checking where lastlogx is located" >&5 11620echo "$as_me:$LINENO: checking where lastlogx is located" >&5
15114echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6 11621echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
15115if test "${rxvt_cv_path_lastlogx+set}" = set; then 11622if test "${path_lastlogx+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6 11623 echo $ECHO_N "(cached) $ECHO_C" >&6
15117else 11624else
15118 if test "$cross_compiling" = yes; then 11625 if test "$cross_compiling" = yes; then
15119 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5 11626 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5
15120echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;} 11627echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;}
15121else 11628else
15122 cat >conftest.$ac_ext <<_ACEOF 11629 cat >conftest.$ac_ext <<_ACEOF
15123/* confdefs.h. */ 11630/* confdefs.h. */
15124_ACEOF 11631_ACEOF
15125cat confdefs.h >>conftest.$ac_ext 11632cat confdefs.h >>conftest.$ac_ext
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5 11669 (eval $ac_try) 2>&5
15163 ac_status=$? 11670 ac_status=$?
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then 11672 (exit $ac_status); }; }; then
15166 rxvt_cv_path_lastlogx=`cat conftestval` 11673 path_lastlogx=`cat conftestval`
15167else 11674else
15168 echo "$as_me: program exited with status $ac_status" >&5 11675 echo "$as_me: program exited with status $ac_status" >&5
15169echo "$as_me: failed program was:" >&5 11676echo "$as_me: failed program was:" >&5
15170sed 's/^/| /' conftest.$ac_ext >&5 11677sed 's/^/| /' conftest.$ac_ext >&5
15171 11678
15172( exit $ac_status ) 11679( exit $ac_status )
15173rxvt_cv_path_lastlogx= 11680path_lastlogx=
15174fi 11681fi
15175rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 11682rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15176fi 11683fi
15177fi 11684fi
15178echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5 11685echo "$as_me:$LINENO: result: $path_lastlogx" >&5
15179echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6 11686echo "${ECHO_T}$path_lastlogx" >&6
15180if test x$rxvt_cv_path_lastlogx != x; then 11687if test x$path_lastlogx != x; then
15181 11688
15182cat >>confdefs.h <<_ACEOF 11689cat >>confdefs.h <<_ACEOF
15183#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx" 11690#define LASTLOGX_FILE "$path_lastlogx"
15184_ACEOF 11691_ACEOF
15185 11692
15186fi 11693fi
11694
15187 11695
15188 11696
15189echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5 11697echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
15190echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6 11698echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
15191if test "${rxvt_cv_path_ttytab+set}" = set; then 11699if test "${rxvt_cv_path_ttytab+set}" = set; then
15458#define HAVE_NL_LANGINFO 1 11966#define HAVE_NL_LANGINFO 1
15459_ACEOF 11967_ACEOF
15460 11968
15461fi 11969fi
15462 11970
11971
11972echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11973echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11974if test "${can_pass_fds+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976else
11977 cat >conftest.$ac_ext <<_ACEOF
11978/* confdefs.h. */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */
11983
11984#include <cstddef> // broken bsds (is that redundant) need this
11985#include <sys/types.h>
11986#include <sys/socket.h>
11987#include <sys/uio.h>
11988
11989int
11990main ()
11991{
11992
11993{
11994 msghdr msg;
11995 iovec iov;
11996 char buf [100];
11997 char data = 0;
11998
11999 iov.iov_base = &data;
12000 iov.iov_len = 1;
12001
12002 msg.msg_iov = &iov;
12003 msg.msg_iovlen = 1;
12004 msg.msg_control = buf;
12005 msg.msg_controllen = sizeof buf;
12006
12007 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
12008 cmsg->cmsg_level = SOL_SOCKET;
12009 cmsg->cmsg_type = SCM_RIGHTS;
12010 cmsg->cmsg_len = 100;
12011
12012 *(int *)CMSG_DATA (cmsg) = 5;
12013
12014 return sendmsg (3, &msg, 0);
12015}
12016
12017 ;
12018 return 0;
12019}
12020_ACEOF
12021rm -f conftest.$ac_objext conftest$ac_exeext
12022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12024 ac_status=$?
12025 grep -v '^ *+' conftest.er1 >conftest.err
12026 rm -f conftest.er1
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 can_pass_fds=yes
12043else
12044 echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047can_pass_fds=no
12048fi
12049rm -f conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12051fi
12052echo "$as_me:$LINENO: result: $can_pass_fds" >&5
12053echo "${ECHO_T}$can_pass_fds" >&6
12054if test x$can_pass_fds = xyes; then
12055
12056cat >>confdefs.h <<\_ACEOF
12057#define HAVE_UNIX_FDPASS 1
12058_ACEOF
12059
12060else
12061 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12062echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;}
12063 { (exit 1); exit 1; }; }
12064fi
12065
12066
15463echo "$as_me:$LINENO: checking for broken XIM callback" >&5 12067echo "$as_me:$LINENO: checking for broken XIM callback" >&5
15464echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 12068echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
15465if test "${rxvt_broken_ximcb+set}" = set; then 12069if test "${rxvt_broken_ximcb+set}" = set; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6 12070 echo $ECHO_N "(cached) $ECHO_C" >&6
15467else 12071else
15516#define XIMCB_PROTO_BROKEN 1 12120#define XIMCB_PROTO_BROKEN 1
15517_ACEOF 12121_ACEOF
15518 12122
15519fi 12123fi
15520 12124
15521echo "$as_me:$LINENO: checking for getpt" >&5
15522echo $ECHO_N "checking for getpt... $ECHO_C" >&6
15523if test "${rxvt_cv_func_getpt+set}" = set; then
15524 echo $ECHO_N "(cached) $ECHO_C" >&6
15525else
15526 cat >conftest.$ac_ext <<_ACEOF
15527/* confdefs.h. */
15528_ACEOF
15529cat confdefs.h >>conftest.$ac_ext
15530cat >>conftest.$ac_ext <<_ACEOF
15531/* end confdefs.h. */
15532#define _GNU_SOURCE
15533#ifdef HAVE_STDLIB_H
15534# include <cstdlib>
15535#endif
15536int
15537main ()
15538{
15539(void)getpt();
15540 ;
15541 return 0;
15542}
15543_ACEOF
15544rm -f conftest.$ac_objext conftest$ac_exeext
15545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15546 (eval $ac_link) 2>conftest.er1
15547 ac_status=$?
15548 grep -v '^ *+' conftest.er1 >conftest.err
15549 rm -f conftest.er1
15550 cat conftest.err >&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); } &&
15553 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; } &&
15559 { ac_try='test -s conftest$ac_exeext'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 rxvt_cv_func_getpt=yes
15566else
15567 echo "$as_me: failed program was:" >&5
15568sed 's/^/| /' conftest.$ac_ext >&5
15569 12125
15570rxvt_cv_func_getpt=no
15571fi
15572rm -f conftest.err conftest.$ac_objext \
15573 conftest$ac_exeext conftest.$ac_ext
15574fi
15575echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5
15576echo "${ECHO_T}$rxvt_cv_func_getpt" >&6
15577if test x$rxvt_cv_func_getpt = xyes; then
15578 12126
15579cat >>confdefs.h <<\_ACEOF
15580#define HAVE_GETPT 1
15581_ACEOF
15582 12127
15583fi
15584 12128
15585echo "$as_me:$LINENO: checking for pty/tty type" >&5
15586echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
15587if test "${rxvt_cv_ptys+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15589else
15590 if test x$ac_cv_func_openpty = xyes; then
15591 rxvt_cv_ptys=OPENPTY
15592 else if test x$ac_cv_func__getpty = xyes; then
15593 rxvt_cv_ptys=SGI4
15594 else if test -c /dev/ttyp20; then
15595 rxvt_cv_ptys=SCO
15596 else if test -c /dev/ptym/clone; then
15597 rxvt_cv_ptys=HPUX
15598 else if test x$rxvt_cv_func_getpt = xyes; then
15599 rxvt_cv_ptys=GLIBC
15600 else if test -c /dev/ptc -a -c /dev/pts; then
15601 rxvt_cv_ptys=PTC
15602 else if test -c /dev/ptc -a -d /dev/pts; then
15603 rxvt_cv_ptys=PTC
15604 else if test -c /dev/ptmx -a -c /dev/pts/0; then
15605 rxvt_cv_ptys=STREAMS
15606 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then
15607 rxvt_cv_ptys=STREAMS
15608 else
15609 rxvt_cv_ptys=BSD
15610fi
15611fi
15612fi
15613fi
15614fi
15615fi
15616fi
15617fi
15618fi
15619 12129
15620fi
15621echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
15622echo "${ECHO_T}$rxvt_cv_ptys" >&6
15623 12130
15624if test x$rxvt_cv_ptys = xOPENPTY; then 12131for ac_header in \
12132 pty.h \
12133 util.h \
12134 libutil.h \
12135 sys/ioctl.h \
12136 sys/stropts.h \
15625 12137
15626cat >>confdefs.h <<\_ACEOF
15627#define PTYS_ARE_OPENPTY 1
15628_ACEOF
15629
15630fi
15631if test x$rxvt_cv_ptys = xSCO; then
15632
15633cat >>confdefs.h <<\_ACEOF
15634#define PTYS_ARE_NUMERIC 1
15635_ACEOF
15636
15637fi
15638if test x$rxvt_cv_ptys = xSTREAMS; then
15639
15640cat >>confdefs.h <<\_ACEOF
15641#define PTYS_ARE_PTMX 1
15642_ACEOF
15643
15644fi
15645if test x$rxvt_cv_ptys = xPTC; then
15646
15647cat >>confdefs.h <<\_ACEOF
15648#define PTYS_ARE_PTC 1
15649_ACEOF
15650
15651fi
15652if test x$rxvt_cv_ptys = xSGI4; then
15653
15654cat >>confdefs.h <<\_ACEOF
15655#define PTYS_ARE__GETPTY 1
15656_ACEOF
15657
15658fi
15659if test x$rxvt_cv_ptys = xCONVEX; then
15660
15661cat >>confdefs.h <<\_ACEOF
15662#define PTYS_ARE_GETPTY 1
15663_ACEOF
15664
15665fi
15666if test x$rxvt_cv_ptys = xGLIBC; then
15667
15668cat >>confdefs.h <<\_ACEOF
15669#define PTYS_ARE_GETPT 1
15670_ACEOF
15671
15672fi
15673if test x$rxvt_cv_ptys = xHPUX; then
15674
15675cat >>confdefs.h <<\_ACEOF
15676#define PTYS_ARE_CLONE 1
15677_ACEOF
15678
15679fi
15680if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then
15681
15682cat >>confdefs.h <<\_ACEOF
15683#define PTYS_ARE_SEARCHED 1
15684_ACEOF
15685
15686fi
15687
15688
15689{ echo "$as_me:$LINENO: checking for pty ranges..." >&5
15690echo "$as_me: checking for pty ranges..." >&6;}
15691ptys=`echo /dev/pty??`
15692pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
15693pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
15694if test x$pch1 != x; then
15695
15696cat >>confdefs.h <<_ACEOF
15697#define PTYCHAR1 "$pch1"
15698_ACEOF
15699
15700fi
15701if test x$pch2 != x; then
15702
15703cat >>confdefs.h <<_ACEOF
15704#define PTYCHAR2 "$pch2"
15705_ACEOF
15706
15707fi
15708
15709if test x$support_xft = xyes; then
15710 LIBS="$LIBS `pkg-config xft --libs`"
15711 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
15712 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
15713
15714
15715for ac_header in X11/Xft/Xft.h
15716do 12138do
15717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15718if eval "test \"\${$as_ac_Header+set}\" = set"; then 12140if eval "test \"\${$as_ac_Header+set}\" = set"; then
15719 echo "$as_me:$LINENO: checking for $ac_header" >&5 12141 echo "$as_me:$LINENO: checking for $ac_header" >&5
15720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15854if test `eval echo '${'$as_ac_Header'}'` = yes; then 12276if test `eval echo '${'$as_ac_Header'}'` = yes; then
15855 cat >>confdefs.h <<_ACEOF 12277 cat >>confdefs.h <<_ACEOF
15856#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12278#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15857_ACEOF 12279_ACEOF
15858 12280
12281fi
12282
12283done
12284
12285
12286
12287
12288
12289
12290
12291for ac_func in \
12292 revoke \
12293 _getpty \
12294 getpt \
12295 posix_openpt \
12296 isastream \
12297
12298do
12299as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12300echo "$as_me:$LINENO: checking for $ac_func" >&5
12301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12302if eval "test \"\${$as_ac_var+set}\" = set"; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12304else
12305 cat >conftest.$ac_ext <<_ACEOF
12306/* confdefs.h. */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h. */
12311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12313#define $ac_func innocuous_$ac_func
12314
12315/* System header to define __stub macros and hopefully few prototypes,
12316 which can conflict with char $ac_func (); below.
12317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12318 <limits.h> exists even on freestanding compilers. */
12319
12320#ifdef __STDC__
12321# include <limits.h>
12322#else
12323# include <assert.h>
12324#endif
12325
12326#undef $ac_func
12327
12328/* Override any gcc2 internal prototype to avoid an error. */
12329#ifdef __cplusplus
12330extern "C"
12331{
12332#endif
12333/* We use char because int might match the return type of a gcc2
12334 builtin and then its argument prototype would still apply. */
12335char $ac_func ();
12336/* The GNU C library defines this for functions which it implements
12337 to always fail with ENOSYS. Some functions are actually named
12338 something starting with __ and the normal name is an alias. */
12339#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12340choke me
12341#else
12342char (*f) () = $ac_func;
12343#endif
12344#ifdef __cplusplus
12345}
12346#endif
12347
12348int
12349main ()
12350{
12351return f != $ac_func;
12352 ;
12353 return 0;
12354}
12355_ACEOF
12356rm -f conftest.$ac_objext conftest$ac_exeext
12357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358 (eval $ac_link) 2>conftest.er1
12359 ac_status=$?
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest$ac_exeext'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 eval "$as_ac_var=yes"
12378else
12379 echo "$as_me: failed program was:" >&5
12380sed 's/^/| /' conftest.$ac_ext >&5
12381
12382eval "$as_ac_var=no"
12383fi
12384rm -f conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12386fi
12387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12388echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12389if test `eval echo '${'$as_ac_var'}'` = yes; then
12390 cat >>confdefs.h <<_ACEOF
12391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12392_ACEOF
12393
12394fi
12395done
12396
12397
12398have_clone=no
12399
12400echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12401echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6
12402if test -e /dev/ptym/clone; then
12403 echo "$as_me:$LINENO: result: yes" >&5
12404echo "${ECHO_T}yes" >&6
12405
12406cat >>confdefs.h <<\_ACEOF
12407#define HAVE_DEV_CLONE 1
12408_ACEOF
12409
12410
12411cat >>confdefs.h <<\_ACEOF
12412#define CLONE_DEVICE "/dev/ptym/clone"
12413_ACEOF
12414
12415 have_clone=yes
12416else
12417 echo "$as_me:$LINENO: result: no" >&5
12418echo "${ECHO_T}no" >&6
12419fi
12420
12421echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12422echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6
12423if test -e /dev/ptc; then
12424 echo "$as_me:$LINENO: result: yes" >&5
12425echo "${ECHO_T}yes" >&6
12426
12427cat >>confdefs.h <<\_ACEOF
12428#define HAVE_DEV_PTC 1
12429_ACEOF
12430
12431
12432cat >>confdefs.h <<\_ACEOF
12433#define CLONE_DEVICE "/dev/ptc"
12434_ACEOF
12435
12436 have_clone=yes
12437else
12438 echo "$as_me:$LINENO: result: no" >&5
12439echo "${ECHO_T}no" >&6
12440fi
12441
12442case $host in
12443 *-*-cygwin*)
12444 have_clone=yes
12445
12446cat >>confdefs.h <<\_ACEOF
12447#define CLONE_DEVICE "/dev/ptmx"
12448_ACEOF
12449
12450 ;;
12451 *)
12452 echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12453echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6
12454 if test -e /dev/ptmx; then
12455 echo "$as_me:$LINENO: result: yes" >&5
12456echo "${ECHO_T}yes" >&6
12457
12458cat >>confdefs.h <<\_ACEOF
12459#define HAVE_DEV_PTMX 1
12460_ACEOF
12461
12462
12463cat >>confdefs.h <<\_ACEOF
12464#define CLONE_DEVICE "/dev/ptmx"
12465_ACEOF
12466
12467 have_clone=yes
12468 else
12469 echo "$as_me:$LINENO: result: no" >&5
12470echo "${ECHO_T}no" >&6
12471 fi
12472 ;;
12473esac
12474
12475if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12476 echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5
12477echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6
12478 cat >conftest.$ac_ext <<_ACEOF
12479/* confdefs.h. */
12480_ACEOF
12481cat confdefs.h >>conftest.$ac_ext
12482cat >>conftest.$ac_ext <<_ACEOF
12483/* end confdefs.h. */
12484#include <stdlib.h>
12485int
12486main ()
12487{
12488grantpt(0);unlockpt(0);ptsname(0);
12489 ;
12490 return 0;
12491}
12492_ACEOF
12493rm -f conftest.$ac_objext conftest$ac_exeext
12494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495 (eval $ac_link) 2>conftest.er1
12496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12505 ac_status=$?
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; } &&
12508 { ac_try='test -s conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 unix98_pty=yes
12515
12516cat >>confdefs.h <<\_ACEOF
12517#define UNIX98_PTY 1
12518_ACEOF
12519
12520 echo "$as_me:$LINENO: result: yes" >&5
12521echo "${ECHO_T}yes" >&6
12522else
12523 echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
12526echo "$as_me:$LINENO: result: no" >&5
12527echo "${ECHO_T}no" >&6
12528fi
12529rm -f conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12531fi
12532
12533if test -z "$unix98_pty"; then
12534
12535for ac_func in openpty
12536do
12537as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12538echo "$as_me:$LINENO: checking for $ac_func" >&5
12539echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12540if eval "test \"\${$as_ac_var+set}\" = set"; then
12541 echo $ECHO_N "(cached) $ECHO_C" >&6
12542else
12543 cat >conftest.$ac_ext <<_ACEOF
12544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
12549/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12551#define $ac_func innocuous_$ac_func
12552
12553/* System header to define __stub macros and hopefully few prototypes,
12554 which can conflict with char $ac_func (); below.
12555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12556 <limits.h> exists even on freestanding compilers. */
12557
12558#ifdef __STDC__
12559# include <limits.h>
12560#else
12561# include <assert.h>
12562#endif
12563
12564#undef $ac_func
12565
12566/* Override any gcc2 internal prototype to avoid an error. */
12567#ifdef __cplusplus
12568extern "C"
12569{
12570#endif
12571/* We use char because int might match the return type of a gcc2
12572 builtin and then its argument prototype would still apply. */
12573char $ac_func ();
12574/* The GNU C library defines this for functions which it implements
12575 to always fail with ENOSYS. Some functions are actually named
12576 something starting with __ and the normal name is an alias. */
12577#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12578choke me
12579#else
12580char (*f) () = $ac_func;
12581#endif
12582#ifdef __cplusplus
12583}
12584#endif
12585
12586int
12587main ()
12588{
12589return f != $ac_func;
12590 ;
12591 return 0;
12592}
12593_ACEOF
12594rm -f conftest.$ac_objext conftest$ac_exeext
12595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12596 (eval $ac_link) 2>conftest.er1
12597 ac_status=$?
12598 grep -v '^ *+' conftest.er1 >conftest.err
12599 rm -f conftest.er1
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } &&
12603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12612 ac_status=$?
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 eval "$as_ac_var=yes"
12616else
12617 echo "$as_me: failed program was:" >&5
12618sed 's/^/| /' conftest.$ac_ext >&5
12619
12620eval "$as_ac_var=no"
12621fi
12622rm -f conftest.err conftest.$ac_objext \
12623 conftest$ac_exeext conftest.$ac_ext
12624fi
12625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12626echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12627if test `eval echo '${'$as_ac_var'}'` = yes; then
12628 cat >>confdefs.h <<_ACEOF
12629#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12630_ACEOF
12631
12632else
12633 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12634echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12635if test "${ac_cv_lib_util_openpty+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637else
12638 ac_check_lib_save_LIBS=$LIBS
12639LIBS="-lutil $LIBS"
12640cat >conftest.$ac_ext <<_ACEOF
12641/* confdefs.h. */
12642_ACEOF
12643cat confdefs.h >>conftest.$ac_ext
12644cat >>conftest.$ac_ext <<_ACEOF
12645/* end confdefs.h. */
12646
12647/* Override any gcc2 internal prototype to avoid an error. */
12648#ifdef __cplusplus
12649extern "C"
12650#endif
12651/* We use char because int might match the return type of a gcc2
12652 builtin and then its argument prototype would still apply. */
12653char openpty ();
12654int
12655main ()
12656{
12657openpty ();
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext conftest$ac_exeext
12663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12664 (eval $ac_link) 2>conftest.er1
12665 ac_status=$?
12666 grep -v '^ *+' conftest.er1 >conftest.err
12667 rm -f conftest.er1
12668 cat conftest.err >&5
12669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12670 (exit $ac_status); } &&
12671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12673 (eval $ac_try) 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest$ac_exeext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12680 ac_status=$?
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_cv_lib_util_openpty=yes
12684else
12685 echo "$as_me: failed program was:" >&5
12686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688ac_cv_lib_util_openpty=no
12689fi
12690rm -f conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
12692LIBS=$ac_check_lib_save_LIBS
12693fi
12694echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12695echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12696if test $ac_cv_lib_util_openpty = yes; then
12697 cat >>confdefs.h <<\_ACEOF
12698#define HAVE_OPENPTY 1
12699_ACEOF
12700 LIBS="$LIBS -lutil"
12701fi
12702
12703fi
12704done
12705
12706fi
12707
12708
12709
12710echo "$as_me:$LINENO: checking for tty group" >&5
12711echo $ECHO_N "checking for tty group... $ECHO_C" >&6
12712if test "${tty_group+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714else
12715 if test "$cross_compiling" = yes; then
12716 tty_group=no
12717else
12718 cat >conftest.$ac_ext <<_ACEOF
12719/* confdefs.h. */
12720_ACEOF
12721cat confdefs.h >>conftest.$ac_ext
12722cat >>conftest.$ac_ext <<_ACEOF
12723/* end confdefs.h. */
12724
12725#include <sys/types.h>
12726#include <sys/stat.h>
12727#include <unistd.h>
12728#include <grp.h>
12729
12730main()
12731{
12732 struct stat st;
12733 struct group *gr;
12734 char *tty;
12735 gr = getgrnam("tty");
12736 tty = ttyname(0);
12737 if (gr != 0
12738 && tty != 0
12739 && (stat(tty, &st)) == 0
12740 && st.st_gid == gr->gr_gid)
12741 return 0;
12742 else
12743 return 1;
12744}
12745_ACEOF
12746rm -f conftest$ac_exeext
12747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12748 (eval $ac_link) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12754 ac_status=$?
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 tty_group=yes
12758else
12759 echo "$as_me: program exited with status $ac_status" >&5
12760echo "$as_me: failed program was:" >&5
12761sed 's/^/| /' conftest.$ac_ext >&5
12762
12763( exit $ac_status )
12764tty_group=no
12765fi
12766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12767fi
12768fi
12769echo "$as_me:$LINENO: result: $tty_group" >&5
12770echo "${ECHO_T}$tty_group" >&6
12771if test x$tty_group = xyes; then
12772
12773cat >>confdefs.h <<\_ACEOF
12774#define TTY_GID_SUPPORT 1
12775_ACEOF
12776
12777fi
12778
12779if test x$support_xft = xyes; then
12780 # Extract the first word of "pkg-config", so it can be a program name with args.
12781set dummy pkg-config; ac_word=$2
12782echo "$as_me:$LINENO: checking for $ac_word" >&5
12783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12784if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786else
12787 case $PKG_CONFIG in
12788 [\\/]* | ?:[\\/]*)
12789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12790 ;;
12791 *)
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793for as_dir in $PATH
12794do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803done
12804done
12805
12806 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12807 ;;
12808esac
12809fi
12810PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12811
12812if test -n "$PKG_CONFIG"; then
12813 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12814echo "${ECHO_T}$PKG_CONFIG" >&6
12815else
12816 echo "$as_me:$LINENO: result: no" >&5
12817echo "${ECHO_T}no" >&6
12818fi
12819
12820 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12821 LIBS="$LIBS `$PKG_CONFIG xft --libs`"
12822 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12823 else
12824 # Extract the first word of "xft-config", so it can be a program name with args.
12825set dummy xft-config; ac_word=$2
12826echo "$as_me:$LINENO: checking for $ac_word" >&5
12827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12828if test "${ac_cv_path_XFT_CONFIG+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830else
12831 case $XFT_CONFIG in
12832 [\\/]* | ?:[\\/]*)
12833 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12834 ;;
12835 *)
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837for as_dir in $PATH
12838do
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12843 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 break 2
12846 fi
12847done
12848done
12849
12850 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12851 ;;
12852esac
12853fi
12854XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12855
12856if test -n "$XFT_CONFIG"; then
12857 echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5
12858echo "${ECHO_T}$XFT_CONFIG" >&6
12859else
12860 echo "$as_me:$LINENO: result: no" >&5
12861echo "${ECHO_T}no" >&6
12862fi
12863
12864 if test $XFT_CONFIG != no; then
12865 LIBS="$LIBS `$XFT_CONFIG --libs`"
12866 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12867 fi
12868 fi
12869
12870
12871for ac_header in X11/Xft/Xft.h
12872do
12873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12874if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875 echo "$as_me:$LINENO: checking for $ac_header" >&5
12876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12877if eval "test \"\${$as_ac_Header+set}\" = set"; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879fi
12880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12882else
12883 # Is the header compilable?
12884echo "$as_me:$LINENO: checking $ac_header usability" >&5
12885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12886cat >conftest.$ac_ext <<_ACEOF
12887/* confdefs.h. */
12888_ACEOF
12889cat confdefs.h >>conftest.$ac_ext
12890cat >>conftest.$ac_ext <<_ACEOF
12891/* end confdefs.h. */
12892$ac_includes_default
12893#include <$ac_header>
12894_ACEOF
12895rm -f conftest.$ac_objext
12896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
12904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest.$ac_objext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 ac_header_compiler=yes
12917else
12918 echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
12921ac_header_compiler=no
12922fi
12923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12924echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12925echo "${ECHO_T}$ac_header_compiler" >&6
12926
12927# Is the header present?
12928echo "$as_me:$LINENO: checking $ac_header presence" >&5
12929echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12930cat >conftest.$ac_ext <<_ACEOF
12931/* confdefs.h. */
12932_ACEOF
12933cat confdefs.h >>conftest.$ac_ext
12934cat >>conftest.$ac_ext <<_ACEOF
12935/* end confdefs.h. */
12936#include <$ac_header>
12937_ACEOF
12938if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12940 ac_status=$?
12941 grep -v '^ *+' conftest.er1 >conftest.err
12942 rm -f conftest.er1
12943 cat conftest.err >&5
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); } >/dev/null; then
12946 if test -s conftest.err; then
12947 ac_cpp_err=$ac_cxx_preproc_warn_flag
12948 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12949 else
12950 ac_cpp_err=
12951 fi
12952else
12953 ac_cpp_err=yes
12954fi
12955if test -z "$ac_cpp_err"; then
12956 ac_header_preproc=yes
12957else
12958 echo "$as_me: failed program was:" >&5
12959sed 's/^/| /' conftest.$ac_ext >&5
12960
12961 ac_header_preproc=no
12962fi
12963rm -f conftest.err conftest.$ac_ext
12964echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12965echo "${ECHO_T}$ac_header_preproc" >&6
12966
12967# So? What about this header?
12968case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12969 yes:no: )
12970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12974 ac_header_preproc=yes
12975 ;;
12976 no:yes:* )
12977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12980echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12984echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12989 (
12990 cat <<\_ASBOX
12991## ------------------------------------------ ##
12992## Report this to the AC_PACKAGE_NAME lists. ##
12993## ------------------------------------------ ##
12994_ASBOX
12995 ) |
12996 sed "s/^/$as_me: WARNING: /" >&2
12997 ;;
12998esac
12999echo "$as_me:$LINENO: checking for $ac_header" >&5
13000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13001if eval "test \"\${$as_ac_Header+set}\" = set"; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003else
13004 eval "$as_ac_Header=\$ac_header_preproc"
13005fi
13006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13008
13009fi
13010if test `eval echo '${'$as_ac_Header'}'` = yes; then
13011 cat >>confdefs.h <<_ACEOF
13012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13013_ACEOF
13014
15859else 13015else
15860 support_xft=no 13016 support_xft=no
15861fi 13017fi
15862 13018
15863done 13019done
16000cat >>confdefs.h <<\_ACEOF 13156cat >>confdefs.h <<\_ACEOF
16001#define SELECTION_SCROLLING 1 13157#define SELECTION_SCROLLING 1
16002_ACEOF 13158_ACEOF
16003 13159
16004fi 13160fi
16005if test x$support_menubar = xyes; then
16006
16007cat >>confdefs.h <<\_ACEOF
16008#define MENUBAR 1
16009_ACEOF
16010
16011fi
16012if test x$support_frills = xyes; then 13161if test x$support_frills = xyes; then
16013 13162
16014cat >>confdefs.h <<\_ACEOF 13163cat >>confdefs.h <<\_ACEOF
16015#define ENABLE_FRILLS 1 13164#define ENABLE_FRILLS 1
16016_ACEOF 13165_ACEOF
16108fi 13257fi
16109if test x$support_pointer_blank = xyes; then 13258if test x$support_pointer_blank = xyes; then
16110 13259
16111cat >>confdefs.h <<\_ACEOF 13260cat >>confdefs.h <<\_ACEOF
16112#define POINTER_BLANK 1 13261#define POINTER_BLANK 1
16113_ACEOF
16114
16115fi
16116if test x$support_cursor_blink = xyes; then
16117
16118cat >>confdefs.h <<\_ACEOF
16119#define CURSOR_BLINK 1
16120_ACEOF 13262_ACEOF
16121 13263
16122fi 13264fi
16123if test x$support_text_blink = xyes; then 13265if test x$support_text_blink = xyes; then
16124 13266
16181#define ENCODING_ZH_EXT 1 13323#define ENCODING_ZH_EXT 1
16182_ACEOF 13324_ACEOF
16183 ;; 13325 ;;
16184 esac 13326 esac
16185done 13327done
13328
13329IF_PERL=\#
13330if test x$support_perl = xyes; then
13331 # Extract the first word of "perl5", so it can be a program name with args.
13332set dummy perl5; ac_word=$2
13333echo "$as_me:$LINENO: checking for $ac_word" >&5
13334echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13335if test "${ac_cv_path_PERL+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13337else
13338 case $PERL in
13339 [\\/]* | ?:[\\/]*)
13340 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13341 ;;
13342 *)
13343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13344for as_dir in $PATH
13345do
13346 IFS=$as_save_IFS
13347 test -z "$as_dir" && as_dir=.
13348 for ac_exec_ext in '' $ac_executable_extensions; do
13349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13350 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13352 break 2
13353 fi
13354done
13355done
13356
13357 ;;
13358esac
13359fi
13360PERL=$ac_cv_path_PERL
13361
13362if test -n "$PERL"; then
13363 echo "$as_me:$LINENO: result: $PERL" >&5
13364echo "${ECHO_T}$PERL" >&6
13365else
13366 echo "$as_me:$LINENO: result: no" >&5
13367echo "${ECHO_T}no" >&6
13368fi
13369
13370 # Extract the first word of "perl", so it can be a program name with args.
13371set dummy perl; ac_word=$2
13372echo "$as_me:$LINENO: checking for $ac_word" >&5
13373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13374if test "${ac_cv_path_PERL+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377 case $PERL in
13378 [\\/]* | ?:[\\/]*)
13379 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13380 ;;
13381 *)
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383for as_dir in $PATH
13384do
13385 IFS=$as_save_IFS
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13389 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13391 break 2
13392 fi
13393done
13394done
13395
13396 ;;
13397esac
13398fi
13399PERL=$ac_cv_path_PERL
13400
13401if test -n "$PERL"; then
13402 echo "$as_me:$LINENO: result: $PERL" >&5
13403echo "${ECHO_T}$PERL" >&6
13404else
13405 echo "$as_me:$LINENO: result: no" >&5
13406echo "${ECHO_T}no" >&6
13407fi
13408
13409
13410 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
13411echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
13412 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13413
13414 save_CXXFLAGS="$CXXFLAGS"
13415 save_LIBS="$LIBS"
13416 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13417 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13418 cat >conftest.$ac_ext <<_ACEOF
13419/* confdefs.h. */
13420_ACEOF
13421cat confdefs.h >>conftest.$ac_ext
13422cat >>conftest.$ac_ext <<_ACEOF
13423/* end confdefs.h. */
13424
13425#include <EXTERN.h>
13426#include <perl.h>
13427#include <XSUB.h>
13428
13429int
13430main ()
13431{
13432
13433 PerlInterpreter *perl = perl_alloc ();
13434
13435 ;
13436 return 0;
13437}
13438_ACEOF
13439rm -f conftest.$ac_objext conftest$ac_exeext
13440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13441 (eval $ac_link) 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450 (eval $ac_try) 2>&5
13451 ac_status=$?
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; } &&
13454 { ac_try='test -s conftest$ac_exeext'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; }; then
13460 rxvt_perl_link=yes
13461else
13462 echo "$as_me: failed program was:" >&5
13463sed 's/^/| /' conftest.$ac_ext >&5
13464
13465rxvt_perl_link=no
13466fi
13467rm -f conftest.err conftest.$ac_objext \
13468 conftest$ac_exeext conftest.$ac_ext
13469 CXXFLAGS="$save_CXXFLAGS"
13470 LIBS="$save_LIBS"
13471
13472 if test x$rxvt_perl_link = xyes; then
13473 echo "$as_me:$LINENO: result: ok" >&5
13474echo "${ECHO_T}ok" >&6
13475
13476cat >>confdefs.h <<\_ACEOF
13477#define ENABLE_PERL 1
13478_ACEOF
13479
13480 IF_PERL=
13481 PERL_O=rxvtperl.o
13482 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13483 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13484 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13485 else
13486 { { echo "$as_me:$LINENO: error: no, unable to link" >&5
13487echo "$as_me: error: no, unable to link" >&2;}
13488 { (exit 1); exit 1; }; }
13489 fi
13490 else
13491 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5
13492echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13493 { (exit 1); exit 1; }; }
13494 fi
13495fi
13496
13497
13498
13499
13500
13501
13502
13503if test x$support_perl = xyes; then
13504 support_frills=yes
13505fi
16186 13506
16187 13507
16188CFLAGS=${CFLAGS--O} 13508CFLAGS=${CFLAGS--O}
16189LDFLAGS=${LDFLAGS--O} 13509LDFLAGS=${LDFLAGS--O}
16190 13510
16204 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` 13524 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16205fi 13525fi
16206 13526
16207 13527
16208 13528
16209
16210
16211if test x$support_addstrings = xno; then
16212
16213cat >>confdefs.h <<\_ACEOF
16214#define NO_STRINGS 1
16215_ACEOF
16216
16217fi
16218
16219MCOMMON=./autoconf/Make.common
16220 13529
16221 13530
16222test "$program_prefix" != NONE && 13531test "$program_prefix" != NONE &&
16223 program_transform_name="s,^,$program_prefix,;$program_transform_name" 13532 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16224# Use a double $ so make ignores it. 13533# Use a double $ so make ignores it.
16300 include_time_h="#include <time.h>" 13609 include_time_h="#include <time.h>"
16301else 13610else
16302 include_time_h="/* #include <time.h> */" 13611 include_time_h="/* #include <time.h> */"
16303fi 13612fi
16304 13613
16305 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h" 13614 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
16306 13615
16307cat >confcache <<\_ACEOF 13616cat >confcache <<\_ACEOF
16308# This file is a shell script that caches the results of configure 13617# This file is a shell script that caches the results of configure
16309# tests run on this system so they can be shared between configure 13618# tests run on this system so they can be shared between configure
16310# scripts and configure runs, see configure's option --config-cache. 13619# scripts and configure runs, see configure's option --config-cache.
16827cat >>$CONFIG_STATUS <<\_ACEOF 14136cat >>$CONFIG_STATUS <<\_ACEOF
16828for ac_config_target in $ac_config_targets 14137for ac_config_target in $ac_config_targets
16829do 14138do
16830 case "$ac_config_target" in 14139 case "$ac_config_target" in
16831 # Handling of arguments. 14140 # Handling of arguments.
16832 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
16833 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14141 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16834 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14142 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16835 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 14143 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16836 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 14144 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
16837 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 14145 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
16838 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14146 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16839echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 14147echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16840 { (exit 1); exit 1; }; };; 14148 { (exit 1); exit 1; }; };;
16841 esac 14149 esac
16842done 14150done
16943s,@ac_ct_CXX@,$ac_ct_CXX,;t t 14251s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16944s,@CPP@,$CPP,;t t 14252s,@CPP@,$CPP,;t t
16945s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 14253s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16946s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 14254s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16947s,@INSTALL_DATA@,$INSTALL_DATA,;t t 14255s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16948s,@AWK@,$AWK,;t t 14256s,@EGREP@,$EGREP,;t t
16949s,@LINKER@,$LINKER,;t t 14257s,@LINKER@,$LINKER,;t t
16950s,@CXXCPP@,$CXXCPP,;t t
16951s,@EGREP@,$EGREP,;t t
16952s,@LN_S@,$LN_S,;t t
16953s,@ECHO@,$ECHO,;t t
16954s,@RANLIB@,$RANLIB,;t t
16955s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16956s,@STRIP@,$STRIP,;t t
16957s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16958s,@LIBTOOL@,$LIBTOOL,;t t
16959s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 14258s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
16960s,@RXVTNAME@,$RXVTNAME,;t t 14259s,@RXVTNAME@,$RXVTNAME,;t t
16961s,@MV@,$MV,;t t 14260s,@MV@,$MV,;t t
16962s,@RM@,$RM,;t t 14261s,@RM@,$RM,;t t
16963s,@CP@,$CP,;t t 14262s,@CP@,$CP,;t t
16964s,@LN@,$LN,;t t 14263s,@LN@,$LN,;t t
16965s,@SED@,$SED,;t t 14264s,@SED@,$SED,;t t
14265s,@ECHO@,$ECHO,;t t
16966s,@CMP@,$CMP,;t t 14266s,@CMP@,$CMP,;t t
16967s,@TBL@,$TBL,;t t
16968s,@TIC@,$TIC,;t t 14267s,@TIC@,$TIC,;t t
14268s,@CXXCPP@,$CXXCPP,;t t
16969s,@X_CFLAGS@,$X_CFLAGS,;t t 14269s,@X_CFLAGS@,$X_CFLAGS,;t t
16970s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 14270s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16971s,@X_LIBS@,$X_LIBS,;t t 14271s,@X_LIBS@,$X_LIBS,;t t
16972s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 14272s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16973s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 14273s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
16977s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 14277s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
16978s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 14278s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
16979s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 14279s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
16980s,@rxvt_intp_define@,$rxvt_intp_define,;t t 14280s,@rxvt_intp_define@,$rxvt_intp_define,;t t
16981s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 14281s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
14282s,@PKG_CONFIG@,$PKG_CONFIG,;t t
14283s,@XFT_CONFIG@,$XFT_CONFIG,;t t
14284s,@PERL@,$PERL,;t t
14285s,@PERLLIB@,$PERLLIB,;t t
14286s,@PERLFLAGS@,$PERLFLAGS,;t t
14287s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
14288s,@IF_PERL@,$IF_PERL,;t t
14289s,@PERL_O@,$PERL_O,;t t
16982s,@DEBUG@,$DEBUG,;t t 14290s,@DEBUG@,$DEBUG,;t t
16983s,@DINCLUDE@,$DINCLUDE,;t t 14291s,@DINCLUDE@,$DINCLUDE,;t t
16984s,@DLIB@,$DLIB,;t t 14292s,@DLIB@,$DLIB,;t t
16985s,@include_stdint_h@,$include_stdint_h,;t t 14293s,@include_stdint_h@,$include_stdint_h,;t t
16986s,@include_stdarg_h@,$include_stdarg_h,;t t 14294s,@include_stdarg_h@,$include_stdarg_h,;t t
16995s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t 14303s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
16996s,@include_sys_time_h@,$include_sys_time_h,;t t 14304s,@include_sys_time_h@,$include_sys_time_h,;t t
16997s,@include_time_h@,$include_time_h,;t t 14305s,@include_time_h@,$include_time_h,;t t
16998s,@LIBOBJS@,$LIBOBJS,;t t 14306s,@LIBOBJS@,$LIBOBJS,;t t
16999s,@LTLIBOBJS@,$LTLIBOBJS,;t t 14307s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17000/@MCOMMON@/r $MCOMMON
17001s,@MCOMMON@,,;t t
17002CEOF 14308CEOF
17003 14309
17004_ACEOF 14310_ACEOF
17005 14311
17006 cat >>$CONFIG_STATUS <<\_ACEOF 14312 cat >>$CONFIG_STATUS <<\_ACEOF
17513 14819
17514if test x$support_xpm = xyes; then 14820if test x$support_xpm = xyes; then
17515 echo " Xpm library: $XPM_LIBS" 14821 echo " Xpm library: $XPM_LIBS"
17516fi 14822fi
17517 14823
17518echo "
17519The following are set in config.h
17520"
17521echo " pty/tty type: "$rxvt_cv_ptys
17522if test x$support_utmp != xyes; then 14824if test x$support_utmp != xyes; then
17523 echo " utmp support: disabled" 14825 echo " utmp support: disabled"
17524 echo 14826 echo
17525else 14827else
17526 echo " utmp support: enabled 14828 echo " utmp support: enabled
17527 utmp file: $rxvt_cv_path_utmp 14829 utmp file: $path_utmp
17528 utmpx file: $rxvt_cv_path_utmpx 14830 utmpx file: $path_utmpx
17529 wtmp file: $rxvt_cv_path_wtmp 14831 wtmp file: $path_wtmp
17530 wtmpx file: $rxvt_cv_path_wtmpx 14832 wtmpx file: $path_wtmpx
17531 lastlog file: $rxvt_cv_path_lastlog 14833 lastlog file: $path_lastlog
17532 ttys/ttytab file: $rxvt_cv_path_ttytab" 14834 lastlogx file: $path_lastlogx"
17533 echo
17534fi 14835fi
17535if test x$term != x; then 14836if test x$term != x; then
17536 echo " set TERM to: $term" 14837 echo " set TERM to: $term"
17537fi 14838fi
17538if test x$terminfo != x; then 14839if test x$terminfo != x; then
17542echo " resource class: $RESCLASS" 14843echo " resource class: $RESCLASS"
17543if test x$RESFALLBACK != x; then 14844if test x$RESFALLBACK != x; then
17544 echo " resource class fallback: $RESFALLBACK" 14845 echo " resource class fallback: $RESFALLBACK"
17545fi 14846fi
17546echo 14847echo
17547if test x$rxvt_cv_ptys = xUNKNOWN; then 14848echo " embedded perl: $support_perl"
17548 echo ".----------------------------------------------------------------." 14849echo
17549 echo ". WARNING: could not determine pty/tty type. Do not build until ."
17550 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
17551 echo ".----------------------------------------------------------------."
17552fi
17553if test x$support_xpm = xneedsmanualspecification; then 14850if test x$support_xpm = xneedsmanualspecification; then
17554 echo ".----------------------------------------------------------------." 14851 echo ".----------------------------------------------------------------."
17555 echo ". WARNING: --enable-xpm-background was specified however the ." 14852 echo ". WARNING: --enable-xpm-background was specified however the ."
17556 echo ". XPM includes files and libraries could not be found. ." 14853 echo ". XPM includes files and libraries could not be found. ."
17557 echo ". XPM backgrounds are now being DISABLED! If you want ." 14854 echo ". XPM backgrounds are now being DISABLED! If you want ."
17566 echo ". functions could not be found. ." 14863 echo ". functions could not be found. ."
17567 echo ". XIM is now being DISABLED! ." 14864 echo ". XIM is now being DISABLED! ."
17568 echo ".----------------------------------------------------------------." 14865 echo ".----------------------------------------------------------------."
17569fi 14866fi
17570 14867
17571echo " *** Please check src/feature.h for further options ***" 14868echo " *** Optionally check src/feature.h for further options ***"
17572echo 14869echo
17573 14870
17574echo ".----------------------------------------------------------------." 14871echo ".----------------------------------------------------------------."
17575echo ". NOTE: most features are disabled by default, try ." 14872echo ". NOTE: some features are disabled by default, try ."
17576echo ". configure --help to get an idea of the optional features ." 14873echo ". configure --help to get an idea of the optional features, ."
14874echo ". or read ./README.configure ."
14875echo ". ."
14876echo ". The script ./reconf gives a reasonable baseline, try it if ."
14877echo ". you do not want to read documentation and still want some ."
14878echo ". useful features. ."
17577echo ".----------------------------------------------------------------." 14879echo ".----------------------------------------------------------------."
17578echo 14880echo
17579 14881

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines