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

Comparing rxvt-unicode/configure (file contents):
Revision 1.22 by pcg, Wed Mar 17 03:07:35 2004 UTC vs.
Revision 1.71 by root, Mon Jan 16 14:48:39 2006 UTC

239 239
240# CDPATH. 240# CDPATH.
241$as_unset CDPATH 241$as_unset CDPATH
242 242
243 243
244# Find the correct PATH separator. Usually this is `:', but
245# DJGPP uses `;' like DOS.
246if test "X${PATH_SEPARATOR+set}" != Xset; then
247 UNAME=${UNAME-`uname 2>/dev/null`}
248 case X$UNAME in
249 *-DOS) lt_cv_sys_path_separator=';' ;;
250 *) lt_cv_sys_path_separator=':' ;;
251 esac
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case "X$ECHO" in
259X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285EOF
286 exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running ltconfig again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host. 244# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too. 246# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406 248
465#endif 307#endif
466#if HAVE_UNISTD_H 308#if HAVE_UNISTD_H
467# include <unistd.h> 309# include <unistd.h>
468#endif" 310#endif"
469 311
470ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED CMP TBL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS'
471ac_subst_files='MCOMMON' 313ac_subst_files='MCOMMON'
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
1021 cat <<\_ACEOF 863 cat <<\_ACEOF
1022 864
1023Optional Features: 865Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --enable-shared=PKGS build shared libraries default=no
1027 --enable-static=PKGS build static libraries default=yes
1028 --enable-fast-install=PKGS optimize for fast installation default=yes
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-everything enable standard non-multichoice features 868 --enable-everything enable standard non-multichoice features
1031 NOTE: this option is order dependent 869 NOTE: this option is order dependent
1032 NOTE: automatically enabled with --enable-shared 870 NOTE: automatically enabled with --enable-shared
1033 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1034 --enable-combining enable composition of base and combining characters 872 --enable-combining enable composition of base and combining characters
1035 --enable-xft enable xft support on systems that have it 873 --enable-xft enable xft support on systems that have it
874 --enable-font-styles enable bold and italic support
1036 --enable-utmp enable utmp (utmpx) support 875 --enable-utmp enable utmp (utmpx) support
1037 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 876 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1038 --enable-lastlog enable lastlog support (requires --enable-utmp) 877 --enable-lastlog enable lastlog support (requires --enable-utmp)
1039 --enable-xpm-background enable XPM background pixmaps 878 --enable-xpm-background enable XPM background pixmaps
1040 --enable-transparency enable transparent backgrounds 879 --enable-transparency enable transparent backgrounds
1041 --enable-menubar enable menubar 880 --enable-tinting enable tinting of transparent bg
881 --enable-fading enable colors fading when off focus
1042 --enable-rxvt-scroll enable rxvt style scrollbar 882 --enable-rxvt-scroll enable rxvt style scrollbar
1043 --enable-next-scroll enable NeXT style scrollbar 883 --enable-next-scroll enable NeXT style scrollbar
1044 --enable-xterm-scroll enable Xterm style scrollbar 884 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter
1045 --enable-plain-scroll enable plain style scrollbar 886 --enable-plain-scroll enable plain style scrollbar
1046 --enable-half-shadow use half width/height shadow on rxvt scrollbar 887 --enable-half-shadow use half width/height shadow on rxvt scrollbar
1047 --enable-xim XIM (X Input Method) protocol support 888 --enable-xim XIM (X Input Method) protocol support
1048 --enable-ttygid enable tty setting to group named "tty" 889 --enable-ttygid enable tty setting to group named "tty"
1049 --disable-backspace-key disable handling of the backspace key 890 --disable-backspace-key disable handling of the backspace key
1050 --disable-delete-key disable handling of the delete key 891 --disable-delete-key disable handling of the delete key
1051 --disable-resources disable all resource checking 892 --disable-resources disable all resource checking
1052 --enable-xgetdefault enable resources via X instead of our small version 893 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1053 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 894 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1054 --enable-strings enable some replacement system functions
1055 --disable-swapscreen disable swap screen support 895 --disable-swapscreen disable swap screen support
896 --enable-iso14755 enable support for extended ISO 14755 modes
1056 --enable-frills enable support for rarely used features 897 --enable-frills enable support for rarely used features
1057 --enable-linespace enable support for linespace
1058 --enable-24bit enable support for using 24bit visuals if available 898 --enable-24bit enable support for using 24bit visuals if available
1059 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 899 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1060 --enable-selectionscrolling enable scrolling during selections 900 --enable-selectionscrolling enable scrolling during selections
1061 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 901 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1062 --enable-slipwheeling enable slip wheel scrolling (requires previous) 902 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1063 --enable-dmalloc enable Gray Watson's malloc - for debugging use 903 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1064 --enable-dlmalloc enable Doug Lea's malloc - for production use 904 --enable-dlmalloc enable Doug Lea's malloc - for production use
1065 NOTE: enable only one malloc package 905 NOTE: enable only one malloc package
1066 --enable-smart-resize enable smart growth/shrink behaviour 906 --enable-smart-resize enable smart growth/shrink behaviour
1067 --enable-256-color enable 256-color support
1068 --enable-cursor-blink enable blinking cursor
1069 --enable-text-blink enable blinking text 907 --enable-text-blink enable blinking text
1070 --enable-pointer-blank enable pointer blank when typing or inactive pointer 908 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1071 909
1072Optional Packages: 910Optional Packages:
1073 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 911 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1074 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 912 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1075 --with-gnu-ld assume the C compiler uses GNU ld default=no
1076 --with-pic try to use only PIC/non-PIC objects default=use both
1077 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) 913 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1078 --with-res-name=NAME use this as default resource name (default: urxvt) 914 --with-res-name=NAME use this as default resource name (default: urxvt)
1079 --with-res-class=CLASS use this as the resource class (default: URxvt) 915 --with-res-class=CLASS use this as the resource class (default: URxvt)
1080 --with-name=NAME set the basename for the installed binaries (default: urxvt) 916 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1081 --with-term=NAME set the terminal to NAME (default: rxvt) 917 --with-term=NAME set the terminal to NAME (default: rxvt)
1082 --with-terminfo=PATH set the path to the terminfo tree to PATH 918 --with-terminfo=PATH set the path to the terminfo tree to PATH
1533 1369
1534 1370
1535 1371
1536 1372
1537 1373
1374
1538ac_aux_dir= 1375ac_aux_dir=
1539for ac_dir in autoconf $srcdir/autoconf; do 1376for ac_dir in autoconf $srcdir/autoconf; do
1540 if test -f $ac_dir/install-sh; then 1377 if test -f $ac_dir/install-sh; then
1541 ac_aux_dir=$ac_dir 1378 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install-sh -c" 1379 ac_install_sh="$ac_aux_dir/install-sh -c"
1561ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1398ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562 1399
1563 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1400 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1564 1401
1565 1402
1403# Make sure we can run config.sub.
1404$ac_config_sub sun4 >/dev/null 2>&1 ||
1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1406echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1407 { (exit 1); exit 1; }; }
1408
1409echo "$as_me:$LINENO: checking build system type" >&5
1410echo $ECHO_N "checking build system type... $ECHO_C" >&6
1411if test "${ac_cv_build+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
1413else
1414 ac_cv_build_alias=$build_alias
1415test -z "$ac_cv_build_alias" &&
1416 ac_cv_build_alias=`$ac_config_guess`
1417test -z "$ac_cv_build_alias" &&
1418 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1419echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1420 { (exit 1); exit 1; }; }
1421ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1423echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1425
1426fi
1427echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1428echo "${ECHO_T}$ac_cv_build" >&6
1429build=$ac_cv_build
1430build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433
1434
1435echo "$as_me:$LINENO: checking host system type" >&5
1436echo $ECHO_N "checking host system type... $ECHO_C" >&6
1437if test "${ac_cv_host+set}" = set; then
1438 echo $ECHO_N "(cached) $ECHO_C" >&6
1439else
1440 ac_cv_host_alias=$host_alias
1441test -z "$ac_cv_host_alias" &&
1442 ac_cv_host_alias=$ac_cv_build_alias
1443ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1445echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1447
1448fi
1449echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1450echo "${ECHO_T}$ac_cv_host" >&6
1451host=$ac_cv_host
1452host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1453host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1454host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1455
1456
1457
1566VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1458VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1567DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1459DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1568LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1569LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1570echo "" 1460echo ""
1571echo "configuring for rxvt $VERSION" 1461echo "configuring for rxvt $VERSION"
1572echo "" 1462echo ""
1573 1463
1574 1464
3206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_c_compiler_gnu 3098ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209 3099
3210 3100
3101if test -z "$orig_CXXFLAGS"; then
3102 CXXFLAGS='-O'
3103 if test x$GCC = xyes && test "x$GXX" = xyes; then
3104 CXXFLAGS="-g -O3"
3105 fi
3106 CFLAGS="$CXXFLAGS"
3107fi
3108
3211LINKER="$CXX" 3109LINKER="$CXX"
3212if test x$GCC = xyes && test x$GXX = xyes; then 3110if test x$GCC = xyes && test x$GXX = xyes; then
3213 3111
3214echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 3112echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3215echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 3113echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3277 3175
3278fi 3176fi
3279LINKER=$LINKER 3177LINKER=$LINKER
3280 3178
3281 3179
3282CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" 3180
3181cat >>confdefs.h <<\_ACEOF
3182#define _GNU_SOURCE 1
3183_ACEOF
3184
3185
3186case $host in
3187 *-*-solaris* )
3188
3189cat >>confdefs.h <<\_ACEOF
3190#define _XOPEN_SOURCE_EXTENDED 1
3191_ACEOF
3192
3193
3194cat >>confdefs.h <<\_ACEOF
3195#define _XOPEN_SOURCE 2
3196_ACEOF
3197
3198
3199cat >>confdefs.h <<\_ACEOF
3200#define __EXTENSIONS__ 1
3201_ACEOF
3202
3203 ;;
3204esac
3283 3205
3284 3206
3285ac_ext=cc 3207ac_ext=cc
3286ac_cpp='$CXXCPP $CPPFLAGS' 3208ac_cpp='$CXXCPP $CPPFLAGS'
3287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3610 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3689 3611
3690fi 3612fi
3691 3613
3692 3614
3693# Check whether --enable-shared or --disable-shared was given.
3694if test "${enable_shared+set}" = set; then
3695 enableval="$enable_shared"
3696 p=${PACKAGE-default}
3697case "$enableval" in
3698yes) enable_shared=yes ;;
3699no) enable_shared=no ;;
3700*)
3701 enable_shared=no
3702 # Look at the argument we got. We use all the common list separators.
3703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3704 for pkg in $enableval; do
3705 if test "X$pkg" = "X$p"; then
3706 enable_shared=yes
3707 fi
3708 done
3709 IFS="$ac_save_ifs"
3710 ;;
3711esac
3712else
3713 enable_shared=no
3714fi; # Check whether --enable-static or --disable-static was given.
3715if test "${enable_static+set}" = set; then
3716 enableval="$enable_static"
3717 p=${PACKAGE-default}
3718case "$enableval" in
3719yes) enable_static=yes ;;
3720no) enable_static=no ;;
3721*)
3722 enable_static=no
3723 # Look at the argument we got. We use all the common list separators.
3724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3725 for pkg in $enableval; do
3726 if test "X$pkg" = "X$p"; then
3727 enable_static=yes
3728 fi
3729 done
3730 IFS="$ac_save_ifs"
3731 ;;
3732esac
3733else
3734 enable_static=yes
3735fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3736if test "${enable_fast_install+set}" = set; then
3737 enableval="$enable_fast_install"
3738 p=${PACKAGE-default}
3739case "$enableval" in
3740yes) enable_fast_install=yes ;;
3741no) enable_fast_install=no ;;
3742*)
3743 enable_fast_install=no
3744 # Look at the argument we got. We use all the common list separators.
3745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3746 for pkg in $enableval; do
3747 if test "X$pkg" = "X$p"; then
3748 enable_fast_install=yes
3749 fi
3750 done
3751 IFS="$ac_save_ifs"
3752 ;;
3753esac
3754else
3755 enable_fast_install=yes
3756fi;
3757# Make sure we can run config.sub.
3758$ac_config_sub sun4 >/dev/null 2>&1 ||
3759 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3760echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3761 { (exit 1); exit 1; }; }
3762
3763echo "$as_me:$LINENO: checking build system type" >&5
3764echo $ECHO_N "checking build system type... $ECHO_C" >&6
3765if test "${ac_cv_build+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
3768 ac_cv_build_alias=$build_alias
3769test -z "$ac_cv_build_alias" &&
3770 ac_cv_build_alias=`$ac_config_guess`
3771test -z "$ac_cv_build_alias" &&
3772 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3773echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3774 { (exit 1); exit 1; }; }
3775ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3776 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3777echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3778 { (exit 1); exit 1; }; }
3779
3780fi
3781echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3782echo "${ECHO_T}$ac_cv_build" >&6
3783build=$ac_cv_build
3784build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3785build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3786build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3787
3788
3789echo "$as_me:$LINENO: checking host system type" >&5
3790echo $ECHO_N "checking host system type... $ECHO_C" >&6
3791if test "${ac_cv_host+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793else
3794 ac_cv_host_alias=$host_alias
3795test -z "$ac_cv_host_alias" &&
3796 ac_cv_host_alias=$ac_cv_build_alias
3797ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3798 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3799echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3800 { (exit 1); exit 1; }; }
3801
3802fi
3803echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3804echo "${ECHO_T}$ac_cv_host" >&6
3805host=$ac_cv_host
3806host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3807host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3808host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3809
3810
3811
3812# Check whether --with-gnu-ld or --without-gnu-ld was given.
3813if test "${with_gnu_ld+set}" = set; then
3814 withval="$with_gnu_ld"
3815 test "$withval" = no || with_gnu_ld=yes
3816else
3817 with_gnu_ld=no
3818fi;
3819ac_prog=ld
3820if test "$GCC" = yes; then
3821 # Check if gcc -print-prog-name=ld gives a path.
3822 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3823echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3824 case $host in
3825 *-*-mingw*)
3826 # gcc leaves a trailing carriage return which upsets mingw
3827 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3828 *)
3829 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3830 esac
3831 case "$ac_prog" in
3832 # Accept absolute paths.
3833 [\\/]* | [A-Za-z]:[\\/]*)
3834 re_direlt='/[^/][^/]*/\.\./'
3835 # Canonicalize the path of ld
3836 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3837 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3838 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3839 done
3840 test -z "$LD" && LD="$ac_prog"
3841 ;;
3842 "")
3843 # If it fails, then pretend we aren't using GCC.
3844 ac_prog=ld
3845 ;;
3846 *)
3847 # If it is relative, then search for the first ld in PATH.
3848 with_gnu_ld=unknown
3849 ;;
3850 esac
3851elif test "$with_gnu_ld" = yes; then
3852 echo "$as_me:$LINENO: checking for GNU ld" >&5 3615echo "$as_me:$LINENO: checking for setlocale" >&5
3853echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3616echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3854else
3855 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3856echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3857fi
3858if test "${lt_cv_path_LD+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
3860else
3861 if test -z "$LD"; then
3862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3863 for ac_dir in $PATH; do
3864 test -z "$ac_dir" && ac_dir=.
3865 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3866 lt_cv_path_LD="$ac_dir/$ac_prog"
3867 # Check to see if the program is GNU ld. I'd rather use --version,
3868 # but apparently some GNU ld's only accept -v.
3869 # Break only if it was the GNU/non-GNU ld that we prefer.
3870 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3871 test "$with_gnu_ld" != no && break
3872 else
3873 test "$with_gnu_ld" != yes && break
3874 fi
3875 fi
3876 done
3877 IFS="$ac_save_ifs"
3878else
3879 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3880fi
3881fi
3882
3883LD="$lt_cv_path_LD"
3884if test -n "$LD"; then
3885 echo "$as_me:$LINENO: result: $LD" >&5
3886echo "${ECHO_T}$LD" >&6
3887else
3888 echo "$as_me:$LINENO: result: no" >&5
3889echo "${ECHO_T}no" >&6
3890fi
3891test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3892echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3893 { (exit 1); exit 1; }; }
3894echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3895echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3896if test "${lt_cv_prog_gnu_ld+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3900if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3901 lt_cv_prog_gnu_ld=yes
3902else
3903 lt_cv_prog_gnu_ld=no
3904fi
3905fi
3906echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3907echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3908with_gnu_ld=$lt_cv_prog_gnu_ld
3909
3910
3911echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3912echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3913if test "${lt_cv_ld_reload_flag+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916 lt_cv_ld_reload_flag='-r'
3917fi
3918echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3919echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3920reload_flag=$lt_cv_ld_reload_flag
3921test -n "$reload_flag" && reload_flag=" $reload_flag"
3922
3923echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3924echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3925if test "${lt_cv_path_NM+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928 if test -n "$NM"; then
3929 # Let the user override the test.
3930 lt_cv_path_NM="$NM"
3931else
3932 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3933 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3934 test -z "$ac_dir" && ac_dir=.
3935 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3936 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3937 # Check to see if the nm accepts a BSD-compat flag.
3938 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3939 # nm: unknown option "B" ignored
3940 # Tru64's nm complains that /dev/null is an invalid object file
3941 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3942 lt_cv_path_NM="$tmp_nm -B"
3943 break
3944 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3945 lt_cv_path_NM="$tmp_nm -p"
3946 break
3947 else
3948 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3949 continue # so that we can try to find one that supports BSD flags
3950 fi
3951 fi
3952 done
3953 IFS="$ac_save_ifs"
3954 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3955fi
3956fi
3957
3958NM="$lt_cv_path_NM"
3959echo "$as_me:$LINENO: result: $NM" >&5
3960echo "${ECHO_T}$NM" >&6
3961
3962echo "$as_me:$LINENO: checking whether ln -s works" >&5
3963echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3964LN_S=$as_ln_s
3965if test "$LN_S" = "ln -s"; then
3966 echo "$as_me:$LINENO: result: yes" >&5
3967echo "${ECHO_T}yes" >&6
3968else
3969 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3970echo "${ECHO_T}no, using $LN_S" >&6
3971fi
3972
3973echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3974echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3975if test "${lt_cv_deplibs_check_method+set}" = set; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978 lt_cv_file_magic_cmd='$MAGIC_CMD'
3979lt_cv_file_magic_test_file=
3980lt_cv_deplibs_check_method='unknown'
3981# Need to set the preceding variable on all platforms that support
3982# interlibrary dependencies.
3983# 'none' -- dependencies not supported.
3984# `unknown' -- same as none, but documents that we really don't know.
3985# 'pass_all' -- all dependencies passed with no checks.
3986# 'test_compile' -- check by making test program.
3987# ['file_magic [regex]'] -- check by looking for files in library path
3988# which responds to the $file_magic_cmd with a given egrep regex.
3989# If you have `file' or equivalent on your system and you're not sure
3990# whether `pass_all' will *always* work, you probably want this one.
3991
3992case "$host_os" in
3993aix4*)
3994 lt_cv_deplibs_check_method=pass_all
3995 ;;
3996
3997beos*)
3998 lt_cv_deplibs_check_method=pass_all
3999 ;;
4000
4001bsdi4*)
4002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4003 lt_cv_file_magic_cmd='/usr/bin/file -L'
4004 lt_cv_file_magic_test_file=/shlib/libc.so
4005 ;;
4006
4007cygwin* | mingw* | pw32*)
4008 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4009 lt_cv_file_magic_cmd='$OBJDUMP -f'
4010 ;;
4011
4012darwin*|rhapsody*)
4013 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4014 lt_cv_file_magiic_cmd=/usr/bin/file
4015 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4016 ;;
4017
4018freebsd*)
4019 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4020 case "$host_cpu" in
4021 i*86 )
4022 # Not sure whether the presence of OpenBSD here was a mistake.
4023 # Let's accept both of them until this is cleared up.
4024 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4025 lt_cv_file_magic_cmd=/usr/bin/file
4026 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4027 ;;
4028 esac
4029 else
4030 lt_cv_deplibs_check_method=pass_all
4031 fi
4032 ;;
4033
4034gnu*)
4035 lt_cv_deplibs_check_method=pass_all
4036 ;;
4037
4038hpux10.20*|hpux11*)
4039 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4040 lt_cv_file_magic_cmd=/usr/bin/file
4041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4042 ;;
4043
4044irix5* | irix6*)
4045 case "$host_os" in
4046 irix5*)
4047 # this will be overridden with pass_all, but let us keep it just in case
4048 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4049 ;;
4050 *)
4051 case "$LD" in
4052 *-32|*"-32 ") libmagic=32-bit;;
4053 *-n32|*"-n32 ") libmagic=N32;;
4054 *-64|*"-64 ") libmagic=64-bit;;
4055 *) libmagic=never-match;;
4056 esac
4057 # this will be overridden with pass_all, but let us keep it just in case
4058 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4059 ;;
4060 esac
4061 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4062 lt_cv_deplibs_check_method=pass_all
4063 ;;
4064
4065# This must be Linux ELF.
4066linux-gnu*)
4067 case "$host_cpu" in
4068 alpha* | i*86 | powerpc* | sparc* | ia64* )
4069 lt_cv_deplibs_check_method=pass_all ;;
4070 *)
4071 # glibc up to 2.1.1 does not perform some relocations on ARM
4072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4073 esac
4074 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4075 ;;
4076
4077netbsd*)
4078 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4079 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4080 else
4081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4082 fi
4083 lt_cv_file_magic_cmd='/usr/bin/file -L'
4084 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4085 ;;
4086
4087newos6*)
4088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4089 lt_cv_file_magic_cmd=/usr/bin/file
4090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4091 ;;
4092
4093osf3* | osf4* | osf5*)
4094 # this will be overridden with pass_all, but let us keep it just in case
4095 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4096 lt_cv_file_magic_test_file=/shlib/libc.so
4097 lt_cv_deplibs_check_method=pass_all
4098 ;;
4099
4100sco3.2v5*)
4101 lt_cv_deplibs_check_method=pass_all
4102 ;;
4103
4104solaris*)
4105 lt_cv_deplibs_check_method=pass_all
4106 lt_cv_file_magic_test_file=/lib/libc.so
4107 ;;
4108
4109sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4110 case "$host_vendor" in
4111 motorola)
4112 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]'
4113 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4114 ;;
4115 ncr)
4116 lt_cv_deplibs_check_method=pass_all
4117 ;;
4118 sequent)
4119 lt_cv_file_magic_cmd='/bin/file'
4120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4121 ;;
4122 sni)
4123 lt_cv_file_magic_cmd='/bin/file'
4124 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4125 lt_cv_file_magic_test_file=/lib/libc.so
4126 ;;
4127 esac
4128 ;;
4129esac
4130
4131fi
4132echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4133echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4134file_magic_cmd=$lt_cv_file_magic_cmd
4135deplibs_check_method=$lt_cv_deplibs_check_method
4136
4137
4138
4139
4140
4141
4142
4143# Check for command to grab the raw symbol name followed by C symbol from nm.
4144echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4145echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4146if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148else
4149
4150# These are sane defaults that work on at least a few old systems.
4151# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4152
4153# Character class describing NM global symbol codes.
4154symcode='[BCDEGRST]'
4155
4156# Regexp to match symbols that can be accessed directly from C.
4157sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4158
4159# Transform the above into a raw symbol and a C symbol.
4160symxfrm='\1 \2\3 \3'
4161
4162# Transform an extracted symbol line into a proper C declaration
4163lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4164
4165# Define system-specific variables.
4166case "$host_os" in
4167aix*)
4168 symcode='[BCDT]'
4169 ;;
4170cygwin* | mingw* | pw32*)
4171 symcode='[ABCDGISTW]'
4172 ;;
4173hpux*) # Its linker distinguishes data from code symbols
4174 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4175 ;;
4176irix*)
4177 symcode='[BCDEGRST]'
4178 ;;
4179solaris* | sysv5*)
4180 symcode='[BDT]'
4181 ;;
4182sysv4)
4183 symcode='[DFNSTU]'
4184 ;;
4185esac
4186
4187# Handle CRLF in mingw tool chain
4188opt_cr=
4189case "$host_os" in
4190mingw*)
4191 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4192 ;;
4193esac
4194
4195# If we're using GNU nm, then use its standard symbol codes.
4196if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4197 symcode='[ABCDGISTW]'
4198fi
4199
4200# Try without a prefix undercore, then with it.
4201for ac_symprfx in "" "_"; do
4202
4203 # Write the raw and C identifiers.
4204lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4205
4206 # Check to see that the pipe works correctly.
4207 pipe_works=no
4208 rm -f conftest*
4209 cat > conftest.$ac_ext <<EOF
4210#ifdef __cplusplus
4211extern "C" {
4212#endif
4213char nm_test_var;
4214void nm_test_func(){}
4215#ifdef __cplusplus
4216}
4217#endif
4218main(){nm_test_var='a';nm_test_func();return(0);}
4219EOF
4220
4221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4222 (eval $ac_compile) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; then
4226 # Now try to grab the symbols.
4227 nlist=conftest.nm
4228 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4229 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } && test -s "$nlist"; then
4233 # Try sorting and uniquifying the output.
4234 if sort "$nlist" | uniq > "$nlist"T; then
4235 mv -f "$nlist"T "$nlist"
4236 else
4237 rm -f "$nlist"T
4238 fi
4239
4240 # Make sure that we snagged all the symbols we need.
4241 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4242 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4243 cat <<EOF > conftest.$ac_ext
4244#ifdef __cplusplus
4245extern "C" {
4246#endif
4247
4248EOF
4249 # Now generate the symbol file.
4250 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4251
4252 cat <<EOF >> conftest.$ac_ext
4253#if defined (__STDC__) && __STDC__
4254# define lt_ptr_t void *
4255#else
4256# define lt_ptr_t char *
4257# define const
4258#endif
4259
4260/* The mapping between symbol names and symbols. */
4261const struct {
4262 const char *name;
4263 lt_ptr_t address;
4264}
4265lt_preloaded_symbols[] =
4266{
4267EOF
4268 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4269 cat <<\EOF >> conftest.$ac_ext
4270 {0, (lt_ptr_t) 0}
4271};
4272
4273#ifdef __cplusplus
4274}
4275#endif
4276EOF
4277 # Now try linking the two files.
4278 mv conftest.$ac_objext conftstm.$ac_objext
4279 save_LIBS="$LIBS"
4280 save_CFLAGS="$CFLAGS"
4281 LIBS="conftstm.$ac_objext"
4282 CFLAGS="$CFLAGS$no_builtin_flag"
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && test -s conftest; then
4288 pipe_works=yes
4289 fi
4290 LIBS="$save_LIBS"
4291 CFLAGS="$save_CFLAGS"
4292 else
4293 echo "cannot find nm_test_func in $nlist" >&5
4294 fi
4295 else
4296 echo "cannot find nm_test_var in $nlist" >&5
4297 fi
4298 else
4299 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4300 fi
4301 else
4302 echo "$progname: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4304 fi
4305 rm -f conftest* conftst*
4306
4307 # Do not use the global_symbol_pipe unless it works.
4308 if test "$pipe_works" = yes; then
4309 break
4310 else
4311 lt_cv_sys_global_symbol_pipe=
4312 fi
4313done
4314
4315fi
4316
4317global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4318if test -z "$lt_cv_sys_global_symbol_pipe"; then
4319 global_symbol_to_cdecl=
4320else
4321 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4322fi
4323if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4324 echo "$as_me:$LINENO: result: failed" >&5
4325echo "${ECHO_T}failed" >&6
4326else
4327 echo "$as_me:$LINENO: result: ok" >&5
4328echo "${ECHO_T}ok" >&6
4329fi
4330
4331echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4332echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4333if test "${ac_cv_header_stdc+set}" = set; then 3617if test "${ac_cv_func_setlocale+set}" = set; then
4334 echo $ECHO_N "(cached) $ECHO_C" >&6 3618 echo $ECHO_N "(cached) $ECHO_C" >&6
4335else 3619else
4336 cat >conftest.$ac_ext <<_ACEOF 3620 cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h. */ 3621/* confdefs.h. */
4338_ACEOF 3622_ACEOF
4339cat confdefs.h >>conftest.$ac_ext 3623cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF 3624cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */ 3625/* end confdefs.h. */
4342#include <stdlib.h>
4343#include <stdarg.h>
4344#include <string.h>
4345#include <float.h>
4346
4347int
4348main ()
4349{
4350
4351 ;
4352 return 0;
4353}
4354_ACEOF
4355rm -f conftest.$ac_objext
4356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>conftest.er1
4358 ac_status=$?
4359 grep -v '^ *+' conftest.er1 >conftest.err
4360 rm -f conftest.er1
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } &&
4364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366 (eval $ac_try) 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; } &&
4370 { ac_try='test -s conftest.$ac_objext'
4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372 (eval $ac_try) 2>&5
4373 ac_status=$?
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }; }; then
4376 ac_cv_header_stdc=yes
4377else
4378 echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381ac_cv_header_stdc=no
4382fi
4383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384
4385if test $ac_cv_header_stdc = yes; then
4386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4387 cat >conftest.$ac_ext <<_ACEOF
4388/* confdefs.h. */
4389_ACEOF
4390cat confdefs.h >>conftest.$ac_ext
4391cat >>conftest.$ac_ext <<_ACEOF
4392/* end confdefs.h. */
4393#include <string.h>
4394
4395_ACEOF
4396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4397 $EGREP "memchr" >/dev/null 2>&1; then
4398 :
4399else
4400 ac_cv_header_stdc=no
4401fi
4402rm -f conftest*
4403
4404fi
4405
4406if test $ac_cv_header_stdc = yes; then
4407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4408 cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
4413/* end confdefs.h. */
4414#include <stdlib.h>
4415
4416_ACEOF
4417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4418 $EGREP "free" >/dev/null 2>&1; then
4419 :
4420else
4421 ac_cv_header_stdc=no
4422fi
4423rm -f conftest*
4424
4425fi
4426
4427if test $ac_cv_header_stdc = yes; then
4428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4429 if test "$cross_compiling" = yes; then
4430 :
4431else
4432 cat >conftest.$ac_ext <<_ACEOF
4433/* confdefs.h. */
4434_ACEOF
4435cat confdefs.h >>conftest.$ac_ext
4436cat >>conftest.$ac_ext <<_ACEOF
4437/* end confdefs.h. */
4438#include <ctype.h>
4439#if ((' ' & 0x0FF) == 0x020)
4440# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4441# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4442#else
4443# define ISLOWER(c) \
4444 (('a' <= (c) && (c) <= 'i') \
4445 || ('j' <= (c) && (c) <= 'r') \
4446 || ('s' <= (c) && (c) <= 'z'))
4447# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4448#endif
4449
4450#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4451int
4452main ()
4453{
4454 int i;
4455 for (i = 0; i < 256; i++)
4456 if (XOR (islower (i), ISLOWER (i))
4457 || toupper (i) != TOUPPER (i))
4458 exit(2);
4459 exit (0);
4460}
4461_ACEOF
4462rm -f conftest$ac_exeext
4463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4464 (eval $ac_link) 2>&5
4465 ac_status=$?
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4469 (eval $ac_try) 2>&5
4470 ac_status=$?
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; }; then
4473 :
4474else
4475 echo "$as_me: program exited with status $ac_status" >&5
4476echo "$as_me: failed program was:" >&5
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
4479( exit $ac_status )
4480ac_cv_header_stdc=no
4481fi
4482rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4483fi
4484fi
4485fi
4486echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4487echo "${ECHO_T}$ac_cv_header_stdc" >&6
4488if test $ac_cv_header_stdc = yes; then
4489
4490cat >>confdefs.h <<\_ACEOF
4491#define STDC_HEADERS 1
4492_ACEOF
4493
4494fi
4495
4496# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4507 inttypes.h stdint.h unistd.h
4508do
4509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4510echo "$as_me:$LINENO: checking for $ac_header" >&5
4511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4512if eval "test \"\${$as_ac_Header+set}\" = set"; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4514else
4515 cat >conftest.$ac_ext <<_ACEOF
4516/* confdefs.h. */
4517_ACEOF
4518cat confdefs.h >>conftest.$ac_ext
4519cat >>conftest.$ac_ext <<_ACEOF
4520/* end confdefs.h. */
4521$ac_includes_default
4522
4523#include <$ac_header>
4524_ACEOF
4525rm -f conftest.$ac_objext
4526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527 (eval $ac_compile) 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; } &&
4540 { ac_try='test -s conftest.$ac_objext'
4541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 (eval $ac_try) 2>&5
4543 ac_status=$?
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); }; }; then
4546 eval "$as_ac_Header=yes"
4547else
4548 echo "$as_me: failed program was:" >&5
4549sed 's/^/| /' conftest.$ac_ext >&5
4550
4551eval "$as_ac_Header=no"
4552fi
4553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4554fi
4555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4557if test `eval echo '${'$as_ac_Header'}'` = yes; then
4558 cat >>confdefs.h <<_ACEOF
4559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4560_ACEOF
4561
4562fi
4563
4564done
4565
4566
4567
4568for ac_header in dlfcn.h
4569do
4570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4571if eval "test \"\${$as_ac_Header+set}\" = set"; then
4572 echo "$as_me:$LINENO: checking for $ac_header" >&5
4573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4574if eval "test \"\${$as_ac_Header+set}\" = set"; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576fi
4577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4579else
4580 # Is the header compilable?
4581echo "$as_me:$LINENO: checking $ac_header usability" >&5
4582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4583cat >conftest.$ac_ext <<_ACEOF
4584/* confdefs.h. */
4585_ACEOF
4586cat confdefs.h >>conftest.$ac_ext
4587cat >>conftest.$ac_ext <<_ACEOF
4588/* end confdefs.h. */
4589$ac_includes_default
4590#include <$ac_header>
4591_ACEOF
4592rm -f conftest.$ac_objext
4593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4594 (eval $ac_compile) 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603 (eval $ac_try) 2>&5
4604 ac_status=$?
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; } &&
4607 { ac_try='test -s conftest.$ac_objext'
4608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4609 (eval $ac_try) 2>&5
4610 ac_status=$?
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; }; then
4613 ac_header_compiler=yes
4614else
4615 echo "$as_me: failed program was:" >&5
4616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618ac_header_compiler=no
4619fi
4620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4622echo "${ECHO_T}$ac_header_compiler" >&6
4623
4624# Is the header present?
4625echo "$as_me:$LINENO: checking $ac_header presence" >&5
4626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4627cat >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 <$ac_header>
4634_ACEOF
4635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4637 ac_status=$?
4638 grep -v '^ *+' conftest.er1 >conftest.err
4639 rm -f conftest.er1
4640 cat conftest.err >&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); } >/dev/null; then
4643 if test -s conftest.err; then
4644 ac_cpp_err=$ac_cxx_preproc_warn_flag
4645 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4646 else
4647 ac_cpp_err=
4648 fi
4649else
4650 ac_cpp_err=yes
4651fi
4652if test -z "$ac_cpp_err"; then
4653 ac_header_preproc=yes
4654else
4655 echo "$as_me: failed program was:" >&5
4656sed 's/^/| /' conftest.$ac_ext >&5
4657
4658 ac_header_preproc=no
4659fi
4660rm -f conftest.err conftest.$ac_ext
4661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4662echo "${ECHO_T}$ac_header_preproc" >&6
4663
4664# So? What about this header?
4665case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4666 yes:no: )
4667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4671 ac_header_preproc=yes
4672 ;;
4673 no:yes:* )
4674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4686 (
4687 cat <<\_ASBOX
4688## ------------------------------------------ ##
4689## Report this to the AC_PACKAGE_NAME lists. ##
4690## ------------------------------------------ ##
4691_ASBOX
4692 ) |
4693 sed "s/^/$as_me: WARNING: /" >&2
4694 ;;
4695esac
4696echo "$as_me:$LINENO: checking for $ac_header" >&5
4697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4698if eval "test \"\${$as_ac_Header+set}\" = set"; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701 eval "$as_ac_Header=\$ac_header_preproc"
4702fi
4703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4705
4706fi
4707if test `eval echo '${'$as_ac_Header'}'` = yes; then
4708 cat >>confdefs.h <<_ACEOF
4709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4710_ACEOF
4711
4712fi
4713
4714done
4715
4716
4717
4718
4719
4720# Only perform the check for file, if the check method requires it
4721case "$deplibs_check_method" in
4722file_magic*)
4723 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4724 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4725echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4726if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4727 echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729 case "$MAGIC_CMD" in
4730 /*)
4731 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4732 ;;
4733 ?:/*)
4734 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4735 ;;
4736 *)
4737 ac_save_MAGIC_CMD="$MAGIC_CMD"
4738 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4739 ac_dummy="/usr/bin:$PATH"
4740 for ac_dir in $ac_dummy; do
4741 test -z "$ac_dir" && ac_dir=.
4742 if test -f $ac_dir/${ac_tool_prefix}file; then
4743 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4744 if test -n "$file_magic_test_file"; then
4745 case "$deplibs_check_method" in
4746 "file_magic "*)
4747 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4748 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4749 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4750 egrep "$file_magic_regex" > /dev/null; then
4751 :
4752 else
4753 cat <<EOF 1>&2
4754
4755*** Warning: the command libtool uses to detect shared libraries,
4756*** $file_magic_cmd, produces output that libtool cannot recognize.
4757*** The result is that libtool may fail to recognize shared libraries
4758*** as such. This will affect the creation of libtool libraries that
4759*** depend on shared libraries, but programs linked with such libtool
4760*** libraries will work regardless of this problem. Nevertheless, you
4761*** may want to report the problem to your system manager and/or to
4762*** bug-libtool@gnu.org
4763
4764EOF
4765 fi ;;
4766 esac
4767 fi
4768 break
4769 fi
4770 done
4771 IFS="$ac_save_ifs"
4772 MAGIC_CMD="$ac_save_MAGIC_CMD"
4773 ;;
4774esac
4775fi
4776
4777MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4778if test -n "$MAGIC_CMD"; then
4779 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4780echo "${ECHO_T}$MAGIC_CMD" >&6
4781else
4782 echo "$as_me:$LINENO: result: no" >&5
4783echo "${ECHO_T}no" >&6
4784fi
4785
4786if test -z "$lt_cv_path_MAGIC_CMD"; then
4787 if test -n "$ac_tool_prefix"; then
4788 echo "$as_me:$LINENO: checking for file" >&5
4789echo $ECHO_N "checking for file... $ECHO_C" >&6
4790if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4792else
4793 case "$MAGIC_CMD" in
4794 /*)
4795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4796 ;;
4797 ?:/*)
4798 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4799 ;;
4800 *)
4801 ac_save_MAGIC_CMD="$MAGIC_CMD"
4802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4803 ac_dummy="/usr/bin:$PATH"
4804 for ac_dir in $ac_dummy; do
4805 test -z "$ac_dir" && ac_dir=.
4806 if test -f $ac_dir/file; then
4807 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4808 if test -n "$file_magic_test_file"; then
4809 case "$deplibs_check_method" in
4810 "file_magic "*)
4811 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4814 egrep "$file_magic_regex" > /dev/null; then
4815 :
4816 else
4817 cat <<EOF 1>&2
4818
4819*** Warning: the command libtool uses to detect shared libraries,
4820*** $file_magic_cmd, produces output that libtool cannot recognize.
4821*** The result is that libtool may fail to recognize shared libraries
4822*** as such. This will affect the creation of libtool libraries that
4823*** depend on shared libraries, but programs linked with such libtool
4824*** libraries will work regardless of this problem. Nevertheless, you
4825*** may want to report the problem to your system manager and/or to
4826*** bug-libtool@gnu.org
4827
4828EOF
4829 fi ;;
4830 esac
4831 fi
4832 break
4833 fi
4834 done
4835 IFS="$ac_save_ifs"
4836 MAGIC_CMD="$ac_save_MAGIC_CMD"
4837 ;;
4838esac
4839fi
4840
4841MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4842if test -n "$MAGIC_CMD"; then
4843 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4844echo "${ECHO_T}$MAGIC_CMD" >&6
4845else
4846 echo "$as_me:$LINENO: result: no" >&5
4847echo "${ECHO_T}no" >&6
4848fi
4849
4850 else
4851 MAGIC_CMD=:
4852 fi
4853fi
4854
4855 fi
4856 ;;
4857esac
4858
4859if test -n "$ac_tool_prefix"; then
4860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4861set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4862echo "$as_me:$LINENO: checking for $ac_word" >&5
4863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864if test "${ac_cv_prog_RANLIB+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866else
4867 if test -n "$RANLIB"; then
4868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882done
4883
4884fi
4885fi
4886RANLIB=$ac_cv_prog_RANLIB
4887if test -n "$RANLIB"; then
4888 echo "$as_me:$LINENO: result: $RANLIB" >&5
4889echo "${ECHO_T}$RANLIB" >&6
4890else
4891 echo "$as_me:$LINENO: result: no" >&5
4892echo "${ECHO_T}no" >&6
4893fi
4894
4895fi
4896if test -z "$ac_cv_prog_RANLIB"; then
4897 ac_ct_RANLIB=$RANLIB
4898 # Extract the first word of "ranlib", so it can be a program name with args.
4899set dummy ranlib; ac_word=$2
4900echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 if test -n "$ac_ct_RANLIB"; then
4906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4907else
4908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909for as_dir in $PATH
4910do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4915 ac_cv_prog_ac_ct_RANLIB="ranlib"
4916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919done
4920done
4921
4922 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4923fi
4924fi
4925ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4926if test -n "$ac_ct_RANLIB"; then
4927 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4928echo "${ECHO_T}$ac_ct_RANLIB" >&6
4929else
4930 echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6
4932fi
4933
4934 RANLIB=$ac_ct_RANLIB
4935else
4936 RANLIB="$ac_cv_prog_RANLIB"
4937fi
4938
4939if test -n "$ac_tool_prefix"; then
4940 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4941set dummy ${ac_tool_prefix}strip; ac_word=$2
4942echo "$as_me:$LINENO: checking for $ac_word" >&5
4943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4944if test "${ac_cv_prog_STRIP+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947 if test -n "$STRIP"; then
4948 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4949else
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4960 fi
4961done
4962done
4963
4964fi
4965fi
4966STRIP=$ac_cv_prog_STRIP
4967if test -n "$STRIP"; then
4968 echo "$as_me:$LINENO: result: $STRIP" >&5
4969echo "${ECHO_T}$STRIP" >&6
4970else
4971 echo "$as_me:$LINENO: result: no" >&5
4972echo "${ECHO_T}no" >&6
4973fi
4974
4975fi
4976if test -z "$ac_cv_prog_STRIP"; then
4977 ac_ct_STRIP=$STRIP
4978 # Extract the first word of "strip", so it can be a program name with args.
4979set dummy strip; ac_word=$2
4980echo "$as_me:$LINENO: checking for $ac_word" >&5
4981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4982if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984else
4985 if test -n "$ac_ct_STRIP"; then
4986 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4987else
4988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989for as_dir in $PATH
4990do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_ac_ct_STRIP="strip"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999done
5000done
5001
5002 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5003fi
5004fi
5005ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5006if test -n "$ac_ct_STRIP"; then
5007 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5008echo "${ECHO_T}$ac_ct_STRIP" >&6
5009else
5010 echo "$as_me:$LINENO: result: no" >&5
5011echo "${ECHO_T}no" >&6
5012fi
5013
5014 STRIP=$ac_ct_STRIP
5015else
5016 STRIP="$ac_cv_prog_STRIP"
5017fi
5018
5019
5020enable_dlopen=no
5021enable_win32_dll=no
5022
5023# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5024if test "${enable_libtool_lock+set}" = set; then
5025 enableval="$enable_libtool_lock"
5026
5027fi;
5028test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5029
5030# Some flags need to be propagated to the compiler or linker for good
5031# libtool support.
5032case "$host" in
5033*-*-irix6*)
5034 # Find out which ABI we are using.
5035 echo '#line 5035 "configure"' > conftest.$ac_ext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; then
5041 case "`/usr/bin/file conftest.$ac_objext`" in
5042 *32-bit*)
5043 LD="${LD-ld} -32"
5044 ;;
5045 *N32*)
5046 LD="${LD-ld} -n32"
5047 ;;
5048 *64-bit*)
5049 LD="${LD-ld} -64"
5050 ;;
5051 esac
5052 fi
5053 rm -rf conftest*
5054 ;;
5055
5056*-*-sco3.2v5*)
5057 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5058 SAVE_CFLAGS="$CFLAGS"
5059 CFLAGS="$CFLAGS -belf"
5060 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5061echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5062if test "${lt_cv_cc_needs_belf+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065
5066
5067 ac_ext=c
5068ac_cpp='$CPP $CPPFLAGS'
5069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073 cat >conftest.$ac_ext <<_ACEOF
5074/* confdefs.h. */
5075_ACEOF
5076cat confdefs.h >>conftest.$ac_ext
5077cat >>conftest.$ac_ext <<_ACEOF
5078/* end confdefs.h. */
5079
5080int
5081main ()
5082{
5083
5084 ;
5085 return 0;
5086}
5087_ACEOF
5088rm -f conftest.$ac_objext conftest$ac_exeext
5089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5090 (eval $ac_link) 2>conftest.er1
5091 ac_status=$?
5092 grep -v '^ *+' conftest.er1 >conftest.err
5093 rm -f conftest.er1
5094 cat conftest.err >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } &&
5097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 (eval $ac_try) 2>&5
5100 ac_status=$?
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); }; } &&
5103 { ac_try='test -s conftest$ac_exeext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 lt_cv_cc_needs_belf=yes
5110else
5111 echo "$as_me: failed program was:" >&5
5112sed 's/^/| /' conftest.$ac_ext >&5
5113
5114lt_cv_cc_needs_belf=no
5115fi
5116rm -f conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext conftest.$ac_ext
5118 ac_ext=cc
5119ac_cpp='$CXXCPP $CPPFLAGS'
5120ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5123
5124fi
5125echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5126echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5127 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5128 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5129 CFLAGS="$SAVE_CFLAGS"
5130 fi
5131 ;;
5132
5133
5134esac
5135
5136# Sed substitution that helps us do robust quoting. It backslashifies
5137# metacharacters that are still active within double-quoted strings.
5138Xsed='sed -e s/^X//'
5139sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5140
5141# Same as above, but do not quote variable references.
5142double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5143
5144# Sed substitution to delay expansion of an escaped shell variable in a
5145# double_quote_subst'ed string.
5146delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5147
5148# Constants:
5149rm="rm -f"
5150
5151# Global variables:
5152default_ofile=libtool
5153can_build_shared=yes
5154
5155# All known linkers require a `.a' archive for static linking (except M$VC,
5156# which needs '.lib').
5157libext=a
5158ltmain="$ac_aux_dir/ltmain.sh"
5159ofile="$default_ofile"
5160with_gnu_ld="$lt_cv_prog_gnu_ld"
5161need_locks="$enable_libtool_lock"
5162
5163old_CC="$CC"
5164old_CFLAGS="$CFLAGS"
5165
5166# Set sane defaults for various variables
5167test -z "$AR" && AR=ar
5168test -z "$AR_FLAGS" && AR_FLAGS=cru
5169test -z "$AS" && AS=as
5170test -z "$CC" && CC=cc
5171test -z "$DLLTOOL" && DLLTOOL=dlltool
5172test -z "$LD" && LD=ld
5173test -z "$LN_S" && LN_S="ln -s"
5174test -z "$MAGIC_CMD" && MAGIC_CMD=file
5175test -z "$NM" && NM=nm
5176test -z "$OBJDUMP" && OBJDUMP=objdump
5177test -z "$RANLIB" && RANLIB=:
5178test -z "$STRIP" && STRIP=:
5179test -z "$ac_objext" && ac_objext=o
5180
5181if test x"$host" != x"$build"; then
5182 ac_tool_prefix=${host_alias}-
5183else
5184 ac_tool_prefix=
5185fi
5186
5187# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5188case "$host_os" in
5189linux-gnu*) ;;
5190linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5191esac
5192
5193case "$host_os" in
5194aix3*)
5195 # AIX sometimes has problems with the GCC collect2 program. For some
5196 # reason, if we set the COLLECT_NAMES environment variable, the problems
5197 # vanish in a puff of smoke.
5198 if test "X${COLLECT_NAMES+set}" != Xset; then
5199 COLLECT_NAMES=
5200 export COLLECT_NAMES
5201 fi
5202 ;;
5203esac
5204
5205# Determine commands to create old-style static archives.
5206old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5207old_postinstall_cmds='chmod 644 $oldlib'
5208old_postuninstall_cmds=
5209
5210if test -n "$RANLIB"; then
5211 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5212 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5213fi
5214
5215# Allow CC to be a program name with arguments.
5216set dummy $CC
5217compiler="$2"
5218
5219## FIXME: this should be a separate macro
5220##
5221echo "$as_me:$LINENO: checking for objdir" >&5
5222echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5223rm -f .libs 2>/dev/null
5224mkdir .libs 2>/dev/null
5225if test -d .libs; then
5226 objdir=.libs
5227else
5228 # MS-DOS does not allow filenames that begin with a dot.
5229 objdir=_libs
5230fi
5231rmdir .libs 2>/dev/null
5232echo "$as_me:$LINENO: result: $objdir" >&5
5233echo "${ECHO_T}$objdir" >&6
5234##
5235## END FIXME
5236
5237
5238## FIXME: this should be a separate macro
5239##
5240
5241# Check whether --with-pic or --without-pic was given.
5242if test "${with_pic+set}" = set; then
5243 withval="$with_pic"
5244 pic_mode="$withval"
5245else
5246 pic_mode=default
5247fi;
5248test -z "$pic_mode" && pic_mode=default
5249
5250# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5251# in isolation, and that seeing it set (from the cache) indicates that
5252# the associated values are set (in the cache) correctly too.
5253echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5254echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5255if test "${lt_cv_prog_cc_pic+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258 lt_cv_prog_cc_pic=
5259 lt_cv_prog_cc_shlib=
5260 lt_cv_prog_cc_wl=
5261 lt_cv_prog_cc_static=
5262 lt_cv_prog_cc_no_builtin=
5263 lt_cv_prog_cc_can_build_shared=$can_build_shared
5264
5265 if test "$GCC" = yes; then
5266 lt_cv_prog_cc_wl='-Wl,'
5267 lt_cv_prog_cc_static='-static'
5268
5269 case "$host_os" in
5270 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5271 # PIC is the default for these OSes.
5272 ;;
5273 aix*)
5274 # Below there is a dirty hack to force normal static linking with -ldl
5275 # The problem is because libdl dynamically linked with both libc and
5276 # libC (AIX C++ library), which obviously doesn't included in libraries
5277 # list by gcc. This cause undefined symbols with -static flags.
5278 # This hack allows C programs to be linked with "-static -ldl", but
5279 # we not sure about C++ programs.
5280 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5281 ;;
5282 cygwin* | mingw* | pw32* | os2*)
5283 # This hack is so that the source file can tell whether it is being
5284 # built for inclusion in a dll (and should export symbols for example).
5285 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5286 ;;
5287 amigaos*)
5288 # FIXME: we need at least 68020 code to build shared libraries, but
5289 # adding the `-m68020' flag to GCC prevents building anything better,
5290 # like `-m68040'.
5291 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5292 ;;
5293 sysv4*MP*)
5294 if test -d /usr/nec; then
5295 lt_cv_prog_cc_pic=-Kconform_pic
5296 fi
5297 ;;
5298 *)
5299 lt_cv_prog_cc_pic='-fPIC'
5300 ;;
5301 esac
5302 else
5303 # PORTME Check for PIC flags for the system compiler.
5304 case "$host_os" in
5305 aix3* | aix4*)
5306 # All AIX code is PIC.
5307 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5308 ;;
5309
5310 hpux9* | hpux10* | hpux11*)
5311 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5312 lt_cv_prog_cc_wl='-Wl,'
5313 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5314 lt_cv_prog_cc_pic='+Z'
5315 ;;
5316
5317 irix5* | irix6*)
5318 lt_cv_prog_cc_wl='-Wl,'
5319 lt_cv_prog_cc_static='-non_shared'
5320 # PIC (with -KPIC) is the default.
5321 ;;
5322
5323 cygwin* | mingw* | pw32* | os2*)
5324 # This hack is so that the source file can tell whether it is being
5325 # built for inclusion in a dll (and should export symbols for example).
5326 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5327 ;;
5328
5329 newsos6)
5330 lt_cv_prog_cc_pic='-KPIC'
5331 lt_cv_prog_cc_static='-Bstatic'
5332 ;;
5333
5334 osf3* | osf4* | osf5*)
5335 # All OSF/1 code is PIC.
5336 lt_cv_prog_cc_wl='-Wl,'
5337 lt_cv_prog_cc_static='-non_shared'
5338 ;;
5339
5340 sco3.2v5*)
5341 lt_cv_prog_cc_pic='-Kpic'
5342 lt_cv_prog_cc_static='-dn'
5343 lt_cv_prog_cc_shlib='-belf'
5344 ;;
5345
5346 solaris*)
5347 lt_cv_prog_cc_pic='-KPIC'
5348 lt_cv_prog_cc_static='-Bstatic'
5349 lt_cv_prog_cc_wl='-Wl,'
5350 ;;
5351
5352 sunos4*)
5353 lt_cv_prog_cc_pic='-PIC'
5354 lt_cv_prog_cc_static='-Bstatic'
5355 lt_cv_prog_cc_wl='-Qoption ld '
5356 ;;
5357
5358 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5359 lt_cv_prog_cc_pic='-KPIC'
5360 lt_cv_prog_cc_static='-Bstatic'
5361 if test "x$host_vendor" = xsni; then
5362 lt_cv_prog_cc_wl='-LD'
5363 else
5364 lt_cv_prog_cc_wl='-Wl,'
5365 fi
5366 ;;
5367
5368 uts4*)
5369 lt_cv_prog_cc_pic='-pic'
5370 lt_cv_prog_cc_static='-Bstatic'
5371 ;;
5372
5373 sysv4*MP*)
5374 if test -d /usr/nec ;then
5375 lt_cv_prog_cc_pic='-Kconform_pic'
5376 lt_cv_prog_cc_static='-Bstatic'
5377 fi
5378 ;;
5379
5380 *)
5381 lt_cv_prog_cc_can_build_shared=no
5382 ;;
5383 esac
5384 fi
5385
5386fi
5387
5388if test -z "$lt_cv_prog_cc_pic"; then
5389 echo "$as_me:$LINENO: result: none" >&5
5390echo "${ECHO_T}none" >&6
5391else
5392 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5393echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5394
5395 # Check to make sure the pic_flag actually works.
5396 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5397echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5398 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401 save_CFLAGS="$CFLAGS"
5402 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5403 cat >conftest.$ac_ext <<_ACEOF
5404/* confdefs.h. */
5405_ACEOF
5406cat confdefs.h >>conftest.$ac_ext
5407cat >>conftest.$ac_ext <<_ACEOF
5408/* end confdefs.h. */
5409
5410int
5411main ()
5412{
5413
5414 ;
5415 return 0;
5416}
5417_ACEOF
5418rm -f conftest.$ac_objext
5419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5420 (eval $ac_compile) 2>conftest.er1
5421 ac_status=$?
5422 grep -v '^ *+' conftest.er1 >conftest.err
5423 rm -f conftest.er1
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } &&
5427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 (eval $ac_try) 2>&5
5430 ac_status=$?
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); }; } &&
5433 { ac_try='test -s conftest.$ac_objext'
5434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5435 (eval $ac_try) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; }; then
5439 case "$host_os" in
5440 hpux9* | hpux10* | hpux11*)
5441 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5442 # they create non-PIC objects. So, if there were any warnings, we
5443 # assume that PIC is not supported.
5444 if test -s conftest.err; then
5445 lt_cv_prog_cc_pic_works=no
5446 else
5447 lt_cv_prog_cc_pic_works=yes
5448 fi
5449 ;;
5450 *)
5451 lt_cv_prog_cc_pic_works=yes
5452 ;;
5453 esac
5454
5455else
5456 echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
5458
5459 lt_cv_prog_cc_pic_works=no
5460
5461fi
5462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5463 CFLAGS="$save_CFLAGS"
5464
5465fi
5466
5467
5468 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5469 lt_cv_prog_cc_pic=
5470 lt_cv_prog_cc_can_build_shared=no
5471 else
5472 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5473 fi
5474
5475 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5476echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5477fi
5478##
5479## END FIXME
5480
5481# Check for any special shared library compilation flags.
5482if test -n "$lt_cv_prog_cc_shlib"; then
5483 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5484echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5485 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5486 else
5487 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5488echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5489 lt_cv_prog_cc_can_build_shared=no
5490 fi
5491fi
5492
5493## FIXME: this should be a separate macro
5494##
5495echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5496echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5497if test "${lt_cv_prog_cc_static_works+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499else
5500 lt_cv_prog_cc_static_works=no
5501 save_LDFLAGS="$LDFLAGS"
5502 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5503 cat >conftest.$ac_ext <<_ACEOF
5504/* confdefs.h. */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */
5509
5510int
5511main ()
5512{
5513
5514 ;
5515 return 0;
5516}
5517_ACEOF
5518rm -f conftest.$ac_objext conftest$ac_exeext
5519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5520 (eval $ac_link) 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } &&
5527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 (eval $ac_try) 2>&5
5530 ac_status=$?
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); }; } &&
5533 { ac_try='test -s conftest$ac_exeext'
5534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 (eval $ac_try) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 lt_cv_prog_cc_static_works=yes
5540else
5541 echo "$as_me: failed program was:" >&5
5542sed 's/^/| /' conftest.$ac_ext >&5
5543
5544fi
5545rm -f conftest.err conftest.$ac_objext \
5546 conftest$ac_exeext conftest.$ac_ext
5547 LDFLAGS="$save_LDFLAGS"
5548
5549fi
5550
5551
5552# Belt *and* braces to stop my trousers falling down:
5553test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5554echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5555echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5556
5557pic_flag="$lt_cv_prog_cc_pic"
5558special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5559wl="$lt_cv_prog_cc_wl"
5560link_static_flag="$lt_cv_prog_cc_static"
5561no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5562can_build_shared="$lt_cv_prog_cc_can_build_shared"
5563##
5564## END FIXME
5565
5566
5567## FIXME: this should be a separate macro
5568##
5569# Check to see if options -o and -c are simultaneously supported by compiler
5570echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5571echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5572$rm -r conftest 2>/dev/null
5573mkdir conftest
5574cd conftest
5575echo "int some_variable = 0;" > conftest.$ac_ext
5576mkdir out
5577# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5578# that will create temporary files in the current directory regardless of
5579# the output directory. Thus, making CWD read-only will cause this test
5580# to fail, enabling locking or at least warning the user not to do parallel
5581# builds.
5582chmod -w .
5583save_CFLAGS="$CFLAGS"
5584CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5585compiler_c_o=no
5586if { (eval echo configure:5586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5587 # The compiler can only warn and ignore the option if not recognized
5588 # So say no if there are warnings
5589 if test -s out/conftest.err; then
5590 compiler_c_o=no
5591 else
5592 compiler_c_o=yes
5593 fi
5594else
5595 # Append any errors to the config.log.
5596 cat out/conftest.err 1>&5
5597 compiler_c_o=no
5598fi
5599echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5600echo "${ECHO_T}$compiler_c_o" >&6
5601CFLAGS="$save_CFLAGS"
5602chmod u+w .
5603$rm conftest* out/*
5604rmdir out
5605cd ..
5606rmdir conftest
5607$rm -r conftest 2>/dev/null
5608
5609if test x"$compiler_c_o" = x"yes"; then
5610 # Check to see if we can write to a .lo
5611 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5612echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5613 compiler_o_lo=no
5614 save_CFLAGS="$CFLAGS"
5615 CFLAGS="$CFLAGS -c -o conftest.lo"
5616 cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h. */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h. */
5622
5623int
5624main ()
5625{
5626int some_variable = 0;
5627 ;
5628 return 0;
5629}
5630_ACEOF
5631rm -f conftest.$ac_objext
5632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5633 (eval $ac_compile) 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 (eval $ac_try) 2>&5
5643 ac_status=$?
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; } &&
5646 { ac_try='test -s conftest.$ac_objext'
5647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 (eval $ac_try) 2>&5
5649 ac_status=$?
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); }; }; then
5652 # The compiler can only warn and ignore the option if not recognized
5653 # So say no if there are warnings
5654 if test -s conftest.err; then
5655 compiler_o_lo=no
5656 else
5657 compiler_o_lo=yes
5658 fi
5659
5660else
5661 echo "$as_me: failed program was:" >&5
5662sed 's/^/| /' conftest.$ac_ext >&5
5663
5664fi
5665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5666 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5667echo "${ECHO_T}$compiler_c_o" >&6
5668 CFLAGS="$save_CFLAGS"
5669else
5670 compiler_o_lo=no
5671fi
5672##
5673## END FIXME
5674
5675## FIXME: this should be a separate macro
5676##
5677# Check to see if we can do hard links to lock some files if needed
5678hard_links="nottested"
5679if test "$compiler_c_o" = no && test "$need_locks" != no; then
5680 # do not overwrite the value of need_locks provided by the user
5681 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5682echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5683 hard_links=yes
5684 $rm conftest*
5685 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5686 touch conftest.a
5687 ln conftest.a conftest.b 2>&5 || hard_links=no
5688 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5689 echo "$as_me:$LINENO: result: $hard_links" >&5
5690echo "${ECHO_T}$hard_links" >&6
5691 if test "$hard_links" = no; then
5692 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5693echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5694 need_locks=warn
5695 fi
5696else
5697 need_locks=no
5698fi
5699##
5700## END FIXME
5701
5702## FIXME: this should be a separate macro
5703##
5704if test "$GCC" = yes; then
5705 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5706 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5707echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5708 echo "int some_variable = 0;" > conftest.$ac_ext
5709 save_CFLAGS="$CFLAGS"
5710 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5711 compiler_rtti_exceptions=no
5712 cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718
5719int
5720main ()
5721{
5722int some_variable = 0;
5723 ;
5724 return 0;
5725}
5726_ACEOF
5727rm -f conftest.$ac_objext
5728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5729 (eval $ac_compile) 2>conftest.er1
5730 ac_status=$?
5731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } &&
5736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; } &&
5742 { ac_try='test -s conftest.$ac_objext'
5743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 # The compiler can only warn and ignore the option if not recognized
5749 # So say no if there are warnings
5750 if test -s conftest.err; then
5751 compiler_rtti_exceptions=no
5752 else
5753 compiler_rtti_exceptions=yes
5754 fi
5755
5756else
5757 echo "$as_me: failed program was:" >&5
5758sed 's/^/| /' conftest.$ac_ext >&5
5759
5760fi
5761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5762 CFLAGS="$save_CFLAGS"
5763 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5764echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5765
5766 if test "$compiler_rtti_exceptions" = "yes"; then
5767 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5768 else
5769 no_builtin_flag=' -fno-builtin'
5770 fi
5771fi
5772##
5773## END FIXME
5774
5775## FIXME: this should be a separate macro
5776##
5777# See if the linker supports building shared libraries.
5778echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5779echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5780
5781allow_undefined_flag=
5782no_undefined_flag=
5783need_lib_prefix=unknown
5784need_version=unknown
5785# when you set need_version to no, make sure it does not cause -set_version
5786# flags to be left without arguments
5787archive_cmds=
5788archive_expsym_cmds=
5789old_archive_from_new_cmds=
5790old_archive_from_expsyms_cmds=
5791export_dynamic_flag_spec=
5792whole_archive_flag_spec=
5793thread_safe_flag_spec=
5794hardcode_into_libs=no
5795hardcode_libdir_flag_spec=
5796hardcode_libdir_separator=
5797hardcode_direct=no
5798hardcode_minus_L=no
5799hardcode_shlibpath_var=unsupported
5800runpath_var=
5801link_all_deplibs=unknown
5802always_export_symbols=no
5803export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5804# include_expsyms should be a list of space-separated symbols to be *always*
5805# included in the symbol list
5806include_expsyms=
5807# exclude_expsyms can be an egrep regular expression of symbols to exclude
5808# it will be wrapped by ` (' and `)$', so one must not match beginning or
5809# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5810# as well as any symbol that contains `d'.
5811exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5812# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5813# platforms (ab)use it in PIC code, but their linkers get confused if
5814# the symbol is explicitly referenced. Since portable code cannot
5815# rely on this symbol name, it's probably fine to never include it in
5816# preloaded symbol tables.
5817extract_expsyms_cmds=
5818
5819case "$host_os" in
5820cygwin* | mingw* | pw32* )
5821 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5822 # When not using gcc, we currently assume that we are using
5823 # Microsoft Visual C++.
5824 if test "$GCC" != yes; then
5825 with_gnu_ld=no
5826 fi
5827 ;;
5828
5829esac
5830
5831ld_shlibs=yes
5832if test "$with_gnu_ld" = yes; then
5833 # If archive_cmds runs LD, not CC, wlarc should be empty
5834 wlarc='${wl}'
5835
5836 # See if GNU ld supports shared libraries.
5837 case "$host_os" in
5838 aix3* | aix4*)
5839 # On AIX, the GNU linker is very broken
5840 ld_shlibs=no
5841 cat <<EOF 1>&2
5842
5843*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5844*** to be unable to reliably create shared libraries on AIX.
5845*** Therefore, libtool is disabling shared libraries support. If you
5846*** really care for shared libraries, you may want to modify your PATH
5847*** so that a non-GNU linker is found, and then restart.
5848
5849EOF
5850 ;;
5851
5852 amigaos*)
5853 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)'
5854 hardcode_libdir_flag_spec='-L$libdir'
5855 hardcode_minus_L=yes
5856
5857 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5858 # that the semantics of dynamic libraries on AmigaOS, at least up
5859 # to version 4, is to share data among multiple programs linked
5860 # with the same dynamic library. Since this doesn't match the
5861 # behavior of shared libraries on other platforms, we can use
5862 # them.
5863 ld_shlibs=no
5864 ;;
5865
5866 beos*)
5867 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5868 allow_undefined_flag=unsupported
5869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5870 # support --undefined. This deserves some investigation. FIXME
5871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5872 else
5873 ld_shlibs=no
5874 fi
5875 ;;
5876
5877 cygwin* | mingw* | pw32*)
5878 # hardcode_libdir_flag_spec is actually meaningless, as there is
5879 # no search path for DLLs.
5880 hardcode_libdir_flag_spec='-L$libdir'
5881 allow_undefined_flag=unsupported
5882 always_export_symbols=yes
5883
5884 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5885 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5886 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5887 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5888 else $CC -o impgen impgen.c ; fi)~
5889 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
5890
5891 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5892
5893 # cygwin and mingw dlls have different entry points and sets of symbols
5894 # to exclude.
5895 # FIXME: what about values for MSVC?
5896 dll_entry=__cygwin_dll_entry@12
5897 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5898 case "$host_os" in
5899 mingw*)
5900 # mingw values
5901 dll_entry=_DllMainCRTStartup@12
5902 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5903 ;;
5904 esac
5905
5906 # mingw and cygwin differ, and it's simplest to just exclude the union
5907 # of the two symbol sets.
5908 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5909
5910 # recent cygwin and mingw systems supply a stub DllMain which the user
5911 # can override, but on older systems we have to supply one (in ltdll.c)
5912 if test "x$lt_cv_need_dllmain" = "xyes"; then
5913 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5914 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~
5915 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5916 else
5917 ltdll_obj=
5918 ltdll_cmds=
5919 fi
5920
5921 # Extract the symbol export list from an `--export-all' def file,
5922 # then regenerate the def file from the symbol export list, so that
5923 # the compiled dll only exports the symbol export list.
5924 # Be careful not to strip the DATA tag left be newer dlltools.
5925 export_symbols_cmds="$ltdll_cmds"'
5926 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5927 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5928
5929 # If DATA tags from a recent dlltool are present, honour them!
5930 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
5931 _lt_hint=1;
5932 cat $export_symbols | while read symbol; do
5933 set dummy \$symbol;
5934 case \$# in
5935 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5936 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5937 esac;
5938 _lt_hint=`expr 1 + \$_lt_hint`;
5939 done~
5940 '"$ltdll_cmds"'
5941 $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~
5942 $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~
5943 $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~
5944 $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~
5945 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5946 ;;
5947
5948 netbsd*)
5949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5950 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5951 wlarc=
5952 else
5953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5955 fi
5956 ;;
5957
5958 solaris* | sysv5*)
5959 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5960 ld_shlibs=no
5961 cat <<EOF 1>&2
5962
5963*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5964*** create shared libraries on Solaris systems. Therefore, libtool
5965*** is disabling shared libraries support. We urge you to upgrade GNU
5966*** binutils to release 2.9.1 or newer. Another option is to modify
5967*** your PATH or compiler configuration so that the native linker is
5968*** used, and then restart.
5969
5970EOF
5971 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5974 else
5975 ld_shlibs=no
5976 fi
5977 ;;
5978
5979 sunos4*)
5980 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5981 wlarc=
5982 hardcode_direct=yes
5983 hardcode_shlibpath_var=no
5984 ;;
5985
5986 *)
5987 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5990 else
5991 ld_shlibs=no
5992 fi
5993 ;;
5994 esac
5995
5996 if test "$ld_shlibs" = yes; then
5997 runpath_var=LD_RUN_PATH
5998 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5999 export_dynamic_flag_spec='${wl}--export-dynamic'
6000 case $host_os in
6001 cygwin* | mingw* | pw32*)
6002 # dlltool doesn't understand --whole-archive et. al.
6003 whole_archive_flag_spec=
6004 ;;
6005 *)
6006 # ancient GNU ld didn't support --whole-archive et. al.
6007 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6008 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6009 else
6010 whole_archive_flag_spec=
6011 fi
6012 ;;
6013 esac
6014 fi
6015else
6016 # PORTME fill in a description of your system's linker (not GNU ld)
6017 case "$host_os" in
6018 aix3*)
6019 allow_undefined_flag=unsupported
6020 always_export_symbols=yes
6021 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'
6022 # Note: this linker hardcodes the directories in LIBPATH if there
6023 # are no directories specified by -L.
6024 hardcode_minus_L=yes
6025 if test "$GCC" = yes && test -z "$link_static_flag"; then
6026 # Neither direct hardcoding nor static linking is supported with a
6027 # broken collect2.
6028 hardcode_direct=unsupported
6029 fi
6030 ;;
6031
6032 aix4*)
6033 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6034 hardcode_libdir_separator=':'
6035 if test "$GCC" = yes; then
6036 collect2name=`${CC} -print-prog-name=collect2`
6037 if test -f "$collect2name" && \
6038 strings "$collect2name" | grep resolve_lib_name >/dev/null
6039 then
6040 # We have reworked collect2
6041 hardcode_direct=yes
6042 else
6043 # We have old collect2
6044 hardcode_direct=unsupported
6045 # It fails to find uninstalled libraries when the uninstalled
6046 # path is not listed in the libpath. Setting hardcode_minus_L
6047 # to unsupported forces relinking
6048 hardcode_minus_L=yes
6049 hardcode_libdir_flag_spec='-L$libdir'
6050 hardcode_libdir_separator=
6051 fi
6052 shared_flag='-shared'
6053 else
6054 shared_flag='${wl}-bM:SRE'
6055 hardcode_direct=yes
6056 fi
6057 allow_undefined_flag=' ${wl}-berok'
6058 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6059 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6060 case "$host_os" in aix4.[01]|aix4.[01].*)
6061 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6062 always_export_symbols=yes ;;
6063 esac
6064
6065 # We don't want to build shared libraries on unknown CPU types.
6066 case $host_cpu in
6067 powerpc | rs6000) ;;
6068 *) ld_shlibs=no ;;
6069 esac
6070 ;;
6071
6072 amigaos*)
6073 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)'
6074 hardcode_libdir_flag_spec='-L$libdir'
6075 hardcode_minus_L=yes
6076 # see comment about different semantics on the GNU ld section
6077 ld_shlibs=no
6078 ;;
6079
6080 cygwin* | mingw* | pw32*)
6081 # When not using gcc, we currently assume that we are using
6082 # Microsoft Visual C++.
6083 # hardcode_libdir_flag_spec is actually meaningless, as there is
6084 # no search path for DLLs.
6085 hardcode_libdir_flag_spec=' '
6086 allow_undefined_flag=unsupported
6087 # Tell ltmain to make .lib files, not .a files.
6088 libext=lib
6089 # FIXME: Setting linknames here is a bad hack.
6090 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6091 # The linker will automatically build a .lib file if we build a DLL.
6092 old_archive_from_new_cmds='true'
6093 # FIXME: Should let the user specify the lib program.
6094 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6095 fix_srcfile_path='`cygpath -w "$srcfile"`'
6096 ;;
6097
6098 darwin* | rhapsody*)
6099 allow_undefined_flag='-undefined warning'
6100 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6101 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6102 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6103 ## What we need is to hardcode the path to the library, not the search path
6104 #hardcode_direct=yes
6105 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6106 hardcode_shlibpath_var=no
6107 whole_archive_flag_spec='-all_load'
6108 ;;
6109
6110 freebsd1*)
6111 ld_shlibs=no
6112 ;;
6113
6114 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6115 # support. Future versions do this automatically, but an explicit c++rt0.o
6116 # does not break anything, and helps significantly (at the cost of a little
6117 # extra space).
6118 freebsd2.2*)
6119 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6120 hardcode_libdir_flag_spec='-R$libdir'
6121 hardcode_direct=yes
6122 hardcode_shlibpath_var=no
6123 ;;
6124
6125 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6126 freebsd2*)
6127 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6128 hardcode_direct=yes
6129 hardcode_minus_L=yes
6130 hardcode_shlibpath_var=no
6131 ;;
6132
6133 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6134 freebsd*)
6135 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6136 hardcode_libdir_flag_spec='-R$libdir'
6137 hardcode_direct=yes
6138 hardcode_shlibpath_var=no
6139 ;;
6140
6141 hpux9* | hpux10* | hpux11*)
6142 case "$host_os" in
6143 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' ;;
6144 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6145 esac
6146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6147 hardcode_libdir_separator=:
6148 hardcode_direct=yes
6149 hardcode_minus_L=yes # Not in the search PATH, but as the default
6150 # location of the library.
6151 export_dynamic_flag_spec='${wl}-E'
6152 ;;
6153
6154 irix5* | irix6*)
6155 if test "$GCC" = yes; then
6156 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'
6157 else
6158 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'
6159 fi
6160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6161 hardcode_libdir_separator=:
6162 link_all_deplibs=yes
6163 ;;
6164
6165 netbsd*)
6166 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6167 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6168 else
6169 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6170 fi
6171 hardcode_libdir_flag_spec='-R$libdir'
6172 hardcode_direct=yes
6173 hardcode_shlibpath_var=no
6174 ;;
6175
6176 newsos6)
6177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6178 hardcode_direct=yes
6179 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6180 hardcode_libdir_separator=:
6181 hardcode_shlibpath_var=no
6182 ;;
6183
6184 openbsd*)
6185 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6186 hardcode_libdir_flag_spec='-R$libdir'
6187 hardcode_direct=yes
6188 hardcode_shlibpath_var=no
6189 ;;
6190
6191 os2*)
6192 hardcode_libdir_flag_spec='-L$libdir'
6193 hardcode_minus_L=yes
6194 allow_undefined_flag=unsupported
6195 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'
6196 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6197 ;;
6198
6199 osf3*)
6200 if test "$GCC" = yes; then
6201 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6202 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'
6203 else
6204 allow_undefined_flag=' -expect_unresolved \*'
6205 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'
6206 fi
6207 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6208 hardcode_libdir_separator=:
6209 ;;
6210
6211 osf4* | osf5*) # as osf3* with the addition of -msym flag
6212 if test "$GCC" = yes; then
6213 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6214 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'
6215 else
6216 allow_undefined_flag=' -expect_unresolved \*'
6217 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'
6218 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6219 $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'
6220 fi
6221#Both c and cxx compiler support -rpath directly
6222 hardcode_libdir_flag_spec='-rpath $libdir'
6223 hardcode_libdir_separator=:
6224 ;;
6225
6226 sco3.2v5*)
6227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6228 hardcode_shlibpath_var=no
6229 runpath_var=LD_RUN_PATH
6230 hardcode_runpath_var=yes
6231 ;;
6232
6233 solaris*)
6234 no_undefined_flag=' -z text'
6235 # $CC -shared without GNU ld will not create a library from C++
6236 # object files and a static libstdc++, better avoid it by now
6237 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6238 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6239 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6240 hardcode_libdir_flag_spec='-R$libdir'
6241 hardcode_shlibpath_var=no
6242 case "$host_os" in
6243 solaris2.[0-5] | solaris2.[0-5].*) ;;
6244 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6245 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6246 esac
6247 link_all_deplibs=yes
6248 ;;
6249
6250 sunos4*)
6251 if test "x$host_vendor" = xsequent; then
6252 # Use $CC to link under sequent, because it throws in some extra .o
6253 # files that make .init and .fini sections work.
6254 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6255 else
6256 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6257 fi
6258 hardcode_libdir_flag_spec='-L$libdir'
6259 hardcode_direct=yes
6260 hardcode_minus_L=yes
6261 hardcode_shlibpath_var=no
6262 ;;
6263
6264 sysv4)
6265 if test "x$host_vendor" = xsno; then
6266 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6267 hardcode_direct=yes # is this really true???
6268 else
6269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6271 fi
6272 runpath_var='LD_RUN_PATH'
6273 hardcode_shlibpath_var=no
6274 ;;
6275
6276 sysv4.3*)
6277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6278 hardcode_shlibpath_var=no
6279 export_dynamic_flag_spec='-Bexport'
6280 ;;
6281
6282 sysv5*)
6283 no_undefined_flag=' -z text'
6284 # $CC -shared without GNU ld will not create a library from C++
6285 # object files and a static libstdc++, better avoid it by now
6286 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6287 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6288 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6289 hardcode_libdir_flag_spec=
6290 hardcode_shlibpath_var=no
6291 runpath_var='LD_RUN_PATH'
6292 ;;
6293
6294 uts4*)
6295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6296 hardcode_libdir_flag_spec='-L$libdir'
6297 hardcode_shlibpath_var=no
6298 ;;
6299
6300 dgux*)
6301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6302 hardcode_libdir_flag_spec='-L$libdir'
6303 hardcode_shlibpath_var=no
6304 ;;
6305
6306 sysv4*MP*)
6307 if test -d /usr/nec; then
6308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6309 hardcode_shlibpath_var=no
6310 runpath_var=LD_RUN_PATH
6311 hardcode_runpath_var=yes
6312 ld_shlibs=yes
6313 fi
6314 ;;
6315
6316 sysv4.2uw2*)
6317 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6318 hardcode_direct=yes
6319 hardcode_minus_L=no
6320 hardcode_shlibpath_var=no
6321 hardcode_runpath_var=yes
6322 runpath_var=LD_RUN_PATH
6323 ;;
6324
6325 unixware7*)
6326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6327 runpath_var='LD_RUN_PATH'
6328 hardcode_shlibpath_var=no
6329 ;;
6330
6331 *)
6332 ld_shlibs=no
6333 ;;
6334 esac
6335fi
6336echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6337echo "${ECHO_T}$ld_shlibs" >&6
6338test "$ld_shlibs" = no && can_build_shared=no
6339##
6340## END FIXME
6341
6342## FIXME: this should be a separate macro
6343##
6344# Check hardcoding attributes.
6345echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6346echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6347hardcode_action=
6348if test -n "$hardcode_libdir_flag_spec" || \
6349 test -n "$runpath_var"; then
6350
6351 # We can hardcode non-existant directories.
6352 if test "$hardcode_direct" != no &&
6353 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6354 # have to relink, otherwise we might link with an installed library
6355 # when we should be linking with a yet-to-be-installed one
6356 ## test "$hardcode_shlibpath_var" != no &&
6357 test "$hardcode_minus_L" != no; then
6358 # Linking always hardcodes the temporary library directory.
6359 hardcode_action=relink
6360 else
6361 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6362 hardcode_action=immediate
6363 fi
6364else
6365 # We cannot hardcode anything, or else we can only hardcode existing
6366 # directories.
6367 hardcode_action=unsupported
6368fi
6369echo "$as_me:$LINENO: result: $hardcode_action" >&5
6370echo "${ECHO_T}$hardcode_action" >&6
6371##
6372## END FIXME
6373
6374## FIXME: this should be a separate macro
6375##
6376striplib=
6377old_striplib=
6378echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6379echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6380if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6381 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6382 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6383 echo "$as_me:$LINENO: result: yes" >&5
6384echo "${ECHO_T}yes" >&6
6385else
6386 echo "$as_me:$LINENO: result: no" >&5
6387echo "${ECHO_T}no" >&6
6388fi
6389##
6390## END FIXME
6391
6392reload_cmds='$LD$reload_flag -o $output$reload_objs'
6393test -z "$deplibs_check_method" && deplibs_check_method=unknown
6394
6395## FIXME: this should be a separate macro
6396##
6397# PORTME Fill in your ld.so characteristics
6398echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6399echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6400library_names_spec=
6401libname_spec='lib$name'
6402soname_spec=
6403postinstall_cmds=
6404postuninstall_cmds=
6405finish_cmds=
6406finish_eval=
6407shlibpath_var=
6408shlibpath_overrides_runpath=unknown
6409version_type=none
6410dynamic_linker="$host_os ld.so"
6411sys_lib_dlsearch_path_spec="/lib /usr/lib"
6412sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6413
6414case "$host_os" in
6415aix3*)
6416 version_type=linux
6417 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6418 shlibpath_var=LIBPATH
6419
6420 # AIX has no versioning support, so we append a major version to the name.
6421 soname_spec='${libname}${release}.so$major'
6422 ;;
6423
6424aix4*)
6425 version_type=linux
6426 # AIX has no versioning support, so currently we can not hardcode correct
6427 # soname into executable. Probably we can add versioning support to
6428 # collect2, so additional links can be useful in future.
6429 # We preserve .a as extension for shared libraries though AIX4.2
6430 # and later linker supports .so
6431 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6432 shlibpath_var=LIBPATH
6433 ;;
6434
6435amigaos*)
6436 library_names_spec='$libname.ixlibrary $libname.a'
6437 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6438 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'
6439 ;;
6440
6441beos*)
6442 library_names_spec='${libname}.so'
6443 dynamic_linker="$host_os ld.so"
6444 shlibpath_var=LIBRARY_PATH
6445 ;;
6446
6447bsdi4*)
6448 version_type=linux
6449 need_version=no
6450 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6451 soname_spec='${libname}${release}.so$major'
6452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6453 shlibpath_var=LD_LIBRARY_PATH
6454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6456 export_dynamic_flag_spec=-rdynamic
6457 # the default ld.so.conf also contains /usr/contrib/lib and
6458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6459 # libtool to hard-code these into programs
6460 ;;
6461
6462cygwin* | mingw* | pw32*)
6463 version_type=windows
6464 need_version=no
6465 need_lib_prefix=no
6466 if test "$GCC" = yes; then
6467 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6468 else
6469 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6470 fi
6471 dynamic_linker='Win32 ld.exe'
6472 # FIXME: first we should search . and the directory the executable is in
6473 shlibpath_var=PATH
6474 ;;
6475
6476darwin* | rhapsody*)
6477 need_lib_prefix=no
6478 need_version=no
6479 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6480 shlibpath_overrides_runpath=yes
6481 shlibpath_var=DYLD_LIBRARY_PATH
6482 postinstall_cmds='chmod +x $lib'
6483 ;;
6484
6485freebsd1*)
6486 dynamic_linker=no
6487 ;;
6488
6489freebsd*)
6490 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6491 version_type=freebsd-$objformat
6492 case "$version_type" in
6493 freebsd-elf*)
6494 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6495 need_version=no
6496 need_lib_prefix=no
6497 ;;
6498 freebsd-*)
6499 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6500 need_version=yes
6501 ;;
6502 esac
6503 shlibpath_var=LD_LIBRARY_PATH
6504 case "$host_os" in
6505 freebsd2*)
6506 shlibpath_overrides_runpath=yes
6507 ;;
6508 *)
6509 shlibpath_overrides_runpath=no
6510 hardcode_into_libs=yes
6511 ;;
6512 esac
6513 ;;
6514
6515gnu*)
6516 version_type=linux
6517 need_lib_prefix=no
6518 need_version=no
6519 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6520 soname_spec='${libname}${release}.so$major'
6521 shlibpath_var=LD_LIBRARY_PATH
6522 hardcode_into_libs=yes
6523 ;;
6524
6525hpux9* | hpux10* | hpux11*)
6526 # Give a soname corresponding to the major version so that dld.sl refuses to
6527 # link against other versions.
6528 dynamic_linker="$host_os dld.sl"
6529 version_type=sunos
6530 need_lib_prefix=no
6531 need_version=no
6532 shlibpath_var=SHLIB_PATH
6533 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6534 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6535 soname_spec='${libname}${release}.sl$major'
6536 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6537 postinstall_cmds='chmod 555 $lib'
6538 ;;
6539
6540irix5* | irix6*)
6541 version_type=irix
6542 need_lib_prefix=no
6543 need_version=no
6544 soname_spec='${libname}${release}.so$major'
6545 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6546 case "$host_os" in
6547 irix5*)
6548 libsuff= shlibsuff=
6549 ;;
6550 *)
6551 case "$LD" in # libtool.m4 will add one of these switches to LD
6552 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6553 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6554 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6555 *) libsuff= shlibsuff= libmagic=never-match;;
6556 esac
6557 ;;
6558 esac
6559 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6560 shlibpath_overrides_runpath=no
6561 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6562 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6563 ;;
6564
6565# No shared lib support for Linux oldld, aout, or coff.
6566linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6567 dynamic_linker=no
6568 ;;
6569
6570# This must be Linux ELF.
6571linux-gnu*)
6572 version_type=linux
6573 need_lib_prefix=no
6574 need_version=no
6575 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6576 soname_spec='${libname}${release}.so$major'
6577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6578 shlibpath_var=LD_LIBRARY_PATH
6579 shlibpath_overrides_runpath=no
6580 # This implies no fast_install, which is unacceptable.
6581 # Some rework will be needed to allow for fast_install
6582 # before this can be enabled.
6583 hardcode_into_libs=yes
6584
6585 # We used to test for /lib/ld.so.1 and disable shared libraries on
6586 # powerpc, because MkLinux only supported shared libraries with the
6587 # GNU dynamic linker. Since this was broken with cross compilers,
6588 # most powerpc-linux boxes support dynamic linking these days and
6589 # people can always --disable-shared, the test was removed, and we
6590 # assume the GNU/Linux dynamic linker is in use.
6591 dynamic_linker='GNU/Linux ld.so'
6592 ;;
6593
6594netbsd*)
6595 version_type=sunos
6596 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6597 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6599 dynamic_linker='NetBSD (a.out) ld.so'
6600 else
6601 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6602 soname_spec='${libname}${release}.so$major'
6603 dynamic_linker='NetBSD ld.elf_so'
6604 fi
6605 shlibpath_var=LD_LIBRARY_PATH
6606 shlibpath_overrides_runpath=yes
6607 hardcode_into_libs=yes
6608 ;;
6609
6610newsos6)
6611 version_type=linux
6612 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6613 shlibpath_var=LD_LIBRARY_PATH
6614 shlibpath_overrides_runpath=yes
6615 ;;
6616
6617openbsd*)
6618 version_type=sunos
6619 if test "$with_gnu_ld" = yes; then
6620 need_lib_prefix=no
6621 need_version=no
6622 fi
6623 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6625 shlibpath_var=LD_LIBRARY_PATH
6626 ;;
6627
6628os2*)
6629 libname_spec='$name'
6630 need_lib_prefix=no
6631 library_names_spec='$libname.dll $libname.a'
6632 dynamic_linker='OS/2 ld.exe'
6633 shlibpath_var=LIBPATH
6634 ;;
6635
6636osf3* | osf4* | osf5*)
6637 version_type=osf
6638 need_version=no
6639 soname_spec='${libname}${release}.so'
6640 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6641 shlibpath_var=LD_LIBRARY_PATH
6642 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6643 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6644 ;;
6645
6646sco3.2v5*)
6647 version_type=osf
6648 soname_spec='${libname}${release}.so$major'
6649 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6650 shlibpath_var=LD_LIBRARY_PATH
6651 ;;
6652
6653solaris*)
6654 version_type=linux
6655 need_lib_prefix=no
6656 need_version=no
6657 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6658 soname_spec='${libname}${release}.so$major'
6659 shlibpath_var=LD_LIBRARY_PATH
6660 shlibpath_overrides_runpath=yes
6661 hardcode_into_libs=yes
6662 # ldd complains unless libraries are executable
6663 postinstall_cmds='chmod +x $lib'
6664 ;;
6665
6666sunos4*)
6667 version_type=sunos
6668 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6669 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6670 shlibpath_var=LD_LIBRARY_PATH
6671 shlibpath_overrides_runpath=yes
6672 if test "$with_gnu_ld" = yes; then
6673 need_lib_prefix=no
6674 fi
6675 need_version=yes
6676 ;;
6677
6678sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6679 version_type=linux
6680 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6681 soname_spec='${libname}${release}.so$major'
6682 shlibpath_var=LD_LIBRARY_PATH
6683 case "$host_vendor" in
6684 sni)
6685 shlibpath_overrides_runpath=no
6686 ;;
6687 motorola)
6688 need_lib_prefix=no
6689 need_version=no
6690 shlibpath_overrides_runpath=no
6691 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6692 ;;
6693 esac
6694 ;;
6695
6696uts4*)
6697 version_type=linux
6698 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6699 soname_spec='${libname}${release}.so$major'
6700 shlibpath_var=LD_LIBRARY_PATH
6701 ;;
6702
6703dgux*)
6704 version_type=linux
6705 need_lib_prefix=no
6706 need_version=no
6707 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6708 soname_spec='${libname}${release}.so$major'
6709 shlibpath_var=LD_LIBRARY_PATH
6710 ;;
6711
6712sysv4*MP*)
6713 if test -d /usr/nec ;then
6714 version_type=linux
6715 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6716 soname_spec='$libname.so.$major'
6717 shlibpath_var=LD_LIBRARY_PATH
6718 fi
6719 ;;
6720
6721*)
6722 dynamic_linker=no
6723 ;;
6724esac
6725echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6726echo "${ECHO_T}$dynamic_linker" >&6
6727test "$dynamic_linker" = no && can_build_shared=no
6728##
6729## END FIXME
6730
6731## FIXME: this should be a separate macro
6732##
6733# Report the final consequences.
6734echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6735echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6736echo "$as_me:$LINENO: result: $can_build_shared" >&5
6737echo "${ECHO_T}$can_build_shared" >&6
6738##
6739## END FIXME
6740
6741if test "$hardcode_action" = relink; then
6742 # Fast installation is not supported
6743 enable_fast_install=no
6744elif test "$shlibpath_overrides_runpath" = yes ||
6745 test "$enable_shared" = no; then
6746 # Fast installation is not necessary
6747 enable_fast_install=needless
6748fi
6749
6750variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6751if test "$GCC" = yes; then
6752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6753fi
6754
6755if test "x$enable_dlopen" != xyes; then
6756 enable_dlopen=unknown
6757 enable_dlopen_self=unknown
6758 enable_dlopen_self_static=unknown
6759else
6760 lt_cv_dlopen=no
6761 lt_cv_dlopen_libs=
6762
6763 case "$host_os" in
6764 beos*)
6765 lt_cv_dlopen="load_add_on"
6766 lt_cv_dlopen_libs=
6767 lt_cv_dlopen_self=yes
6768 ;;
6769
6770 cygwin* | mingw* | pw32*)
6771 lt_cv_dlopen="LoadLibrary"
6772 lt_cv_dlopen_libs=
6773 ;;
6774
6775 *)
6776 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6777echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6778if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781 ac_check_lib_save_LIBS=$LIBS
6782LIBS="-ldl $LIBS"
6783cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
6789
6790/* Override any gcc2 internal prototype to avoid an error. */
6791#ifdef __cplusplus
6792extern "C"
6793#endif
6794/* We use char because int might match the return type of a gcc2
6795 builtin and then its argument prototype would still apply. */
6796char dlopen ();
6797int
6798main ()
6799{
6800dlopen ();
6801 ;
6802 return 0;
6803}
6804_ACEOF
6805rm -f conftest.$ac_objext conftest$ac_exeext
6806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6807 (eval $ac_link) 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } &&
6814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 (eval $ac_try) 2>&5
6817 ac_status=$?
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try='test -s conftest$ac_exeext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 (eval $ac_try) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 ac_cv_lib_dl_dlopen=yes
6827else
6828 echo "$as_me: failed program was:" >&5
6829sed 's/^/| /' conftest.$ac_ext >&5
6830
6831ac_cv_lib_dl_dlopen=no
6832fi
6833rm -f conftest.err conftest.$ac_objext \
6834 conftest$ac_exeext conftest.$ac_ext
6835LIBS=$ac_check_lib_save_LIBS
6836fi
6837echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6838echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6839if test $ac_cv_lib_dl_dlopen = yes; then
6840 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6841else
6842 echo "$as_me:$LINENO: checking for dlopen" >&5
6843echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6844if test "${ac_cv_func_dlopen+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846else
6847 cat >conftest.$ac_ext <<_ACEOF
6848/* confdefs.h. */
6849_ACEOF
6850cat confdefs.h >>conftest.$ac_ext
6851cat >>conftest.$ac_ext <<_ACEOF
6852/* end confdefs.h. */
6853/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 3626/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
6854 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6855#define dlopen innocuous_dlopen 3628#define setlocale innocuous_setlocale
6856 3629
6857/* System header to define __stub macros and hopefully few prototypes, 3630/* System header to define __stub macros and hopefully few prototypes,
6858 which can conflict with char dlopen (); below. 3631 which can conflict with char setlocale (); below.
6859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6860 <limits.h> exists even on freestanding compilers. */ 3633 <limits.h> exists even on freestanding compilers. */
6861 3634
6862#ifdef __STDC__ 3635#ifdef __STDC__
6863# include <limits.h> 3636# include <limits.h>
6864#else 3637#else
6865# include <assert.h> 3638# include <assert.h>
6866#endif 3639#endif
6867 3640
6868#undef dlopen 3641#undef setlocale
6869 3642
6870/* Override any gcc2 internal prototype to avoid an error. */ 3643/* Override any gcc2 internal prototype to avoid an error. */
6871#ifdef __cplusplus 3644#ifdef __cplusplus
6872extern "C" 3645extern "C"
6873{ 3646{
6874#endif 3647#endif
6875/* We use char because int might match the return type of a gcc2 3648/* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */ 3649 builtin and then its argument prototype would still apply. */
6877char dlopen (); 3650char setlocale ();
6878/* The GNU C library defines this for functions which it implements 3651/* The GNU C library defines this for functions which it implements
6879 to always fail with ENOSYS. Some functions are actually named 3652 to always fail with ENOSYS. Some functions are actually named
6880 something starting with __ and the normal name is an alias. */ 3653 something starting with __ and the normal name is an alias. */
6881#if defined (__stub_dlopen) || defined (__stub___dlopen) 3654#if defined (__stub_setlocale) || defined (__stub___setlocale)
6882choke me 3655choke me
6883#else 3656#else
6884char (*f) () = dlopen; 3657char (*f) () = setlocale;
6885#endif 3658#endif
6886#ifdef __cplusplus 3659#ifdef __cplusplus
6887} 3660}
6888#endif 3661#endif
6889 3662
6890int 3663int
6891main () 3664main ()
6892{ 3665{
6893return f != dlopen; 3666return f != setlocale;
6894 ; 3667 ;
6895 return 0; 3668 return 0;
6896} 3669}
6897_ACEOF 3670_ACEOF
6898rm -f conftest.$ac_objext conftest$ac_exeext 3671rm -f conftest.$ac_objext conftest$ac_exeext
6914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915 (eval $ac_try) 2>&5 3688 (eval $ac_try) 2>&5
6916 ac_status=$? 3689 ac_status=$?
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then 3691 (exit $ac_status); }; }; then
6919 ac_cv_func_dlopen=yes 3692 ac_cv_func_setlocale=yes
6920else 3693else
6921 echo "$as_me: failed program was:" >&5 3694 echo "$as_me: failed program was:" >&5
6922sed 's/^/| /' conftest.$ac_ext >&5 3695sed 's/^/| /' conftest.$ac_ext >&5
6923 3696
6924ac_cv_func_dlopen=no 3697ac_cv_func_setlocale=no
6925fi 3698fi
6926rm -f conftest.err conftest.$ac_objext \ 3699rm -f conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext 3700 conftest$ac_exeext conftest.$ac_ext
6928fi 3701fi
6929echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 3702echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
6930echo "${ECHO_T}$ac_cv_func_dlopen" >&6 3703echo "${ECHO_T}$ac_cv_func_setlocale" >&6
6931if test $ac_cv_func_dlopen = yes; then 3704if test $ac_cv_func_setlocale = yes; then
6932 lt_cv_dlopen="dlopen" 3705 :
6933else 3706else
6934 echo "$as_me:$LINENO: checking for shl_load" >&5 3707 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
6935echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 3708echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
6936if test "${ac_cv_func_shl_load+set}" = set; then 3709if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6 3710 echo $ECHO_N "(cached) $ECHO_C" >&6
6938else 3711else
3712 ac_check_lib_save_LIBS=$LIBS
3713LIBS="-lxpg4 $LIBS"
6939 cat >conftest.$ac_ext <<_ACEOF 3714cat >conftest.$ac_ext <<_ACEOF
6940/* confdefs.h. */ 3715/* confdefs.h. */
6941_ACEOF 3716_ACEOF
6942cat confdefs.h >>conftest.$ac_ext 3717cat confdefs.h >>conftest.$ac_ext
6943cat >>conftest.$ac_ext <<_ACEOF 3718cat >>conftest.$ac_ext <<_ACEOF
6944/* end confdefs.h. */ 3719/* end confdefs.h. */
3720
3721/* Override any gcc2 internal prototype to avoid an error. */
3722#ifdef __cplusplus
3723extern "C"
3724#endif
3725/* We use char because int might match the return type of a gcc2
3726 builtin and then its argument prototype would still apply. */
3727char setlocale ();
3728int
3729main ()
3730{
3731setlocale ();
3732 ;
3733 return 0;
3734}
3735_ACEOF
3736rm -f conftest.$ac_objext conftest$ac_exeext
3737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738 (eval $ac_link) 2>conftest.er1
3739 ac_status=$?
3740 grep -v '^ *+' conftest.er1 >conftest.err
3741 rm -f conftest.er1
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); } &&
3745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747 (eval $ac_try) 2>&5
3748 ac_status=$?
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; } &&
3751 { ac_try='test -s conftest$ac_exeext'
3752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753 (eval $ac_try) 2>&5
3754 ac_status=$?
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }; }; then
3757 ac_cv_lib_xpg4_setlocale=yes
3758else
3759 echo "$as_me: failed program was:" >&5
3760sed 's/^/| /' conftest.$ac_ext >&5
3761
3762ac_cv_lib_xpg4_setlocale=no
3763fi
3764rm -f conftest.err conftest.$ac_objext \
3765 conftest$ac_exeext conftest.$ac_ext
3766LIBS=$ac_check_lib_save_LIBS
3767fi
3768echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3769echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3770if test $ac_cv_lib_xpg4_setlocale = yes; then
3771 LIBS="$LIBS -lxpg4"
3772fi
3773
3774fi
3775
3776
3777echo "$as_me:$LINENO: checking for gethostbyname" >&5
3778echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3779if test "${ac_cv_func_gethostbyname+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781else
3782 cat >conftest.$ac_ext <<_ACEOF
3783/* confdefs.h. */
3784_ACEOF
3785cat confdefs.h >>conftest.$ac_ext
3786cat >>conftest.$ac_ext <<_ACEOF
3787/* end confdefs.h. */
6945/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 3788/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6946 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6947#define shl_load innocuous_shl_load 3790#define gethostbyname innocuous_gethostbyname
6948 3791
6949/* System header to define __stub macros and hopefully few prototypes, 3792/* System header to define __stub macros and hopefully few prototypes,
6950 which can conflict with char shl_load (); below. 3793 which can conflict with char gethostbyname (); below.
6951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6952 <limits.h> exists even on freestanding compilers. */ 3795 <limits.h> exists even on freestanding compilers. */
6953 3796
6954#ifdef __STDC__ 3797#ifdef __STDC__
6955# include <limits.h> 3798# include <limits.h>
6956#else 3799#else
6957# include <assert.h> 3800# include <assert.h>
6958#endif 3801#endif
6959 3802
6960#undef shl_load 3803#undef gethostbyname
6961 3804
6962/* Override any gcc2 internal prototype to avoid an error. */ 3805/* Override any gcc2 internal prototype to avoid an error. */
6963#ifdef __cplusplus 3806#ifdef __cplusplus
6964extern "C" 3807extern "C"
6965{ 3808{
6966#endif 3809#endif
6967/* We use char because int might match the return type of a gcc2 3810/* We use char because int might match the return type of a gcc2
6968 builtin and then its argument prototype would still apply. */ 3811 builtin and then its argument prototype would still apply. */
6969char shl_load (); 3812char gethostbyname ();
6970/* The GNU C library defines this for functions which it implements 3813/* The GNU C library defines this for functions which it implements
6971 to always fail with ENOSYS. Some functions are actually named 3814 to always fail with ENOSYS. Some functions are actually named
6972 something starting with __ and the normal name is an alias. */ 3815 something starting with __ and the normal name is an alias. */
6973#if defined (__stub_shl_load) || defined (__stub___shl_load) 3816#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6974choke me 3817choke me
6975#else 3818#else
6976char (*f) () = shl_load; 3819char (*f) () = gethostbyname;
6977#endif 3820#endif
6978#ifdef __cplusplus 3821#ifdef __cplusplus
6979} 3822}
6980#endif 3823#endif
6981 3824
6982int 3825int
6983main () 3826main ()
6984{ 3827{
6985return f != shl_load; 3828return f != gethostbyname;
6986 ; 3829 ;
6987 return 0; 3830 return 0;
6988} 3831}
6989_ACEOF 3832_ACEOF
6990rm -f conftest.$ac_objext conftest$ac_exeext 3833rm -f conftest.$ac_objext conftest$ac_exeext
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5 3850 (eval $ac_try) 2>&5
7008 ac_status=$? 3851 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then 3853 (exit $ac_status); }; }; then
7011 ac_cv_func_shl_load=yes 3854 ac_cv_func_gethostbyname=yes
7012else 3855else
7013 echo "$as_me: failed program was:" >&5 3856 echo "$as_me: failed program was:" >&5
7014sed 's/^/| /' conftest.$ac_ext >&5 3857sed 's/^/| /' conftest.$ac_ext >&5
7015 3858
7016ac_cv_func_shl_load=no 3859ac_cv_func_gethostbyname=no
7017fi 3860fi
7018rm -f conftest.err conftest.$ac_objext \ 3861rm -f conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext 3862 conftest$ac_exeext conftest.$ac_ext
7020fi 3863fi
7021echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 3864echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7022echo "${ECHO_T}$ac_cv_func_shl_load" >&6 3865echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7023if test $ac_cv_func_shl_load = yes; then 3866if test $ac_cv_func_gethostbyname = yes; then
7024 lt_cv_dlopen="shl_load" 3867 :
7025else 3868else
7026 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 3869 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7027echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 3870echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7028if test "${ac_cv_lib_svld_dlopen+set}" = set; then 3871if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6 3872 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else 3873else
7031 ac_check_lib_save_LIBS=$LIBS 3874 ac_check_lib_save_LIBS=$LIBS
7032LIBS="-lsvld $LIBS" 3875LIBS="-lnsl $LIBS"
7033cat >conftest.$ac_ext <<_ACEOF 3876cat >conftest.$ac_ext <<_ACEOF
7034/* confdefs.h. */ 3877/* confdefs.h. */
7035_ACEOF 3878_ACEOF
7036cat confdefs.h >>conftest.$ac_ext 3879cat confdefs.h >>conftest.$ac_ext
7037cat >>conftest.$ac_ext <<_ACEOF 3880cat >>conftest.$ac_ext <<_ACEOF
7041#ifdef __cplusplus 3884#ifdef __cplusplus
7042extern "C" 3885extern "C"
7043#endif 3886#endif
7044/* We use char because int might match the return type of a gcc2 3887/* We use char because int might match the return type of a gcc2
7045 builtin and then its argument prototype would still apply. */ 3888 builtin and then its argument prototype would still apply. */
7046char dlopen (); 3889char gethostbyname ();
7047int 3890int
7048main () 3891main ()
7049{ 3892{
7050dlopen (); 3893gethostbyname ();
7051 ; 3894 ;
7052 return 0; 3895 return 0;
7053} 3896}
7054_ACEOF 3897_ACEOF
7055rm -f conftest.$ac_objext conftest$ac_exeext 3898rm -f conftest.$ac_objext conftest$ac_exeext
7071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7072 (eval $ac_try) 2>&5 3915 (eval $ac_try) 2>&5
7073 ac_status=$? 3916 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); }; }; then 3918 (exit $ac_status); }; }; then
7076 ac_cv_lib_svld_dlopen=yes 3919 ac_cv_lib_nsl_gethostbyname=yes
7077else 3920else
7078 echo "$as_me: failed program was:" >&5 3921 echo "$as_me: failed program was:" >&5
7079sed 's/^/| /' conftest.$ac_ext >&5 3922sed 's/^/| /' conftest.$ac_ext >&5
7080 3923
7081ac_cv_lib_svld_dlopen=no 3924ac_cv_lib_nsl_gethostbyname=no
7082fi 3925fi
7083rm -f conftest.err conftest.$ac_objext \ 3926rm -f conftest.err conftest.$ac_objext \
7084 conftest$ac_exeext conftest.$ac_ext 3927 conftest$ac_exeext conftest.$ac_ext
7085LIBS=$ac_check_lib_save_LIBS 3928LIBS=$ac_check_lib_save_LIBS
7086fi 3929fi
7087echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 3930echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7088echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 3931echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7089if test $ac_cv_lib_svld_dlopen = yes; then 3932if test $ac_cv_lib_nsl_gethostbyname = yes; then
7090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 3933 LIBS="$LIBS -lnsl"
7091else 3934fi
3935
3936fi
3937
7092 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 3938echo "$as_me:$LINENO: checking for socket" >&5
7093echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 3939echo $ECHO_N "checking for socket... $ECHO_C" >&6
7094if test "${ac_cv_lib_dld_shl_load+set}" = set; then 3940if test "${ac_cv_func_socket+set}" = set; then
7095 echo $ECHO_N "(cached) $ECHO_C" >&6 3941 echo $ECHO_N "(cached) $ECHO_C" >&6
7096else 3942else
3943 cat >conftest.$ac_ext <<_ACEOF
3944/* confdefs.h. */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
3948/* end confdefs.h. */
3949/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3951#define socket innocuous_socket
3952
3953/* System header to define __stub macros and hopefully few prototypes,
3954 which can conflict with char socket (); below.
3955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956 <limits.h> exists even on freestanding compilers. */
3957
3958#ifdef __STDC__
3959# include <limits.h>
3960#else
3961# include <assert.h>
3962#endif
3963
3964#undef socket
3965
3966/* Override any gcc2 internal prototype to avoid an error. */
3967#ifdef __cplusplus
3968extern "C"
3969{
3970#endif
3971/* We use char because int might match the return type of a gcc2
3972 builtin and then its argument prototype would still apply. */
3973char socket ();
3974/* The GNU C library defines this for functions which it implements
3975 to always fail with ENOSYS. Some functions are actually named
3976 something starting with __ and the normal name is an alias. */
3977#if defined (__stub_socket) || defined (__stub___socket)
3978choke me
3979#else
3980char (*f) () = socket;
3981#endif
3982#ifdef __cplusplus
3983}
3984#endif
3985
3986int
3987main ()
3988{
3989return f != socket;
3990 ;
3991 return 0;
3992}
3993_ACEOF
3994rm -f conftest.$ac_objext conftest$ac_exeext
3995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3996 (eval $ac_link) 2>conftest.er1
3997 ac_status=$?
3998 grep -v '^ *+' conftest.er1 >conftest.err
3999 rm -f conftest.er1
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } &&
4003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005 (eval $ac_try) 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }; } &&
4009 { ac_try='test -s conftest$ac_exeext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 ac_cv_func_socket=yes
4016else
4017 echo "$as_me: failed program was:" >&5
4018sed 's/^/| /' conftest.$ac_ext >&5
4019
4020ac_cv_func_socket=no
4021fi
4022rm -f conftest.err conftest.$ac_objext \
4023 conftest$ac_exeext conftest.$ac_ext
4024fi
4025echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4026echo "${ECHO_T}$ac_cv_func_socket" >&6
4027if test $ac_cv_func_socket = yes; then
4028 :
4029else
4030 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4031echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4032if test "${ac_cv_lib_socket_socket+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
7097 ac_check_lib_save_LIBS=$LIBS 4035 ac_check_lib_save_LIBS=$LIBS
7098LIBS="-ldld $LIBS" 4036LIBS="-lsocket $LIBS"
7099cat >conftest.$ac_ext <<_ACEOF 4037cat >conftest.$ac_ext <<_ACEOF
7100/* confdefs.h. */ 4038/* confdefs.h. */
7101_ACEOF 4039_ACEOF
7102cat confdefs.h >>conftest.$ac_ext 4040cat confdefs.h >>conftest.$ac_ext
7103cat >>conftest.$ac_ext <<_ACEOF 4041cat >>conftest.$ac_ext <<_ACEOF
7107#ifdef __cplusplus 4045#ifdef __cplusplus
7108extern "C" 4046extern "C"
7109#endif 4047#endif
7110/* We use char because int might match the return type of a gcc2 4048/* We use char because int might match the return type of a gcc2
7111 builtin and then its argument prototype would still apply. */ 4049 builtin and then its argument prototype would still apply. */
7112char shl_load (); 4050char socket ();
7113int 4051int
7114main () 4052main ()
7115{ 4053{
7116shl_load (); 4054socket ();
7117 ; 4055 ;
7118 return 0; 4056 return 0;
7119} 4057}
7120_ACEOF 4058_ACEOF
7121rm -f conftest.$ac_objext conftest$ac_exeext 4059rm -f conftest.$ac_objext conftest$ac_exeext
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7138 (eval $ac_try) 2>&5 4076 (eval $ac_try) 2>&5
7139 ac_status=$? 4077 ac_status=$?
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then 4079 (exit $ac_status); }; }; then
7142 ac_cv_lib_dld_shl_load=yes 4080 ac_cv_lib_socket_socket=yes
7143else 4081else
7144 echo "$as_me: failed program was:" >&5 4082 echo "$as_me: failed program was:" >&5
7145sed 's/^/| /' conftest.$ac_ext >&5 4083sed 's/^/| /' conftest.$ac_ext >&5
7146 4084
7147ac_cv_lib_dld_shl_load=no 4085ac_cv_lib_socket_socket=no
7148fi 4086fi
7149rm -f conftest.err conftest.$ac_objext \ 4087rm -f conftest.err conftest.$ac_objext \
7150 conftest$ac_exeext conftest.$ac_ext 4088 conftest$ac_exeext conftest.$ac_ext
7151LIBS=$ac_check_lib_save_LIBS 4089LIBS=$ac_check_lib_save_LIBS
7152fi 4090fi
7153echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 4091echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7154echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 4092echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7155if test $ac_cv_lib_dld_shl_load = yes; then 4093if test $ac_cv_lib_socket_socket = yes; then
7156 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 4094 LIBS="$LIBS -lsocket"
7157fi 4095fi
7158 4096
7159
7160fi 4097fi
7161 4098
7162 4099
7163fi 4100echo "$as_me:$LINENO: checking for sched_yield" >&5
7164 4101echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
7165
7166fi
7167
7168
7169fi
7170
7171 ;;
7172 esac
7173
7174 if test "x$lt_cv_dlopen" != xno; then
7175 enable_dlopen=yes
7176 else
7177 enable_dlopen=no
7178 fi
7179
7180 case "$lt_cv_dlopen" in
7181 dlopen)
7182 save_CPPFLAGS="$CPP_FLAGS"
7183 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7184
7185 save_LDFLAGS="$LDFLAGS"
7186 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7187
7188 save_LIBS="$LIBS"
7189 LIBS="$lt_cv_dlopen_libs $LIBS"
7190
7191 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7192echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7193if test "${lt_cv_dlopen_self+set}" = set; then 4102if test "${ac_cv_func_sched_yield+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6 4103 echo $ECHO_N "(cached) $ECHO_C" >&6
7195else 4104else
7196 if test "$cross_compiling" = yes; then :
7197 lt_cv_dlopen_self=cross
7198else
7199 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7200 lt_status=$lt_dlunknown
7201 cat > conftest.$ac_ext <<EOF 4105 cat >conftest.$ac_ext <<_ACEOF
7202#line 7202 "configure" 4106/* confdefs.h. */
7203#include "confdefs.h" 4107_ACEOF
4108cat confdefs.h >>conftest.$ac_ext
4109cat >>conftest.$ac_ext <<_ACEOF
4110/* end confdefs.h. */
4111/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
4112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4113#define sched_yield innocuous_sched_yield
7204 4114
7205#if HAVE_DLFCN_H 4115/* System header to define __stub macros and hopefully few prototypes,
7206#include <dlfcn.h> 4116 which can conflict with char sched_yield (); below.
4117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4118 <limits.h> exists even on freestanding compilers. */
4119
4120#ifdef __STDC__
4121# include <limits.h>
4122#else
4123# include <assert.h>
7207#endif 4124#endif
7208 4125
7209#include <stdio.h> 4126#undef sched_yield
7210 4127
7211#ifdef RTLD_GLOBAL 4128/* Override any gcc2 internal prototype to avoid an error. */
7212# define LT_DLGLOBAL RTLD_GLOBAL 4129#ifdef __cplusplus
4130extern "C"
4131{
4132#endif
4133/* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4135char sched_yield ();
4136/* The GNU C library defines this for functions which it implements
4137 to always fail with ENOSYS. Some functions are actually named
4138 something starting with __ and the normal name is an alias. */
4139#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
4140choke me
7213#else 4141#else
7214# ifdef DL_GLOBAL 4142char (*f) () = sched_yield;
7215# define LT_DLGLOBAL DL_GLOBAL
7216# else
7217# define LT_DLGLOBAL 0
7218# endif
7219#endif 4143#endif
7220 4144#ifdef __cplusplus
7221/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 4145}
7222 find out it does not work in some platform. */
7223#ifndef LT_DLLAZY_OR_NOW
7224# ifdef RTLD_LAZY
7225# define LT_DLLAZY_OR_NOW RTLD_LAZY
7226# else
7227# ifdef DL_LAZY
7228# define LT_DLLAZY_OR_NOW DL_LAZY
7229# else
7230# ifdef RTLD_NOW
7231# define LT_DLLAZY_OR_NOW RTLD_NOW
7232# else
7233# ifdef DL_NOW
7234# define LT_DLLAZY_OR_NOW DL_NOW
7235# else
7236# define LT_DLLAZY_OR_NOW 0
7237# endif
7238# endif
7239# endif
7240# endif
7241#endif 4146#endif
7242 4147
7243#ifdef __cplusplus 4148int
7244extern "C" void exit (int);
7245#endif
7246
7247fnord() { int i=42;}
7248main () 4149main ()
7249{ 4150{
7250 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 4151return f != sched_yield;
7251 int status = $lt_dlunknown; 4152 ;
7252 4153 return 0;
7253 if (self)
7254 {
7255 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7256 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7257 /* dlclose (self); */
7258 }
7259
7260 exit (status);
7261} 4154}
7262EOF 4155_ACEOF
4156rm -f conftest.$ac_objext conftest$ac_exeext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4158 (eval $ac_link) 2>conftest.er1
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); } &&
4165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_link) 2>&5 4167 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7268 (./conftest; exit; ) 2>/dev/null
7269 lt_status=$? 4168 ac_status=$?
7270 case x$lt_status in 4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 4170 (exit $ac_status); }; } &&
7272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 4171 { ac_try='test -s conftest$ac_exeext'
7273 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 esac 4173 (eval $ac_try) 2>&5
7275 else : 4174 ac_status=$?
7276 # compilation failed 4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 lt_cv_dlopen_self=no 4176 (exit $ac_status); }; }; then
7278 fi 4177 ac_cv_func_sched_yield=yes
7279fi 4178else
7280rm -fr conftest* 4179 echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
7281 4181
7282 4182ac_cv_func_sched_yield=no
7283fi 4183fi
4184rm -f conftest.err conftest.$ac_objext \
4185 conftest$ac_exeext conftest.$ac_ext
4186fi
7284echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 4187echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
7285echo "${ECHO_T}$lt_cv_dlopen_self" >&6 4188echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
7286 4189if test $ac_cv_func_sched_yield = yes; then
7287 if test "x$lt_cv_dlopen_self" = xyes; then 4190 :
7288 LDFLAGS="$LDFLAGS $link_static_flag" 4191else
7289 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 4192 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
7290echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 4193echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
7291if test "${lt_cv_dlopen_self_static+set}" = set; then 4194if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6 4195 echo $ECHO_N "(cached) $ECHO_C" >&6
7293else 4196else
7294 if test "$cross_compiling" = yes; then : 4197 ac_check_lib_save_LIBS=$LIBS
7295 lt_cv_dlopen_self_static=cross 4198LIBS="-lrt $LIBS"
7296else
7297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7298 lt_status=$lt_dlunknown
7299 cat > conftest.$ac_ext <<EOF 4199cat >conftest.$ac_ext <<_ACEOF
7300#line 7300 "configure" 4200/* confdefs.h. */
7301#include "confdefs.h" 4201_ACEOF
4202cat confdefs.h >>conftest.$ac_ext
4203cat >>conftest.$ac_ext <<_ACEOF
4204/* end confdefs.h. */
7302 4205
7303#if HAVE_DLFCN_H 4206/* Override any gcc2 internal prototype to avoid an error. */
7304#include <dlfcn.h> 4207#ifdef __cplusplus
4208extern "C"
7305#endif 4209#endif
7306 4210/* We use char because int might match the return type of a gcc2
7307#include <stdio.h> 4211 builtin and then its argument prototype would still apply. */
7308 4212char sched_yield ();
7309#ifdef RTLD_GLOBAL 4213int
7310# define LT_DLGLOBAL RTLD_GLOBAL
7311#else
7312# ifdef DL_GLOBAL
7313# define LT_DLGLOBAL DL_GLOBAL
7314# else
7315# define LT_DLGLOBAL 0
7316# endif
7317#endif
7318
7319/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7320 find out it does not work in some platform. */
7321#ifndef LT_DLLAZY_OR_NOW
7322# ifdef RTLD_LAZY
7323# define LT_DLLAZY_OR_NOW RTLD_LAZY
7324# else
7325# ifdef DL_LAZY
7326# define LT_DLLAZY_OR_NOW DL_LAZY
7327# else
7328# ifdef RTLD_NOW
7329# define LT_DLLAZY_OR_NOW RTLD_NOW
7330# else
7331# ifdef DL_NOW
7332# define LT_DLLAZY_OR_NOW DL_NOW
7333# else
7334# define LT_DLLAZY_OR_NOW 0
7335# endif
7336# endif
7337# endif
7338# endif
7339#endif
7340
7341#ifdef __cplusplus
7342extern "C" void exit (int);
7343#endif
7344
7345fnord() { int i=42;}
7346main () 4214main ()
7347{ 4215{
7348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 4216sched_yield ();
7349 int status = $lt_dlunknown; 4217 ;
7350 4218 return 0;
7351 if (self)
7352 {
7353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7355 /* dlclose (self); */
7356 }
7357
7358 exit (status);
7359} 4219}
7360EOF 4220_ACEOF
4221rm -f conftest.$ac_objext conftest$ac_exeext
7361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362 (eval $ac_link) 2>&5 4223 (eval $ac_link) 2>conftest.er1
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7366 (./conftest; exit; ) 2>/dev/null
7367 lt_status=$? 4224 ac_status=$?
7368 case x$lt_status in 4225 grep -v '^ *+' conftest.er1 >conftest.err
7369 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7370 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7371 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7372 esac
7373 else :
7374 # compilation failed
7375 lt_cv_dlopen_self_static=no
7376 fi
7377fi
7378rm -fr conftest* 4226 rm -f conftest.er1
7379 4227 cat conftest.err >&5
7380 4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381fi 4229 (exit $ac_status); } &&
7382echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 4230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7383echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7384 fi
7385
7386 CPPFLAGS="$save_CPPFLAGS"
7387 LDFLAGS="$save_LDFLAGS"
7388 LIBS="$save_LIBS"
7389 ;;
7390 esac
7391
7392 case "$lt_cv_dlopen_self" in
7393 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7394 *) enable_dlopen_self=unknown ;;
7395 esac
7396
7397 case "$lt_cv_dlopen_self_static" in
7398 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7399 *) enable_dlopen_self_static=unknown ;;
7400 esac
7401fi
7402
7403
7404## FIXME: this should be a separate macro
7405##
7406if test "$enable_shared" = yes && test "$GCC" = yes; then
7407 case "$archive_cmds" in
7408 *'~'*)
7409 # FIXME: we may have to deal with multi-command sequences.
7410 ;;
7411 '$CC '*)
7412 # Test whether the compiler implicitly links with -lc since on some
7413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7414 # to ld, don't add -lc before -lgcc.
7415 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7416echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7417 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419else
7420 $rm conftest*
7421 echo 'static int dummy;' > conftest.$ac_ext
7422
7423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7424 (eval $ac_compile) 2>&5 4232 (eval $ac_try) 2>&5
7425 ac_status=$? 4233 ac_status=$?
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest$ac_exeext'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); }; then 4241 (exit $ac_status); }; }; then
7428 soname=conftest 4242 ac_cv_lib_rt_sched_yield=yes
7429 lib=conftest 4243else
7430 libobjs=conftest.$ac_objext 4244 echo "$as_me: failed program was:" >&5
7431 deplibs= 4245sed 's/^/| /' conftest.$ac_ext >&5
7432 wl=$lt_cv_prog_cc_wl 4246
7433 compiler_flags=-v 4247ac_cv_lib_rt_sched_yield=no
7434 linker_flags=-v 4248fi
7435 verstring= 4249rm -f conftest.err conftest.$ac_objext \
7436 output_objdir=. 4250 conftest$ac_exeext conftest.$ac_ext
7437 libname=conftest 4251LIBS=$ac_check_lib_save_LIBS
7438 save_allow_undefined_flag=$allow_undefined_flag 4252fi
7439 allow_undefined_flag= 4253echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
7440 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 4254echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
7441 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 4255if test $ac_cv_lib_rt_sched_yield = yes; then
4256 LIBS="$LIBS -lrt"
4257fi
4258
4259fi
4260
4261
4262echo "$as_me:$LINENO: checking for sched_yield support" >&5
4263echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4264cat >conftest.$ac_ext <<_ACEOF
4265/* confdefs.h. */
4266_ACEOF
4267cat confdefs.h >>conftest.$ac_ext
4268cat >>conftest.$ac_ext <<_ACEOF
4269/* end confdefs.h. */
4270#include <sched.h>
4271int
4272main ()
4273{
4274sched_yield ()
4275 ;
4276 return 0;
4277}
4278_ACEOF
4279rm -f conftest.$ac_objext conftest$ac_exeext
4280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4281 (eval $ac_link) 2>conftest.er1
7442 ac_status=$? 4282 ac_status=$?
4283 grep -v '^ *+' conftest.er1 >conftest.err
4284 rm -f conftest.er1
4285 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } 4287 (exit $ac_status); } &&
7445 then 4288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7446 lt_cv_archive_cmds_need_lc=no 4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447 else 4290 (eval $ac_try) 2>&5
7448 lt_cv_archive_cmds_need_lc=yes 4291 ac_status=$?
7449 fi 4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 allow_undefined_flag=$save_allow_undefined_flag 4293 (exit $ac_status); }; } &&
7451 else 4294 { ac_try='test -s conftest$ac_exeext'
7452 cat conftest.err 1>&5 4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453 fi 4296 (eval $ac_try) 2>&5
7454fi 4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 echo "$as_me:$LINENO: result: yes" >&5
4301echo "${ECHO_T}yes" >&6
7455 4302
7456 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 4303cat >>confdefs.h <<\_ACEOF
7457echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 4304#define HAVE_SCHED_YIELD 1
7458 ;; 4305_ACEOF
7459 esac
7460fi
7461need_lc=${lt_cv_archive_cmds_need_lc-yes}
7462##
7463## END FIXME
7464 4306
7465## FIXME: this should be a separate macro
7466##
7467# The second clause should only fire when bootstrapping the
7468# libtool distribution, otherwise you forgot to ship ltmain.sh
7469# with your package, and you will get complaints that there are
7470# no rules to generate ltmain.sh.
7471if test -f "$ltmain"; then
7472 :
7473else 4307else
7474 # If there is no Makefile yet, we rely on a make rule to execute 4308 echo "$as_me: failed program was:" >&5
7475 # `config.status --recheck' to rerun these tests and create the 4309sed 's/^/| /' conftest.$ac_ext >&5
7476 # libtool script then.
7477 test -f Makefile && make "$ltmain"
7478fi
7479 4310
7480if test -f "$ltmain"; then 4311echo "$as_me:$LINENO: result: no" >&5
7481 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 4312echo "${ECHO_T}no" >&6
7482 $rm -f "${ofile}T"
7483
7484 echo creating $ofile
7485
7486 # Now quote all the things that may contain metacharacters while being
7487 # careful not to overquote the AC_SUBSTed values. We take copies of the
7488 # variables and quote the copies for generation of the libtool script.
7489 for var in echo old_CC old_CFLAGS \
7490 AR AR_FLAGS CC LD LN_S NM SHELL \
7491 reload_flag reload_cmds wl \
7492 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7493 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7494 library_names_spec soname_spec \
7495 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7496 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7497 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7498 old_striplib striplib file_magic_cmd export_symbols_cmds \
7499 deplibs_check_method allow_undefined_flag no_undefined_flag \
7500 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7501 hardcode_libdir_flag_spec hardcode_libdir_separator \
7502 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7503 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7504
7505 case "$var" in
7506 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7507 old_postinstall_cmds | old_postuninstall_cmds | \
7508 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7509 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7510 postinstall_cmds | postuninstall_cmds | \
7511 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7512 # Double-quote double-evaled strings.
7513 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7514 ;;
7515 *)
7516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7517 ;;
7518 esac
7519 done
7520
7521 cat <<__EOF__ > "${ofile}T"
7522#! $SHELL
7523
7524# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7525# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7526# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7527#
7528# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7529# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7530#
7531# This program is free software; you can redistribute it and/or modify
7532# it under the terms of the GNU General Public License as published by
7533# the Free Software Foundation; either version 2 of the License, or
7534# (at your option) any later version.
7535#
7536# This program is distributed in the hope that it will be useful, but
7537# WITHOUT ANY WARRANTY; without even the implied warranty of
7538# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7539# General Public License for more details.
7540#
7541# You should have received a copy of the GNU General Public License
7542# along with this program; if not, write to the Free Software
7543# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7544#
7545# As a special exception to the GNU General Public License, if you
7546# distribute this file as part of a program that contains a
7547# configuration script generated by Autoconf, you may include it under
7548# the same distribution terms that you use for the rest of that program.
7549
7550# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7551Xsed="sed -e s/^X//"
7552
7553# The HP-UX ksh and POSIX shell print the target directory to stdout
7554# if CDPATH is set.
7555if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7556
7557# ### BEGIN LIBTOOL CONFIG
7558
7559# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7560
7561# Shell to use when invoking shell scripts.
7562SHELL=$lt_SHELL
7563
7564# Whether or not to build shared libraries.
7565build_libtool_libs=$enable_shared
7566
7567# Whether or not to add -lc for building shared libraries.
7568build_libtool_need_lc=$need_lc
7569
7570# Whether or not to build static libraries.
7571build_old_libs=$enable_static
7572
7573# Whether or not to optimize for fast installation.
7574fast_install=$enable_fast_install
7575
7576# The host system.
7577host_alias=$host_alias
7578host=$host
7579
7580# An echo program that does not interpret backslashes.
7581echo=$lt_echo
7582
7583# The archiver.
7584AR=$lt_AR
7585AR_FLAGS=$lt_AR_FLAGS
7586
7587# The default C compiler.
7588CC=$lt_CC
7589
7590# Is the compiler the GNU C compiler?
7591with_gcc=$GCC
7592
7593# The linker used to build libraries.
7594LD=$lt_LD
7595
7596# Whether we need hard or soft links.
7597LN_S=$lt_LN_S
7598
7599# A BSD-compatible nm program.
7600NM=$lt_NM
7601
7602# A symbol stripping program
7603STRIP=$STRIP
7604
7605# Used to examine libraries when file_magic_cmd begins "file"
7606MAGIC_CMD=$MAGIC_CMD
7607
7608# Used on cygwin: DLL creation program.
7609DLLTOOL="$DLLTOOL"
7610
7611# Used on cygwin: object dumper.
7612OBJDUMP="$OBJDUMP"
7613
7614# Used on cygwin: assembler.
7615AS="$AS"
7616
7617# The name of the directory that contains temporary libtool files.
7618objdir=$objdir
7619
7620# How to create reloadable object files.
7621reload_flag=$lt_reload_flag
7622reload_cmds=$lt_reload_cmds
7623
7624# How to pass a linker flag through the compiler.
7625wl=$lt_wl
7626
7627# Object file suffix (normally "o").
7628objext="$ac_objext"
7629
7630# Old archive suffix (normally "a").
7631libext="$libext"
7632
7633# Executable file suffix (normally "").
7634exeext="$exeext"
7635
7636# Additional compiler flags for building library objects.
7637pic_flag=$lt_pic_flag
7638pic_mode=$pic_mode
7639
7640# Does compiler simultaneously support -c and -o options?
7641compiler_c_o=$lt_compiler_c_o
7642
7643# Can we write directly to a .lo ?
7644compiler_o_lo=$lt_compiler_o_lo
7645
7646# Must we lock files when doing compilation ?
7647need_locks=$lt_need_locks
7648
7649# Do we need the lib prefix for modules?
7650need_lib_prefix=$need_lib_prefix
7651
7652# Do we need a version for libraries?
7653need_version=$need_version
7654
7655# Whether dlopen is supported.
7656dlopen_support=$enable_dlopen
7657
7658# Whether dlopen of programs is supported.
7659dlopen_self=$enable_dlopen_self
7660
7661# Whether dlopen of statically linked programs is supported.
7662dlopen_self_static=$enable_dlopen_self_static
7663
7664# Compiler flag to prevent dynamic linking.
7665link_static_flag=$lt_link_static_flag
7666
7667# Compiler flag to turn off builtin functions.
7668no_builtin_flag=$lt_no_builtin_flag
7669
7670# Compiler flag to allow reflexive dlopens.
7671export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7672
7673# Compiler flag to generate shared objects directly from archives.
7674whole_archive_flag_spec=$lt_whole_archive_flag_spec
7675
7676# Compiler flag to generate thread-safe objects.
7677thread_safe_flag_spec=$lt_thread_safe_flag_spec
7678
7679# Library versioning type.
7680version_type=$version_type
7681
7682# Format of library name prefix.
7683libname_spec=$lt_libname_spec
7684
7685# List of archive names. First name is the real one, the rest are links.
7686# The last name is the one that the linker finds with -lNAME.
7687library_names_spec=$lt_library_names_spec
7688
7689# The coded name of the library, if different from the real name.
7690soname_spec=$lt_soname_spec
7691
7692# Commands used to build and install an old-style archive.
7693RANLIB=$lt_RANLIB
7694old_archive_cmds=$lt_old_archive_cmds
7695old_postinstall_cmds=$lt_old_postinstall_cmds
7696old_postuninstall_cmds=$lt_old_postuninstall_cmds
7697
7698# Create an old-style archive from a shared archive.
7699old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7700
7701# Create a temporary old-style archive to link instead of a shared archive.
7702old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7703
7704# Commands used to build and install a shared archive.
7705archive_cmds=$lt_archive_cmds
7706archive_expsym_cmds=$lt_archive_expsym_cmds
7707postinstall_cmds=$lt_postinstall_cmds
7708postuninstall_cmds=$lt_postuninstall_cmds
7709
7710# Commands to strip libraries.
7711old_striplib=$lt_old_striplib
7712striplib=$lt_striplib
7713
7714# Method to check whether dependent libraries are shared objects.
7715deplibs_check_method=$lt_deplibs_check_method
7716
7717# Command to use when deplibs_check_method == file_magic.
7718file_magic_cmd=$lt_file_magic_cmd
7719
7720# Flag that allows shared libraries with undefined symbols to be built.
7721allow_undefined_flag=$lt_allow_undefined_flag
7722
7723# Flag that forces no undefined symbols.
7724no_undefined_flag=$lt_no_undefined_flag
7725
7726# Commands used to finish a libtool library installation in a directory.
7727finish_cmds=$lt_finish_cmds
7728
7729# Same as above, but a single script fragment to be evaled but not shown.
7730finish_eval=$lt_finish_eval
7731
7732# Take the output of nm and produce a listing of raw symbols and C names.
7733global_symbol_pipe=$lt_global_symbol_pipe
7734
7735# Transform the output of nm in a proper C declaration
7736global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7737
7738# This is the shared library runtime path variable.
7739runpath_var=$runpath_var
7740
7741# This is the shared library path variable.
7742shlibpath_var=$shlibpath_var
7743
7744# Is shlibpath searched before the hard-coded library search path?
7745shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7746
7747# How to hardcode a shared library path into an executable.
7748hardcode_action=$hardcode_action
7749
7750# Whether we should hardcode library paths into libraries.
7751hardcode_into_libs=$hardcode_into_libs
7752
7753# Flag to hardcode \$libdir into a binary during linking.
7754# This must work even if \$libdir does not exist.
7755hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7756
7757# Whether we need a single -rpath flag with a separated argument.
7758hardcode_libdir_separator=$lt_hardcode_libdir_separator
7759
7760# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7761# resulting binary.
7762hardcode_direct=$hardcode_direct
7763
7764# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7765# resulting binary.
7766hardcode_minus_L=$hardcode_minus_L
7767
7768# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7769# the resulting binary.
7770hardcode_shlibpath_var=$hardcode_shlibpath_var
7771
7772# Variables whose values should be saved in libtool wrapper scripts and
7773# restored at relink time.
7774variables_saved_for_relink="$variables_saved_for_relink"
7775
7776# Whether libtool must link a program against all its dependency libraries.
7777link_all_deplibs=$link_all_deplibs
7778
7779# Compile-time system search path for libraries
7780sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7781
7782# Run-time system search path for libraries
7783sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7784
7785# Fix the shell variable \$srcfile for the compiler.
7786fix_srcfile_path="$fix_srcfile_path"
7787
7788# Set to yes if exported symbols are required.
7789always_export_symbols=$always_export_symbols
7790
7791# The commands to list exported symbols.
7792export_symbols_cmds=$lt_export_symbols_cmds
7793
7794# The commands to extract the exported symbol list from a shared archive.
7795extract_expsyms_cmds=$lt_extract_expsyms_cmds
7796
7797# Symbols that should not be listed in the preloaded symbols.
7798exclude_expsyms=$lt_exclude_expsyms
7799
7800# Symbols that must always be exported.
7801include_expsyms=$lt_include_expsyms
7802
7803# ### END LIBTOOL CONFIG
7804
7805__EOF__
7806
7807 case "$host_os" in
7808 aix3*)
7809 cat <<\EOF >> "${ofile}T"
7810
7811# AIX sometimes has problems with the GCC collect2 program. For some
7812# reason, if we set the COLLECT_NAMES environment variable, the problems
7813# vanish in a puff of smoke.
7814if test "X${COLLECT_NAMES+set}" != Xset; then
7815 COLLECT_NAMES=
7816 export COLLECT_NAMES
7817fi 4313fi
7818EOF 4314rm -f conftest.err conftest.$ac_objext \
7819 ;; 4315 conftest$ac_exeext conftest.$ac_ext
7820 esac
7821
7822 case "$host_os" in
7823 cygwin* | mingw* | pw32* | os2*)
7824 cat <<'EOF' >> "${ofile}T"
7825 # This is a source program that is used to create dlls on Windows
7826 # Don't remove nor modify the starting and closing comments
7827# /* ltdll.c starts here */
7828# #define WIN32_LEAN_AND_MEAN
7829# #include <windows.h>
7830# #undef WIN32_LEAN_AND_MEAN
7831# #include <stdio.h>
7832#
7833# #ifndef __CYGWIN__
7834# # ifdef __CYGWIN32__
7835# # define __CYGWIN__ __CYGWIN32__
7836# # endif
7837# #endif
7838#
7839# #ifdef __cplusplus
7840# extern "C" {
7841# #endif
7842# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7843# #ifdef __cplusplus
7844# }
7845# #endif
7846#
7847# #ifdef __CYGWIN__
7848# #include <cygwin/cygwin_dll.h>
7849# DECLARE_CYGWIN_DLL( DllMain );
7850# #endif
7851# HINSTANCE __hDllInstance_base;
7852#
7853# BOOL APIENTRY
7854# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7855# {
7856# __hDllInstance_base = hInst;
7857# return TRUE;
7858# }
7859# /* ltdll.c ends here */
7860 # This is a source program that is used to create import libraries
7861 # on Windows for dlls which lack them. Don't remove nor modify the
7862 # starting and closing comments
7863# /* impgen.c starts here */
7864# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7865#
7866# This file is part of GNU libtool.
7867#
7868# This program is free software; you can redistribute it and/or modify
7869# it under the terms of the GNU General Public License as published by
7870# the Free Software Foundation; either version 2 of the License, or
7871# (at your option) any later version.
7872#
7873# This program is distributed in the hope that it will be useful,
7874# but WITHOUT ANY WARRANTY; without even the implied warranty of
7875# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7876# GNU General Public License for more details.
7877#
7878# You should have received a copy of the GNU General Public License
7879# along with this program; if not, write to the Free Software
7880# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7881# */
7882#
7883# #include <stdio.h> /* for printf() */
7884# #include <unistd.h> /* for open(), lseek(), read() */
7885# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7886# #include <string.h> /* for strdup() */
7887#
7888# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7889# #ifndef O_BINARY
7890# #define O_BINARY 0
7891# #endif
7892#
7893# static unsigned int
7894# pe_get16 (fd, offset)
7895# int fd;
7896# int offset;
7897# {
7898# unsigned char b[2];
7899# lseek (fd, offset, SEEK_SET);
7900# read (fd, b, 2);
7901# return b[0] + (b[1]<<8);
7902# }
7903#
7904# static unsigned int
7905# pe_get32 (fd, offset)
7906# int fd;
7907# int offset;
7908# {
7909# unsigned char b[4];
7910# lseek (fd, offset, SEEK_SET);
7911# read (fd, b, 4);
7912# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7913# }
7914#
7915# static unsigned int
7916# pe_as32 (ptr)
7917# void *ptr;
7918# {
7919# unsigned char *b = ptr;
7920# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7921# }
7922#
7923# int
7924# main (argc, argv)
7925# int argc;
7926# char *argv[];
7927# {
7928# int dll;
7929# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7930# unsigned long export_rva, export_size, nsections, secptr, expptr;
7931# unsigned long name_rvas, nexp;
7932# unsigned char *expdata, *erva;
7933# char *filename, *dll_name;
7934#
7935# filename = argv[1];
7936#
7937# dll = open(filename, O_RDONLY|O_BINARY);
7938# if (!dll)
7939# return 1;
7940#
7941# dll_name = filename;
7942#
7943# for (i=0; filename[i]; i++)
7944# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7945# dll_name = filename + i +1;
7946#
7947# pe_header_offset = pe_get32 (dll, 0x3c);
7948# opthdr_ofs = pe_header_offset + 4 + 20;
7949# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7950#
7951# if (num_entries < 1) /* no exports */
7952# return 1;
7953#
7954# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7955# export_size = pe_get32 (dll, opthdr_ofs + 100);
7956# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7957# secptr = (pe_header_offset + 4 + 20 +
7958# pe_get16 (dll, pe_header_offset + 4 + 16));
7959#
7960# expptr = 0;
7961# for (i = 0; i < nsections; i++)
7962# {
7963# char sname[8];
7964# unsigned long secptr1 = secptr + 40 * i;
7965# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7966# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7967# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7968# lseek(dll, secptr1, SEEK_SET);
7969# read(dll, sname, 8);
7970# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7971# {
7972# expptr = fptr + (export_rva - vaddr);
7973# if (export_rva + export_size > vaddr + vsize)
7974# export_size = vsize - (export_rva - vaddr);
7975# break;
7976# }
7977# }
7978#
7979# expdata = (unsigned char*)malloc(export_size);
7980# lseek (dll, expptr, SEEK_SET);
7981# read (dll, expdata, export_size);
7982# erva = expdata - export_rva;
7983#
7984# nexp = pe_as32 (expdata+24);
7985# name_rvas = pe_as32 (expdata+32);
7986#
7987# printf ("EXPORTS\n");
7988# for (i = 0; i<nexp; i++)
7989# {
7990# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7991# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7992# }
7993#
7994# return 0;
7995# }
7996# /* impgen.c ends here */
7997
7998EOF
7999 ;;
8000 esac
8001
8002 # We use sed instead of cat because bash on DJGPP gets confused if
8003 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8004 # text mode, it properly converts lines to CR/LF. This bash problem
8005 # is reportedly fixed, but why not run on old versions too?
8006 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8007
8008 mv -f "${ofile}T" "$ofile" || \
8009 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8010 chmod +x "$ofile"
8011fi
8012##
8013## END FIXME
8014
8015
8016
8017
8018
8019# This can be used to rebuild libtool when needed
8020LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8021
8022# Always use our own libtool.
8023LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8024
8025# Prevent multiple expansion
8026 4316
8027 4317
8028MALLOC_TYPE=S 4318MALLOC_TYPE=S
8029support_addstrings=no 4319
8030support_frills=no 4320support_frills=yes
8031support_linespace=no
8032support_inheritpixmap=no 4321support_inheritpixmap=yes
4322support_tinting=yes
4323support_fading=yes
8033support_keepscrolling=no 4324support_keepscrolling=yes
8034support_selectionscrolling=no 4325support_selectionscrolling=yes
8035support_menubar=no
8036support_mousewheel=no 4326support_mousewheel=yes
8037support_mouseslipwheel=no 4327support_mouseslipwheel=yes
8038support_utmp=no 4328support_utmp=yes
8039support_wtmp=no 4329support_wtmp=yes
8040support_lastlog=no 4330support_lastlog=yes
8041support_cursor_blink=no
8042support_text_blink=no 4331support_text_blink=yes
8043support_pointer_blank=no 4332support_pointer_blank=yes
8044support_scroll_rxvt=no 4333support_scroll_rxvt=yes
8045support_scroll_next=no 4334support_scroll_next=yes
8046support_scroll_xterm=no 4335support_scroll_xterm=yes
8047support_scroll_plain=no 4336support_scroll_plain=yes
8048support_xim=no 4337support_xim=yes
8049support_xpm=no 4338support_xpm=yes
8050support_xft=no 4339support_xft=yes
8051support_unicode3=no 4340support_unicode3=no
8052support_combining=no 4341support_combining=yes
4342support_8bitctrls=no
4343support_iso14755=yes
4344support_styles=yes
4345support_perl=yes
8053codesets= 4346codesets=all
8054 4347
8055 4348
8056if test "x$enable_shared" = xyes; then 4349if test "x$enable_shared" = xyes; then
8057 4350
8058cat >>confdefs.h <<\_ACEOF 4351cat >>confdefs.h <<\_ACEOF
8064 4357
8065 4358
8066# Check whether --enable-everything or --disable-everything was given. 4359# Check whether --enable-everything or --disable-everything was given.
8067if test "${enable_everything+set}" = set; then 4360if test "${enable_everything+set}" = set; then
8068 enableval="$enable_everything" 4361 enableval="$enable_everything"
4362
4363 if test x$enableval = xno; then
4364 support_24bit=no
4365 support_frills=no
4366 support_inheritpixmap=no
4367 support_tinting=no
4368 support_fading=no
4369 support_keepscrolling=no
4370 support_selectionscrolling=no
4371 support_lastlog=no
4372 support_mousewheel=no
4373 support_mouseslipwheel=no
4374 support_text_blink=no
4375 support_pointer_blank=no
4376 support_scroll_rxvt=no
4377 support_scroll_next=no
4378 support_scroll_xterm=no
4379 support_scroll_plain=no
4380 support_utmp=no
4381 support_wtmp=no
4382 support_xim=no
4383 support_xpm=no
4384 support_xft=no
4385 support_unicode3=no
4386 support_combining=no
4387 support_8bitctrls=no
4388 support_iso14755=no
4389 support_styles=no
4390 support_perl=no
4391 codesets=
4392 fi
8069 if test x$enableval = xyes; then 4393 if test x$enableval = xyes; then
8070 support_24bit=yes 4394 support_24bit=yes
8071 support_frills=yes 4395 support_frills=yes
8072 support_linespace=yes
8073 support_inheritpixmap=yes 4396 support_inheritpixmap=yes
4397 support_tinting=yes
4398 support_fading=yes
8074 support_keepscrolling=yes 4399 support_keepscrolling=yes
8075 support_selectionscrolling=yes 4400 support_selectionscrolling=yes
8076 support_lastlog=yes 4401 support_lastlog=yes
8077 support_menubar=yes
8078 support_mousewheel=yes 4402 support_mousewheel=yes
8079 support_mouseslipwheel=yes 4403 support_mouseslipwheel=yes
8080 support_cursor_blink=yes
8081 support_text_blink=yes 4404 support_text_blink=yes
8082 support_pointer_blank=yes 4405 support_pointer_blank=yes
8083 support_scroll_rxvt=yes 4406 support_scroll_rxvt=yes
8084 support_scroll_next=yes 4407 support_scroll_next=yes
8085 support_scroll_xterm=yes 4408 support_scroll_xterm=yes
8086 support_scroll_plain=yes 4409 support_scroll_plain=yes
8087 support_utmp=yes 4410 support_utmp=yes
8088 support_wtmp=yes 4411 support_wtmp=yes
8089 support_xim=yes 4412 support_xim=yes
8090 support_xpm=yes 4413 support_xpm=yes
8091 support_xft=yes 4414 support_xft=yes
8092 support_unicode3=yes 4415 support_unicode3=yes
8093 support_combining=yes 4416 support_combining=yes
4417 #support_8bitctrls=yes
4418 support_iso14755=yes
4419 support_styles=yes
4420 support_perl=yes
8094 codesets=all 4421 codesets=all
8095 fi 4422 fi
4423
8096fi; 4424fi;
8097 4425
8098# Check whether --enable-unicode3 or --disable-unicode3 was given. 4426# Check whether --enable-unicode3 or --disable-unicode3 was given.
8099if test "${enable_unicode3+set}" = set; then 4427if test "${enable_unicode3+set}" = set; then
8100 enableval="$enable_unicode3" 4428 enableval="$enable_unicode3"
8101 if test x$enableval = xyes -o x$enableval = xno; then 4429 if test x$enableval = xyes -o x$enableval = xno; then
8102 support_unicode3=yes 4430 support_unicode3=$enableval
8103 fi 4431 fi
8104fi; 4432fi;
8105 4433
8106# Check whether --enable-combining or --disable-combining was given. 4434# Check whether --enable-combining or --disable-combining was given.
8107if test "${enable_combining+set}" = set; then 4435if test "${enable_combining+set}" = set; then
8108 enableval="$enable_combining" 4436 enableval="$enable_combining"
8109 if test x$enableval = xyes -o x$enableval = xno; then 4437 if test x$enableval = xyes -o x$enableval = xno; then
8110 support_combining=yes 4438 support_combining=$enableval
8111 fi 4439 fi
8112fi; 4440fi;
8113 4441
8114# Check whether --enable-xft or --disable-xft was given. 4442# Check whether --enable-xft or --disable-xft was given.
8115if test "${enable_xft+set}" = set; then 4443if test "${enable_xft+set}" = set; then
8116 enableval="$enable_xft" 4444 enableval="$enable_xft"
8117 if test x$enableval = xyes -o x$enableval = xno; then 4445 if test x$enableval = xyes -o x$enableval = xno; then
8118 support_xft=yes 4446 support_xft=$enableval
4447 fi
4448fi;
4449
4450# Check whether --enable-font-styles or --disable-font-styles was given.
4451if test "${enable_font_styles+set}" = set; then
4452 enableval="$enable_font_styles"
4453 if test x$enableval = xyes -o x$enableval = xno; then
4454 support_styles=$enableval
8119 fi 4455 fi
8120fi; 4456fi;
8121 4457
8122# Check whether --enable-utmp or --disable-utmp was given. 4458# Check whether --enable-utmp or --disable-utmp was given.
8123if test "${enable_utmp+set}" = set; then 4459if test "${enable_utmp+set}" = set; then
8157 if test x$enableval = xyes -o x$enableval = xno; then 4493 if test x$enableval = xyes -o x$enableval = xno; then
8158 support_inheritpixmap=$enableval 4494 support_inheritpixmap=$enableval
8159 fi 4495 fi
8160fi; 4496fi;
8161 4497
8162# Check whether --enable-menubar or --disable-menubar was given. 4498# Check whether --enable-tinting or --disable-tinting was given.
8163if test "${enable_menubar+set}" = set; then 4499if test "${enable_tinting+set}" = set; then
8164 enableval="$enable_menubar" 4500 enableval="$enable_tinting"
8165 if test x$enableval = xyes -o x$enableval = xno; then 4501 if test x$enableval = xyes -o x$enableval = xno; then
4502 support_tinting=$enableval
4503 fi
4504fi;
4505
4506# Check whether --enable-fading or --disable-fading was given.
4507if test "${enable_fading+set}" = set; then
4508 enableval="$enable_fading"
4509 if test x$enableval = xyes -o x$enableval = xno; then
8166 support_menubar=$enableval 4510 support_fading=$enableval
8167 fi 4511 fi
8168fi; 4512fi;
8169 4513
8170# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. 4514# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
8171if test "${enable_rxvt_scroll+set}" = set; then 4515if test "${enable_rxvt_scroll+set}" = set; then
8189 if test x$enableval = xyes -o x$enableval = xno; then 4533 if test x$enableval = xyes -o x$enableval = xno; then
8190 support_scroll_xterm=$enableval 4534 support_scroll_xterm=$enableval
8191 fi 4535 fi
8192fi; 4536fi;
8193 4537
4538# Check whether --enable-perl or --disable-perl was given.
4539if test "${enable_perl+set}" = set; then
4540 enableval="$enable_perl"
4541 if test x$enableval = xyes -o x$enableval = xno; then
4542 support_perl=$enableval
4543 fi
4544fi;
4545
8194# Check whether --enable-plain-scroll or --disable-plain-scroll was given. 4546# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
8195if test "${enable_plain_scroll+set}" = set; then 4547if test "${enable_plain_scroll+set}" = set; then
8196 enableval="$enable_plain_scroll" 4548 enableval="$enable_plain_scroll"
8197 if test x$enableval = xyes -o x$enableval = xno; then 4549 if test x$enableval = xyes -o x$enableval = xno; then
8198 support_scroll_plain=$enableval 4550 support_scroll_plain=$enableval
8272_ACEOF 4624_ACEOF
8273 4625
8274 fi 4626 fi
8275fi; 4627fi;
8276 4628
8277# Check whether --enable-xgetdefault or --disable-xgetdefault was given. 4629# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
8278if test "${enable_xgetdefault+set}" = set; then 4630if test "${enable_8bitctrls+set}" = set; then
8279 enableval="$enable_xgetdefault" 4631 enableval="$enable_8bitctrls"
8280 if test x$enableval = xyes; then 4632 if test x$enableval = xyes -o x$enableval = xno; then
8281 4633 support_8bitctrls=$enableval
8282cat >>confdefs.h <<\_ACEOF
8283#define USE_XGETDEFAULT 1
8284_ACEOF
8285
8286 fi 4634 fi
8287fi; 4635fi;
8288 4636
8289RESFALLBACK=Rxvt 4637RESFALLBACK=Rxvt
8290# Check whether --enable-fallback or --disable-fallback was given. 4638# Check whether --enable-fallback or --disable-fallback was given.
8337if test "${with_name+set}" = set; then 4685if test "${with_name+set}" = set; then
8338 withval="$with_name" 4686 withval="$with_name"
8339 RXVTNAME="$withval" 4687 RXVTNAME="$withval"
8340fi; 4688fi;
8341 4689
4690cat >>confdefs.h <<_ACEOF
4691#define RXVTNAME "$RXVTNAME"
4692_ACEOF
4693
4694
8342RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4695RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8343 4696
8344
8345# Check whether --enable-strings or --disable-strings was given.
8346if test "${enable_strings+set}" = set; then
8347 enableval="$enable_strings"
8348 if test x$enableval = xyes -o x$enableval = xno; then
8349 support_addstrings=$enableval
8350 fi
8351fi;
8352 4697
8353# Check whether --enable-swapscreen or --disable-swapscreen was given. 4698# Check whether --enable-swapscreen or --disable-swapscreen was given.
8354if test "${enable_swapscreen+set}" = set; then 4699if test "${enable_swapscreen+set}" = set; then
8355 enableval="$enable_swapscreen" 4700 enableval="$enable_swapscreen"
8356 if test x$enableval = xno; then 4701 if test x$enableval = xno; then
8357 4702
8358cat >>confdefs.h <<\_ACEOF 4703cat >>confdefs.h <<\_ACEOF
8359#define NO_SECONDARY_SCREEN 1 4704#define NO_SECONDARY_SCREEN 1
8360_ACEOF 4705_ACEOF
8361 4706
4707 fi
4708fi;
4709
4710# Check whether --enable-iso14755 or --disable-iso14755 was given.
4711if test "${enable_iso14755+set}" = set; then
4712 enableval="$enable_iso14755"
4713 if test x$enableval = xyes -o x$enableval = xno; then
4714 support_iso14755=$enableval
8362 fi 4715 fi
8363fi; 4716fi;
8364 4717
8365# Check whether --enable-frills or --disable-frills was given. 4718# Check whether --enable-frills or --disable-frills was given.
8366if test "${enable_frills+set}" = set; then 4719if test "${enable_frills+set}" = set; then
8367 enableval="$enable_frills" 4720 enableval="$enable_frills"
8368 if test x$enableval = xyes -o x$enableval = xno; then 4721 if test x$enableval = xyes -o x$enableval = xno; then
8369 support_frills=$enableval 4722 support_frills=$enableval
8370 fi
8371fi;
8372
8373# Check whether --enable-linespace or --disable-linespace was given.
8374if test "${enable_linespace+set}" = set; then
8375 enableval="$enable_linespace"
8376 if test x$enableval = xyes -o x$enableval = xno; then
8377 support_linespace=$enableval
8378 fi 4723 fi
8379fi; 4724fi;
8380 4725
8381# Check whether --enable-24bit or --disable-24bit was given. 4726# Check whether --enable-24bit or --disable-24bit was given.
8382if test "${enable_24bit+set}" = set; then 4727if test "${enable_24bit+set}" = set; then
8450_ACEOF 4795_ACEOF
8451 4796
8452 fi 4797 fi
8453fi; 4798fi;
8454 4799
8455# Check whether --enable-256-color or --disable-256-color was given.
8456if test "${enable_256_color+set}" = set; then
8457 enableval="$enable_256_color"
8458 if test x$enableval = xyes; then
8459
8460cat >>confdefs.h <<\_ACEOF
8461#define TTY_256COLOR 1
8462_ACEOF
8463
8464 fi
8465fi;
8466
8467# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8468if test "${enable_cursor_blink+set}" = set; then
8469 enableval="$enable_cursor_blink"
8470 if test x$enableval = xyes -o x$enableval = xno; then
8471 support_cursor_blink=$enableval
8472 fi
8473fi;
8474
8475# Check whether --enable-text-blink or --disable-text-blink was given. 4800# Check whether --enable-text-blink or --disable-text-blink was given.
8476if test "${enable_text_blink+set}" = set; then 4801if test "${enable_text_blink+set}" = set; then
8477 enableval="$enable_text_blink" 4802 enableval="$enable_text_blink"
8478 if test x$enableval = xyes -o x$enableval = xno; then 4803 if test x$enableval = xyes -o x$enableval = xno; then
8479 support_text_blink=$enableval 4804 support_text_blink=$enableval
8518 4843
8519cat >>confdefs.h <<\_ACEOF 4844cat >>confdefs.h <<\_ACEOF
8520#define PROTOTYPES 1 4845#define PROTOTYPES 1
8521_ACEOF 4846_ACEOF
8522 4847
8523
8524if test -z "$CFLAGS"; then
8525 if test -z "$CCOPTS"; then
8526 CCOPTS='-O'
8527 fi
8528 CFLAGS="$CCOPTS"
8529fi
8530 4848
8531# Extract the first word of "mv", so it can be a program name with args. 4849# Extract the first word of "mv", so it can be a program name with args.
8532set dummy mv; ac_word=$2 4850set dummy mv; ac_word=$2
8533echo "$as_me:$LINENO: checking for $ac_word" >&5 4851echo "$as_me:$LINENO: checking for $ac_word" >&5
8534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8845else 5163else
8846 echo "$as_me:$LINENO: result: no" >&5 5164 echo "$as_me:$LINENO: result: no" >&5
8847echo "${ECHO_T}no" >&6 5165echo "${ECHO_T}no" >&6
8848fi 5166fi
8849 5167
5168# Extract the first word of "tic", so it can be a program name with args.
5169set dummy tic; ac_word=$2
5170echo "$as_me:$LINENO: checking for $ac_word" >&5
5171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5172if test "${ac_cv_path_TIC+set}" = set; then
5173 echo $ECHO_N "(cached) $ECHO_C" >&6
5174else
5175 case $TIC in
5176 [\\/]* | ?:[\\/]*)
5177 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5178 ;;
5179 *)
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5187 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189 break 2
5190 fi
5191done
5192done
8850 5193
5194 ;;
5195esac
5196fi
5197TIC=$ac_cv_path_TIC
8851 5198
5199if test -n "$TIC"; then
5200 echo "$as_me:$LINENO: result: $TIC" >&5
5201echo "${ECHO_T}$TIC" >&6
5202else
5203 echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6
5205fi
8852 5206
5207
5208
5209
5210
5211if test "x$ac_path_x_has_been_run" != xyes; then
8853echo "$as_me:$LINENO: checking for X" >&5 5212 echo "$as_me:$LINENO: checking for X" >&5
8854echo $ECHO_N "checking for X... $ECHO_C" >&6 5213echo $ECHO_N "checking for X... $ECHO_C" >&6
8855 5214
5215ac_path_x_has_been_run=yes
8856 5216
8857# Check whether --with-x or --without-x was given. 5217# Check whether --with-x or --without-x was given.
8858if test "${with_x+set}" = set; then 5218if test "${with_x+set}" = set; then
8859 withval="$with_x" 5219 withval="$with_x"
8860 5220
8943 5303
8944/usr/openwin/include 5304/usr/openwin/include
8945/usr/openwin/share/include' 5305/usr/openwin/share/include'
8946 5306
8947if test "$ac_x_includes" = no; then 5307if test "$ac_x_includes" = no; then
8948 # Guess where to find include files, by looking for Intrinsic.h. 5308 # Guess where to find include files, by looking for a specified header file.
8949 # First, try using that file with no special directory specified. 5309 # First, try using that file with no special directory specified.
8950 cat >conftest.$ac_ext <<_ACEOF 5310 cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h. */ 5311/* confdefs.h. */
8952_ACEOF 5312_ACEOF
8953cat confdefs.h >>conftest.$ac_ext 5313cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF 5314cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */ 5315/* end confdefs.h. */
8956#include <X11/Intrinsic.h> 5316#include <X11/Xlib.h>
8957_ACEOF 5317_ACEOF
8958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8960 ac_status=$? 5320 ac_status=$?
8961 grep -v '^ *+' conftest.er1 >conftest.err 5321 grep -v '^ *+' conftest.er1 >conftest.err
8978else 5338else
8979 echo "$as_me: failed program was:" >&5 5339 echo "$as_me: failed program was:" >&5
8980sed 's/^/| /' conftest.$ac_ext >&5 5340sed 's/^/| /' conftest.$ac_ext >&5
8981 5341
8982 for ac_dir in $ac_x_header_dirs; do 5342 for ac_dir in $ac_x_header_dirs; do
8983 if test -r "$ac_dir/X11/Intrinsic.h"; then 5343 if test -r "$ac_dir/X11/Xlib.h"; then
8984 ac_x_includes=$ac_dir 5344 ac_x_includes=$ac_dir
8985 break 5345 break
8986 fi 5346 fi
8987done 5347done
8988fi 5348fi
8992if test "$ac_x_libraries" = no; then 5352if test "$ac_x_libraries" = no; then
8993 # Check for the libraries. 5353 # Check for the libraries.
8994 # See if we find them without any special options. 5354 # See if we find them without any special options.
8995 # Don't add to $LIBS permanently. 5355 # Don't add to $LIBS permanently.
8996 ac_save_LIBS=$LIBS 5356 ac_save_LIBS=$LIBS
8997 LIBS="-lXt $LIBS" 5357 LIBS="-lX11 $LIBS"
8998 cat >conftest.$ac_ext <<_ACEOF 5358 cat >conftest.$ac_ext <<_ACEOF
8999/* confdefs.h. */ 5359/* confdefs.h. */
9000_ACEOF 5360_ACEOF
9001cat confdefs.h >>conftest.$ac_ext 5361cat confdefs.h >>conftest.$ac_ext
9002cat >>conftest.$ac_ext <<_ACEOF 5362cat >>conftest.$ac_ext <<_ACEOF
9003/* end confdefs.h. */ 5363/* end confdefs.h. */
9004#include <X11/Intrinsic.h> 5364#include <X11/Xlib.h>
9005int 5365int
9006main () 5366main ()
9007{ 5367{
9008XtMalloc (0) 5368XrmInitialize ()
9009 ; 5369 ;
9010 return 0; 5370 return 0;
9011} 5371}
9012_ACEOF 5372_ACEOF
9013rm -f conftest.$ac_objext conftest$ac_exeext 5373rm -f conftest.$ac_objext conftest$ac_exeext
9041LIBS=$ac_save_LIBS 5401LIBS=$ac_save_LIBS
9042for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5402for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9043do 5403do
9044 # Don't even attempt the hair of trying to link an X program! 5404 # Don't even attempt the hair of trying to link an X program!
9045 for ac_extension in a so sl; do 5405 for ac_extension in a so sl; do
9046 if test -r $ac_dir/libXt.$ac_extension; then 5406 if test -r $ac_dir/libX11.$ac_extension; then
9047 ac_x_libraries=$ac_dir 5407 ac_x_libraries=$ac_dir
9048 break 2 5408 break 2
9049 fi 5409 fi
9050 done 5410 done
9051done 5411done
9077 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5437 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9078 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5438 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9079 # Update the cache value to reflect the command line values. 5439 # Update the cache value to reflect the command line values.
9080 ac_cv_have_x="have_x=yes \ 5440 ac_cv_have_x="have_x=yes \
9081 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 5441 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5442 # It might be that x_includes is empty (headers are found in the
5443 # standard search path. Then output the corresponding message
5444 ac_out_x_includes=$x_includes
5445 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
9082 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5446 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
9083echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 5447echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
9084fi 5448fi
9085 5449
5450fi
9086if test "$no_x" = yes; then 5451if test "$no_x" = yes; then
9087 # Not all programs may use this symbol, but it does not hurt to define it. 5452 # Not all programs may use this symbol, but it does not hurt to define it.
9088 5453
9089cat >>confdefs.h <<\_ACEOF 5454cat >>confdefs.h <<\_ACEOF
9090#define X_DISPLAY_MISSING 1 5455#define X_DISPLAY_MISSING 1
10648#define HAVE_SYS_WAIT_H 1 7013#define HAVE_SYS_WAIT_H 1
10649_ACEOF 7014_ACEOF
10650 7015
10651fi 7016fi
10652 7017
7018echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7019echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7020if test "${ac_cv_header_stdc+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023 cat >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#include <stdlib.h>
7030#include <stdarg.h>
7031#include <string.h>
7032#include <float.h>
7033
7034int
7035main ()
7036{
7037
7038 ;
7039 return 0;
7040}
7041_ACEOF
7042rm -f conftest.$ac_objext
7043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044 (eval $ac_compile) 2>conftest.er1
7045 ac_status=$?
7046 grep -v '^ *+' conftest.er1 >conftest.err
7047 rm -f conftest.er1
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); }; } &&
7057 { ac_try='test -s conftest.$ac_objext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 ac_cv_header_stdc=yes
7064else
7065 echo "$as_me: failed program was:" >&5
7066sed 's/^/| /' conftest.$ac_ext >&5
7067
7068ac_cv_header_stdc=no
7069fi
7070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071
7072if test $ac_cv_header_stdc = yes; then
7073 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7074 cat >conftest.$ac_ext <<_ACEOF
7075/* confdefs.h. */
7076_ACEOF
7077cat confdefs.h >>conftest.$ac_ext
7078cat >>conftest.$ac_ext <<_ACEOF
7079/* end confdefs.h. */
7080#include <string.h>
7081
7082_ACEOF
7083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084 $EGREP "memchr" >/dev/null 2>&1; then
7085 :
7086else
7087 ac_cv_header_stdc=no
7088fi
7089rm -f conftest*
7090
7091fi
7092
7093if test $ac_cv_header_stdc = yes; then
7094 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7095 cat >conftest.$ac_ext <<_ACEOF
7096/* confdefs.h. */
7097_ACEOF
7098cat confdefs.h >>conftest.$ac_ext
7099cat >>conftest.$ac_ext <<_ACEOF
7100/* end confdefs.h. */
7101#include <stdlib.h>
7102
7103_ACEOF
7104if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7105 $EGREP "free" >/dev/null 2>&1; then
7106 :
7107else
7108 ac_cv_header_stdc=no
7109fi
7110rm -f conftest*
7111
7112fi
7113
7114if test $ac_cv_header_stdc = yes; then
7115 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7116 if test "$cross_compiling" = yes; then
7117 :
7118else
7119 cat >conftest.$ac_ext <<_ACEOF
7120/* confdefs.h. */
7121_ACEOF
7122cat confdefs.h >>conftest.$ac_ext
7123cat >>conftest.$ac_ext <<_ACEOF
7124/* end confdefs.h. */
7125#include <ctype.h>
7126#if ((' ' & 0x0FF) == 0x020)
7127# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7128# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7129#else
7130# define ISLOWER(c) \
7131 (('a' <= (c) && (c) <= 'i') \
7132 || ('j' <= (c) && (c) <= 'r') \
7133 || ('s' <= (c) && (c) <= 'z'))
7134# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7135#endif
7136
7137#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7138int
7139main ()
7140{
7141 int i;
7142 for (i = 0; i < 256; i++)
7143 if (XOR (islower (i), ISLOWER (i))
7144 || toupper (i) != TOUPPER (i))
7145 exit(2);
7146 exit (0);
7147}
7148_ACEOF
7149rm -f conftest$ac_exeext
7150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7151 (eval $ac_link) 2>&5
7152 ac_status=$?
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156 (eval $ac_try) 2>&5
7157 ac_status=$?
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 :
7161else
7162 echo "$as_me: program exited with status $ac_status" >&5
7163echo "$as_me: failed program was:" >&5
7164sed 's/^/| /' conftest.$ac_ext >&5
7165
7166( exit $ac_status )
7167ac_cv_header_stdc=no
7168fi
7169rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7170fi
7171fi
7172fi
7173echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7174echo "${ECHO_T}$ac_cv_header_stdc" >&6
7175if test $ac_cv_header_stdc = yes; then
7176
7177cat >>confdefs.h <<\_ACEOF
7178#define STDC_HEADERS 1
7179_ACEOF
7180
7181fi
7182
7183# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7194 inttypes.h stdint.h unistd.h
7195do
7196as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7197echo "$as_me:$LINENO: checking for $ac_header" >&5
7198echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7199if eval "test \"\${$as_ac_Header+set}\" = set"; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202 cat >conftest.$ac_ext <<_ACEOF
7203/* confdefs.h. */
7204_ACEOF
7205cat confdefs.h >>conftest.$ac_ext
7206cat >>conftest.$ac_ext <<_ACEOF
7207/* end confdefs.h. */
7208$ac_includes_default
7209
7210#include <$ac_header>
7211_ACEOF
7212rm -f conftest.$ac_objext
7213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7214 (eval $ac_compile) 2>conftest.er1
7215 ac_status=$?
7216 grep -v '^ *+' conftest.er1 >conftest.err
7217 rm -f conftest.er1
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } &&
7221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223 (eval $ac_try) 2>&5
7224 ac_status=$?
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; } &&
7227 { ac_try='test -s conftest.$ac_objext'
7228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229 (eval $ac_try) 2>&5
7230 ac_status=$?
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 eval "$as_ac_Header=yes"
7234else
7235 echo "$as_me: failed program was:" >&5
7236sed 's/^/| /' conftest.$ac_ext >&5
7237
7238eval "$as_ac_Header=no"
7239fi
7240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7241fi
7242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7244if test `eval echo '${'$as_ac_Header'}'` = yes; then
7245 cat >>confdefs.h <<_ACEOF
7246#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7247_ACEOF
7248
7249fi
7250
7251done
7252
7253
7254
7255
7256
7257
7258
7259
7260
10653 7261
10654 7262
10655 7263
10656 7264
10657 7265
10683 sys/byteorder.h \ 7291 sys/byteorder.h \
10684 sys/ioctl.h \ 7292 sys/ioctl.h \
10685 sys/select.h \ 7293 sys/select.h \
10686 sys/sockio.h \ 7294 sys/sockio.h \
10687 sys/strredir.h \ 7295 sys/strredir.h \
7296 sys/stropts.h \
10688 sys/time.h \ 7297 sys/time.h \
10689 utmp.h \ 7298 utmp.h \
10690 utmpx.h \ 7299 utmpx.h \
10691 stdint.h \ 7300 stdint.h \
7301 pty.h \
7302 util.h \
7303 libutil.h \
7304 wchar.h \
7305 cwchar \
7306 clocale \
10692 7307
10693do 7308do
10694as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7309as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10695if eval "test \"\${$as_ac_Header+set}\" = set"; then 7310if eval "test \"\${$as_ac_Header+set}\" = set"; then
10696 echo "$as_me:$LINENO: checking for $ac_header" >&5 7311 echo "$as_me:$LINENO: checking for $ac_header" >&5
11480_ACEOF 8095_ACEOF
11481 8096
11482fi 8097fi
11483 8098
11484 8099
11485
11486echo "$as_me:$LINENO: checking for char" >&5
11487echo $ECHO_N "checking for char... $ECHO_C" >&6
11488if test "${ac_cv_type_char+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490else
11491 cat >conftest.$ac_ext <<_ACEOF
11492/* confdefs.h. */
11493_ACEOF
11494cat confdefs.h >>conftest.$ac_ext
11495cat >>conftest.$ac_ext <<_ACEOF
11496/* end confdefs.h. */
11497$ac_includes_default
11498int
11499main ()
11500{
11501if ((char *) 0)
11502 return 0;
11503if (sizeof (char))
11504 return 0;
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509rm -f conftest.$ac_objext
11510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11511 (eval $ac_compile) 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11521 ac_status=$?
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest.$ac_objext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_cv_type_char=yes
11531else
11532 echo "$as_me: failed program was:" >&5
11533sed 's/^/| /' conftest.$ac_ext >&5
11534
11535ac_cv_type_char=no
11536fi
11537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11538fi
11539echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11540echo "${ECHO_T}$ac_cv_type_char" >&6
11541
11542echo "$as_me:$LINENO: checking size of char" >&5
11543echo $ECHO_N "checking size of char... $ECHO_C" >&6
11544if test "${ac_cv_sizeof_char+set}" = set; then
11545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546else
11547 if test "$ac_cv_type_char" = yes; then
11548 # The cast to unsigned long works around a bug in the HP C Compiler
11549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11551 # This bug is HP SR number 8606223364.
11552 if test "$cross_compiling" = yes; then
11553 # Depending upon the size, compute the lo and hi bounds.
11554cat >conftest.$ac_ext <<_ACEOF
11555/* confdefs.h. */
11556_ACEOF
11557cat confdefs.h >>conftest.$ac_ext
11558cat >>conftest.$ac_ext <<_ACEOF
11559/* end confdefs.h. */
11560$ac_includes_default
11561int
11562main ()
11563{
11564static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11565test_array [0] = 0
11566
11567 ;
11568 return 0;
11569}
11570_ACEOF
11571rm -f conftest.$ac_objext
11572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11573 (eval $ac_compile) 2>conftest.er1
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; } &&
11586 { ac_try='test -s conftest.$ac_objext'
11587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592 ac_lo=0 ac_mid=0
11593 while :; do
11594 cat >conftest.$ac_ext <<_ACEOF
11595/* confdefs.h. */
11596_ACEOF
11597cat confdefs.h >>conftest.$ac_ext
11598cat >>conftest.$ac_ext <<_ACEOF
11599/* end confdefs.h. */
11600$ac_includes_default
11601int
11602main ()
11603{
11604static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11605test_array [0] = 0
11606
11607 ;
11608 return 0;
11609}
11610_ACEOF
11611rm -f conftest.$ac_objext
11612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11613 (eval $ac_compile) 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } &&
11620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; } &&
11626 { ac_try='test -s conftest.$ac_objext'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 ac_hi=$ac_mid; break
11633else
11634 echo "$as_me: failed program was:" >&5
11635sed 's/^/| /' conftest.$ac_ext >&5
11636
11637ac_lo=`expr $ac_mid + 1`
11638 if test $ac_lo -le $ac_mid; then
11639 ac_lo= ac_hi=
11640 break
11641 fi
11642 ac_mid=`expr 2 '*' $ac_mid + 1`
11643fi
11644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11645 done
11646else
11647 echo "$as_me: failed program was:" >&5
11648sed 's/^/| /' conftest.$ac_ext >&5
11649
11650cat >conftest.$ac_ext <<_ACEOF
11651/* confdefs.h. */
11652_ACEOF
11653cat confdefs.h >>conftest.$ac_ext
11654cat >>conftest.$ac_ext <<_ACEOF
11655/* end confdefs.h. */
11656$ac_includes_default
11657int
11658main ()
11659{
11660static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11661test_array [0] = 0
11662
11663 ;
11664 return 0;
11665}
11666_ACEOF
11667rm -f conftest.$ac_objext
11668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669 (eval $ac_compile) 2>conftest.er1
11670 ac_status=$?
11671 grep -v '^ *+' conftest.er1 >conftest.err
11672 rm -f conftest.er1
11673 cat conftest.err >&5
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); } &&
11676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest.$ac_objext'
11683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11684 (eval $ac_try) 2>&5
11685 ac_status=$?
11686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687 (exit $ac_status); }; }; then
11688 ac_hi=-1 ac_mid=-1
11689 while :; do
11690 cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
11696$ac_includes_default
11697int
11698main ()
11699{
11700static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11701test_array [0] = 0
11702
11703 ;
11704 return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext
11708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709 (eval $ac_compile) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest.$ac_objext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_lo=$ac_mid; break
11729else
11730 echo "$as_me: failed program was:" >&5
11731sed 's/^/| /' conftest.$ac_ext >&5
11732
11733ac_hi=`expr '(' $ac_mid ')' - 1`
11734 if test $ac_mid -le $ac_hi; then
11735 ac_lo= ac_hi=
11736 break
11737 fi
11738 ac_mid=`expr 2 '*' $ac_mid`
11739fi
11740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11741 done
11742else
11743 echo "$as_me: failed program was:" >&5
11744sed 's/^/| /' conftest.$ac_ext >&5
11745
11746ac_lo= ac_hi=
11747fi
11748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11749fi
11750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11751# Binary search between lo and hi bounds.
11752while test "x$ac_lo" != "x$ac_hi"; do
11753 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11754 cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h. */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */
11760$ac_includes_default
11761int
11762main ()
11763{
11764static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11765test_array [0] = 0
11766
11767 ;
11768 return 0;
11769}
11770_ACEOF
11771rm -f conftest.$ac_objext
11772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11773 (eval $ac_compile) 2>conftest.er1
11774 ac_status=$?
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest.$ac_objext'
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 ac_hi=$ac_mid
11793else
11794 echo "$as_me: failed program was:" >&5
11795sed 's/^/| /' conftest.$ac_ext >&5
11796
11797ac_lo=`expr '(' $ac_mid ')' + 1`
11798fi
11799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11800done
11801case $ac_lo in
11802?*) ac_cv_sizeof_char=$ac_lo;;
11803'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11804See \`config.log' for more details." >&5
11805echo "$as_me: error: cannot compute sizeof (char), 77
11806See \`config.log' for more details." >&2;}
11807 { (exit 1); exit 1; }; } ;;
11808esac
11809else
11810 if test "$cross_compiling" = yes; then
11811 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11812echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11813 { (exit 1); exit 1; }; }
11814else
11815 cat >conftest.$ac_ext <<_ACEOF
11816/* confdefs.h. */
11817_ACEOF
11818cat confdefs.h >>conftest.$ac_ext
11819cat >>conftest.$ac_ext <<_ACEOF
11820/* end confdefs.h. */
11821$ac_includes_default
11822long longval () { return (long) (sizeof (char)); }
11823unsigned long ulongval () { return (long) (sizeof (char)); }
11824#include <stdio.h>
11825#include <stdlib.h>
11826int
11827main ()
11828{
11829
11830 FILE *f = fopen ("conftest.val", "w");
11831 if (! f)
11832 exit (1);
11833 if (((long) (sizeof (char))) < 0)
11834 {
11835 long i = longval ();
11836 if (i != ((long) (sizeof (char))))
11837 exit (1);
11838 fprintf (f, "%ld\n", i);
11839 }
11840 else
11841 {
11842 unsigned long i = ulongval ();
11843 if (i != ((long) (sizeof (char))))
11844 exit (1);
11845 fprintf (f, "%lu\n", i);
11846 }
11847 exit (ferror (f) || fclose (f) != 0);
11848
11849 ;
11850 return 0;
11851}
11852_ACEOF
11853rm -f conftest$ac_exeext
11854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11855 (eval $ac_link) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11861 ac_status=$?
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
11864 ac_cv_sizeof_char=`cat conftest.val`
11865else
11866 echo "$as_me: program exited with status $ac_status" >&5
11867echo "$as_me: failed program was:" >&5
11868sed 's/^/| /' conftest.$ac_ext >&5
11869
11870( exit $ac_status )
11871{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11872See \`config.log' for more details." >&5
11873echo "$as_me: error: cannot compute sizeof (char), 77
11874See \`config.log' for more details." >&2;}
11875 { (exit 1); exit 1; }; }
11876fi
11877rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11878fi
11879fi
11880rm -f conftest.val
11881else
11882 ac_cv_sizeof_char=0
11883fi
11884fi
11885echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11886echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11887cat >>confdefs.h <<_ACEOF
11888#define SIZEOF_CHAR $ac_cv_sizeof_char
11889_ACEOF
11890
11891
11892echo "$as_me:$LINENO: checking for short" >&5 8100echo "$as_me:$LINENO: checking for short" >&5
11893echo $ECHO_N "checking for short... $ECHO_C" >&6 8101echo $ECHO_N "checking for short... $ECHO_C" >&6
11894if test "${ac_cv_type_short+set}" = set; then 8102if test "${ac_cv_type_short+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6 8103 echo $ECHO_N "(cached) $ECHO_C" >&6
11896else 8104else
12699cat >>confdefs.h <<_ACEOF 8907cat >>confdefs.h <<_ACEOF
12700#define SIZEOF_INT $ac_cv_sizeof_int 8908#define SIZEOF_INT $ac_cv_sizeof_int
12701_ACEOF 8909_ACEOF
12702 8910
12703 8911
12704echo "$as_me:$LINENO: checking for long" >&5
12705echo $ECHO_N "checking for long... $ECHO_C" >&6
12706if test "${ac_cv_type_long+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708else
12709 cat >conftest.$ac_ext <<_ACEOF
12710/* confdefs.h. */
12711_ACEOF
12712cat confdefs.h >>conftest.$ac_ext
12713cat >>conftest.$ac_ext <<_ACEOF
12714/* end confdefs.h. */
12715$ac_includes_default
12716int
12717main ()
12718{
12719if ((long *) 0)
12720 return 0;
12721if (sizeof (long))
12722 return 0;
12723 ;
12724 return 0;
12725}
12726_ACEOF
12727rm -f conftest.$ac_objext
12728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12729 (eval $ac_compile) 2>conftest.er1
12730 ac_status=$?
12731 grep -v '^ *+' conftest.er1 >conftest.err
12732 rm -f conftest.er1
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } &&
12736 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; } &&
12742 { ac_try='test -s conftest.$ac_objext'
12743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12744 (eval $ac_try) 2>&5
12745 ac_status=$?
12746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747 (exit $ac_status); }; }; then
12748 ac_cv_type_long=yes
12749else
12750 echo "$as_me: failed program was:" >&5
12751sed 's/^/| /' conftest.$ac_ext >&5
12752
12753ac_cv_type_long=no
12754fi
12755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12756fi
12757echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12758echo "${ECHO_T}$ac_cv_type_long" >&6
12759
12760echo "$as_me:$LINENO: checking size of long" >&5
12761echo $ECHO_N "checking size of long... $ECHO_C" >&6
12762if test "${ac_cv_sizeof_long+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764else
12765 if test "$ac_cv_type_long" = yes; then
12766 # The cast to unsigned long works around a bug in the HP C Compiler
12767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12768 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12769 # This bug is HP SR number 8606223364.
12770 if test "$cross_compiling" = yes; then
12771 # Depending upon the size, compute the lo and hi bounds.
12772cat >conftest.$ac_ext <<_ACEOF
12773/* confdefs.h. */
12774_ACEOF
12775cat confdefs.h >>conftest.$ac_ext
12776cat >>conftest.$ac_ext <<_ACEOF
12777/* end confdefs.h. */
12778$ac_includes_default
12779int
12780main ()
12781{
12782static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12783test_array [0] = 0
12784
12785 ;
12786 return 0;
12787}
12788_ACEOF
12789rm -f conftest.$ac_objext
12790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791 (eval $ac_compile) 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
12798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12801 ac_status=$?
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; } &&
12804 { ac_try='test -s conftest.$ac_objext'
12805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12806 (eval $ac_try) 2>&5
12807 ac_status=$?
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); }; }; then
12810 ac_lo=0 ac_mid=0
12811 while :; do
12812 cat >conftest.$ac_ext <<_ACEOF
12813/* confdefs.h. */
12814_ACEOF
12815cat confdefs.h >>conftest.$ac_ext
12816cat >>conftest.$ac_ext <<_ACEOF
12817/* end confdefs.h. */
12818$ac_includes_default
12819int
12820main ()
12821{
12822static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12823test_array [0] = 0
12824
12825 ;
12826 return 0;
12827}
12828_ACEOF
12829rm -f conftest.$ac_objext
12830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12831 (eval $ac_compile) 2>conftest.er1
12832 ac_status=$?
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } &&
12838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; } &&
12844 { ac_try='test -s conftest.$ac_objext'
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; }; then
12850 ac_hi=$ac_mid; break
12851else
12852 echo "$as_me: failed program was:" >&5
12853sed 's/^/| /' conftest.$ac_ext >&5
12854
12855ac_lo=`expr $ac_mid + 1`
12856 if test $ac_lo -le $ac_mid; then
12857 ac_lo= ac_hi=
12858 break
12859 fi
12860 ac_mid=`expr 2 '*' $ac_mid + 1`
12861fi
12862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12863 done
12864else
12865 echo "$as_me: failed program was:" >&5
12866sed 's/^/| /' conftest.$ac_ext >&5
12867
12868cat >conftest.$ac_ext <<_ACEOF
12869/* confdefs.h. */
12870_ACEOF
12871cat confdefs.h >>conftest.$ac_ext
12872cat >>conftest.$ac_ext <<_ACEOF
12873/* end confdefs.h. */
12874$ac_includes_default
12875int
12876main ()
12877{
12878static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12879test_array [0] = 0
12880
12881 ;
12882 return 0;
12883}
12884_ACEOF
12885rm -f conftest.$ac_objext
12886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12887 (eval $ac_compile) 2>conftest.er1
12888 ac_status=$?
12889 grep -v '^ *+' conftest.er1 >conftest.err
12890 rm -f conftest.er1
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } &&
12894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12896 (eval $ac_try) 2>&5
12897 ac_status=$?
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; } &&
12900 { ac_try='test -s conftest.$ac_objext'
12901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12902 (eval $ac_try) 2>&5
12903 ac_status=$?
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; }; then
12906 ac_hi=-1 ac_mid=-1
12907 while :; do
12908 cat >conftest.$ac_ext <<_ACEOF
12909/* confdefs.h. */
12910_ACEOF
12911cat confdefs.h >>conftest.$ac_ext
12912cat >>conftest.$ac_ext <<_ACEOF
12913/* end confdefs.h. */
12914$ac_includes_default
12915int
12916main ()
12917{
12918static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12919test_array [0] = 0
12920
12921 ;
12922 return 0;
12923}
12924_ACEOF
12925rm -f conftest.$ac_objext
12926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12927 (eval $ac_compile) 2>conftest.er1
12928 ac_status=$?
12929 grep -v '^ *+' conftest.er1 >conftest.err
12930 rm -f conftest.er1
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } &&
12934 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12936 (eval $ac_try) 2>&5
12937 ac_status=$?
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; } &&
12940 { ac_try='test -s conftest.$ac_objext'
12941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12942 (eval $ac_try) 2>&5
12943 ac_status=$?
12944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12945 (exit $ac_status); }; }; then
12946 ac_lo=$ac_mid; break
12947else
12948 echo "$as_me: failed program was:" >&5
12949sed 's/^/| /' conftest.$ac_ext >&5
12950
12951ac_hi=`expr '(' $ac_mid ')' - 1`
12952 if test $ac_mid -le $ac_hi; then
12953 ac_lo= ac_hi=
12954 break
12955 fi
12956 ac_mid=`expr 2 '*' $ac_mid`
12957fi
12958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12959 done
12960else
12961 echo "$as_me: failed program was:" >&5
12962sed 's/^/| /' conftest.$ac_ext >&5
12963
12964ac_lo= ac_hi=
12965fi
12966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12967fi
12968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12969# Binary search between lo and hi bounds.
12970while test "x$ac_lo" != "x$ac_hi"; do
12971 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12972 cat >conftest.$ac_ext <<_ACEOF
12973/* confdefs.h. */
12974_ACEOF
12975cat confdefs.h >>conftest.$ac_ext
12976cat >>conftest.$ac_ext <<_ACEOF
12977/* end confdefs.h. */
12978$ac_includes_default
12979int
12980main ()
12981{
12982static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12983test_array [0] = 0
12984
12985 ;
12986 return 0;
12987}
12988_ACEOF
12989rm -f conftest.$ac_objext
12990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991 (eval $ac_compile) 2>conftest.er1
12992 ac_status=$?
12993 grep -v '^ *+' conftest.er1 >conftest.err
12994 rm -f conftest.er1
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; } &&
13004 { ac_try='test -s conftest.$ac_objext'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; }; then
13010 ac_hi=$ac_mid
13011else
13012 echo "$as_me: failed program was:" >&5
13013sed 's/^/| /' conftest.$ac_ext >&5
13014
13015ac_lo=`expr '(' $ac_mid ')' + 1`
13016fi
13017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13018done
13019case $ac_lo in
13020?*) ac_cv_sizeof_long=$ac_lo;;
13021'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13022See \`config.log' for more details." >&5
13023echo "$as_me: error: cannot compute sizeof (long), 77
13024See \`config.log' for more details." >&2;}
13025 { (exit 1); exit 1; }; } ;;
13026esac
13027else
13028 if test "$cross_compiling" = yes; then
13029 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13030echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13031 { (exit 1); exit 1; }; }
13032else
13033 cat >conftest.$ac_ext <<_ACEOF
13034/* confdefs.h. */
13035_ACEOF
13036cat confdefs.h >>conftest.$ac_ext
13037cat >>conftest.$ac_ext <<_ACEOF
13038/* end confdefs.h. */
13039$ac_includes_default
13040long longval () { return (long) (sizeof (long)); }
13041unsigned long ulongval () { return (long) (sizeof (long)); }
13042#include <stdio.h>
13043#include <stdlib.h>
13044int
13045main ()
13046{
13047
13048 FILE *f = fopen ("conftest.val", "w");
13049 if (! f)
13050 exit (1);
13051 if (((long) (sizeof (long))) < 0)
13052 {
13053 long i = longval ();
13054 if (i != ((long) (sizeof (long))))
13055 exit (1);
13056 fprintf (f, "%ld\n", i);
13057 }
13058 else
13059 {
13060 unsigned long i = ulongval ();
13061 if (i != ((long) (sizeof (long))))
13062 exit (1);
13063 fprintf (f, "%lu\n", i);
13064 }
13065 exit (ferror (f) || fclose (f) != 0);
13066
13067 ;
13068 return 0;
13069}
13070_ACEOF
13071rm -f conftest$ac_exeext
13072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13073 (eval $ac_link) 2>&5
13074 ac_status=$?
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13079 ac_status=$?
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; }; then
13082 ac_cv_sizeof_long=`cat conftest.val`
13083else
13084 echo "$as_me: program exited with status $ac_status" >&5
13085echo "$as_me: failed program was:" >&5
13086sed 's/^/| /' conftest.$ac_ext >&5
13087
13088( exit $ac_status )
13089{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13090See \`config.log' for more details." >&5
13091echo "$as_me: error: cannot compute sizeof (long), 77
13092See \`config.log' for more details." >&2;}
13093 { (exit 1); exit 1; }; }
13094fi
13095rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13096fi
13097fi
13098rm -f conftest.val
13099else
13100 ac_cv_sizeof_long=0
13101fi
13102fi
13103echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13104echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13105cat >>confdefs.h <<_ACEOF
13106#define SIZEOF_LONG $ac_cv_sizeof_long
13107_ACEOF
13108
13109
13110echo "$as_me:$LINENO: checking for long long" >&5 8912echo "$as_me:$LINENO: checking for long long" >&5
13111echo $ECHO_N "checking for long long... $ECHO_C" >&6 8913echo $ECHO_N "checking for long long... $ECHO_C" >&6
13112if test "${ac_cv_type_long_long+set}" = set; then 8914if test "${ac_cv_type_long_long+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6 8915 echo $ECHO_N "(cached) $ECHO_C" >&6
13114else 8916else
13965 rxvt_cv_int16_t=yes 9767 rxvt_cv_int16_t=yes
13966else 9768else
13967 echo "$as_me: failed program was:" >&5 9769 echo "$as_me: failed program was:" >&5
13968sed 's/^/| /' conftest.$ac_ext >&5 9770sed 's/^/| /' conftest.$ac_ext >&5
13969 9771
13970if test $ac_cv_sizeof_char -ge 2; then 9772if test "$ac_cv_sizeof_char" -ge 2; then
13971 rxvt_cv_int16_t=" char" 9773 rxvt_cv_int16_t=" char"
13972else 9774else
13973 if test $ac_cv_sizeof_short -ge 2; then 9775 if test "$ac_cv_sizeof_short" -ge 2; then
13974 rxvt_cv_int16_t=" short" 9776 rxvt_cv_int16_t=" short"
13975 else 9777 else
13976 if test $ac_cv_sizeof_int -ge 2; then 9778 if test "$ac_cv_sizeof_int" -ge 2; then
13977 rxvt_cv_int16_t=" int" 9779 rxvt_cv_int16_t=" int"
13978 else 9780 else
13979 if test $ac_cv_sizeof_long -ge 2; then 9781 if test "$ac_cv_sizeof_long" -ge 2; then
13980 rxvt_cv_int16_t=" long" 9782 rxvt_cv_int16_t=" long"
13981 else 9783 else
13982 if test $ac_cv_sizeof_long_long -ge 2; then 9784 if test "$ac_cv_sizeof_long_long" -ge 2; then
13983 rxvt_cv_int16_t=" long long" 9785 rxvt_cv_int16_t=" long long"
13984 else 9786 else
13985 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9787 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
13986 fi 9788 fi
13987 fi 9789 fi
14047 rxvt_cv_uint16_t=yes 9849 rxvt_cv_uint16_t=yes
14048else 9850else
14049 echo "$as_me: failed program was:" >&5 9851 echo "$as_me: failed program was:" >&5
14050sed 's/^/| /' conftest.$ac_ext >&5 9852sed 's/^/| /' conftest.$ac_ext >&5
14051 9853
14052if test $ac_cv_sizeof_char -ge 2; then 9854if test "$ac_cv_sizeof_char" -ge 2; then
14053 rxvt_cv_uint16_t="unsigned char" 9855 rxvt_cv_uint16_t="unsigned char"
14054else 9856else
14055 if test $ac_cv_sizeof_short -ge 2; then 9857 if test "$ac_cv_sizeof_short" -ge 2; then
14056 rxvt_cv_uint16_t="unsigned short" 9858 rxvt_cv_uint16_t="unsigned short"
14057 else 9859 else
14058 if test $ac_cv_sizeof_int -ge 2; then 9860 if test "$ac_cv_sizeof_int" -ge 2; then
14059 rxvt_cv_uint16_t="unsigned int" 9861 rxvt_cv_uint16_t="unsigned int"
14060 else 9862 else
14061 if test $ac_cv_sizeof_long -ge 2; then 9863 if test "$ac_cv_sizeof_long" -ge 2; then
14062 rxvt_cv_uint16_t="unsigned long" 9864 rxvt_cv_uint16_t="unsigned long"
14063 else 9865 else
14064 if test $ac_cv_sizeof_long_long -ge 2; then 9866 if test "$ac_cv_sizeof_long_long" -ge 2; then
14065 rxvt_cv_uint16_t="unsigned long long" 9867 rxvt_cv_uint16_t="unsigned long long"
14066 else 9868 else
14067 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9869 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14068 fi 9870 fi
14069 fi 9871 fi
14129 rxvt_cv_int32_t=yes 9931 rxvt_cv_int32_t=yes
14130else 9932else
14131 echo "$as_me: failed program was:" >&5 9933 echo "$as_me: failed program was:" >&5
14132sed 's/^/| /' conftest.$ac_ext >&5 9934sed 's/^/| /' conftest.$ac_ext >&5
14133 9935
14134if test $ac_cv_sizeof_char -ge 4; then 9936if test "$ac_cv_sizeof_char" -ge 4; then
14135 rxvt_cv_int32_t=" char" 9937 rxvt_cv_int32_t=" char"
14136else 9938else
14137 if test $ac_cv_sizeof_short -ge 4; then 9939 if test "$ac_cv_sizeof_short" -ge 4; then
14138 rxvt_cv_int32_t=" short" 9940 rxvt_cv_int32_t=" short"
14139 else 9941 else
14140 if test $ac_cv_sizeof_int -ge 4; then 9942 if test "$ac_cv_sizeof_int" -ge 4; then
14141 rxvt_cv_int32_t=" int" 9943 rxvt_cv_int32_t=" int"
14142 else 9944 else
14143 if test $ac_cv_sizeof_long -ge 4; then 9945 if test "$ac_cv_sizeof_long" -ge 4; then
14144 rxvt_cv_int32_t=" long" 9946 rxvt_cv_int32_t=" long"
14145 else 9947 else
14146 if test $ac_cv_sizeof_long_long -ge 4; then 9948 if test "$ac_cv_sizeof_long_long" -ge 4; then
14147 rxvt_cv_int32_t=" long long" 9949 rxvt_cv_int32_t=" long long"
14148 else 9950 else
14149 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9951 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14150 fi 9952 fi
14151 fi 9953 fi
14211 rxvt_cv_uint32_t=yes 10013 rxvt_cv_uint32_t=yes
14212else 10014else
14213 echo "$as_me: failed program was:" >&5 10015 echo "$as_me: failed program was:" >&5
14214sed 's/^/| /' conftest.$ac_ext >&5 10016sed 's/^/| /' conftest.$ac_ext >&5
14215 10017
14216if test $ac_cv_sizeof_char -ge 4; then 10018if test "$ac_cv_sizeof_char" -ge 4; then
14217 rxvt_cv_uint32_t="unsigned char" 10019 rxvt_cv_uint32_t="unsigned char"
14218else 10020else
14219 if test $ac_cv_sizeof_short -ge 4; then 10021 if test "$ac_cv_sizeof_short" -ge 4; then
14220 rxvt_cv_uint32_t="unsigned short" 10022 rxvt_cv_uint32_t="unsigned short"
14221 else 10023 else
14222 if test $ac_cv_sizeof_int -ge 4; then 10024 if test "$ac_cv_sizeof_int" -ge 4; then
14223 rxvt_cv_uint32_t="unsigned int" 10025 rxvt_cv_uint32_t="unsigned int"
14224 else 10026 else
14225 if test $ac_cv_sizeof_long -ge 4; then 10027 if test "$ac_cv_sizeof_long" -ge 4; then
14226 rxvt_cv_uint32_t="unsigned long" 10028 rxvt_cv_uint32_t="unsigned long"
14227 else 10029 else
14228 if test $ac_cv_sizeof_long_long -ge 4; then 10030 if test "$ac_cv_sizeof_long_long" -ge 4; then
14229 rxvt_cv_uint32_t="unsigned long long" 10031 rxvt_cv_uint32_t="unsigned long long"
14230 else 10032 else
14231 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 10033 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14232 fi 10034 fi
14233 fi 10035 fi
14247 else 10049 else
14248 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 10050 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14249 fi 10051 fi
14250fi 10052fi
14251 10053
14252if test $ac_cv_sizeof_int_p -eq 8; then 10054if test "$ac_cv_sizeof_int_p" -eq 8; then
14253 rxvt_intp_define="#define intp_t int64_t" 10055 rxvt_intp_define="#define intp_t int64_t"
14254 rxvt_u_intp_define="#define u_intp_t u_int64_t" 10056 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14255else 10057else
14256 if test $ac_cv_sizeof_int_p -eq 4; then 10058 if test "$ac_cv_sizeof_int_p" -eq 4; then
14257 rxvt_intp_define="#define intp_t int32_t" 10059 rxvt_intp_define="#define intp_t int32_t"
14258 rxvt_u_intp_define="#define u_intp_t u_int32_t" 10060 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14259 else 10061 else
14260 if test $ac_cv_sizeof_int_p -eq 2; then 10062 if test "$ac_cv_sizeof_int_p" -eq 2; then
14261 rxvt_intp_define="#define intp_t int16_t" 10063 rxvt_intp_define="#define intp_t int16_t"
14262 rxvt_u_intp_define="#define u_intp_t u_int16_t" 10064 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14263 else 10065 else
14264 rxvt_intp_define="#error set intp_t" 10066 rxvt_intp_define="#error set intp_t"
14265 rxvt_u_intp_define="#error set u_intp_t" 10067 rxvt_u_intp_define="#error set u_intp_t"
14359 10161
14360 10162
14361 10163
14362 10164
14363 10165
10166
14364for ac_func in \ 10167for ac_func in \
14365 atexit \ 10168 atexit \
14366 revoke \ 10169 revoke \
14367 unsetenv \ 10170 unsetenv \
14368 setutent \ 10171 setutent \
14369 seteuid \ 10172 seteuid \
14370 setreuid \ 10173 setreuid \
14371 setsid \ 10174 setsid \
14372 setpgrp \ 10175 setpgrp \
14373 setpgid \ 10176 setpgid \
14374 openpty \
14375 _getpty \ 10177 _getpty \
10178 posix_openpt \
14376 grantpt \ 10179 grantpt \
14377 unlockpt \ 10180 unlockpt \
14378 isastream \ 10181 isastream \
14379 on_exit \ 10182 on_exit \
14380 nanosleep \ 10183 nanosleep \
14381 updwtmp \ 10184 updwtmp \
10185 updwtmpx \
14382 ttyslot \ 10186 ttyslot \
14383 10187
14384do 10188do
14385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14386echo "$as_me:$LINENO: checking for $ac_func" >&5 10190echo "$as_me:$LINENO: checking for $ac_func" >&5
15066#define HAVE_UTMPX_HOST 1 10870#define HAVE_UTMPX_HOST 1
15067_ACEOF 10871_ACEOF
15068 10872
15069fi 10873fi
15070 10874
15071fi 10875echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10876echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10877if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879else
10880 cat >conftest.$ac_ext <<_ACEOF
10881/* confdefs.h. */
10882_ACEOF
10883cat confdefs.h >>conftest.$ac_ext
10884cat >>conftest.$ac_ext <<_ACEOF
10885/* end confdefs.h. */
10886#include <sys/types.h>
10887#include <utmpx.h>
10888int
10889main ()
10890{
10891struct utmpx utx; utx.ut_session;
10892 ;
10893 return 0;
10894}
10895_ACEOF
10896rm -f conftest.$ac_objext
10897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10898 (eval $ac_compile) 2>conftest.er1
10899 ac_status=$?
10900 grep -v '^ *+' conftest.er1 >conftest.err
10901 rm -f conftest.er1
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest.$ac_objext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10914 ac_status=$?
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 rxvt_cv_struct_utmpx_session=yes
10918else
10919 echo "$as_me: failed program was:" >&5
10920sed 's/^/| /' conftest.$ac_ext >&5
15072 10921
10922rxvt_cv_struct_utmpx_session=no
10923fi
10924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10925fi
10926echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10927echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10928if test x$rxvt_cv_struct_utmpx_session = xyes; then
10929
10930cat >>confdefs.h <<\_ACEOF
10931#define HAVE_UTMPX_SESSION 1
10932_ACEOF
10933
10934fi
10935
10936fi
15073 10937
15074 10938
15075echo "$as_me:$LINENO: checking for struct lastlog" >&5 10939echo "$as_me:$LINENO: checking for struct lastlog" >&5
15076echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10940echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15077if test "${rxvt_cv_struct_lastlog+set}" = set; then 10941if test "${rxvt_cv_struct_lastlog+set}" = set; then
15954#define HAVE_NL_LANGINFO 1 11818#define HAVE_NL_LANGINFO 1
15955_ACEOF 11819_ACEOF
15956 11820
15957fi 11821fi
15958 11822
15959echo "$as_me:$LINENO: checking for getpt" >&5 11823echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
15960echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11824echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
15961if test "${rxvt_cv_func_getpt+set}" = set; then 11825if test "${rxvt_can_pass_fds+set}" = set; then
15962 echo $ECHO_N "(cached) $ECHO_C" >&6 11826 echo $ECHO_N "(cached) $ECHO_C" >&6
15963else 11827else
15964 cat >conftest.$ac_ext <<_ACEOF 11828 cat >conftest.$ac_ext <<_ACEOF
15965/* confdefs.h. */ 11829/* confdefs.h. */
15966_ACEOF 11830_ACEOF
15967cat confdefs.h >>conftest.$ac_ext 11831cat confdefs.h >>conftest.$ac_ext
15968cat >>conftest.$ac_ext <<_ACEOF 11832cat >>conftest.$ac_ext <<_ACEOF
15969/* end confdefs.h. */ 11833/* end confdefs.h. */
15970#define _GNU_SOURCE 11834
15971#ifdef HAVE_STDLIB_H 11835#include <sys/types.h>
15972# include <cstdlib> 11836#include <sys/socket.h>
15973#endif 11837
15974int 11838int
15975main () 11839main ()
15976{ 11840{
15977(void)getpt(); 11841
11842{
11843 msghdr msg;
11844 iovec iov;
11845 char buf [100];
11846 char data = 0;
11847
11848 iov.iov_base = &data;
11849 iov.iov_len = 1;
11850
11851 msg.msg_iov = &iov;
11852 msg.msg_iovlen = 1;
11853 msg.msg_control = buf;
11854 msg.msg_controllen = sizeof buf;
11855
11856 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11857 cmsg->cmsg_level = SOL_SOCKET;
11858 cmsg->cmsg_type = SCM_RIGHTS;
11859 cmsg->cmsg_len = 100;
11860
11861 *(int *)CMSG_DATA (cmsg) = 5;
11862
11863 return sendmsg (3, &msg, 0);
11864}
11865
15978 ; 11866 ;
15979 return 0; 11867 return 0;
15980} 11868}
15981_ACEOF 11869_ACEOF
15982rm -f conftest.$ac_objext conftest$ac_exeext 11870rm -f conftest.$ac_objext conftest$ac_exeext
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5 11887 (eval $ac_try) 2>&5
16000 ac_status=$? 11888 ac_status=$?
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; }; then 11890 (exit $ac_status); }; }; then
16003 rxvt_cv_func_getpt=yes 11891 rxvt_can_pass_fds=yes
16004else 11892else
16005 echo "$as_me: failed program was:" >&5 11893 echo "$as_me: failed program was:" >&5
16006sed 's/^/| /' conftest.$ac_ext >&5 11894sed 's/^/| /' conftest.$ac_ext >&5
16007 11895
16008rxvt_cv_func_getpt=no 11896rxvt_can_pass_fds=no
16009fi 11897fi
16010rm -f conftest.err conftest.$ac_objext \ 11898rm -f conftest.err conftest.$ac_objext \
16011 conftest$ac_exeext conftest.$ac_ext 11899 conftest$ac_exeext conftest.$ac_ext
16012fi 11900fi
16013echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 11901echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
16014echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 11902echo "${ECHO_T}$rxvt_can_pass_fds" >&6
16015if test x$rxvt_cv_func_getpt = xyes; then 11903if test x$rxvt_can_pass_fds = xyes; then
16016 11904
16017cat >>confdefs.h <<\_ACEOF 11905cat >>confdefs.h <<\_ACEOF
16018#define HAVE_GETPT 1 11906#define HAVE_UNIX_FDPASS 1
16019_ACEOF 11907_ACEOF
11908
11909fi
11910
11911echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11912echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11913if test "${rxvt_broken_ximcb+set}" = set; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11915else
11916 cat >conftest.$ac_ext <<_ACEOF
11917
11918#include <X11/Xlib.h>
11919
11920void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11921
11922void f() {
11923 XIMCallback cb;
11924 cb.callback = im_destroy_cb;
11925}
11926
11927_ACEOF
11928rm -f conftest.$ac_objext
11929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11930 (eval $ac_compile) 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; } &&
11943 { ac_try='test -s conftest.$ac_objext'
11944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11945 (eval $ac_try) 2>&5
11946 ac_status=$?
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); }; }; then
11949 rxvt_broken_ximcb=yes
11950else
11951 echo "$as_me: failed program was:" >&5
11952sed 's/^/| /' conftest.$ac_ext >&5
11953
11954rxvt_broken_ximcb=no
11955fi
11956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11957fi
11958echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11959echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11960
11961if test x$rxvt_broken_ximcb = xyes; then
11962
11963cat >>confdefs.h <<\_ACEOF
11964#define XIMCB_PROTO_BROKEN 1
11965_ACEOF
11966
11967fi
11968
11969if test x$ac_cv_func_posix_openpt = xno; then
11970 echo "$as_me:$LINENO: checking for openpty" >&5
11971echo $ECHO_N "checking for openpty... $ECHO_C" >&6
11972if test "${ac_cv_func_openpty+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974else
11975 cat >conftest.$ac_ext <<_ACEOF
11976/* confdefs.h. */
11977_ACEOF
11978cat confdefs.h >>conftest.$ac_ext
11979cat >>conftest.$ac_ext <<_ACEOF
11980/* end confdefs.h. */
11981/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
11982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11983#define openpty innocuous_openpty
11984
11985/* System header to define __stub macros and hopefully few prototypes,
11986 which can conflict with char openpty (); below.
11987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11988 <limits.h> exists even on freestanding compilers. */
11989
11990#ifdef __STDC__
11991# include <limits.h>
11992#else
11993# include <assert.h>
11994#endif
11995
11996#undef openpty
11997
11998/* Override any gcc2 internal prototype to avoid an error. */
11999#ifdef __cplusplus
12000extern "C"
12001{
12002#endif
12003/* We use char because int might match the return type of a gcc2
12004 builtin and then its argument prototype would still apply. */
12005char openpty ();
12006/* The GNU C library defines this for functions which it implements
12007 to always fail with ENOSYS. Some functions are actually named
12008 something starting with __ and the normal name is an alias. */
12009#if defined (__stub_openpty) || defined (__stub___openpty)
12010choke me
12011#else
12012char (*f) () = openpty;
12013#endif
12014#ifdef __cplusplus
12015}
12016#endif
12017
12018int
12019main ()
12020{
12021return f != openpty;
12022 ;
12023 return 0;
12024}
12025_ACEOF
12026rm -f conftest.$ac_objext conftest$ac_exeext
12027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028 (eval $ac_link) 2>conftest.er1
12029 ac_status=$?
12030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); } &&
12035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037 (eval $ac_try) 2>&5
12038 ac_status=$?
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; } &&
12041 { ac_try='test -s conftest$ac_exeext'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12044 ac_status=$?
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; }; then
12047 ac_cv_func_openpty=yes
12048else
12049 echo "$as_me: failed program was:" >&5
12050sed 's/^/| /' conftest.$ac_ext >&5
12051
12052ac_cv_func_openpty=no
12053fi
12054rm -f conftest.err conftest.$ac_objext \
12055 conftest$ac_exeext conftest.$ac_ext
12056fi
12057echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5
12058echo "${ECHO_T}$ac_cv_func_openpty" >&6
12059if test $ac_cv_func_openpty = yes; then
12060 :
12061else
12062 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12063echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12064if test "${ac_cv_lib_util_openpty+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066else
12067 ac_check_lib_save_LIBS=$LIBS
12068LIBS="-lutil $LIBS"
12069cat >conftest.$ac_ext <<_ACEOF
12070/* confdefs.h. */
12071_ACEOF
12072cat confdefs.h >>conftest.$ac_ext
12073cat >>conftest.$ac_ext <<_ACEOF
12074/* end confdefs.h. */
12075
12076/* Override any gcc2 internal prototype to avoid an error. */
12077#ifdef __cplusplus
12078extern "C"
12079#endif
12080/* We use char because int might match the return type of a gcc2
12081 builtin and then its argument prototype would still apply. */
12082char openpty ();
12083int
12084main ()
12085{
12086openpty ();
12087 ;
12088 return 0;
12089}
12090_ACEOF
12091rm -f conftest.$ac_objext conftest$ac_exeext
12092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12093 (eval $ac_link) 2>conftest.er1
12094 ac_status=$?
12095 grep -v '^ *+' conftest.er1 >conftest.err
12096 rm -f conftest.er1
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12102 (eval $ac_try) 2>&5
12103 ac_status=$?
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); }; } &&
12106 { ac_try='test -s conftest$ac_exeext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12109 ac_status=$?
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_lib_util_openpty=yes
12113else
12114 echo "$as_me: failed program was:" >&5
12115sed 's/^/| /' conftest.$ac_ext >&5
12116
12117ac_cv_lib_util_openpty=no
12118fi
12119rm -f conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext conftest.$ac_ext
12121LIBS=$ac_check_lib_save_LIBS
12122fi
12123echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12124echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
12125if test $ac_cv_lib_util_openpty = yes; then
12126 LIBS="$LIBS -lutil"
12127fi
12128
12129fi
16020 12130
16021fi 12131fi
16022 12132
16023echo "$as_me:$LINENO: checking for pty/tty type" >&5 12133echo "$as_me:$LINENO: checking for pty/tty type" >&5
16024echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 12134echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6
16025if test "${rxvt_cv_ptys+set}" = set; then 12135if test "${rxvt_cv_ptys+set}" = set; then
16026 echo $ECHO_N "(cached) $ECHO_C" >&6 12136 echo $ECHO_N "(cached) $ECHO_C" >&6
16027else 12137else
16028 if test x$ac_cv_func_openpty = xyes; then 12138 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then
16029 rxvt_cv_ptys=OPENPTY 12139 rxvt_cv_ptys=OPENPTY
12140 else if test x$ac_cv_func_posix_openpt = xyes; then
12141 rxvt_cv_ptys=POSIX
16030 else if test x$ac_cv_func__getpty = xyes; then 12142 else if test x$ac_cv_func__getpty = xyes; then
16031 rxvt_cv_ptys=SGI4 12143 rxvt_cv_ptys=SGI4
16032 else if test -c /dev/ttyp20; then 12144 else if test -c /dev/ttyp20; then
16033 rxvt_cv_ptys=SCO 12145 rxvt_cv_ptys=SCO
16034 else if test -c /dev/ptym/clone; then 12146 else if test -c /dev/ptym/clone; then
16035 rxvt_cv_ptys=HPUX 12147 rxvt_cv_ptys=HPUX
16036 else if test x$rxvt_cv_func_getpt = xyes; then
16037 rxvt_cv_ptys=GLIBC
16038 else if test -c /dev/ptc -a -c /dev/pts; then 12148 else if test -c /dev/ptc -a -c /dev/pts; then
16039 rxvt_cv_ptys=PTC 12149 rxvt_cv_ptys=PTC
16040 else if test -c /dev/ptc -a -d /dev/pts; then 12150 else if test -c /dev/ptc -a -d /dev/pts; then
16041 rxvt_cv_ptys=PTC 12151 rxvt_cv_ptys=PTC
16042 else if test -c /dev/ptmx -a -c /dev/pts/0; then 12152 else if test -c /dev/ptmx -a -c /dev/pts/0; then
16057 12167
16058fi 12168fi
16059echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 12169echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
16060echo "${ECHO_T}$rxvt_cv_ptys" >&6 12170echo "${ECHO_T}$rxvt_cv_ptys" >&6
16061 12171
12172if test x$rxvt_cv_ptys = xPOSIX; then
12173
12174cat >>confdefs.h <<\_ACEOF
12175#define PTYS_ARE_POSIX 1
12176_ACEOF
12177
12178fi
16062if test x$rxvt_cv_ptys = xOPENPTY; then 12179if test x$rxvt_cv_ptys = xOPENPTY; then
16063 12180
16064cat >>confdefs.h <<\_ACEOF 12181cat >>confdefs.h <<\_ACEOF
16065#define PTYS_ARE_OPENPTY 1 12182#define PTYS_ARE_OPENPTY 1
16066_ACEOF 12183_ACEOF
16092cat >>confdefs.h <<\_ACEOF 12209cat >>confdefs.h <<\_ACEOF
16093#define PTYS_ARE__GETPTY 1 12210#define PTYS_ARE__GETPTY 1
16094_ACEOF 12211_ACEOF
16095 12212
16096fi 12213fi
16097if test x$rxvt_cv_ptys = xCONVEX; then
16098
16099cat >>confdefs.h <<\_ACEOF
16100#define PTYS_ARE_GETPTY 1
16101_ACEOF
16102
16103fi
16104if test x$rxvt_cv_ptys = xGLIBC; then
16105
16106cat >>confdefs.h <<\_ACEOF
16107#define PTYS_ARE_GETPT 1
16108_ACEOF
16109
16110fi
16111if test x$rxvt_cv_ptys = xHPUX; then 12214if test x$rxvt_cv_ptys = xHPUX; then
16112 12215
16113cat >>confdefs.h <<\_ACEOF 12216cat >>confdefs.h <<\_ACEOF
16114#define PTYS_ARE_CLONE 1 12217#define PTYS_ARE_CLONE 1
16115_ACEOF 12218_ACEOF
16116 12219
16117fi 12220fi
16118if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then 12221if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
16119 12222
16120cat >>confdefs.h <<\_ACEOF 12223cat >>confdefs.h <<\_ACEOF
16121#define PTYS_ARE_SEARCHED 1 12224#define PTYS_ARE_SEARCHED 1
16122_ACEOF 12225_ACEOF
16123 12226
16142#define PTYCHAR2 "$pch2" 12245#define PTYCHAR2 "$pch2"
16143_ACEOF 12246_ACEOF
16144 12247
16145fi 12248fi
16146 12249
16147echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16148echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16149if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16150 echo $ECHO_N "(cached) $ECHO_C" >&6
16151else
16152 ac_check_lib_save_LIBS=$LIBS
16153LIBS="-lxpg4 $LIBS"
16154cat >conftest.$ac_ext <<_ACEOF
16155/* confdefs.h. */
16156_ACEOF
16157cat confdefs.h >>conftest.$ac_ext
16158cat >>conftest.$ac_ext <<_ACEOF
16159/* end confdefs.h. */
16160
16161/* Override any gcc2 internal prototype to avoid an error. */
16162#ifdef __cplusplus
16163extern "C"
16164#endif
16165/* We use char because int might match the return type of a gcc2
16166 builtin and then its argument prototype would still apply. */
16167char setlocale ();
16168int
16169main ()
16170{
16171setlocale ();
16172 ;
16173 return 0;
16174}
16175_ACEOF
16176rm -f conftest.$ac_objext conftest$ac_exeext
16177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16178 (eval $ac_link) 2>conftest.er1
16179 ac_status=$?
16180 grep -v '^ *+' conftest.er1 >conftest.err
16181 rm -f conftest.er1
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; } &&
16191 { ac_try='test -s conftest$ac_exeext'
16192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16193 (eval $ac_try) 2>&5
16194 ac_status=$?
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); }; }; then
16197 ac_cv_lib_xpg4_setlocale=yes
16198else
16199 echo "$as_me: failed program was:" >&5
16200sed 's/^/| /' conftest.$ac_ext >&5
16201
16202ac_cv_lib_xpg4_setlocale=no
16203fi
16204rm -f conftest.err conftest.$ac_objext \
16205 conftest$ac_exeext conftest.$ac_ext
16206LIBS=$ac_check_lib_save_LIBS
16207fi
16208echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16209echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16210if test $ac_cv_lib_xpg4_setlocale = yes; then
16211 LIBS="$LIBS -lxpg4"
16212fi
16213
16214
16215if test x$support_inheritpixmap = xyes; then
16216
16217cat >>confdefs.h <<\_ACEOF
16218#define TRANSPARENT 1
16219_ACEOF
16220
16221fi
16222if test x$support_keepscrolling = xno; then
16223
16224cat >>confdefs.h <<\_ACEOF
16225#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16226_ACEOF
16227
16228fi
16229if test x$support_selectionscrolling = xyes; then
16230
16231cat >>confdefs.h <<\_ACEOF
16232#define SELECTION_SCROLLING 1
16233_ACEOF
16234
16235fi
16236if test x$support_menubar = xyes; then
16237
16238cat >>confdefs.h <<\_ACEOF
16239#define MENUBAR 1
16240_ACEOF
16241
16242fi
16243if test x$support_frills = xno; then
16244
16245cat >>confdefs.h <<\_ACEOF
16246#define NO_FRILLS 1
16247_ACEOF
16248
16249fi
16250if test x$support_linespace = xno; then
16251
16252cat >>confdefs.h <<\_ACEOF
16253#define NO_LINESPACE 1
16254_ACEOF
16255
16256fi
16257if test x$support_24bit = xyes; then
16258
16259cat >>confdefs.h <<\_ACEOF
16260#define PREFER_24BIT 1
16261_ACEOF
16262
16263fi
16264if test x$support_mousewheel = xyes; then
16265
16266cat >>confdefs.h <<\_ACEOF
16267#define MOUSE_WHEEL 1
16268_ACEOF
16269
16270fi
16271if test x$support_mouseslipwheel = xyes; then
16272
16273cat >>confdefs.h <<\_ACEOF
16274#define MOUSE_SLIP_WHEELING 1
16275_ACEOF
16276
16277fi
16278if test x$support_utmp = xyes; then
16279
16280cat >>confdefs.h <<\_ACEOF
16281#define UTMP_SUPPORT 1
16282_ACEOF
16283
16284fi
16285if test x$support_wtmp = xyes; then
16286
16287cat >>confdefs.h <<\_ACEOF
16288#define WTMP_SUPPORT 1
16289_ACEOF
16290
16291fi
16292if test x$support_lastlog = xyes; then
16293
16294cat >>confdefs.h <<\_ACEOF
16295#define LASTLOG_SUPPORT 1
16296_ACEOF
16297
16298fi
16299if test x$support_xim = xyes -o x$multichar_set = xyes; then
16300 if test x$rxvt_cv_func_xlocale = xyes; then
16301
16302cat >>confdefs.h <<\_ACEOF
16303#define USE_XIM 1
16304_ACEOF
16305
16306 fi
16307fi
16308if test x$support_xpm = xyes; then
16309
16310cat >>confdefs.h <<\_ACEOF
16311#define XPM_BACKGROUND 1
16312_ACEOF
16313
16314fi
16315if test x$support_scroll_rxvt = xyes; then
16316
16317cat >>confdefs.h <<\_ACEOF
16318#define RXVT_SCROLLBAR 1
16319_ACEOF
16320
16321 scrolltypes="rxvt"
16322fi
16323if test x$support_scroll_next = xyes; then
16324
16325cat >>confdefs.h <<\_ACEOF
16326#define NEXT_SCROLLBAR 1
16327_ACEOF
16328
16329 scrolltypes="$scrolltypes next"
16330fi
16331if test x$support_scroll_xterm = xyes; then
16332
16333cat >>confdefs.h <<\_ACEOF
16334#define XTERM_SCROLLBAR 1
16335_ACEOF
16336
16337 scrolltypes="$scrolltypes xterm"
16338fi
16339if test x$support_scroll_plain = xyes; then
16340
16341cat >>confdefs.h <<\_ACEOF
16342#define PLAIN_SCROLLBAR 1
16343_ACEOF
16344
16345 scrolltypes="$scrolltypes plain"
16346fi
16347if test x$support_pointer_blank = xyes; then
16348
16349cat >>confdefs.h <<\_ACEOF
16350#define POINTER_BLANK 1
16351_ACEOF
16352
16353fi
16354if test x$support_cursor_blink = xyes; then
16355
16356cat >>confdefs.h <<\_ACEOF
16357#define CURSOR_BLINK 1
16358_ACEOF
16359
16360fi
16361if test x$support_text_blink = xyes; then
16362
16363cat >>confdefs.h <<\_ACEOF
16364#define TEXT_BLINK 1
16365_ACEOF
16366
16367fi
16368if test x$support_unicode3 = xyes; then
16369
16370cat >>confdefs.h <<\_ACEOF
16371#define UNICODE_3 1
16372_ACEOF
16373
16374fi
16375if test x$support_combining = xyes; then
16376
16377cat >>confdefs.h <<\_ACEOF
16378#define ENABLE_COMBINING 1
16379_ACEOF
16380
16381fi
16382if test x$codesets = xall; then
16383 codesets=jp,jp-ext,kr,cn,cn-ext
16384fi
16385for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16386
16387cat >>confdefs.h <<\_ACEOF
16388#define ENCODING_EU 1
16389_ACEOF
16390
16391
16392cat >>confdefs.h <<\_ACEOF
16393#define ENCODING_VN 1
16394_ACEOF
16395
16396 case "$codeset" in
16397 JP )
16398cat >>confdefs.h <<\_ACEOF
16399#define ENCODING_JP 1
16400_ACEOF
16401 ;;
16402 JP_EXT )
16403cat >>confdefs.h <<\_ACEOF
16404#define ENCODING_JP_EXT 1
16405_ACEOF
16406 ;;
16407 KR )
16408cat >>confdefs.h <<\_ACEOF
16409#define ENCODING_KR 1
16410_ACEOF
16411 ;;
16412 CN )
16413cat >>confdefs.h <<\_ACEOF
16414#define ENCODING_CN 1
16415_ACEOF
16416 ;;
16417 CN_EXT )
16418cat >>confdefs.h <<\_ACEOF
16419#define ENCODING_CN_EXT 1
16420_ACEOF
16421 ;;
16422 esac
16423done
16424
16425
16426CFLAGS=${CFLAGS--O}
16427LDFLAGS=${LDFLAGS--O}
16428
16429CPPFLAGS="$CPPFLAGS"
16430
16431
16432
16433
16434
16435
16436
16437if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16438 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16439 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16440 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16441 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16442 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16443fi
16444
16445
16446
16447
16448
16449if test x$support_addstrings = xno; then
16450
16451cat >>confdefs.h <<\_ACEOF
16452#define NO_STRINGS 1
16453_ACEOF
16454
16455fi
16456
16457MCOMMON=./autoconf/Make.common
16458
16459
16460test "$program_prefix" != NONE &&
16461 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16462# Use a double $ so make ignores it.
16463test "$program_suffix" != NONE &&
16464 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16465# Double any \ or $. echo might interpret backslashes.
16466# By default was `s,x,x', remove it if useless.
16467cat <<\_ACEOF >conftest.sed
16468s/[\\$]/&&/g;s/;s,x,x,$//
16469_ACEOF
16470program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16471rm conftest.sed
16472
16473
16474
16475
16476
16477if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16478 include_stdint_h="#include <stdint.h>"
16479else
16480 include_stdint_h="/* #include <stdint.h> */"
16481fi
16482if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16483 include_stdarg_h="#include <cstdarg>"
16484else
16485 include_stdarg_h="/* #include <cstdarg> */"
16486fi
16487if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16488 include_stdlib_h="#include <cstdlib>"
16489else
16490 include_stdlib_h="/* #include <cstdlib> */"
16491fi
16492if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16493 include_unistd_h="#include <unistd.h>"
16494else
16495 include_unistd_h="/* #include <unistd.h> */"
16496fi
16497if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16498 include_string_h="#include <cstring>"
16499else
16500 include_string_h="/* #include <cstring> */"
16501fi
16502if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16503 include_fcntl_h="#include <fcntl.h>"
16504else
16505 include_fcntl_h="/* #include <fcntl.h> */"
16506fi
16507if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16508 include_util_h="#include <util.h>"
16509else
16510 include_util_h="/* #include <util.h> */"
16511fi
16512if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16513 include_assert_h="#include <assert.h>"
16514else
16515 include_assert_h="/* #include <assert.h> */"
16516fi
16517if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16518 include_sys_ioctl_h="#include <sys/ioctl.h>"
16519else
16520 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16521fi
16522if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16523 include_sys_select_h="#include <sys/select.h>"
16524else
16525 include_sys_select_h="/* #include <sys/select.h> */"
16526fi
16527if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16528 include_sys_strredir_h="#include <sys/strredir.h>"
16529else
16530 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16531fi
16532if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16533 include_sys_time_h="#include <sys/time.h>"
16534else
16535 include_sys_time_h="/* #include <sys/time.h> */"
16536fi
16537if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16538 include_time_h="#include <time.h>"
16539else
16540 include_time_h="/* #include <time.h> */"
16541fi
16542
16543if test x$support_xft = xyes; then 12250if test x$support_xft = xyes; then
16544 LIBS="$LIBS `pkg-config xft --libs`" 12251 LIBS="$LIBS `pkg-config xft --libs`"
16545 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16546 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" 12252 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
16547 12253
16548 12254
16549for ac_header in X11/Xft/Xft.h 12255for ac_header in X11/Xft/Xft.h
16550do 12256do
16778#define XFT 1 12484#define XFT 1
16779_ACEOF 12485_ACEOF
16780 12486
16781 fi 12487 fi
16782fi 12488fi
12489if test x$support_styles = xyes; then
16783 12490
12491cat >>confdefs.h <<\_ACEOF
12492#define ENABLE_STYLES 1
12493_ACEOF
12494
12495fi
12496if test x$support_iso14755 = xyes; then
12497
12498cat >>confdefs.h <<\_ACEOF
12499#define ISO_14755 1
12500_ACEOF
12501
12502fi
12503if test x$support_8bitctrls = xyes; then
12504
12505cat >>confdefs.h <<\_ACEOF
12506#define EIGHT_BIT_CONTROLS 1
12507_ACEOF
12508
12509fi
12510if test x$support_fading = xyes; then
12511
12512cat >>confdefs.h <<\_ACEOF
12513#define OFF_FOCUS_FADING 1
12514_ACEOF
12515
12516fi
12517if test x$support_tinting = xyes; then
12518
12519cat >>confdefs.h <<\_ACEOF
12520#define TINTING 1
12521_ACEOF
12522
12523fi
12524if test x$support_inheritpixmap = xyes; then
12525
12526cat >>confdefs.h <<\_ACEOF
12527#define TRANSPARENT 1
12528_ACEOF
12529
12530fi
12531if test x$support_keepscrolling = xno; then
12532
12533cat >>confdefs.h <<\_ACEOF
12534#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12535_ACEOF
12536
12537fi
12538if test x$support_selectionscrolling = xyes; then
12539
12540cat >>confdefs.h <<\_ACEOF
12541#define SELECTION_SCROLLING 1
12542_ACEOF
12543
12544fi
12545if test x$support_frills = xyes; then
12546
12547cat >>confdefs.h <<\_ACEOF
12548#define ENABLE_FRILLS 1
12549_ACEOF
12550
12551fi
12552if test x$support_24bit = xyes; then
12553
12554cat >>confdefs.h <<\_ACEOF
12555#define PREFER_24BIT 1
12556_ACEOF
12557
12558fi
12559if test x$support_mousewheel = xyes; then
12560
12561cat >>confdefs.h <<\_ACEOF
12562#define MOUSE_WHEEL 1
12563_ACEOF
12564
12565fi
12566if test x$support_mouseslipwheel = xyes; then
12567
12568cat >>confdefs.h <<\_ACEOF
12569#define MOUSE_SLIP_WHEELING 1
12570_ACEOF
12571
12572fi
12573if test x$support_utmp = xyes; then
12574
12575cat >>confdefs.h <<\_ACEOF
12576#define UTMP_SUPPORT 1
12577_ACEOF
12578
12579fi
12580if test x$support_wtmp = xyes; then
12581
12582cat >>confdefs.h <<\_ACEOF
12583#define WTMP_SUPPORT 1
12584_ACEOF
12585
12586fi
12587if test x$support_lastlog = xyes; then
12588
12589cat >>confdefs.h <<\_ACEOF
12590#define LASTLOG_SUPPORT 1
12591_ACEOF
12592
12593fi
12594if test x$support_xim = xyes -o x$multichar_set = xyes; then
12595 if test x$rxvt_cv_func_xlocale = xyes; then
12596
12597cat >>confdefs.h <<\_ACEOF
12598#define USE_XIM 1
12599_ACEOF
12600
12601 fi
12602fi
12603if test x$support_xpm = xyes; then
12604
12605cat >>confdefs.h <<\_ACEOF
12606#define XPM_BACKGROUND 1
12607_ACEOF
12608
12609fi
12610if test x$support_scroll_rxvt = xyes; then
12611
12612cat >>confdefs.h <<\_ACEOF
12613#define RXVT_SCROLLBAR 1
12614_ACEOF
12615
12616 scrolltypes="rxvt"
12617fi
12618if test x$support_scroll_next = xyes; then
12619
12620cat >>confdefs.h <<\_ACEOF
12621#define NEXT_SCROLLBAR 1
12622_ACEOF
12623
12624 scrolltypes="$scrolltypes next"
12625fi
12626if test x$support_scroll_xterm = xyes; then
12627
12628cat >>confdefs.h <<\_ACEOF
12629#define XTERM_SCROLLBAR 1
12630_ACEOF
12631
12632 scrolltypes="$scrolltypes xterm"
12633fi
12634if test x$support_scroll_plain = xyes; then
12635
12636cat >>confdefs.h <<\_ACEOF
12637#define PLAIN_SCROLLBAR 1
12638_ACEOF
12639
12640 scrolltypes="$scrolltypes plain"
12641fi
12642if test x$support_pointer_blank = xyes; then
12643
12644cat >>confdefs.h <<\_ACEOF
12645#define POINTER_BLANK 1
12646_ACEOF
12647
12648fi
12649if test x$support_text_blink = xyes; then
12650
12651cat >>confdefs.h <<\_ACEOF
12652#define TEXT_BLINK 1
12653_ACEOF
12654
12655fi
12656if test x$support_unicode3 = xyes; then
12657
12658cat >>confdefs.h <<\_ACEOF
12659#define UNICODE_3 1
12660_ACEOF
12661
12662fi
12663if test x$support_combining = xyes; then
12664
12665cat >>confdefs.h <<\_ACEOF
12666#define ENABLE_COMBINING 1
12667_ACEOF
12668
12669fi
12670if test x$codesets = xall; then
12671 codesets=jp,jp-ext,kr,zh,zh-ext
12672fi
12673
12674cat >>confdefs.h <<\_ACEOF
12675#define ENCODING_EU 1
12676_ACEOF
12677
12678
12679cat >>confdefs.h <<\_ACEOF
12680#define ENCODING_VN 1
12681_ACEOF
12682
12683for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12684 case "$codeset" in
12685 JP )
12686cat >>confdefs.h <<\_ACEOF
12687#define ENCODING_JP 1
12688_ACEOF
12689 ;;
12690 JP_EXT )
12691cat >>confdefs.h <<\_ACEOF
12692#define ENCODING_JP_EXT 1
12693_ACEOF
12694 ;;
12695 KR )
12696cat >>confdefs.h <<\_ACEOF
12697#define ENCODING_KR 1
12698_ACEOF
12699 ;;
12700 ZH )
12701cat >>confdefs.h <<\_ACEOF
12702#define ENCODING_ZH 1
12703_ACEOF
12704 ;;
12705 ZH_EXT )
12706cat >>confdefs.h <<\_ACEOF
12707#define ENCODING_ZH_EXT 1
12708_ACEOF
12709 ;;
12710 esac
12711done
12712
12713IF_PERL=\#
12714if test x$support_perl = xyes; then
12715 # Extract the first word of "perl5", so it can be a program name with args.
12716set dummy perl5; ac_word=$2
12717echo "$as_me:$LINENO: checking for $ac_word" >&5
12718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12719if test "${ac_cv_path_PERL+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12721else
12722 case $PERL in
12723 [\\/]* | ?:[\\/]*)
12724 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12725 ;;
12726 *)
12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728for as_dir in $PATH
12729do
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12734 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 break 2
12737 fi
12738done
12739done
12740
12741 ;;
12742esac
12743fi
12744PERL=$ac_cv_path_PERL
12745
12746if test -n "$PERL"; then
12747 echo "$as_me:$LINENO: result: $PERL" >&5
12748echo "${ECHO_T}$PERL" >&6
12749else
12750 echo "$as_me:$LINENO: result: no" >&5
12751echo "${ECHO_T}no" >&6
12752fi
12753
12754 # Extract the first word of "perl", so it can be a program name with args.
12755set dummy perl; ac_word=$2
12756echo "$as_me:$LINENO: checking for $ac_word" >&5
12757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12758if test "${ac_cv_path_PERL+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12760else
12761 case $PERL in
12762 [\\/]* | ?:[\\/]*)
12763 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12764 ;;
12765 *)
12766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767for as_dir in $PATH
12768do
12769 IFS=$as_save_IFS
12770 test -z "$as_dir" && as_dir=.
12771 for ac_exec_ext in '' $ac_executable_extensions; do
12772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12773 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12775 break 2
12776 fi
12777done
12778done
12779
12780 ;;
12781esac
12782fi
12783PERL=$ac_cv_path_PERL
12784
12785if test -n "$PERL"; then
12786 echo "$as_me:$LINENO: result: $PERL" >&5
12787echo "${ECHO_T}$PERL" >&6
12788else
12789 echo "$as_me:$LINENO: result: no" >&5
12790echo "${ECHO_T}no" >&6
12791fi
12792
12793
12794 echo "$as_me:$LINENO: checking for $PERL suitability" >&5
12795echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6
12796 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
12797
12798 save_CXXFLAGS="$CXXFLAGS"
12799 save_LIBS="$LIBS"
12800 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
12801 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
12802 cat >conftest.$ac_ext <<_ACEOF
12803/* confdefs.h. */
12804_ACEOF
12805cat confdefs.h >>conftest.$ac_ext
12806cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h. */
12808
12809#include <EXTERN.h>
12810#include <perl.h>
12811#include <XSUB.h>
12812
12813int
12814main ()
12815{
12816
12817 PerlInterpreter *perl = perl_alloc ();
12818
12819 ;
12820 return 0;
12821}
12822_ACEOF
12823rm -f conftest.$ac_objext conftest$ac_exeext
12824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12825 (eval $ac_link) 2>conftest.er1
12826 ac_status=$?
12827 grep -v '^ *+' conftest.er1 >conftest.err
12828 rm -f conftest.er1
12829 cat conftest.err >&5
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } &&
12832 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; } &&
12838 { ac_try='test -s conftest$ac_exeext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
12844 rxvt_perl_link=yes
12845else
12846 echo "$as_me: failed program was:" >&5
12847sed 's/^/| /' conftest.$ac_ext >&5
12848
12849rxvt_perl_link=no
12850fi
12851rm -f conftest.err conftest.$ac_objext \
12852 conftest$ac_exeext conftest.$ac_ext
12853 CXXFLAGS="$save_CXXFLAGS"
12854 LIBS="$save_LIBS"
12855
12856 if test x$rxvt_perl_link = xyes; then
12857 echo "$as_me:$LINENO: result: ok" >&5
12858echo "${ECHO_T}ok" >&6
12859
12860cat >>confdefs.h <<\_ACEOF
12861#define ENABLE_PERL 1
12862_ACEOF
12863
12864 IF_PERL=
12865 PERL_O=rxvtperl.o
12866 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12867 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12868 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12869 else
12870 support_perl=no
12871 echo "$as_me:$LINENO: result: no, unable to link" >&5
12872echo "${ECHO_T}no, unable to link" >&6
12873 fi
12874 else
12875 { { echo "$as_me:$LINENO: error: no working perl found" >&5
12876echo "$as_me: error: no working perl found" >&2;}
12877 { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; }
12878 support_perl=no
12879 fi
12880fi
12881
12882
12883
12884
12885
12886
12887
12888if test x$support_perl = xyes; then
12889 support_frills=yes
12890fi
12891
12892
12893CFLAGS=${CFLAGS--O}
12894LDFLAGS=${LDFLAGS--O}
12895
12896CPPFLAGS="$CPPFLAGS"
12897
12898
12899
12900
12901
12902
12903
12904if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12905 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12906 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12907 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12908 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12909 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12910fi
12911
12912
12913
12914
12915
12916MCOMMON=./autoconf/Make.common
12917
12918
12919test "$program_prefix" != NONE &&
12920 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12921# Use a double $ so make ignores it.
12922test "$program_suffix" != NONE &&
12923 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12924# Double any \ or $. echo might interpret backslashes.
12925# By default was `s,x,x', remove it if useless.
12926cat <<\_ACEOF >conftest.sed
12927s/[\\$]/&&/g;s/;s,x,x,$//
12928_ACEOF
12929program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12930rm conftest.sed
12931
12932
12933
12934
12935
12936if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12937 include_stdint_h="#include <stdint.h>"
12938else
12939 include_stdint_h="/* #include <stdint.h> */"
12940fi
12941if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12942 include_stdarg_h="#include <cstdarg>"
12943else
12944 include_stdarg_h="/* #include <cstdarg> */"
12945fi
12946if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12947 include_stdlib_h="#include <cstdlib>"
12948else
12949 include_stdlib_h="/* #include <cstdlib> */"
12950fi
12951if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12952 include_unistd_h="#include <unistd.h>"
12953else
12954 include_unistd_h="/* #include <unistd.h> */"
12955fi
12956if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12957 include_string_h="#include <cstring>"
12958else
12959 include_string_h="/* #include <cstring> */"
12960fi
12961if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12962 include_fcntl_h="#include <fcntl.h>"
12963else
12964 include_fcntl_h="/* #include <fcntl.h> */"
12965fi
12966if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12967 include_util_h="#include <util.h>"
12968else
12969 include_util_h="/* #include <util.h> */"
12970fi
12971if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12972 include_assert_h="#include <assert.h>"
12973else
12974 include_assert_h="/* #include <assert.h> */"
12975fi
12976if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12977 include_sys_ioctl_h="#include <sys/ioctl.h>"
12978else
12979 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12980fi
12981if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12982 include_sys_select_h="#include <sys/select.h>"
12983else
12984 include_sys_select_h="/* #include <sys/select.h> */"
12985fi
12986if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12987 include_sys_strredir_h="#include <sys/strredir.h>"
12988else
12989 include_sys_strredir_h="/* #include <sys/strredir.h> */"
12990fi
12991if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12992 include_sys_time_h="#include <sys/time.h>"
12993else
12994 include_sys_time_h="/* #include <sys/time.h> */"
12995fi
12996if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12997 include_time_h="#include <time.h>"
12998else
12999 include_time_h="/* #include <time.h> */"
13000fi
13001
16784 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 13002 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
13003
16785cat >confcache <<\_ACEOF 13004cat >confcache <<\_ACEOF
16786# This file is a shell script that caches the results of configure 13005# This file is a shell script that caches the results of configure
16787# tests run on this system so they can be shared between configure 13006# tests run on this system so they can be shared between configure
16788# scripts and configure runs, see configure's option --config-cache. 13007# scripts and configure runs, see configure's option --config-cache.
16789# It is not useful on other systems. If it contains results you don't 13008# It is not useful on other systems. If it contains results you don't
17309 # Handling of arguments. 13528 # Handling of arguments.
17310 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; 13529 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17311 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13530 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17312 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13531 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17313 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13532 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17314 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17315 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13533 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17316 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17317 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13534 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
17318 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13535 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17319echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13536echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17320 { (exit 1); exit 1; }; };; 13537 { (exit 1); exit 1; }; };;
17321 esac 13538 esac
17397s,@DEFS@,$DEFS,;t t 13614s,@DEFS@,$DEFS,;t t
17398s,@ECHO_C@,$ECHO_C,;t t 13615s,@ECHO_C@,$ECHO_C,;t t
17399s,@ECHO_N@,$ECHO_N,;t t 13616s,@ECHO_N@,$ECHO_N,;t t
17400s,@ECHO_T@,$ECHO_T,;t t 13617s,@ECHO_T@,$ECHO_T,;t t
17401s,@LIBS@,$LIBS,;t t 13618s,@LIBS@,$LIBS,;t t
13619s,@build@,$build,;t t
13620s,@build_cpu@,$build_cpu,;t t
13621s,@build_vendor@,$build_vendor,;t t
13622s,@build_os@,$build_os,;t t
13623s,@host@,$host,;t t
13624s,@host_cpu@,$host_cpu,;t t
13625s,@host_vendor@,$host_vendor,;t t
13626s,@host_os@,$host_os,;t t
17402s,@VERSION@,$VERSION,;t t 13627s,@VERSION@,$VERSION,;t t
17403s,@DATE@,$DATE,;t t 13628s,@DATE@,$DATE,;t t
17404s,@LSMDATE@,$LSMDATE,;t t 13629s,@LSMDATE@,$LSMDATE,;t t
17405s,@LIBVERSION@,$LIBVERSION,;t t 13630s,@LIBVERSION@,$LIBVERSION,;t t
17406s,@CC@,$CC,;t t 13631s,@CC@,$CC,;t t
17419s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13644s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17420s,@AWK@,$AWK,;t t 13645s,@AWK@,$AWK,;t t
17421s,@LINKER@,$LINKER,;t t 13646s,@LINKER@,$LINKER,;t t
17422s,@CXXCPP@,$CXXCPP,;t t 13647s,@CXXCPP@,$CXXCPP,;t t
17423s,@EGREP@,$EGREP,;t t 13648s,@EGREP@,$EGREP,;t t
17424s,@build@,$build,;t t
17425s,@build_cpu@,$build_cpu,;t t
17426s,@build_vendor@,$build_vendor,;t t
17427s,@build_os@,$build_os,;t t
17428s,@host@,$host,;t t
17429s,@host_cpu@,$host_cpu,;t t
17430s,@host_vendor@,$host_vendor,;t t
17431s,@host_os@,$host_os,;t t
17432s,@LN_S@,$LN_S,;t t
17433s,@ECHO@,$ECHO,;t t
17434s,@RANLIB@,$RANLIB,;t t
17435s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17436s,@STRIP@,$STRIP,;t t
17437s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17438s,@LIBTOOL@,$LIBTOOL,;t t
17439s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 13649s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17440s,@RXVTNAME@,$RXVTNAME,;t t 13650s,@RXVTNAME@,$RXVTNAME,;t t
17441s,@MV@,$MV,;t t 13651s,@MV@,$MV,;t t
17442s,@RM@,$RM,;t t 13652s,@RM@,$RM,;t t
17443s,@CP@,$CP,;t t 13653s,@CP@,$CP,;t t
17444s,@LN@,$LN,;t t 13654s,@LN@,$LN,;t t
17445s,@SED@,$SED,;t t 13655s,@SED@,$SED,;t t
13656s,@ECHO@,$ECHO,;t t
17446s,@CMP@,$CMP,;t t 13657s,@CMP@,$CMP,;t t
17447s,@TBL@,$TBL,;t t 13658s,@TBL@,$TBL,;t t
13659s,@TIC@,$TIC,;t t
17448s,@X_CFLAGS@,$X_CFLAGS,;t t 13660s,@X_CFLAGS@,$X_CFLAGS,;t t
17449s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 13661s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17450s,@X_LIBS@,$X_LIBS,;t t 13662s,@X_LIBS@,$X_LIBS,;t t
17451s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 13663s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17452s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 13664s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
17456s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t 13668s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
17457s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t 13669s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
17458s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t 13670s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
17459s,@rxvt_intp_define@,$rxvt_intp_define,;t t 13671s,@rxvt_intp_define@,$rxvt_intp_define,;t t
17460s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t 13672s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13673s,@PERL@,$PERL,;t t
13674s,@PERLLIB@,$PERLLIB,;t t
13675s,@PERLFLAGS@,$PERLFLAGS,;t t
13676s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13677s,@IF_PERL@,$IF_PERL,;t t
13678s,@PERL_O@,$PERL_O,;t t
17461s,@DEBUG@,$DEBUG,;t t 13679s,@DEBUG@,$DEBUG,;t t
17462s,@DINCLUDE@,$DINCLUDE,;t t 13680s,@DINCLUDE@,$DINCLUDE,;t t
17463s,@DLIB@,$DLIB,;t t 13681s,@DLIB@,$DLIB,;t t
17464s,@include_stdint_h@,$include_stdint_h,;t t 13682s,@include_stdint_h@,$include_stdint_h,;t t
17465s,@include_stdarg_h@,$include_stdarg_h,;t t 13683s,@include_stdarg_h@,$include_stdarg_h,;t t
18006 utmp file: $rxvt_cv_path_utmp 14224 utmp file: $rxvt_cv_path_utmp
18007 utmpx file: $rxvt_cv_path_utmpx 14225 utmpx file: $rxvt_cv_path_utmpx
18008 wtmp file: $rxvt_cv_path_wtmp 14226 wtmp file: $rxvt_cv_path_wtmp
18009 wtmpx file: $rxvt_cv_path_wtmpx 14227 wtmpx file: $rxvt_cv_path_wtmpx
18010 lastlog file: $rxvt_cv_path_lastlog 14228 lastlog file: $rxvt_cv_path_lastlog
18011 ttys/ttytab file: $rxvt_cv_path_ttytab" 14229 ttys/ttytab file: $rxvt_cv_path_ttytab
14230 embedded perl: $support_perl"
18012 echo 14231 echo
18013fi 14232fi
18014if test x$term != x; then 14233if test x$term != x; then
18015 echo " set TERM to: $term" 14234 echo " set TERM to: $term"
18016fi 14235fi
18045 echo ". functions could not be found. ." 14264 echo ". functions could not be found. ."
18046 echo ". XIM is now being DISABLED! ." 14265 echo ". XIM is now being DISABLED! ."
18047 echo ".----------------------------------------------------------------." 14266 echo ".----------------------------------------------------------------."
18048fi 14267fi
18049 14268
18050echo " *** Please check src/feature.h for further options ***" 14269echo " *** Optionally check src/feature.h for further options ***"
18051echo 14270echo
18052 14271
18053echo ".----------------------------------------------------------------." 14272echo ".----------------------------------------------------------------."
18054echo ". NOTE: most features are disabled by default, try ." 14273echo ". NOTE: some features are disabled by default, try ."
18055echo ". configure --help to get an idea of the optional features ." 14274echo ". configure --help to get an idea of the optional features, ."
14275echo ". or read ./README.configure ."
14276echo ". ."
14277echo ". The script ./reconf gives a reasonable baseline, try it if ."
14278echo ". you do not want to read documentation and still want some ."
14279echo ". useful features. ."
18056echo ".----------------------------------------------------------------." 14280echo ".----------------------------------------------------------------."
18057echo 14281echo
18058 14282

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines