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

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines