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

Comparing rxvt-unicode/configure (file contents):
Revision 1.25 by pcg, Mon Apr 5 15:54:21 2004 UTC vs.
Revision 1.57 by root, Sat Dec 24 12:55:17 2005 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 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
1046 --enable-plain-scroll enable plain style scrollbar 886 --enable-plain-scroll enable plain style scrollbar
1049 --enable-ttygid enable tty setting to group named "tty" 889 --enable-ttygid enable tty setting to group named "tty"
1050 --disable-backspace-key disable handling of the backspace key 890 --disable-backspace-key disable handling of the backspace key
1051 --disable-delete-key disable handling of the delete key 891 --disable-delete-key disable handling of the delete key
1052 --disable-resources disable all resource checking 892 --disable-resources disable all resource checking
1053 --enable-xgetdefault enable resources via X instead of our small version 893 --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 896 --enable-strings enable some replacement system functions
1056 --disable-swapscreen disable swap screen support 897 --disable-swapscreen disable swap screen support
898 --enable-iso14755 enable support for extended ISO 14755 modes
1057 --enable-frills enable support for rarely used features 899 --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 900 --enable-24bit enable support for using 24bit visuals if available
1060 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 901 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1061 --enable-selectionscrolling enable scrolling during selections 902 --enable-selectionscrolling enable scrolling during selections
1062 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 903 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1063 --enable-slipwheeling enable slip wheel scrolling (requires previous) 904 --enable-slipwheeling enable slip wheel scrolling (requires previous)
1064 --enable-dmalloc enable Gray Watson's malloc - for debugging use 905 --enable-dmalloc enable Gray Watson's malloc - for debugging use
1065 --enable-dlmalloc enable Doug Lea's malloc - for production use 906 --enable-dlmalloc enable Doug Lea's malloc - for production use
1066 NOTE: enable only one malloc package 907 NOTE: enable only one malloc package
1067 --enable-smart-resize enable smart growth/shrink behaviour 908 --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 909 --enable-text-blink enable blinking text
1071 --enable-pointer-blank enable pointer blank when typing or inactive pointer 910 --enable-pointer-blank enable pointer blank when typing or inactive pointer
1072 911
1073Optional Packages: 912Optional Packages:
1074 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 913 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1075 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 914 --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) 915 --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) 916 --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) 917 --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) 918 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1082 --with-term=NAME set the terminal to NAME (default: rxvt) 919 --with-term=NAME set the terminal to NAME (default: rxvt)
1083 --with-terminfo=PATH set the path to the terminfo tree to PATH 920 --with-terminfo=PATH set the path to the terminfo tree to PATH
1534 1371
1535 1372
1536 1373
1537 1374
1538 1375
1376
1539ac_aux_dir= 1377ac_aux_dir=
1540for ac_dir in autoconf $srcdir/autoconf; do 1378for ac_dir in autoconf $srcdir/autoconf; do
1541 if test -f $ac_dir/install-sh; then 1379 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir 1380 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c" 1381 ac_install_sh="$ac_aux_dir/install-sh -c"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1400ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563 1401
1564 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" 1402 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1565 1403
1566 1404
1405# Make sure we can run config.sub.
1406$ac_config_sub sun4 >/dev/null 2>&1 ||
1407 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1408echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1409 { (exit 1); exit 1; }; }
1410
1411echo "$as_me:$LINENO: checking build system type" >&5
1412echo $ECHO_N "checking build system type... $ECHO_C" >&6
1413if test "${ac_cv_build+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1415else
1416 ac_cv_build_alias=$build_alias
1417test -z "$ac_cv_build_alias" &&
1418 ac_cv_build_alias=`$ac_config_guess`
1419test -z "$ac_cv_build_alias" &&
1420 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1421echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1422 { (exit 1); exit 1; }; }
1423ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1424 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1425echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1426 { (exit 1); exit 1; }; }
1427
1428fi
1429echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1430echo "${ECHO_T}$ac_cv_build" >&6
1431build=$ac_cv_build
1432build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1433build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1434build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1435
1436
1437echo "$as_me:$LINENO: checking host system type" >&5
1438echo $ECHO_N "checking host system type... $ECHO_C" >&6
1439if test "${ac_cv_host+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441else
1442 ac_cv_host_alias=$host_alias
1443test -z "$ac_cv_host_alias" &&
1444 ac_cv_host_alias=$ac_cv_build_alias
1445ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1446 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1447echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1448 { (exit 1); exit 1; }; }
1449
1450fi
1451echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1452echo "${ECHO_T}$ac_cv_host" >&6
1453host=$ac_cv_host
1454host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1455host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1456host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1457
1458
1459
1567VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 1460VERSION=`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` 1461DATE=`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 "" 1462echo ""
1572echo "configuring for rxvt $VERSION" 1463echo "configuring for rxvt $VERSION"
1573echo "" 1464echo ""
1574 1465
1575 1466
3207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209ac_compiler_gnu=$ac_cv_c_compiler_gnu 3100ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210 3101
3211 3102
3103if test -z "$orig_CXXFLAGS"; then
3104 CXXFLAGS='-O'
3105 if test x$GCC = xyes && test "x$GXX" = xyes; then
3106 CXXFLAGS="-g -O3"
3107 fi
3108 CFLAGS="$CXXFLAGS"
3109fi
3110
3212LINKER="$CXX" 3111LINKER="$CXX"
3213if test x$GCC = xyes && test x$GXX = xyes; then 3112if test x$GCC = xyes && test x$GXX = xyes; then
3214 3113
3215echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 3114echo "$as_me:$LINENO: checking for main in -lsupc++" >&5
3216echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 3115echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6
3278 3177
3279fi 3178fi
3280LINKER=$LINKER 3179LINKER=$LINKER
3281 3180
3282 3181
3283CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" 3182
3183cat >>confdefs.h <<\_ACEOF
3184#define _GNU_SOURCE 1
3185_ACEOF
3186
3187
3188case $host in
3189 *-*-solaris* )
3190
3191cat >>confdefs.h <<\_ACEOF
3192#define _XOPEN_SOURCE_EXTENDED 1
3193_ACEOF
3194
3195
3196cat >>confdefs.h <<\_ACEOF
3197#define _XOPEN_SOURCE 2
3198_ACEOF
3199
3200
3201cat >>confdefs.h <<\_ACEOF
3202#define __EXTENSIONS__ 1
3203_ACEOF
3204
3205 ;;
3206esac
3284 3207
3285 3208
3286ac_ext=cc 3209ac_ext=cc
3287ac_cpp='$CXXCPP $CPPFLAGS' 3210ac_cpp='$CXXCPP $CPPFLAGS'
3288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 3612 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3690 3613
3691fi 3614fi
3692 3615
3693 3616
3617echo "$as_me:$LINENO: checking for setlocale" >&5
3618echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3619if test "${ac_cv_func_setlocale+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
3622 cat >conftest.$ac_ext <<_ACEOF
3623/* confdefs.h. */
3624_ACEOF
3625cat confdefs.h >>conftest.$ac_ext
3626cat >>conftest.$ac_ext <<_ACEOF
3627/* end confdefs.h. */
3628/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3630#define setlocale innocuous_setlocale
3631
3632/* System header to define __stub macros and hopefully few prototypes,
3633 which can conflict with char setlocale (); below.
3634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3635 <limits.h> exists even on freestanding compilers. */
3636
3637#ifdef __STDC__
3638# include <limits.h>
3639#else
3640# include <assert.h>
3641#endif
3642
3643#undef setlocale
3644
3645/* Override any gcc2 internal prototype to avoid an error. */
3646#ifdef __cplusplus
3647extern "C"
3648{
3649#endif
3650/* We use char because int might match the return type of a gcc2
3651 builtin and then its argument prototype would still apply. */
3652char setlocale ();
3653/* The GNU C library defines this for functions which it implements
3654 to always fail with ENOSYS. Some functions are actually named
3655 something starting with __ and the normal name is an alias. */
3656#if defined (__stub_setlocale) || defined (__stub___setlocale)
3657choke me
3658#else
3659char (*f) () = setlocale;
3660#endif
3661#ifdef __cplusplus
3662}
3663#endif
3664
3665int
3666main ()
3667{
3668return f != setlocale;
3669 ;
3670 return 0;
3671}
3672_ACEOF
3673rm -f conftest.$ac_objext conftest$ac_exeext
3674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675 (eval $ac_link) 2>conftest.er1
3676 ac_status=$?
3677 grep -v '^ *+' conftest.er1 >conftest.err
3678 rm -f conftest.er1
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } &&
3682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; } &&
3688 { ac_try='test -s conftest$ac_exeext'
3689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690 (eval $ac_try) 2>&5
3691 ac_status=$?
3692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693 (exit $ac_status); }; }; then
3694 ac_cv_func_setlocale=yes
3695else
3696 echo "$as_me: failed program was:" >&5
3697sed 's/^/| /' conftest.$ac_ext >&5
3698
3699ac_cv_func_setlocale=no
3700fi
3701rm -f conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
3703fi
3704echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
3705echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3706if test $ac_cv_func_setlocale = yes; then
3707 :
3708else
3694echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 3709 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3695echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 3710echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3696if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then 3711if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6 3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3698else 3713else
3699 ac_check_lib_save_LIBS=$LIBS 3714 ac_check_lib_save_LIBS=$LIBS
3756echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 3771echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3757if test $ac_cv_lib_xpg4_setlocale = yes; then 3772if test $ac_cv_lib_xpg4_setlocale = yes; then
3758 LIBS="$LIBS -lxpg4" 3773 LIBS="$LIBS -lxpg4"
3759fi 3774fi
3760 3775
3776fi
3761 3777
3778
3779echo "$as_me:$LINENO: checking for gethostbyname" >&5
3780echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3781if test "${ac_cv_func_gethostbyname+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 cat >conftest.$ac_ext <<_ACEOF
3785/* confdefs.h. */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h. */
3790/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3792#define gethostbyname innocuous_gethostbyname
3793
3794/* System header to define __stub macros and hopefully few prototypes,
3795 which can conflict with char gethostbyname (); below.
3796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3797 <limits.h> exists even on freestanding compilers. */
3798
3799#ifdef __STDC__
3800# include <limits.h>
3801#else
3802# include <assert.h>
3803#endif
3804
3805#undef gethostbyname
3806
3807/* Override any gcc2 internal prototype to avoid an error. */
3808#ifdef __cplusplus
3809extern "C"
3810{
3811#endif
3812/* We use char because int might match the return type of a gcc2
3813 builtin and then its argument prototype would still apply. */
3814char gethostbyname ();
3815/* The GNU C library defines this for functions which it implements
3816 to always fail with ENOSYS. Some functions are actually named
3817 something starting with __ and the normal name is an alias. */
3818#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3819choke me
3820#else
3821char (*f) () = gethostbyname;
3822#endif
3823#ifdef __cplusplus
3824}
3825#endif
3826
3827int
3828main ()
3829{
3830return f != gethostbyname;
3831 ;
3832 return 0;
3833}
3834_ACEOF
3835rm -f conftest.$ac_objext conftest$ac_exeext
3836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3837 (eval $ac_link) 2>conftest.er1
3838 ac_status=$?
3839 grep -v '^ *+' conftest.er1 >conftest.err
3840 rm -f conftest.er1
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3846 (eval $ac_try) 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; } &&
3850 { ac_try='test -s conftest$ac_exeext'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; }; then
3856 ac_cv_func_gethostbyname=yes
3857else
3858 echo "$as_me: failed program was:" >&5
3859sed 's/^/| /' conftest.$ac_ext >&5
3860
3861ac_cv_func_gethostbyname=no
3862fi
3863rm -f conftest.err conftest.$ac_objext \
3864 conftest$ac_exeext conftest.$ac_ext
3865fi
3866echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3867echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3868if test $ac_cv_func_gethostbyname = yes; then
3869 :
3870else
3762echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 3871 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3763echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 3872echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3764if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 3873if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6 3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else 3875else
3767 ac_check_lib_save_LIBS=$LIBS 3876 ac_check_lib_save_LIBS=$LIBS
3824echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 3933echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3825if test $ac_cv_lib_nsl_gethostbyname = yes; then 3934if test $ac_cv_lib_nsl_gethostbyname = yes; then
3826 LIBS="$LIBS -lnsl" 3935 LIBS="$LIBS -lnsl"
3827fi 3936fi
3828 3937
3938fi
3939
3940echo "$as_me:$LINENO: checking for socket" >&5
3941echo $ECHO_N "checking for socket... $ECHO_C" >&6
3942if test "${ac_cv_func_socket+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3944else
3945 cat >conftest.$ac_ext <<_ACEOF
3946/* confdefs.h. */
3947_ACEOF
3948cat confdefs.h >>conftest.$ac_ext
3949cat >>conftest.$ac_ext <<_ACEOF
3950/* end confdefs.h. */
3951/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3953#define socket innocuous_socket
3954
3955/* System header to define __stub macros and hopefully few prototypes,
3956 which can conflict with char socket (); below.
3957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 <limits.h> exists even on freestanding compilers. */
3959
3960#ifdef __STDC__
3961# include <limits.h>
3962#else
3963# include <assert.h>
3964#endif
3965
3966#undef socket
3967
3968/* Override any gcc2 internal prototype to avoid an error. */
3969#ifdef __cplusplus
3970extern "C"
3971{
3972#endif
3973/* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3975char socket ();
3976/* The GNU C library defines this for functions which it implements
3977 to always fail with ENOSYS. Some functions are actually named
3978 something starting with __ and the normal name is an alias. */
3979#if defined (__stub_socket) || defined (__stub___socket)
3980choke me
3981#else
3982char (*f) () = socket;
3983#endif
3984#ifdef __cplusplus
3985}
3986#endif
3987
3988int
3989main ()
3990{
3991return f != socket;
3992 ;
3993 return 0;
3994}
3995_ACEOF
3996rm -f conftest.$ac_objext conftest$ac_exeext
3997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3998 (eval $ac_link) 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4007 (eval $ac_try) 2>&5
4008 ac_status=$?
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; } &&
4011 { ac_try='test -s conftest$ac_exeext'
4012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 (eval $ac_try) 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; }; then
4017 ac_cv_func_socket=yes
4018else
4019 echo "$as_me: failed program was:" >&5
4020sed 's/^/| /' conftest.$ac_ext >&5
4021
4022ac_cv_func_socket=no
4023fi
4024rm -f conftest.err conftest.$ac_objext \
4025 conftest$ac_exeext conftest.$ac_ext
4026fi
4027echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4028echo "${ECHO_T}$ac_cv_func_socket" >&6
4029if test $ac_cv_func_socket = yes; then
4030 :
4031else
3829echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 4032 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3830echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 4033echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3831if test "${ac_cv_lib_socket_socket+set}" = set; then 4034if test "${ac_cv_lib_socket_socket+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6 4035 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else 4036else
3834 ac_check_lib_save_LIBS=$LIBS 4037 ac_check_lib_save_LIBS=$LIBS
3891echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 4094echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3892if test $ac_cv_lib_socket_socket = yes; then 4095if test $ac_cv_lib_socket_socket = yes; then
3893 LIBS="$LIBS -lsocket" 4096 LIBS="$LIBS -lsocket"
3894fi 4097fi
3895 4098
3896
3897# Check whether --enable-shared or --disable-shared was given.
3898if test "${enable_shared+set}" = set; then
3899 enableval="$enable_shared"
3900 p=${PACKAGE-default}
3901case "$enableval" in
3902yes) enable_shared=yes ;;
3903no) enable_shared=no ;;
3904*)
3905 enable_shared=no
3906 # Look at the argument we got. We use all the common list separators.
3907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3908 for pkg in $enableval; do
3909 if test "X$pkg" = "X$p"; then
3910 enable_shared=yes
3911 fi
3912 done
3913 IFS="$ac_save_ifs"
3914 ;;
3915esac
3916else
3917 enable_shared=no
3918fi; # Check whether --enable-static or --disable-static was given.
3919if test "${enable_static+set}" = set; then
3920 enableval="$enable_static"
3921 p=${PACKAGE-default}
3922case "$enableval" in
3923yes) enable_static=yes ;;
3924no) enable_static=no ;;
3925*)
3926 enable_static=no
3927 # Look at the argument we got. We use all the common list separators.
3928 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3929 for pkg in $enableval; do
3930 if test "X$pkg" = "X$p"; then
3931 enable_static=yes
3932 fi
3933 done
3934 IFS="$ac_save_ifs"
3935 ;;
3936esac
3937else
3938 enable_static=yes
3939fi; # Check whether --enable-fast-install or --disable-fast-install was given.
3940if test "${enable_fast_install+set}" = set; then
3941 enableval="$enable_fast_install"
3942 p=${PACKAGE-default}
3943case "$enableval" in
3944yes) enable_fast_install=yes ;;
3945no) enable_fast_install=no ;;
3946*)
3947 enable_fast_install=no
3948 # Look at the argument we got. We use all the common list separators.
3949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3950 for pkg in $enableval; do
3951 if test "X$pkg" = "X$p"; then
3952 enable_fast_install=yes
3953 fi
3954 done
3955 IFS="$ac_save_ifs"
3956 ;;
3957esac
3958else
3959 enable_fast_install=yes
3960fi; 4099fi
3961# Make sure we can run config.sub.
3962$ac_config_sub sun4 >/dev/null 2>&1 ||
3963 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3964echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3965 { (exit 1); exit 1; }; }
3966 4100
3967echo "$as_me:$LINENO: checking build system type" >&5
3968echo $ECHO_N "checking build system type... $ECHO_C" >&6
3969if test "${ac_cv_build+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971else
3972 ac_cv_build_alias=$build_alias
3973test -z "$ac_cv_build_alias" &&
3974 ac_cv_build_alias=`$ac_config_guess`
3975test -z "$ac_cv_build_alias" &&
3976 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3977echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3978 { (exit 1); exit 1; }; }
3979ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3980 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3981echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3982 { (exit 1); exit 1; }; }
3983
3984fi
3985echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3986echo "${ECHO_T}$ac_cv_build" >&6
3987build=$ac_cv_build
3988build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3989build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3990build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3991
3992
3993echo "$as_me:$LINENO: checking host system type" >&5
3994echo $ECHO_N "checking host system type... $ECHO_C" >&6
3995if test "${ac_cv_host+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
3998 ac_cv_host_alias=$host_alias
3999test -z "$ac_cv_host_alias" &&
4000 ac_cv_host_alias=$ac_cv_build_alias
4001ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4002 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4003echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4004 { (exit 1); exit 1; }; }
4005
4006fi
4007echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4008echo "${ECHO_T}$ac_cv_host" >&6
4009host=$ac_cv_host
4010host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4011host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4012host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4013
4014
4015
4016# Check whether --with-gnu-ld or --without-gnu-ld was given.
4017if test "${with_gnu_ld+set}" = set; then
4018 withval="$with_gnu_ld"
4019 test "$withval" = no || with_gnu_ld=yes
4020else
4021 with_gnu_ld=no
4022fi;
4023ac_prog=ld
4024if test "$GCC" = yes; then
4025 # Check if gcc -print-prog-name=ld gives a path.
4026 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4027echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4028 case $host in
4029 *-*-mingw*)
4030 # gcc leaves a trailing carriage return which upsets mingw
4031 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4032 *)
4033 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4034 esac
4035 case "$ac_prog" in
4036 # Accept absolute paths.
4037 [\\/]* | [A-Za-z]:[\\/]*)
4038 re_direlt='/[^/][^/]*/\.\./'
4039 # Canonicalize the path of ld
4040 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4041 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4042 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4043 done
4044 test -z "$LD" && LD="$ac_prog"
4045 ;;
4046 "")
4047 # If it fails, then pretend we aren't using GCC.
4048 ac_prog=ld
4049 ;;
4050 *)
4051 # If it is relative, then search for the first ld in PATH.
4052 with_gnu_ld=unknown
4053 ;;
4054 esac
4055elif test "$with_gnu_ld" = yes; then
4056 echo "$as_me:$LINENO: checking for GNU ld" >&5
4057echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4058else
4059 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4060echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4061fi
4062if test "${lt_cv_path_LD+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064else
4065 if test -z "$LD"; then
4066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4067 for ac_dir in $PATH; do
4068 test -z "$ac_dir" && ac_dir=.
4069 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4070 lt_cv_path_LD="$ac_dir/$ac_prog"
4071 # Check to see if the program is GNU ld. I'd rather use --version,
4072 # but apparently some GNU ld's only accept -v.
4073 # Break only if it was the GNU/non-GNU ld that we prefer.
4074 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4075 test "$with_gnu_ld" != no && break
4076 else
4077 test "$with_gnu_ld" != yes && break
4078 fi
4079 fi
4080 done
4081 IFS="$ac_save_ifs"
4082else
4083 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4084fi
4085fi
4086
4087LD="$lt_cv_path_LD"
4088if test -n "$LD"; then
4089 echo "$as_me:$LINENO: result: $LD" >&5
4090echo "${ECHO_T}$LD" >&6
4091else
4092 echo "$as_me:$LINENO: result: no" >&5
4093echo "${ECHO_T}no" >&6
4094fi
4095test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4096echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4097 { (exit 1); exit 1; }; }
4098echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4099echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4100if test "${lt_cv_prog_gnu_ld+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4104if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4105 lt_cv_prog_gnu_ld=yes
4106else
4107 lt_cv_prog_gnu_ld=no
4108fi
4109fi
4110echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4111echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4112with_gnu_ld=$lt_cv_prog_gnu_ld
4113
4114
4115echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4116echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4117if test "${lt_cv_ld_reload_flag+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120 lt_cv_ld_reload_flag='-r'
4121fi
4122echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4123echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4124reload_flag=$lt_cv_ld_reload_flag
4125test -n "$reload_flag" && reload_flag=" $reload_flag"
4126
4127echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4128echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4129if test "${lt_cv_path_NM+set}" = set; then
4130 echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132 if test -n "$NM"; then
4133 # Let the user override the test.
4134 lt_cv_path_NM="$NM"
4135else
4136 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4137 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4138 test -z "$ac_dir" && ac_dir=.
4139 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4140 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4141 # Check to see if the nm accepts a BSD-compat flag.
4142 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4143 # nm: unknown option "B" ignored
4144 # Tru64's nm complains that /dev/null is an invalid object file
4145 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4146 lt_cv_path_NM="$tmp_nm -B"
4147 break
4148 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4149 lt_cv_path_NM="$tmp_nm -p"
4150 break
4151 else
4152 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4153 continue # so that we can try to find one that supports BSD flags
4154 fi
4155 fi
4156 done
4157 IFS="$ac_save_ifs"
4158 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4159fi
4160fi
4161
4162NM="$lt_cv_path_NM"
4163echo "$as_me:$LINENO: result: $NM" >&5
4164echo "${ECHO_T}$NM" >&6
4165
4166echo "$as_me:$LINENO: checking whether ln -s works" >&5
4167echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4168LN_S=$as_ln_s
4169if test "$LN_S" = "ln -s"; then
4170 echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172else
4173 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4174echo "${ECHO_T}no, using $LN_S" >&6
4175fi
4176
4177echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4178echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4179if test "${lt_cv_deplibs_check_method+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181else
4182 lt_cv_file_magic_cmd='$MAGIC_CMD'
4183lt_cv_file_magic_test_file=
4184lt_cv_deplibs_check_method='unknown'
4185# Need to set the preceding variable on all platforms that support
4186# interlibrary dependencies.
4187# 'none' -- dependencies not supported.
4188# `unknown' -- same as none, but documents that we really don't know.
4189# 'pass_all' -- all dependencies passed with no checks.
4190# 'test_compile' -- check by making test program.
4191# ['file_magic [regex]'] -- check by looking for files in library path
4192# which responds to the $file_magic_cmd with a given egrep regex.
4193# If you have `file' or equivalent on your system and you're not sure
4194# whether `pass_all' will *always* work, you probably want this one.
4195
4196case "$host_os" in
4197aix4*)
4198 lt_cv_deplibs_check_method=pass_all
4199 ;;
4200
4201beos*)
4202 lt_cv_deplibs_check_method=pass_all
4203 ;;
4204
4205bsdi4*)
4206 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4207 lt_cv_file_magic_cmd='/usr/bin/file -L'
4208 lt_cv_file_magic_test_file=/shlib/libc.so
4209 ;;
4210
4211cygwin* | mingw* | pw32*)
4212 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4213 lt_cv_file_magic_cmd='$OBJDUMP -f'
4214 ;;
4215
4216darwin*|rhapsody*)
4217 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4218 lt_cv_file_magiic_cmd=/usr/bin/file
4219 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4220 ;;
4221
4222freebsd*)
4223 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4224 case "$host_cpu" in
4225 i*86 )
4226 # Not sure whether the presence of OpenBSD here was a mistake.
4227 # Let's accept both of them until this is cleared up.
4228 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4229 lt_cv_file_magic_cmd=/usr/bin/file
4230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4231 ;;
4232 esac
4233 else
4234 lt_cv_deplibs_check_method=pass_all
4235 fi
4236 ;;
4237
4238gnu*)
4239 lt_cv_deplibs_check_method=pass_all
4240 ;;
4241
4242hpux10.20*|hpux11*)
4243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4244 lt_cv_file_magic_cmd=/usr/bin/file
4245 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4246 ;;
4247
4248irix5* | irix6*)
4249 case "$host_os" in
4250 irix5*)
4251 # this will be overridden with pass_all, but let us keep it just in case
4252 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4253 ;;
4254 *)
4255 case "$LD" in
4256 *-32|*"-32 ") libmagic=32-bit;;
4257 *-n32|*"-n32 ") libmagic=N32;;
4258 *-64|*"-64 ") libmagic=64-bit;;
4259 *) libmagic=never-match;;
4260 esac
4261 # this will be overridden with pass_all, but let us keep it just in case
4262 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4263 ;;
4264 esac
4265 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4266 lt_cv_deplibs_check_method=pass_all
4267 ;;
4268
4269# This must be Linux ELF.
4270linux-gnu*)
4271 case "$host_cpu" in
4272 alpha* | i*86 | powerpc* | sparc* | ia64* )
4273 lt_cv_deplibs_check_method=pass_all ;;
4274 *)
4275 # glibc up to 2.1.1 does not perform some relocations on ARM
4276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4277 esac
4278 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4279 ;;
4280
4281netbsd*)
4282 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4283 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
4284 else
4285 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4286 fi
4287 lt_cv_file_magic_cmd='/usr/bin/file -L'
4288 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4289 ;;
4290
4291newos6*)
4292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4293 lt_cv_file_magic_cmd=/usr/bin/file
4294 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4295 ;;
4296
4297osf3* | osf4* | osf5*)
4298 # this will be overridden with pass_all, but let us keep it just in case
4299 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4300 lt_cv_file_magic_test_file=/shlib/libc.so
4301 lt_cv_deplibs_check_method=pass_all
4302 ;;
4303
4304sco3.2v5*)
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307
4308solaris*)
4309 lt_cv_deplibs_check_method=pass_all
4310 lt_cv_file_magic_test_file=/lib/libc.so
4311 ;;
4312
4313sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4314 case "$host_vendor" in
4315 motorola)
4316 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]'
4317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4318 ;;
4319 ncr)
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
4322 sequent)
4323 lt_cv_file_magic_cmd='/bin/file'
4324 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4325 ;;
4326 sni)
4327 lt_cv_file_magic_cmd='/bin/file'
4328 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4329 lt_cv_file_magic_test_file=/lib/libc.so
4330 ;;
4331 esac
4332 ;;
4333esac
4334
4335fi
4336echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4337echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4338file_magic_cmd=$lt_cv_file_magic_cmd
4339deplibs_check_method=$lt_cv_deplibs_check_method
4340
4341
4342
4343
4344
4345
4346
4347# Check for command to grab the raw symbol name followed by C symbol from nm.
4348echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4349echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4350if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353
4354# These are sane defaults that work on at least a few old systems.
4355# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4356
4357# Character class describing NM global symbol codes.
4358symcode='[BCDEGRST]'
4359
4360# Regexp to match symbols that can be accessed directly from C.
4361sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4362
4363# Transform the above into a raw symbol and a C symbol.
4364symxfrm='\1 \2\3 \3'
4365
4366# Transform an extracted symbol line into a proper C declaration
4367lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4368
4369# Define system-specific variables.
4370case "$host_os" in
4371aix*)
4372 symcode='[BCDT]'
4373 ;;
4374cygwin* | mingw* | pw32*)
4375 symcode='[ABCDGISTW]'
4376 ;;
4377hpux*) # Its linker distinguishes data from code symbols
4378 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
4379 ;;
4380irix*)
4381 symcode='[BCDEGRST]'
4382 ;;
4383solaris* | sysv5*)
4384 symcode='[BDT]'
4385 ;;
4386sysv4)
4387 symcode='[DFNSTU]'
4388 ;;
4389esac
4390
4391# Handle CRLF in mingw tool chain
4392opt_cr=
4393case "$host_os" in
4394mingw*)
4395 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4396 ;;
4397esac
4398
4399# If we're using GNU nm, then use its standard symbol codes.
4400if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4401 symcode='[ABCDGISTW]'
4402fi
4403
4404# Try without a prefix undercore, then with it.
4405for ac_symprfx in "" "_"; do
4406
4407 # Write the raw and C identifiers.
4408lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4409
4410 # Check to see that the pipe works correctly.
4411 pipe_works=no
4412 rm -f conftest*
4413 cat > conftest.$ac_ext <<EOF
4414#ifdef __cplusplus
4415extern "C" {
4416#endif
4417char nm_test_var;
4418void nm_test_func(){}
4419#ifdef __cplusplus
4420}
4421#endif
4422main(){nm_test_var='a';nm_test_func();return(0);}
4423EOF
4424
4425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4426 (eval $ac_compile) 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); }; then
4430 # Now try to grab the symbols.
4431 nlist=conftest.nm
4432 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4433 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } && test -s "$nlist"; then
4437 # Try sorting and uniquifying the output.
4438 if sort "$nlist" | uniq > "$nlist"T; then
4439 mv -f "$nlist"T "$nlist"
4440 else
4441 rm -f "$nlist"T
4442 fi
4443
4444 # Make sure that we snagged all the symbols we need.
4445 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4446 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4447 cat <<EOF > conftest.$ac_ext
4448#ifdef __cplusplus
4449extern "C" {
4450#endif
4451
4452EOF
4453 # Now generate the symbol file.
4454 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4455
4456 cat <<EOF >> conftest.$ac_ext
4457#if defined (__STDC__) && __STDC__
4458# define lt_ptr_t void *
4459#else
4460# define lt_ptr_t char *
4461# define const
4462#endif
4463
4464/* The mapping between symbol names and symbols. */
4465const struct {
4466 const char *name;
4467 lt_ptr_t address;
4468}
4469lt_preloaded_symbols[] =
4470{
4471EOF
4472 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext
4473 cat <<\EOF >> conftest.$ac_ext
4474 {0, (lt_ptr_t) 0}
4475};
4476
4477#ifdef __cplusplus
4478}
4479#endif
4480EOF
4481 # Now try linking the two files.
4482 mv conftest.$ac_objext conftstm.$ac_objext
4483 save_LIBS="$LIBS"
4484 save_CFLAGS="$CFLAGS"
4485 LIBS="conftstm.$ac_objext"
4486 CFLAGS="$CFLAGS$no_builtin_flag"
4487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4488 (eval $ac_link) 2>&5
4489 ac_status=$?
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && test -s conftest; then
4492 pipe_works=yes
4493 fi
4494 LIBS="$save_LIBS"
4495 CFLAGS="$save_CFLAGS"
4496 else
4497 echo "cannot find nm_test_func in $nlist" >&5
4498 fi
4499 else
4500 echo "cannot find nm_test_var in $nlist" >&5
4501 fi
4502 else
4503 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4504 fi
4505 else
4506 echo "$progname: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4508 fi
4509 rm -f conftest* conftst*
4510
4511 # Do not use the global_symbol_pipe unless it works.
4512 if test "$pipe_works" = yes; then
4513 break
4514 else
4515 lt_cv_sys_global_symbol_pipe=
4516 fi
4517done
4518
4519fi
4520
4521global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4522if test -z "$lt_cv_sys_global_symbol_pipe"; then
4523 global_symbol_to_cdecl=
4524else
4525 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4526fi
4527if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
4528 echo "$as_me:$LINENO: result: failed" >&5
4529echo "${ECHO_T}failed" >&6
4530else
4531 echo "$as_me:$LINENO: result: ok" >&5
4532echo "${ECHO_T}ok" >&6
4533fi
4534
4535echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4536echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4537if test "${ac_cv_header_stdc+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539else
4540 cat >conftest.$ac_ext <<_ACEOF
4541/* confdefs.h. */
4542_ACEOF
4543cat confdefs.h >>conftest.$ac_ext
4544cat >>conftest.$ac_ext <<_ACEOF
4545/* end confdefs.h. */
4546#include <stdlib.h>
4547#include <stdarg.h>
4548#include <string.h>
4549#include <float.h>
4550
4551int
4552main ()
4553{
4554
4555 ;
4556 return 0;
4557}
4558_ACEOF
4559rm -f conftest.$ac_objext
4560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } &&
4568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570 (eval $ac_try) 2>&5
4571 ac_status=$?
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); }; } &&
4574 { ac_try='test -s conftest.$ac_objext'
4575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576 (eval $ac_try) 2>&5
4577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; }; then
4580 ac_cv_header_stdc=yes
4581else
4582 echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
4584
4585ac_cv_header_stdc=no
4586fi
4587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4588
4589if test $ac_cv_header_stdc = yes; then
4590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591 cat >conftest.$ac_ext <<_ACEOF
4592/* confdefs.h. */
4593_ACEOF
4594cat confdefs.h >>conftest.$ac_ext
4595cat >>conftest.$ac_ext <<_ACEOF
4596/* end confdefs.h. */
4597#include <string.h>
4598
4599_ACEOF
4600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4601 $EGREP "memchr" >/dev/null 2>&1; then
4602 :
4603else
4604 ac_cv_header_stdc=no
4605fi
4606rm -f conftest*
4607
4608fi
4609
4610if test $ac_cv_header_stdc = yes; then
4611 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4612 cat >conftest.$ac_ext <<_ACEOF
4613/* confdefs.h. */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h. */
4618#include <stdlib.h>
4619
4620_ACEOF
4621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4622 $EGREP "free" >/dev/null 2>&1; then
4623 :
4624else
4625 ac_cv_header_stdc=no
4626fi
4627rm -f conftest*
4628
4629fi
4630
4631if test $ac_cv_header_stdc = yes; then
4632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4633 if test "$cross_compiling" = yes; then
4634 :
4635else
4636 cat >conftest.$ac_ext <<_ACEOF
4637/* confdefs.h. */
4638_ACEOF
4639cat confdefs.h >>conftest.$ac_ext
4640cat >>conftest.$ac_ext <<_ACEOF
4641/* end confdefs.h. */
4642#include <ctype.h>
4643#if ((' ' & 0x0FF) == 0x020)
4644# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4645# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4646#else
4647# define ISLOWER(c) \
4648 (('a' <= (c) && (c) <= 'i') \
4649 || ('j' <= (c) && (c) <= 'r') \
4650 || ('s' <= (c) && (c) <= 'z'))
4651# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4652#endif
4653
4654#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4655int
4656main ()
4657{
4658 int i;
4659 for (i = 0; i < 256; i++)
4660 if (XOR (islower (i), ISLOWER (i))
4661 || toupper (i) != TOUPPER (i))
4662 exit(2);
4663 exit (0);
4664}
4665_ACEOF
4666rm -f conftest$ac_exeext
4667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4668 (eval $ac_link) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673 (eval $ac_try) 2>&5
4674 ac_status=$?
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; }; then
4677 :
4678else
4679 echo "$as_me: program exited with status $ac_status" >&5
4680echo "$as_me: failed program was:" >&5
4681sed 's/^/| /' conftest.$ac_ext >&5
4682
4683( exit $ac_status )
4684ac_cv_header_stdc=no
4685fi
4686rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4687fi
4688fi
4689fi
4690echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4691echo "${ECHO_T}$ac_cv_header_stdc" >&6
4692if test $ac_cv_header_stdc = yes; then
4693
4694cat >>confdefs.h <<\_ACEOF
4695#define STDC_HEADERS 1
4696_ACEOF
4697
4698fi
4699
4700# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4711 inttypes.h stdint.h unistd.h
4712do
4713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4714echo "$as_me:$LINENO: checking for $ac_header" >&5
4715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4716if eval "test \"\${$as_ac_Header+set}\" = set"; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719 cat >conftest.$ac_ext <<_ACEOF
4720/* confdefs.h. */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h. */
4725$ac_includes_default
4726
4727#include <$ac_header>
4728_ACEOF
4729rm -f conftest.$ac_objext
4730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4731 (eval $ac_compile) 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740 (eval $ac_try) 2>&5
4741 ac_status=$?
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 (eval $ac_try) 2>&5
4747 ac_status=$?
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4750 eval "$as_ac_Header=yes"
4751else
4752 echo "$as_me: failed program was:" >&5
4753sed 's/^/| /' conftest.$ac_ext >&5
4754
4755eval "$as_ac_Header=no"
4756fi
4757rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4758fi
4759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4761if test `eval echo '${'$as_ac_Header'}'` = yes; then
4762 cat >>confdefs.h <<_ACEOF
4763#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4764_ACEOF
4765
4766fi
4767
4768done
4769
4770
4771
4772for ac_header in dlfcn.h
4773do
4774as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4775if eval "test \"\${$as_ac_Header+set}\" = set"; then
4776 echo "$as_me:$LINENO: checking for $ac_header" >&5
4777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4778if eval "test \"\${$as_ac_Header+set}\" = set"; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780fi
4781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4783else
4784 # Is the header compilable?
4785echo "$as_me:$LINENO: checking $ac_header usability" >&5
4786echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4787cat >conftest.$ac_ext <<_ACEOF
4788/* confdefs.h. */
4789_ACEOF
4790cat confdefs.h >>conftest.$ac_ext
4791cat >>conftest.$ac_ext <<_ACEOF
4792/* end confdefs.h. */
4793$ac_includes_default
4794#include <$ac_header>
4795_ACEOF
4796rm -f conftest.$ac_objext
4797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4807 (eval $ac_try) 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; } &&
4811 { ac_try='test -s conftest.$ac_objext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4813 (eval $ac_try) 2>&5
4814 ac_status=$?
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4817 ac_header_compiler=yes
4818else
4819 echo "$as_me: failed program was:" >&5
4820sed 's/^/| /' conftest.$ac_ext >&5
4821
4822ac_header_compiler=no
4823fi
4824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4826echo "${ECHO_T}$ac_header_compiler" >&6
4827
4828# Is the header present?
4829echo "$as_me:$LINENO: checking $ac_header presence" >&5
4830echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4831cat >conftest.$ac_ext <<_ACEOF
4832/* confdefs.h. */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4836/* end confdefs.h. */
4837#include <$ac_header>
4838_ACEOF
4839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4841 ac_status=$?
4842 grep -v '^ *+' conftest.er1 >conftest.err
4843 rm -f conftest.er1
4844 cat conftest.err >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); } >/dev/null; then
4847 if test -s conftest.err; then
4848 ac_cpp_err=$ac_cxx_preproc_warn_flag
4849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4850 else
4851 ac_cpp_err=
4852 fi
4853else
4854 ac_cpp_err=yes
4855fi
4856if test -z "$ac_cpp_err"; then
4857 ac_header_preproc=yes
4858else
4859 echo "$as_me: failed program was:" >&5
4860sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 ac_header_preproc=no
4863fi
4864rm -f conftest.err conftest.$ac_ext
4865echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4866echo "${ECHO_T}$ac_header_preproc" >&6
4867
4868# So? What about this header?
4869case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4870 yes:no: )
4871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4872echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4874echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4875 ac_header_preproc=yes
4876 ;;
4877 no:yes:* )
4878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4879echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4881echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4883echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4885echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4887echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4889echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4890 (
4891 cat <<\_ASBOX
4892## ------------------------------------------ ##
4893## Report this to the AC_PACKAGE_NAME lists. ##
4894## ------------------------------------------ ##
4895_ASBOX
4896 ) |
4897 sed "s/^/$as_me: WARNING: /" >&2
4898 ;;
4899esac
4900echo "$as_me:$LINENO: checking for $ac_header" >&5
4901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4902if eval "test \"\${$as_ac_Header+set}\" = set"; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 eval "$as_ac_Header=\$ac_header_preproc"
4906fi
4907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4909
4910fi
4911if test `eval echo '${'$as_ac_Header'}'` = yes; then
4912 cat >>confdefs.h <<_ACEOF
4913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4914_ACEOF
4915
4916fi
4917
4918done
4919
4920
4921
4922
4923
4924# Only perform the check for file, if the check method requires it
4925case "$deplibs_check_method" in
4926file_magic*)
4927 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4928 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4929echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4930if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932else
4933 case "$MAGIC_CMD" in
4934 /*)
4935 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4936 ;;
4937 ?:/*)
4938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4939 ;;
4940 *)
4941 ac_save_MAGIC_CMD="$MAGIC_CMD"
4942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4943 ac_dummy="/usr/bin:$PATH"
4944 for ac_dir in $ac_dummy; do
4945 test -z "$ac_dir" && ac_dir=.
4946 if test -f $ac_dir/${ac_tool_prefix}file; then
4947 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4948 if test -n "$file_magic_test_file"; then
4949 case "$deplibs_check_method" in
4950 "file_magic "*)
4951 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4952 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4954 egrep "$file_magic_regex" > /dev/null; then
4955 :
4956 else
4957 cat <<EOF 1>&2
4958
4959*** Warning: the command libtool uses to detect shared libraries,
4960*** $file_magic_cmd, produces output that libtool cannot recognize.
4961*** The result is that libtool may fail to recognize shared libraries
4962*** as such. This will affect the creation of libtool libraries that
4963*** depend on shared libraries, but programs linked with such libtool
4964*** libraries will work regardless of this problem. Nevertheless, you
4965*** may want to report the problem to your system manager and/or to
4966*** bug-libtool@gnu.org
4967
4968EOF
4969 fi ;;
4970 esac
4971 fi
4972 break
4973 fi
4974 done
4975 IFS="$ac_save_ifs"
4976 MAGIC_CMD="$ac_save_MAGIC_CMD"
4977 ;;
4978esac
4979fi
4980
4981MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4982if test -n "$MAGIC_CMD"; then
4983 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4984echo "${ECHO_T}$MAGIC_CMD" >&6
4985else
4986 echo "$as_me:$LINENO: result: no" >&5
4987echo "${ECHO_T}no" >&6
4988fi
4989
4990if test -z "$lt_cv_path_MAGIC_CMD"; then
4991 if test -n "$ac_tool_prefix"; then
4992 echo "$as_me:$LINENO: checking for file" >&5
4993echo $ECHO_N "checking for file... $ECHO_C" >&6
4994if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997 case "$MAGIC_CMD" in
4998 /*)
4999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5000 ;;
5001 ?:/*)
5002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
5003 ;;
5004 *)
5005 ac_save_MAGIC_CMD="$MAGIC_CMD"
5006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5007 ac_dummy="/usr/bin:$PATH"
5008 for ac_dir in $ac_dummy; do
5009 test -z "$ac_dir" && ac_dir=.
5010 if test -f $ac_dir/file; then
5011 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5012 if test -n "$file_magic_test_file"; then
5013 case "$deplibs_check_method" in
5014 "file_magic "*)
5015 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5018 egrep "$file_magic_regex" > /dev/null; then
5019 :
5020 else
5021 cat <<EOF 1>&2
5022
5023*** Warning: the command libtool uses to detect shared libraries,
5024*** $file_magic_cmd, produces output that libtool cannot recognize.
5025*** The result is that libtool may fail to recognize shared libraries
5026*** as such. This will affect the creation of libtool libraries that
5027*** depend on shared libraries, but programs linked with such libtool
5028*** libraries will work regardless of this problem. Nevertheless, you
5029*** may want to report the problem to your system manager and/or to
5030*** bug-libtool@gnu.org
5031
5032EOF
5033 fi ;;
5034 esac
5035 fi
5036 break
5037 fi
5038 done
5039 IFS="$ac_save_ifs"
5040 MAGIC_CMD="$ac_save_MAGIC_CMD"
5041 ;;
5042esac
5043fi
5044
5045MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5046if test -n "$MAGIC_CMD"; then
5047 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5048echo "${ECHO_T}$MAGIC_CMD" >&6
5049else
5050 echo "$as_me:$LINENO: result: no" >&5
5051echo "${ECHO_T}no" >&6
5052fi
5053
5054 else
5055 MAGIC_CMD=:
5056 fi
5057fi
5058
5059 fi
5060 ;;
5061esac
5062
5063if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5065set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5066echo "$as_me:$LINENO: checking for $ac_word" >&5
5067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068if test "${ac_cv_prog_RANLIB+set}" = set; then
5069 echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071 if test -n "$RANLIB"; then
5072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086done
5087
5088fi
5089fi
5090RANLIB=$ac_cv_prog_RANLIB
5091if test -n "$RANLIB"; then
5092 echo "$as_me:$LINENO: result: $RANLIB" >&5
5093echo "${ECHO_T}$RANLIB" >&6
5094else
5095 echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097fi
5098
5099fi
5100if test -z "$ac_cv_prog_RANLIB"; then
5101 ac_ct_RANLIB=$RANLIB
5102 # Extract the first word of "ranlib", so it can be a program name with args.
5103set dummy ranlib; ac_word=$2
5104echo "$as_me:$LINENO: checking for $ac_word" >&5
5105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5106if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5108else
5109 if test -n "$ac_ct_RANLIB"; then
5110 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5111else
5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_prog_ac_ct_RANLIB="ranlib"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123done
5124done
5125
5126 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5127fi
5128fi
5129ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5130if test -n "$ac_ct_RANLIB"; then
5131 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5132echo "${ECHO_T}$ac_ct_RANLIB" >&6
5133else
5134 echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6
5136fi
5137
5138 RANLIB=$ac_ct_RANLIB
5139else
5140 RANLIB="$ac_cv_prog_RANLIB"
5141fi
5142
5143if test -n "$ac_tool_prefix"; then
5144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5145set dummy ${ac_tool_prefix}strip; ac_word=$2
5146echo "$as_me:$LINENO: checking for $ac_word" >&5
5147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148if test "${ac_cv_prog_STRIP+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150else
5151 if test -n "$STRIP"; then
5152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5153else
5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155for as_dir in $PATH
5156do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165done
5166done
5167
5168fi
5169fi
5170STRIP=$ac_cv_prog_STRIP
5171if test -n "$STRIP"; then
5172 echo "$as_me:$LINENO: result: $STRIP" >&5
5173echo "${ECHO_T}$STRIP" >&6
5174else
5175 echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
5177fi
5178
5179fi
5180if test -z "$ac_cv_prog_STRIP"; then
5181 ac_ct_STRIP=$STRIP
5182 # Extract the first word of "strip", so it can be a program name with args.
5183set dummy strip; ac_word=$2
5184echo "$as_me:$LINENO: checking for $ac_word" >&5
5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5186if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189 if test -n "$ac_ct_STRIP"; then
5190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5191else
5192as_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_prog_ac_ct_STRIP="strip"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203done
5204done
5205
5206 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5207fi
5208fi
5209ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5210if test -n "$ac_ct_STRIP"; then
5211 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5212echo "${ECHO_T}$ac_ct_STRIP" >&6
5213else
5214 echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
5216fi
5217
5218 STRIP=$ac_ct_STRIP
5219else
5220 STRIP="$ac_cv_prog_STRIP"
5221fi
5222
5223
5224enable_dlopen=no
5225enable_win32_dll=no
5226
5227# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5228if test "${enable_libtool_lock+set}" = set; then
5229 enableval="$enable_libtool_lock"
5230
5231fi;
5232test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5233
5234# Some flags need to be propagated to the compiler or linker for good
5235# libtool support.
5236case "$host" in
5237*-*-irix6*)
5238 # Find out which ABI we are using.
5239 echo '#line 5239 "configure"' > conftest.$ac_ext
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5241 (eval $ac_compile) 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; then
5245 case "`/usr/bin/file conftest.$ac_objext`" in
5246 *32-bit*)
5247 LD="${LD-ld} -32"
5248 ;;
5249 *N32*)
5250 LD="${LD-ld} -n32"
5251 ;;
5252 *64-bit*)
5253 LD="${LD-ld} -64"
5254 ;;
5255 esac
5256 fi
5257 rm -rf conftest*
5258 ;;
5259
5260*-*-sco3.2v5*)
5261 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5262 SAVE_CFLAGS="$CFLAGS"
5263 CFLAGS="$CFLAGS -belf"
5264 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5265echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5266if test "${lt_cv_cc_needs_belf+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5268else
5269
5270
5271 ac_ext=c
5272ac_cpp='$CPP $CPPFLAGS'
5273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276
5277 cat >conftest.$ac_ext <<_ACEOF
5278/* confdefs.h. */
5279_ACEOF
5280cat confdefs.h >>conftest.$ac_ext
5281cat >>conftest.$ac_ext <<_ACEOF
5282/* end confdefs.h. */
5283
5284int
5285main ()
5286{
5287
5288 ;
5289 return 0;
5290}
5291_ACEOF
5292rm -f conftest.$ac_objext conftest$ac_exeext
5293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5294 (eval $ac_link) 2>conftest.er1
5295 ac_status=$?
5296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 (eval $ac_try) 2>&5
5304 ac_status=$?
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest$ac_exeext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309 (eval $ac_try) 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 lt_cv_cc_needs_belf=yes
5314else
5315 echo "$as_me: failed program was:" >&5
5316sed 's/^/| /' conftest.$ac_ext >&5
5317
5318lt_cv_cc_needs_belf=no
5319fi
5320rm -f conftest.err conftest.$ac_objext \
5321 conftest$ac_exeext conftest.$ac_ext
5322 ac_ext=cc
5323ac_cpp='$CXXCPP $CPPFLAGS'
5324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5327
5328fi
5329echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5330echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5331 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5332 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5333 CFLAGS="$SAVE_CFLAGS"
5334 fi
5335 ;;
5336
5337
5338esac
5339
5340# Sed substitution that helps us do robust quoting. It backslashifies
5341# metacharacters that are still active within double-quoted strings.
5342Xsed='sed -e s/^X//'
5343sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5344
5345# Same as above, but do not quote variable references.
5346double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5347
5348# Sed substitution to delay expansion of an escaped shell variable in a
5349# double_quote_subst'ed string.
5350delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5351
5352# Constants:
5353rm="rm -f"
5354
5355# Global variables:
5356default_ofile=libtool
5357can_build_shared=yes
5358
5359# All known linkers require a `.a' archive for static linking (except M$VC,
5360# which needs '.lib').
5361libext=a
5362ltmain="$ac_aux_dir/ltmain.sh"
5363ofile="$default_ofile"
5364with_gnu_ld="$lt_cv_prog_gnu_ld"
5365need_locks="$enable_libtool_lock"
5366
5367old_CC="$CC"
5368old_CFLAGS="$CFLAGS"
5369
5370# Set sane defaults for various variables
5371test -z "$AR" && AR=ar
5372test -z "$AR_FLAGS" && AR_FLAGS=cru
5373test -z "$AS" && AS=as
5374test -z "$CC" && CC=cc
5375test -z "$DLLTOOL" && DLLTOOL=dlltool
5376test -z "$LD" && LD=ld
5377test -z "$LN_S" && LN_S="ln -s"
5378test -z "$MAGIC_CMD" && MAGIC_CMD=file
5379test -z "$NM" && NM=nm
5380test -z "$OBJDUMP" && OBJDUMP=objdump
5381test -z "$RANLIB" && RANLIB=:
5382test -z "$STRIP" && STRIP=:
5383test -z "$ac_objext" && ac_objext=o
5384
5385if test x"$host" != x"$build"; then
5386 ac_tool_prefix=${host_alias}-
5387else
5388 ac_tool_prefix=
5389fi
5390
5391# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5392case "$host_os" in
5393linux-gnu*) ;;
5394linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5395esac
5396
5397case "$host_os" in
5398aix3*)
5399 # AIX sometimes has problems with the GCC collect2 program. For some
5400 # reason, if we set the COLLECT_NAMES environment variable, the problems
5401 # vanish in a puff of smoke.
5402 if test "X${COLLECT_NAMES+set}" != Xset; then
5403 COLLECT_NAMES=
5404 export COLLECT_NAMES
5405 fi
5406 ;;
5407esac
5408
5409# Determine commands to create old-style static archives.
5410old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5411old_postinstall_cmds='chmod 644 $oldlib'
5412old_postuninstall_cmds=
5413
5414if test -n "$RANLIB"; then
5415 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5416 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5417fi
5418
5419# Allow CC to be a program name with arguments.
5420set dummy $CC
5421compiler="$2"
5422
5423## FIXME: this should be a separate macro
5424##
5425echo "$as_me:$LINENO: checking for objdir" >&5
5426echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5427rm -f .libs 2>/dev/null
5428mkdir .libs 2>/dev/null
5429if test -d .libs; then
5430 objdir=.libs
5431else
5432 # MS-DOS does not allow filenames that begin with a dot.
5433 objdir=_libs
5434fi
5435rmdir .libs 2>/dev/null
5436echo "$as_me:$LINENO: result: $objdir" >&5
5437echo "${ECHO_T}$objdir" >&6
5438##
5439## END FIXME
5440
5441
5442## FIXME: this should be a separate macro
5443##
5444
5445# Check whether --with-pic or --without-pic was given.
5446if test "${with_pic+set}" = set; then
5447 withval="$with_pic"
5448 pic_mode="$withval"
5449else
5450 pic_mode=default
5451fi;
5452test -z "$pic_mode" && pic_mode=default
5453
5454# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5455# in isolation, and that seeing it set (from the cache) indicates that
5456# the associated values are set (in the cache) correctly too.
5457echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5458echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5459if test "${lt_cv_prog_cc_pic+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462 lt_cv_prog_cc_pic=
5463 lt_cv_prog_cc_shlib=
5464 lt_cv_prog_cc_wl=
5465 lt_cv_prog_cc_static=
5466 lt_cv_prog_cc_no_builtin=
5467 lt_cv_prog_cc_can_build_shared=$can_build_shared
5468
5469 if test "$GCC" = yes; then
5470 lt_cv_prog_cc_wl='-Wl,'
5471 lt_cv_prog_cc_static='-static'
5472
5473 case "$host_os" in
5474 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5475 # PIC is the default for these OSes.
5476 ;;
5477 aix*)
5478 # Below there is a dirty hack to force normal static linking with -ldl
5479 # The problem is because libdl dynamically linked with both libc and
5480 # libC (AIX C++ library), which obviously doesn't included in libraries
5481 # list by gcc. This cause undefined symbols with -static flags.
5482 # This hack allows C programs to be linked with "-static -ldl", but
5483 # we not sure about C++ programs.
5484 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5485 ;;
5486 cygwin* | mingw* | pw32* | os2*)
5487 # This hack is so that the source file can tell whether it is being
5488 # built for inclusion in a dll (and should export symbols for example).
5489 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5490 ;;
5491 amigaos*)
5492 # FIXME: we need at least 68020 code to build shared libraries, but
5493 # adding the `-m68020' flag to GCC prevents building anything better,
5494 # like `-m68040'.
5495 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5496 ;;
5497 sysv4*MP*)
5498 if test -d /usr/nec; then
5499 lt_cv_prog_cc_pic=-Kconform_pic
5500 fi
5501 ;;
5502 *)
5503 lt_cv_prog_cc_pic='-fPIC'
5504 ;;
5505 esac
5506 else
5507 # PORTME Check for PIC flags for the system compiler.
5508 case "$host_os" in
5509 aix3* | aix4*)
5510 # All AIX code is PIC.
5511 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5512 ;;
5513
5514 hpux9* | hpux10* | hpux11*)
5515 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5516 lt_cv_prog_cc_wl='-Wl,'
5517 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5518 lt_cv_prog_cc_pic='+Z'
5519 ;;
5520
5521 irix5* | irix6*)
5522 lt_cv_prog_cc_wl='-Wl,'
5523 lt_cv_prog_cc_static='-non_shared'
5524 # PIC (with -KPIC) is the default.
5525 ;;
5526
5527 cygwin* | mingw* | pw32* | os2*)
5528 # This hack is so that the source file can tell whether it is being
5529 # built for inclusion in a dll (and should export symbols for example).
5530 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5531 ;;
5532
5533 newsos6)
5534 lt_cv_prog_cc_pic='-KPIC'
5535 lt_cv_prog_cc_static='-Bstatic'
5536 ;;
5537
5538 osf3* | osf4* | osf5*)
5539 # All OSF/1 code is PIC.
5540 lt_cv_prog_cc_wl='-Wl,'
5541 lt_cv_prog_cc_static='-non_shared'
5542 ;;
5543
5544 sco3.2v5*)
5545 lt_cv_prog_cc_pic='-Kpic'
5546 lt_cv_prog_cc_static='-dn'
5547 lt_cv_prog_cc_shlib='-belf'
5548 ;;
5549
5550 solaris*)
5551 lt_cv_prog_cc_pic='-KPIC'
5552 lt_cv_prog_cc_static='-Bstatic'
5553 lt_cv_prog_cc_wl='-Wl,'
5554 ;;
5555
5556 sunos4*)
5557 lt_cv_prog_cc_pic='-PIC'
5558 lt_cv_prog_cc_static='-Bstatic'
5559 lt_cv_prog_cc_wl='-Qoption ld '
5560 ;;
5561
5562 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5563 lt_cv_prog_cc_pic='-KPIC'
5564 lt_cv_prog_cc_static='-Bstatic'
5565 if test "x$host_vendor" = xsni; then
5566 lt_cv_prog_cc_wl='-LD'
5567 else
5568 lt_cv_prog_cc_wl='-Wl,'
5569 fi
5570 ;;
5571
5572 uts4*)
5573 lt_cv_prog_cc_pic='-pic'
5574 lt_cv_prog_cc_static='-Bstatic'
5575 ;;
5576
5577 sysv4*MP*)
5578 if test -d /usr/nec ;then
5579 lt_cv_prog_cc_pic='-Kconform_pic'
5580 lt_cv_prog_cc_static='-Bstatic'
5581 fi
5582 ;;
5583
5584 *)
5585 lt_cv_prog_cc_can_build_shared=no
5586 ;;
5587 esac
5588 fi
5589
5590fi
5591
5592if test -z "$lt_cv_prog_cc_pic"; then
5593 echo "$as_me:$LINENO: result: none" >&5
5594echo "${ECHO_T}none" >&6
5595else
5596 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5597echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5598
5599 # Check to make sure the pic_flag actually works.
5600 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5601echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5602 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5604else
5605 save_CFLAGS="$CFLAGS"
5606 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5607 cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
5613
5614int
5615main ()
5616{
5617
5618 ;
5619 return 0;
5620}
5621_ACEOF
5622rm -f conftest.$ac_objext
5623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624 (eval $ac_compile) 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; } &&
5637 { ac_try='test -s conftest.$ac_objext'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 (eval $ac_try) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5643 case "$host_os" in
5644 hpux9* | hpux10* | hpux11*)
5645 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5646 # they create non-PIC objects. So, if there were any warnings, we
5647 # assume that PIC is not supported.
5648 if test -s conftest.err; then
5649 lt_cv_prog_cc_pic_works=no
5650 else
5651 lt_cv_prog_cc_pic_works=yes
5652 fi
5653 ;;
5654 *)
5655 lt_cv_prog_cc_pic_works=yes
5656 ;;
5657 esac
5658
5659else
5660 echo "$as_me: failed program was:" >&5
5661sed 's/^/| /' conftest.$ac_ext >&5
5662
5663 lt_cv_prog_cc_pic_works=no
5664
5665fi
5666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5667 CFLAGS="$save_CFLAGS"
5668
5669fi
5670
5671
5672 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5673 lt_cv_prog_cc_pic=
5674 lt_cv_prog_cc_can_build_shared=no
5675 else
5676 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5677 fi
5678
5679 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5680echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5681fi
5682##
5683## END FIXME
5684
5685# Check for any special shared library compilation flags.
5686if test -n "$lt_cv_prog_cc_shlib"; then
5687 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5688echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5689 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5690 else
5691 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5692echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5693 lt_cv_prog_cc_can_build_shared=no
5694 fi
5695fi
5696
5697## FIXME: this should be a separate macro
5698##
5699echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5700echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5701if test "${lt_cv_prog_cc_static_works+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704 lt_cv_prog_cc_static_works=no
5705 save_LDFLAGS="$LDFLAGS"
5706 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5707 cat >conftest.$ac_ext <<_ACEOF
5708/* confdefs.h. */
5709_ACEOF
5710cat confdefs.h >>conftest.$ac_ext
5711cat >>conftest.$ac_ext <<_ACEOF
5712/* end confdefs.h. */
5713
5714int
5715main ()
5716{
5717
5718 ;
5719 return 0;
5720}
5721_ACEOF
5722rm -f conftest.$ac_objext conftest$ac_exeext
5723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5724 (eval $ac_link) 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } &&
5731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5733 (eval $ac_try) 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5743 lt_cv_prog_cc_static_works=yes
5744else
5745 echo "$as_me: failed program was:" >&5
5746sed 's/^/| /' conftest.$ac_ext >&5
5747
5748fi
5749rm -f conftest.err conftest.$ac_objext \
5750 conftest$ac_exeext conftest.$ac_ext
5751 LDFLAGS="$save_LDFLAGS"
5752
5753fi
5754
5755
5756# Belt *and* braces to stop my trousers falling down:
5757test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5758echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5759echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5760
5761pic_flag="$lt_cv_prog_cc_pic"
5762special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5763wl="$lt_cv_prog_cc_wl"
5764link_static_flag="$lt_cv_prog_cc_static"
5765no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5766can_build_shared="$lt_cv_prog_cc_can_build_shared"
5767##
5768## END FIXME
5769
5770
5771## FIXME: this should be a separate macro
5772##
5773# Check to see if options -o and -c are simultaneously supported by compiler
5774echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5775echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5776$rm -r conftest 2>/dev/null
5777mkdir conftest
5778cd conftest
5779echo "int some_variable = 0;" > conftest.$ac_ext
5780mkdir out
5781# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5782# that will create temporary files in the current directory regardless of
5783# the output directory. Thus, making CWD read-only will cause this test
5784# to fail, enabling locking or at least warning the user not to do parallel
5785# builds.
5786chmod -w .
5787save_CFLAGS="$CFLAGS"
5788CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5789compiler_c_o=no
5790if { (eval echo configure:5790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5791 # The compiler can only warn and ignore the option if not recognized
5792 # So say no if there are warnings
5793 if test -s out/conftest.err; then
5794 compiler_c_o=no
5795 else
5796 compiler_c_o=yes
5797 fi
5798else
5799 # Append any errors to the config.log.
5800 cat out/conftest.err 1>&5
5801 compiler_c_o=no
5802fi
5803echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5804echo "${ECHO_T}$compiler_c_o" >&6
5805CFLAGS="$save_CFLAGS"
5806chmod u+w .
5807$rm conftest* out/*
5808rmdir out
5809cd ..
5810rmdir conftest
5811$rm -r conftest 2>/dev/null
5812
5813if test x"$compiler_c_o" = x"yes"; then
5814 # Check to see if we can write to a .lo
5815 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5816echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5817 compiler_o_lo=no
5818 save_CFLAGS="$CFLAGS"
5819 CFLAGS="$CFLAGS -c -o conftest.lo"
5820 cat >conftest.$ac_ext <<_ACEOF
5821/* confdefs.h. */
5822_ACEOF
5823cat confdefs.h >>conftest.$ac_ext
5824cat >>conftest.$ac_ext <<_ACEOF
5825/* end confdefs.h. */
5826
5827int
5828main ()
5829{
5830int some_variable = 0;
5831 ;
5832 return 0;
5833}
5834_ACEOF
5835rm -f conftest.$ac_objext
5836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5837 (eval $ac_compile) 2>conftest.er1
5838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); } &&
5844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; } &&
5850 { ac_try='test -s conftest.$ac_objext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 # The compiler can only warn and ignore the option if not recognized
5857 # So say no if there are warnings
5858 if test -s conftest.err; then
5859 compiler_o_lo=no
5860 else
5861 compiler_o_lo=yes
5862 fi
5863
5864else
5865 echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
5867
5868fi
5869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5870 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5871echo "${ECHO_T}$compiler_c_o" >&6
5872 CFLAGS="$save_CFLAGS"
5873else
5874 compiler_o_lo=no
5875fi
5876##
5877## END FIXME
5878
5879## FIXME: this should be a separate macro
5880##
5881# Check to see if we can do hard links to lock some files if needed
5882hard_links="nottested"
5883if test "$compiler_c_o" = no && test "$need_locks" != no; then
5884 # do not overwrite the value of need_locks provided by the user
5885 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5886echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5887 hard_links=yes
5888 $rm conftest*
5889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5890 touch conftest.a
5891 ln conftest.a conftest.b 2>&5 || hard_links=no
5892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5893 echo "$as_me:$LINENO: result: $hard_links" >&5
5894echo "${ECHO_T}$hard_links" >&6
5895 if test "$hard_links" = no; then
5896 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5897echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5898 need_locks=warn
5899 fi
5900else
5901 need_locks=no
5902fi
5903##
5904## END FIXME
5905
5906## FIXME: this should be a separate macro
5907##
5908if test "$GCC" = yes; then
5909 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5910 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5911echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5912 echo "int some_variable = 0;" > conftest.$ac_ext
5913 save_CFLAGS="$CFLAGS"
5914 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5915 compiler_rtti_exceptions=no
5916 cat >conftest.$ac_ext <<_ACEOF
5917/* confdefs.h. */
5918_ACEOF
5919cat confdefs.h >>conftest.$ac_ext
5920cat >>conftest.$ac_ext <<_ACEOF
5921/* end confdefs.h. */
5922
5923int
5924main ()
5925{
5926int some_variable = 0;
5927 ;
5928 return 0;
5929}
5930_ACEOF
5931rm -f conftest.$ac_objext
5932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5942 (eval $ac_try) 2>&5
5943 ac_status=$?
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); }; } &&
5946 { ac_try='test -s conftest.$ac_objext'
5947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5948 (eval $ac_try) 2>&5
5949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 # The compiler can only warn and ignore the option if not recognized
5953 # So say no if there are warnings
5954 if test -s conftest.err; then
5955 compiler_rtti_exceptions=no
5956 else
5957 compiler_rtti_exceptions=yes
5958 fi
5959
5960else
5961 echo "$as_me: failed program was:" >&5
5962sed 's/^/| /' conftest.$ac_ext >&5
5963
5964fi
5965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5966 CFLAGS="$save_CFLAGS"
5967 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5968echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5969
5970 if test "$compiler_rtti_exceptions" = "yes"; then
5971 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5972 else
5973 no_builtin_flag=' -fno-builtin'
5974 fi
5975fi
5976##
5977## END FIXME
5978
5979## FIXME: this should be a separate macro
5980##
5981# See if the linker supports building shared libraries.
5982echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5983echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5984
5985allow_undefined_flag=
5986no_undefined_flag=
5987need_lib_prefix=unknown
5988need_version=unknown
5989# when you set need_version to no, make sure it does not cause -set_version
5990# flags to be left without arguments
5991archive_cmds=
5992archive_expsym_cmds=
5993old_archive_from_new_cmds=
5994old_archive_from_expsyms_cmds=
5995export_dynamic_flag_spec=
5996whole_archive_flag_spec=
5997thread_safe_flag_spec=
5998hardcode_into_libs=no
5999hardcode_libdir_flag_spec=
6000hardcode_libdir_separator=
6001hardcode_direct=no
6002hardcode_minus_L=no
6003hardcode_shlibpath_var=unsupported
6004runpath_var=
6005link_all_deplibs=unknown
6006always_export_symbols=no
6007export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6008# include_expsyms should be a list of space-separated symbols to be *always*
6009# included in the symbol list
6010include_expsyms=
6011# exclude_expsyms can be an egrep regular expression of symbols to exclude
6012# it will be wrapped by ` (' and `)$', so one must not match beginning or
6013# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6014# as well as any symbol that contains `d'.
6015exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6016# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6017# platforms (ab)use it in PIC code, but their linkers get confused if
6018# the symbol is explicitly referenced. Since portable code cannot
6019# rely on this symbol name, it's probably fine to never include it in
6020# preloaded symbol tables.
6021extract_expsyms_cmds=
6022
6023case "$host_os" in
6024cygwin* | mingw* | pw32* )
6025 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6026 # When not using gcc, we currently assume that we are using
6027 # Microsoft Visual C++.
6028 if test "$GCC" != yes; then
6029 with_gnu_ld=no
6030 fi
6031 ;;
6032
6033esac
6034
6035ld_shlibs=yes
6036if test "$with_gnu_ld" = yes; then
6037 # If archive_cmds runs LD, not CC, wlarc should be empty
6038 wlarc='${wl}'
6039
6040 # See if GNU ld supports shared libraries.
6041 case "$host_os" in
6042 aix3* | aix4*)
6043 # On AIX, the GNU linker is very broken
6044 ld_shlibs=no
6045 cat <<EOF 1>&2
6046
6047*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6048*** to be unable to reliably create shared libraries on AIX.
6049*** Therefore, libtool is disabling shared libraries support. If you
6050*** really care for shared libraries, you may want to modify your PATH
6051*** so that a non-GNU linker is found, and then restart.
6052
6053EOF
6054 ;;
6055
6056 amigaos*)
6057 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)'
6058 hardcode_libdir_flag_spec='-L$libdir'
6059 hardcode_minus_L=yes
6060
6061 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6062 # that the semantics of dynamic libraries on AmigaOS, at least up
6063 # to version 4, is to share data among multiple programs linked
6064 # with the same dynamic library. Since this doesn't match the
6065 # behavior of shared libraries on other platforms, we can use
6066 # them.
6067 ld_shlibs=no
6068 ;;
6069
6070 beos*)
6071 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6072 allow_undefined_flag=unsupported
6073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6074 # support --undefined. This deserves some investigation. FIXME
6075 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6076 else
6077 ld_shlibs=no
6078 fi
6079 ;;
6080
6081 cygwin* | mingw* | pw32*)
6082 # hardcode_libdir_flag_spec is actually meaningless, as there is
6083 # no search path for DLLs.
6084 hardcode_libdir_flag_spec='-L$libdir'
6085 allow_undefined_flag=unsupported
6086 always_export_symbols=yes
6087
6088 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6089 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6090 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6091 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6092 else $CC -o impgen impgen.c ; fi)~
6093 $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def'
6094
6095 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6096
6097 # cygwin and mingw dlls have different entry points and sets of symbols
6098 # to exclude.
6099 # FIXME: what about values for MSVC?
6100 dll_entry=__cygwin_dll_entry@12
6101 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6102 case "$host_os" in
6103 mingw*)
6104 # mingw values
6105 dll_entry=_DllMainCRTStartup@12
6106 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6107 ;;
6108 esac
6109
6110 # mingw and cygwin differ, and it's simplest to just exclude the union
6111 # of the two symbol sets.
6112 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6113
6114 # recent cygwin and mingw systems supply a stub DllMain which the user
6115 # can override, but on older systems we have to supply one (in ltdll.c)
6116 if test "x$lt_cv_need_dllmain" = "xyes"; then
6117 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6118 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~
6119 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6120 else
6121 ltdll_obj=
6122 ltdll_cmds=
6123 fi
6124
6125 # Extract the symbol export list from an `--export-all' def file,
6126 # then regenerate the def file from the symbol export list, so that
6127 # the compiled dll only exports the symbol export list.
6128 # Be careful not to strip the DATA tag left be newer dlltools.
6129 export_symbols_cmds="$ltdll_cmds"'
6130 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6131 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6132
6133 # If DATA tags from a recent dlltool are present, honour them!
6134 archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~
6135 _lt_hint=1;
6136 cat $export_symbols | while read symbol; do
6137 set dummy \$symbol;
6138 case \$# in
6139 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6140 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6141 esac;
6142 _lt_hint=`expr 1 + \$_lt_hint`;
6143 done~
6144 '"$ltdll_cmds"'
6145 $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~
6146 $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~
6147 $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~
6148 $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~
6149 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6150 ;;
6151
6152 netbsd*)
6153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6154 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6155 wlarc=
6156 else
6157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6158 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6159 fi
6160 ;;
6161
6162 solaris* | sysv5*)
6163 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6164 ld_shlibs=no
6165 cat <<EOF 1>&2
6166
6167*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6168*** create shared libraries on Solaris systems. Therefore, libtool
6169*** is disabling shared libraries support. We urge you to upgrade GNU
6170*** binutils to release 2.9.1 or newer. Another option is to modify
6171*** your PATH or compiler configuration so that the native linker is
6172*** used, and then restart.
6173
6174EOF
6175 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6178 else
6179 ld_shlibs=no
6180 fi
6181 ;;
6182
6183 sunos4*)
6184 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6185 wlarc=
6186 hardcode_direct=yes
6187 hardcode_shlibpath_var=no
6188 ;;
6189
6190 *)
6191 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6194 else
6195 ld_shlibs=no
6196 fi
6197 ;;
6198 esac
6199
6200 if test "$ld_shlibs" = yes; then
6201 runpath_var=LD_RUN_PATH
6202 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6203 export_dynamic_flag_spec='${wl}--export-dynamic'
6204 case $host_os in
6205 cygwin* | mingw* | pw32*)
6206 # dlltool doesn't understand --whole-archive et. al.
6207 whole_archive_flag_spec=
6208 ;;
6209 *)
6210 # ancient GNU ld didn't support --whole-archive et. al.
6211 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6212 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6213 else
6214 whole_archive_flag_spec=
6215 fi
6216 ;;
6217 esac
6218 fi
6219else
6220 # PORTME fill in a description of your system's linker (not GNU ld)
6221 case "$host_os" in
6222 aix3*)
6223 allow_undefined_flag=unsupported
6224 always_export_symbols=yes
6225 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'
6226 # Note: this linker hardcodes the directories in LIBPATH if there
6227 # are no directories specified by -L.
6228 hardcode_minus_L=yes
6229 if test "$GCC" = yes && test -z "$link_static_flag"; then
6230 # Neither direct hardcoding nor static linking is supported with a
6231 # broken collect2.
6232 hardcode_direct=unsupported
6233 fi
6234 ;;
6235
6236 aix4*)
6237 hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
6238 hardcode_libdir_separator=':'
6239 if test "$GCC" = yes; then
6240 collect2name=`${CC} -print-prog-name=collect2`
6241 if test -f "$collect2name" && \
6242 strings "$collect2name" | grep resolve_lib_name >/dev/null
6243 then
6244 # We have reworked collect2
6245 hardcode_direct=yes
6246 else
6247 # We have old collect2
6248 hardcode_direct=unsupported
6249 # It fails to find uninstalled libraries when the uninstalled
6250 # path is not listed in the libpath. Setting hardcode_minus_L
6251 # to unsupported forces relinking
6252 hardcode_minus_L=yes
6253 hardcode_libdir_flag_spec='-L$libdir'
6254 hardcode_libdir_separator=
6255 fi
6256 shared_flag='-shared'
6257 else
6258 shared_flag='${wl}-bM:SRE'
6259 hardcode_direct=yes
6260 fi
6261 allow_undefined_flag=' ${wl}-berok'
6262 archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
6263 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
6264 case "$host_os" in aix4.[01]|aix4.[01].*)
6265 # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
6266 always_export_symbols=yes ;;
6267 esac
6268
6269 # We don't want to build shared libraries on unknown CPU types.
6270 case $host_cpu in
6271 powerpc | rs6000) ;;
6272 *) ld_shlibs=no ;;
6273 esac
6274 ;;
6275
6276 amigaos*)
6277 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)'
6278 hardcode_libdir_flag_spec='-L$libdir'
6279 hardcode_minus_L=yes
6280 # see comment about different semantics on the GNU ld section
6281 ld_shlibs=no
6282 ;;
6283
6284 cygwin* | mingw* | pw32*)
6285 # When not using gcc, we currently assume that we are using
6286 # Microsoft Visual C++.
6287 # hardcode_libdir_flag_spec is actually meaningless, as there is
6288 # no search path for DLLs.
6289 hardcode_libdir_flag_spec=' '
6290 allow_undefined_flag=unsupported
6291 # Tell ltmain to make .lib files, not .a files.
6292 libext=lib
6293 # FIXME: Setting linknames here is a bad hack.
6294 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6295 # The linker will automatically build a .lib file if we build a DLL.
6296 old_archive_from_new_cmds='true'
6297 # FIXME: Should let the user specify the lib program.
6298 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6299 fix_srcfile_path='`cygpath -w "$srcfile"`'
6300 ;;
6301
6302 darwin* | rhapsody*)
6303 allow_undefined_flag='-undefined warning'
6304 archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else
6305 echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts'
6306 archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6307 ## What we need is to hardcode the path to the library, not the search path
6308 #hardcode_direct=yes
6309 #hardcode_libdir_flag_spec='-install_name $libdir/$lib'
6310 hardcode_shlibpath_var=no
6311 whole_archive_flag_spec='-all_load'
6312 ;;
6313
6314 freebsd1*)
6315 ld_shlibs=no
6316 ;;
6317
6318 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6319 # support. Future versions do this automatically, but an explicit c++rt0.o
6320 # does not break anything, and helps significantly (at the cost of a little
6321 # extra space).
6322 freebsd2.2*)
6323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6324 hardcode_libdir_flag_spec='-R$libdir'
6325 hardcode_direct=yes
6326 hardcode_shlibpath_var=no
6327 ;;
6328
6329 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6330 freebsd2*)
6331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6332 hardcode_direct=yes
6333 hardcode_minus_L=yes
6334 hardcode_shlibpath_var=no
6335 ;;
6336
6337 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6338 freebsd*)
6339 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6340 hardcode_libdir_flag_spec='-R$libdir'
6341 hardcode_direct=yes
6342 hardcode_shlibpath_var=no
6343 ;;
6344
6345 hpux9* | hpux10* | hpux11*)
6346 case "$host_os" in
6347 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' ;;
6348 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6349 esac
6350 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6351 hardcode_libdir_separator=:
6352 hardcode_direct=yes
6353 hardcode_minus_L=yes # Not in the search PATH, but as the default
6354 # location of the library.
6355 export_dynamic_flag_spec='${wl}-E'
6356 ;;
6357
6358 irix5* | irix6*)
6359 if test "$GCC" = yes; then
6360 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'
6361 else
6362 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'
6363 fi
6364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6365 hardcode_libdir_separator=:
6366 link_all_deplibs=yes
6367 ;;
6368
6369 netbsd*)
6370 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6371 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6372 else
6373 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6374 fi
6375 hardcode_libdir_flag_spec='-R$libdir'
6376 hardcode_direct=yes
6377 hardcode_shlibpath_var=no
6378 ;;
6379
6380 newsos6)
6381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
6382 hardcode_direct=yes
6383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6384 hardcode_libdir_separator=:
6385 hardcode_shlibpath_var=no
6386 ;;
6387
6388 openbsd*)
6389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6390 hardcode_libdir_flag_spec='-R$libdir'
6391 hardcode_direct=yes
6392 hardcode_shlibpath_var=no
6393 ;;
6394
6395 os2*)
6396 hardcode_libdir_flag_spec='-L$libdir'
6397 hardcode_minus_L=yes
6398 allow_undefined_flag=unsupported
6399 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'
6400 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6401 ;;
6402
6403 osf3*)
6404 if test "$GCC" = yes; then
6405 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6406 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'
6407 else
6408 allow_undefined_flag=' -expect_unresolved \*'
6409 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'
6410 fi
6411 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6412 hardcode_libdir_separator=:
6413 ;;
6414
6415 osf4* | osf5*) # as osf3* with the addition of -msym flag
6416 if test "$GCC" = yes; then
6417 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6418 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'
6419 else
6420 allow_undefined_flag=' -expect_unresolved \*'
6421 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'
6422 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6423 $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'
6424 fi
6425#Both c and cxx compiler support -rpath directly
6426 hardcode_libdir_flag_spec='-rpath $libdir'
6427 hardcode_libdir_separator=:
6428 ;;
6429
6430 sco3.2v5*)
6431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6432 hardcode_shlibpath_var=no
6433 runpath_var=LD_RUN_PATH
6434 hardcode_runpath_var=yes
6435 ;;
6436
6437 solaris*)
6438 no_undefined_flag=' -z text'
6439 # $CC -shared without GNU ld will not create a library from C++
6440 # object files and a static libstdc++, better avoid it by now
6441 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6442 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6443 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6444 hardcode_libdir_flag_spec='-R$libdir'
6445 hardcode_shlibpath_var=no
6446 case "$host_os" in
6447 solaris2.[0-5] | solaris2.[0-5].*) ;;
6448 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6449 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6450 esac
6451 link_all_deplibs=yes
6452 ;;
6453
6454 sunos4*)
6455 if test "x$host_vendor" = xsequent; then
6456 # Use $CC to link under sequent, because it throws in some extra .o
6457 # files that make .init and .fini sections work.
6458 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6459 else
6460 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6461 fi
6462 hardcode_libdir_flag_spec='-L$libdir'
6463 hardcode_direct=yes
6464 hardcode_minus_L=yes
6465 hardcode_shlibpath_var=no
6466 ;;
6467
6468 sysv4)
6469 if test "x$host_vendor" = xsno; then
6470 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
6471 hardcode_direct=yes # is this really true???
6472 else
6473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6474 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6475 fi
6476 runpath_var='LD_RUN_PATH'
6477 hardcode_shlibpath_var=no
6478 ;;
6479
6480 sysv4.3*)
6481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6482 hardcode_shlibpath_var=no
6483 export_dynamic_flag_spec='-Bexport'
6484 ;;
6485
6486 sysv5*)
6487 no_undefined_flag=' -z text'
6488 # $CC -shared without GNU ld will not create a library from C++
6489 # object files and a static libstdc++, better avoid it by now
6490 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6491 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6492 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6493 hardcode_libdir_flag_spec=
6494 hardcode_shlibpath_var=no
6495 runpath_var='LD_RUN_PATH'
6496 ;;
6497
6498 uts4*)
6499 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6500 hardcode_libdir_flag_spec='-L$libdir'
6501 hardcode_shlibpath_var=no
6502 ;;
6503
6504 dgux*)
6505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6506 hardcode_libdir_flag_spec='-L$libdir'
6507 hardcode_shlibpath_var=no
6508 ;;
6509
6510 sysv4*MP*)
6511 if test -d /usr/nec; then
6512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6513 hardcode_shlibpath_var=no
6514 runpath_var=LD_RUN_PATH
6515 hardcode_runpath_var=yes
6516 ld_shlibs=yes
6517 fi
6518 ;;
6519
6520 sysv4.2uw2*)
6521 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6522 hardcode_direct=yes
6523 hardcode_minus_L=no
6524 hardcode_shlibpath_var=no
6525 hardcode_runpath_var=yes
6526 runpath_var=LD_RUN_PATH
6527 ;;
6528
6529 unixware7*)
6530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6531 runpath_var='LD_RUN_PATH'
6532 hardcode_shlibpath_var=no
6533 ;;
6534
6535 *)
6536 ld_shlibs=no
6537 ;;
6538 esac
6539fi
6540echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6541echo "${ECHO_T}$ld_shlibs" >&6
6542test "$ld_shlibs" = no && can_build_shared=no
6543##
6544## END FIXME
6545
6546## FIXME: this should be a separate macro
6547##
6548# Check hardcoding attributes.
6549echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6550echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6551hardcode_action=
6552if test -n "$hardcode_libdir_flag_spec" || \
6553 test -n "$runpath_var"; then
6554
6555 # We can hardcode non-existant directories.
6556 if test "$hardcode_direct" != no &&
6557 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6558 # have to relink, otherwise we might link with an installed library
6559 # when we should be linking with a yet-to-be-installed one
6560 ## test "$hardcode_shlibpath_var" != no &&
6561 test "$hardcode_minus_L" != no; then
6562 # Linking always hardcodes the temporary library directory.
6563 hardcode_action=relink
6564 else
6565 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6566 hardcode_action=immediate
6567 fi
6568else
6569 # We cannot hardcode anything, or else we can only hardcode existing
6570 # directories.
6571 hardcode_action=unsupported
6572fi
6573echo "$as_me:$LINENO: result: $hardcode_action" >&5
6574echo "${ECHO_T}$hardcode_action" >&6
6575##
6576## END FIXME
6577
6578## FIXME: this should be a separate macro
6579##
6580striplib=
6581old_striplib=
6582echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6583echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6584if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6585 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6586 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6587 echo "$as_me:$LINENO: result: yes" >&5
6588echo "${ECHO_T}yes" >&6
6589else
6590 echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6
6592fi
6593##
6594## END FIXME
6595
6596reload_cmds='$LD$reload_flag -o $output$reload_objs'
6597test -z "$deplibs_check_method" && deplibs_check_method=unknown
6598
6599## FIXME: this should be a separate macro
6600##
6601# PORTME Fill in your ld.so characteristics
6602echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6603echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6604library_names_spec=
6605libname_spec='lib$name'
6606soname_spec=
6607postinstall_cmds=
6608postuninstall_cmds=
6609finish_cmds=
6610finish_eval=
6611shlibpath_var=
6612shlibpath_overrides_runpath=unknown
6613version_type=none
6614dynamic_linker="$host_os ld.so"
6615sys_lib_dlsearch_path_spec="/lib /usr/lib"
6616sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6617
6618case "$host_os" in
6619aix3*)
6620 version_type=linux
6621 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6622 shlibpath_var=LIBPATH
6623
6624 # AIX has no versioning support, so we append a major version to the name.
6625 soname_spec='${libname}${release}.so$major'
6626 ;;
6627
6628aix4*)
6629 version_type=linux
6630 # AIX has no versioning support, so currently we can not hardcode correct
6631 # soname into executable. Probably we can add versioning support to
6632 # collect2, so additional links can be useful in future.
6633 # We preserve .a as extension for shared libraries though AIX4.2
6634 # and later linker supports .so
6635 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
6636 shlibpath_var=LIBPATH
6637 ;;
6638
6639amigaos*)
6640 library_names_spec='$libname.ixlibrary $libname.a'
6641 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6642 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'
6643 ;;
6644
6645beos*)
6646 library_names_spec='${libname}.so'
6647 dynamic_linker="$host_os ld.so"
6648 shlibpath_var=LIBRARY_PATH
6649 ;;
6650
6651bsdi4*)
6652 version_type=linux
6653 need_version=no
6654 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6655 soname_spec='${libname}${release}.so$major'
6656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6657 shlibpath_var=LD_LIBRARY_PATH
6658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6660 export_dynamic_flag_spec=-rdynamic
6661 # the default ld.so.conf also contains /usr/contrib/lib and
6662 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6663 # libtool to hard-code these into programs
6664 ;;
6665
6666cygwin* | mingw* | pw32*)
6667 version_type=windows
6668 need_version=no
6669 need_lib_prefix=no
6670 if test "$GCC" = yes; then
6671 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6672 else
6673 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6674 fi
6675 dynamic_linker='Win32 ld.exe'
6676 # FIXME: first we should search . and the directory the executable is in
6677 shlibpath_var=PATH
6678 ;;
6679
6680darwin* | rhapsody*)
6681 need_lib_prefix=no
6682 need_version=no
6683 library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`'
6684 shlibpath_overrides_runpath=yes
6685 shlibpath_var=DYLD_LIBRARY_PATH
6686 postinstall_cmds='chmod +x $lib'
6687 ;;
6688
6689freebsd1*)
6690 dynamic_linker=no
6691 ;;
6692
6693freebsd*)
6694 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6695 version_type=freebsd-$objformat
6696 case "$version_type" in
6697 freebsd-elf*)
6698 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6699 need_version=no
6700 need_lib_prefix=no
6701 ;;
6702 freebsd-*)
6703 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6704 need_version=yes
6705 ;;
6706 esac
6707 shlibpath_var=LD_LIBRARY_PATH
6708 case "$host_os" in
6709 freebsd2*)
6710 shlibpath_overrides_runpath=yes
6711 ;;
6712 *)
6713 shlibpath_overrides_runpath=no
6714 hardcode_into_libs=yes
6715 ;;
6716 esac
6717 ;;
6718
6719gnu*)
6720 version_type=linux
6721 need_lib_prefix=no
6722 need_version=no
6723 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6724 soname_spec='${libname}${release}.so$major'
6725 shlibpath_var=LD_LIBRARY_PATH
6726 hardcode_into_libs=yes
6727 ;;
6728
6729hpux9* | hpux10* | hpux11*)
6730 # Give a soname corresponding to the major version so that dld.sl refuses to
6731 # link against other versions.
6732 dynamic_linker="$host_os dld.sl"
6733 version_type=sunos
6734 need_lib_prefix=no
6735 need_version=no
6736 shlibpath_var=SHLIB_PATH
6737 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6738 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6739 soname_spec='${libname}${release}.sl$major'
6740 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6741 postinstall_cmds='chmod 555 $lib'
6742 ;;
6743
6744irix5* | irix6*)
6745 version_type=irix
6746 need_lib_prefix=no
6747 need_version=no
6748 soname_spec='${libname}${release}.so$major'
6749 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6750 case "$host_os" in
6751 irix5*)
6752 libsuff= shlibsuff=
6753 ;;
6754 *)
6755 case "$LD" in # libtool.m4 will add one of these switches to LD
6756 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6757 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6758 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6759 *) libsuff= shlibsuff= libmagic=never-match;;
6760 esac
6761 ;;
6762 esac
6763 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6764 shlibpath_overrides_runpath=no
6765 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6766 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6767 ;;
6768
6769# No shared lib support for Linux oldld, aout, or coff.
6770linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6771 dynamic_linker=no
6772 ;;
6773
6774# This must be Linux ELF.
6775linux-gnu*)
6776 version_type=linux
6777 need_lib_prefix=no
6778 need_version=no
6779 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6780 soname_spec='${libname}${release}.so$major'
6781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6782 shlibpath_var=LD_LIBRARY_PATH
6783 shlibpath_overrides_runpath=no
6784 # This implies no fast_install, which is unacceptable.
6785 # Some rework will be needed to allow for fast_install
6786 # before this can be enabled.
6787 hardcode_into_libs=yes
6788
6789 # We used to test for /lib/ld.so.1 and disable shared libraries on
6790 # powerpc, because MkLinux only supported shared libraries with the
6791 # GNU dynamic linker. Since this was broken with cross compilers,
6792 # most powerpc-linux boxes support dynamic linking these days and
6793 # people can always --disable-shared, the test was removed, and we
6794 # assume the GNU/Linux dynamic linker is in use.
6795 dynamic_linker='GNU/Linux ld.so'
6796 ;;
6797
6798netbsd*)
6799 version_type=sunos
6800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6801 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6802 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6803 dynamic_linker='NetBSD (a.out) ld.so'
6804 else
6805 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6806 soname_spec='${libname}${release}.so$major'
6807 dynamic_linker='NetBSD ld.elf_so'
6808 fi
6809 shlibpath_var=LD_LIBRARY_PATH
6810 shlibpath_overrides_runpath=yes
6811 hardcode_into_libs=yes
6812 ;;
6813
6814newsos6)
6815 version_type=linux
6816 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6817 shlibpath_var=LD_LIBRARY_PATH
6818 shlibpath_overrides_runpath=yes
6819 ;;
6820
6821openbsd*)
6822 version_type=sunos
6823 if test "$with_gnu_ld" = yes; then
6824 need_lib_prefix=no
6825 need_version=no
6826 fi
6827 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6829 shlibpath_var=LD_LIBRARY_PATH
6830 ;;
6831
6832os2*)
6833 libname_spec='$name'
6834 need_lib_prefix=no
6835 library_names_spec='$libname.dll $libname.a'
6836 dynamic_linker='OS/2 ld.exe'
6837 shlibpath_var=LIBPATH
6838 ;;
6839
6840osf3* | osf4* | osf5*)
6841 version_type=osf
6842 need_version=no
6843 soname_spec='${libname}${release}.so'
6844 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6845 shlibpath_var=LD_LIBRARY_PATH
6846 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6847 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6848 ;;
6849
6850sco3.2v5*)
6851 version_type=osf
6852 soname_spec='${libname}${release}.so$major'
6853 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6854 shlibpath_var=LD_LIBRARY_PATH
6855 ;;
6856
6857solaris*)
6858 version_type=linux
6859 need_lib_prefix=no
6860 need_version=no
6861 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6862 soname_spec='${libname}${release}.so$major'
6863 shlibpath_var=LD_LIBRARY_PATH
6864 shlibpath_overrides_runpath=yes
6865 hardcode_into_libs=yes
6866 # ldd complains unless libraries are executable
6867 postinstall_cmds='chmod +x $lib'
6868 ;;
6869
6870sunos4*)
6871 version_type=sunos
6872 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6873 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6874 shlibpath_var=LD_LIBRARY_PATH
6875 shlibpath_overrides_runpath=yes
6876 if test "$with_gnu_ld" = yes; then
6877 need_lib_prefix=no
6878 fi
6879 need_version=yes
6880 ;;
6881
6882sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6883 version_type=linux
6884 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6885 soname_spec='${libname}${release}.so$major'
6886 shlibpath_var=LD_LIBRARY_PATH
6887 case "$host_vendor" in
6888 sni)
6889 shlibpath_overrides_runpath=no
6890 ;;
6891 motorola)
6892 need_lib_prefix=no
6893 need_version=no
6894 shlibpath_overrides_runpath=no
6895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6896 ;;
6897 esac
6898 ;;
6899
6900uts4*)
6901 version_type=linux
6902 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6903 soname_spec='${libname}${release}.so$major'
6904 shlibpath_var=LD_LIBRARY_PATH
6905 ;;
6906
6907dgux*)
6908 version_type=linux
6909 need_lib_prefix=no
6910 need_version=no
6911 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6912 soname_spec='${libname}${release}.so$major'
6913 shlibpath_var=LD_LIBRARY_PATH
6914 ;;
6915
6916sysv4*MP*)
6917 if test -d /usr/nec ;then
6918 version_type=linux
6919 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6920 soname_spec='$libname.so.$major'
6921 shlibpath_var=LD_LIBRARY_PATH
6922 fi
6923 ;;
6924
6925*)
6926 dynamic_linker=no
6927 ;;
6928esac
6929echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6930echo "${ECHO_T}$dynamic_linker" >&6
6931test "$dynamic_linker" = no && can_build_shared=no
6932##
6933## END FIXME
6934
6935## FIXME: this should be a separate macro
6936##
6937# Report the final consequences.
6938echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6939echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6940echo "$as_me:$LINENO: result: $can_build_shared" >&5
6941echo "${ECHO_T}$can_build_shared" >&6
6942##
6943## END FIXME
6944
6945if test "$hardcode_action" = relink; then
6946 # Fast installation is not supported
6947 enable_fast_install=no
6948elif test "$shlibpath_overrides_runpath" = yes ||
6949 test "$enable_shared" = no; then
6950 # Fast installation is not necessary
6951 enable_fast_install=needless
6952fi
6953
6954variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6955if test "$GCC" = yes; then
6956 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6957fi
6958
6959if test "x$enable_dlopen" != xyes; then
6960 enable_dlopen=unknown
6961 enable_dlopen_self=unknown
6962 enable_dlopen_self_static=unknown
6963else
6964 lt_cv_dlopen=no
6965 lt_cv_dlopen_libs=
6966
6967 case "$host_os" in
6968 beos*)
6969 lt_cv_dlopen="load_add_on"
6970 lt_cv_dlopen_libs=
6971 lt_cv_dlopen_self=yes
6972 ;;
6973
6974 cygwin* | mingw* | pw32*)
6975 lt_cv_dlopen="LoadLibrary"
6976 lt_cv_dlopen_libs=
6977 ;;
6978
6979 *)
6980 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6981echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6982if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
6985 ac_check_lib_save_LIBS=$LIBS
6986LIBS="-ldl $LIBS"
6987cat >conftest.$ac_ext <<_ACEOF
6988/* confdefs.h. */
6989_ACEOF
6990cat confdefs.h >>conftest.$ac_ext
6991cat >>conftest.$ac_ext <<_ACEOF
6992/* end confdefs.h. */
6993
6994/* Override any gcc2 internal prototype to avoid an error. */
6995#ifdef __cplusplus
6996extern "C"
6997#endif
6998/* We use char because int might match the return type of a gcc2
6999 builtin and then its argument prototype would still apply. */
7000char dlopen ();
7001int
7002main ()
7003{
7004dlopen ();
7005 ;
7006 return 0;
7007}
7008_ACEOF
7009rm -f conftest.$ac_objext conftest$ac_exeext
7010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7011 (eval $ac_link) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
7018 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 (eval $ac_try) 2>&5
7021 ac_status=$?
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; } &&
7024 { ac_try='test -s conftest$ac_exeext'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; }; then
7030 ac_cv_lib_dl_dlopen=yes
7031else
7032 echo "$as_me: failed program was:" >&5
7033sed 's/^/| /' conftest.$ac_ext >&5
7034
7035ac_cv_lib_dl_dlopen=no
7036fi
7037rm -f conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
7039LIBS=$ac_check_lib_save_LIBS
7040fi
7041echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7042echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7043if test $ac_cv_lib_dl_dlopen = yes; then
7044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7045else
7046 echo "$as_me:$LINENO: checking for dlopen" >&5
7047echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7048if test "${ac_cv_func_dlopen+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050else
7051 cat >conftest.$ac_ext <<_ACEOF
7052/* confdefs.h. */
7053_ACEOF
7054cat confdefs.h >>conftest.$ac_ext
7055cat >>conftest.$ac_ext <<_ACEOF
7056/* end confdefs.h. */
7057/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7059#define dlopen innocuous_dlopen
7060
7061/* System header to define __stub macros and hopefully few prototypes,
7062 which can conflict with char dlopen (); below.
7063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7064 <limits.h> exists even on freestanding compilers. */
7065
7066#ifdef __STDC__
7067# include <limits.h>
7068#else
7069# include <assert.h>
7070#endif
7071
7072#undef dlopen
7073
7074/* Override any gcc2 internal prototype to avoid an error. */
7075#ifdef __cplusplus
7076extern "C"
7077{
7078#endif
7079/* We use char because int might match the return type of a gcc2
7080 builtin and then its argument prototype would still apply. */
7081char dlopen ();
7082/* The GNU C library defines this for functions which it implements
7083 to always fail with ENOSYS. Some functions are actually named
7084 something starting with __ and the normal name is an alias. */
7085#if defined (__stub_dlopen) || defined (__stub___dlopen)
7086choke me
7087#else
7088char (*f) () = dlopen;
7089#endif
7090#ifdef __cplusplus
7091}
7092#endif
7093
7094int
7095main ()
7096{
7097return f != dlopen;
7098 ;
7099 return 0;
7100}
7101_ACEOF
7102rm -f conftest.$ac_objext conftest$ac_exeext
7103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7104 (eval $ac_link) 2>conftest.er1
7105 ac_status=$?
7106 grep -v '^ *+' conftest.er1 >conftest.err
7107 rm -f conftest.er1
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } &&
7111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113 (eval $ac_try) 2>&5
7114 ac_status=$?
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; } &&
7117 { ac_try='test -s conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_cv_func_dlopen=yes
7124else
7125 echo "$as_me: failed program was:" >&5
7126sed 's/^/| /' conftest.$ac_ext >&5
7127
7128ac_cv_func_dlopen=no
7129fi
7130rm -f conftest.err conftest.$ac_objext \
7131 conftest$ac_exeext conftest.$ac_ext
7132fi
7133echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7134echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7135if test $ac_cv_func_dlopen = yes; then
7136 lt_cv_dlopen="dlopen"
7137else
7138 echo "$as_me:$LINENO: checking for shl_load" >&5
7139echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7140if test "${ac_cv_func_shl_load+set}" = set; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 cat >conftest.$ac_ext <<_ACEOF
7144/* confdefs.h. */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h. */
7149/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7151#define shl_load innocuous_shl_load
7152
7153/* System header to define __stub macros and hopefully few prototypes,
7154 which can conflict with char shl_load (); below.
7155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7156 <limits.h> exists even on freestanding compilers. */
7157
7158#ifdef __STDC__
7159# include <limits.h>
7160#else
7161# include <assert.h>
7162#endif
7163
7164#undef shl_load
7165
7166/* Override any gcc2 internal prototype to avoid an error. */
7167#ifdef __cplusplus
7168extern "C"
7169{
7170#endif
7171/* We use char because int might match the return type of a gcc2
7172 builtin and then its argument prototype would still apply. */
7173char shl_load ();
7174/* The GNU C library defines this for functions which it implements
7175 to always fail with ENOSYS. Some functions are actually named
7176 something starting with __ and the normal name is an alias. */
7177#if defined (__stub_shl_load) || defined (__stub___shl_load)
7178choke me
7179#else
7180char (*f) () = shl_load;
7181#endif
7182#ifdef __cplusplus
7183}
7184#endif
7185
7186int
7187main ()
7188{
7189return f != shl_load;
7190 ;
7191 return 0;
7192}
7193_ACEOF
7194rm -f conftest.$ac_objext conftest$ac_exeext
7195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7196 (eval $ac_link) 2>conftest.er1
7197 ac_status=$?
7198 grep -v '^ *+' conftest.er1 >conftest.err
7199 rm -f conftest.er1
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } &&
7203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; } &&
7209 { ac_try='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 ac_cv_func_shl_load=yes
7216else
7217 echo "$as_me: failed program was:" >&5
7218sed 's/^/| /' conftest.$ac_ext >&5
7219
7220ac_cv_func_shl_load=no
7221fi
7222rm -f conftest.err conftest.$ac_objext \
7223 conftest$ac_exeext conftest.$ac_ext
7224fi
7225echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7226echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7227if test $ac_cv_func_shl_load = yes; then
7228 lt_cv_dlopen="shl_load"
7229else
7230 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7231echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7232if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234else
7235 ac_check_lib_save_LIBS=$LIBS
7236LIBS="-lsvld $LIBS"
7237cat >conftest.$ac_ext <<_ACEOF
7238/* confdefs.h. */
7239_ACEOF
7240cat confdefs.h >>conftest.$ac_ext
7241cat >>conftest.$ac_ext <<_ACEOF
7242/* end confdefs.h. */
7243
7244/* Override any gcc2 internal prototype to avoid an error. */
7245#ifdef __cplusplus
7246extern "C"
7247#endif
7248/* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7250char dlopen ();
7251int
7252main ()
7253{
7254dlopen ();
7255 ;
7256 return 0;
7257}
7258_ACEOF
7259rm -f conftest.$ac_objext conftest$ac_exeext
7260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261 (eval $ac_link) 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; } &&
7274 { ac_try='test -s conftest$ac_exeext'
7275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7276 (eval $ac_try) 2>&5
7277 ac_status=$?
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); }; }; then
7280 ac_cv_lib_svld_dlopen=yes
7281else
7282 echo "$as_me: failed program was:" >&5
7283sed 's/^/| /' conftest.$ac_ext >&5
7284
7285ac_cv_lib_svld_dlopen=no
7286fi
7287rm -f conftest.err conftest.$ac_objext \
7288 conftest$ac_exeext conftest.$ac_ext
7289LIBS=$ac_check_lib_save_LIBS
7290fi
7291echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7292echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7293if test $ac_cv_lib_svld_dlopen = yes; then
7294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7295else
7296 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7297echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7298if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300else
7301 ac_check_lib_save_LIBS=$LIBS
7302LIBS="-ldld $LIBS"
7303cat >conftest.$ac_ext <<_ACEOF
7304/* confdefs.h. */
7305_ACEOF
7306cat confdefs.h >>conftest.$ac_ext
7307cat >>conftest.$ac_ext <<_ACEOF
7308/* end confdefs.h. */
7309
7310/* Override any gcc2 internal prototype to avoid an error. */
7311#ifdef __cplusplus
7312extern "C"
7313#endif
7314/* We use char because int might match the return type of a gcc2
7315 builtin and then its argument prototype would still apply. */
7316char shl_load ();
7317int
7318main ()
7319{
7320shl_load ();
7321 ;
7322 return 0;
7323}
7324_ACEOF
7325rm -f conftest.$ac_objext conftest$ac_exeext
7326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7327 (eval $ac_link) 2>conftest.er1
7328 ac_status=$?
7329 grep -v '^ *+' conftest.er1 >conftest.err
7330 rm -f conftest.er1
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } &&
7334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336 (eval $ac_try) 2>&5
7337 ac_status=$?
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); }; } &&
7340 { ac_try='test -s conftest$ac_exeext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7346 ac_cv_lib_dld_shl_load=yes
7347else
7348 echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351ac_cv_lib_dld_shl_load=no
7352fi
7353rm -f conftest.err conftest.$ac_objext \
7354 conftest$ac_exeext conftest.$ac_ext
7355LIBS=$ac_check_lib_save_LIBS
7356fi
7357echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7358echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7359if test $ac_cv_lib_dld_shl_load = yes; then
7360 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7361fi
7362
7363
7364fi
7365
7366
7367fi
7368
7369
7370fi
7371
7372
7373fi
7374
7375 ;;
7376 esac
7377
7378 if test "x$lt_cv_dlopen" != xno; then
7379 enable_dlopen=yes
7380 else
7381 enable_dlopen=no
7382 fi
7383
7384 case "$lt_cv_dlopen" in
7385 dlopen)
7386 save_CPPFLAGS="$CPP_FLAGS"
7387 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7388
7389 save_LDFLAGS="$LDFLAGS"
7390 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7391
7392 save_LIBS="$LIBS"
7393 LIBS="$lt_cv_dlopen_libs $LIBS"
7394
7395 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7396echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7397if test "${lt_cv_dlopen_self+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400 if test "$cross_compiling" = yes; then :
7401 lt_cv_dlopen_self=cross
7402else
7403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7404 lt_status=$lt_dlunknown
7405 cat > conftest.$ac_ext <<EOF
7406#line 7406 "configure"
7407#include "confdefs.h"
7408
7409#if HAVE_DLFCN_H
7410#include <dlfcn.h>
7411#endif
7412
7413#include <stdio.h>
7414
7415#ifdef RTLD_GLOBAL
7416# define LT_DLGLOBAL RTLD_GLOBAL
7417#else
7418# ifdef DL_GLOBAL
7419# define LT_DLGLOBAL DL_GLOBAL
7420# else
7421# define LT_DLGLOBAL 0
7422# endif
7423#endif
7424
7425/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7426 find out it does not work in some platform. */
7427#ifndef LT_DLLAZY_OR_NOW
7428# ifdef RTLD_LAZY
7429# define LT_DLLAZY_OR_NOW RTLD_LAZY
7430# else
7431# ifdef DL_LAZY
7432# define LT_DLLAZY_OR_NOW DL_LAZY
7433# else
7434# ifdef RTLD_NOW
7435# define LT_DLLAZY_OR_NOW RTLD_NOW
7436# else
7437# ifdef DL_NOW
7438# define LT_DLLAZY_OR_NOW DL_NOW
7439# else
7440# define LT_DLLAZY_OR_NOW 0
7441# endif
7442# endif
7443# endif
7444# endif
7445#endif
7446
7447#ifdef __cplusplus
7448extern "C" void exit (int);
7449#endif
7450
7451fnord() { int i=42;}
7452main ()
7453{
7454 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7455 int status = $lt_dlunknown;
7456
7457 if (self)
7458 {
7459 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7460 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7461 /* dlclose (self); */
7462 }
7463
7464 exit (status);
7465}
7466EOF
7467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7468 (eval $ac_link) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7472 (./conftest; exit; ) 2>/dev/null
7473 lt_status=$?
7474 case x$lt_status in
7475 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7476 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7477 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7478 esac
7479 else :
7480 # compilation failed
7481 lt_cv_dlopen_self=no
7482 fi
7483fi
7484rm -fr conftest*
7485
7486
7487fi
7488echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7489echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7490
7491 if test "x$lt_cv_dlopen_self" = xyes; then
7492 LDFLAGS="$LDFLAGS $link_static_flag"
7493 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7494echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7495if test "${lt_cv_dlopen_self_static+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497else
7498 if test "$cross_compiling" = yes; then :
7499 lt_cv_dlopen_self_static=cross
7500else
7501 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7502 lt_status=$lt_dlunknown
7503 cat > conftest.$ac_ext <<EOF
7504#line 7504 "configure"
7505#include "confdefs.h"
7506
7507#if HAVE_DLFCN_H
7508#include <dlfcn.h>
7509#endif
7510
7511#include <stdio.h>
7512
7513#ifdef RTLD_GLOBAL
7514# define LT_DLGLOBAL RTLD_GLOBAL
7515#else
7516# ifdef DL_GLOBAL
7517# define LT_DLGLOBAL DL_GLOBAL
7518# else
7519# define LT_DLGLOBAL 0
7520# endif
7521#endif
7522
7523/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7524 find out it does not work in some platform. */
7525#ifndef LT_DLLAZY_OR_NOW
7526# ifdef RTLD_LAZY
7527# define LT_DLLAZY_OR_NOW RTLD_LAZY
7528# else
7529# ifdef DL_LAZY
7530# define LT_DLLAZY_OR_NOW DL_LAZY
7531# else
7532# ifdef RTLD_NOW
7533# define LT_DLLAZY_OR_NOW RTLD_NOW
7534# else
7535# ifdef DL_NOW
7536# define LT_DLLAZY_OR_NOW DL_NOW
7537# else
7538# define LT_DLLAZY_OR_NOW 0
7539# endif
7540# endif
7541# endif
7542# endif
7543#endif
7544
7545#ifdef __cplusplus
7546extern "C" void exit (int);
7547#endif
7548
7549fnord() { int i=42;}
7550main ()
7551{
7552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7553 int status = $lt_dlunknown;
7554
7555 if (self)
7556 {
7557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7558 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7559 /* dlclose (self); */
7560 }
7561
7562 exit (status);
7563}
7564EOF
7565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7566 (eval $ac_link) 2>&5
7567 ac_status=$?
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7570 (./conftest; exit; ) 2>/dev/null
7571 lt_status=$?
7572 case x$lt_status in
7573 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7574 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7575 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7576 esac
7577 else :
7578 # compilation failed
7579 lt_cv_dlopen_self_static=no
7580 fi
7581fi
7582rm -fr conftest*
7583
7584
7585fi
7586echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7587echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7588 fi
7589
7590 CPPFLAGS="$save_CPPFLAGS"
7591 LDFLAGS="$save_LDFLAGS"
7592 LIBS="$save_LIBS"
7593 ;;
7594 esac
7595
7596 case "$lt_cv_dlopen_self" in
7597 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7598 *) enable_dlopen_self=unknown ;;
7599 esac
7600
7601 case "$lt_cv_dlopen_self_static" in
7602 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7603 *) enable_dlopen_self_static=unknown ;;
7604 esac
7605fi
7606
7607
7608## FIXME: this should be a separate macro
7609##
7610if test "$enable_shared" = yes && test "$GCC" = yes; then
7611 case "$archive_cmds" in
7612 *'~'*)
7613 # FIXME: we may have to deal with multi-command sequences.
7614 ;;
7615 '$CC '*)
7616 # Test whether the compiler implicitly links with -lc since on some
7617 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7618 # to ld, don't add -lc before -lgcc.
7619 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7620echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7621 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623else
7624 $rm conftest*
7625 echo 'static int dummy;' > conftest.$ac_ext
7626
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; then
7632 soname=conftest
7633 lib=conftest
7634 libobjs=conftest.$ac_objext
7635 deplibs=
7636 wl=$lt_cv_prog_cc_wl
7637 compiler_flags=-v
7638 linker_flags=-v
7639 verstring=
7640 output_objdir=.
7641 libname=conftest
7642 save_allow_undefined_flag=$allow_undefined_flag
7643 allow_undefined_flag=
7644 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7645 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }
7649 then
7650 lt_cv_archive_cmds_need_lc=no
7651 else
7652 lt_cv_archive_cmds_need_lc=yes
7653 fi
7654 allow_undefined_flag=$save_allow_undefined_flag
7655 else
7656 cat conftest.err 1>&5
7657 fi
7658fi
7659
7660 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7661echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7662 ;;
7663 esac
7664fi
7665need_lc=${lt_cv_archive_cmds_need_lc-yes}
7666##
7667## END FIXME
7668
7669## FIXME: this should be a separate macro
7670##
7671# The second clause should only fire when bootstrapping the
7672# libtool distribution, otherwise you forgot to ship ltmain.sh
7673# with your package, and you will get complaints that there are
7674# no rules to generate ltmain.sh.
7675if test -f "$ltmain"; then
7676 :
7677else
7678 # If there is no Makefile yet, we rely on a make rule to execute
7679 # `config.status --recheck' to rerun these tests and create the
7680 # libtool script then.
7681 test -f Makefile && make "$ltmain"
7682fi
7683
7684if test -f "$ltmain"; then
7685 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7686 $rm -f "${ofile}T"
7687
7688 echo creating $ofile
7689
7690 # Now quote all the things that may contain metacharacters while being
7691 # careful not to overquote the AC_SUBSTed values. We take copies of the
7692 # variables and quote the copies for generation of the libtool script.
7693 for var in echo old_CC old_CFLAGS \
7694 AR AR_FLAGS CC LD LN_S NM SHELL \
7695 reload_flag reload_cmds wl \
7696 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7697 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7698 library_names_spec soname_spec \
7699 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7700 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7701 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7702 old_striplib striplib file_magic_cmd export_symbols_cmds \
7703 deplibs_check_method allow_undefined_flag no_undefined_flag \
7704 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7705 hardcode_libdir_flag_spec hardcode_libdir_separator \
7706 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7707 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7708
7709 case "$var" in
7710 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7711 old_postinstall_cmds | old_postuninstall_cmds | \
7712 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7713 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7714 postinstall_cmds | postuninstall_cmds | \
7715 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7716 # Double-quote double-evaled strings.
7717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7718 ;;
7719 *)
7720 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7721 ;;
7722 esac
7723 done
7724
7725 cat <<__EOF__ > "${ofile}T"
7726#! $SHELL
7727
7728# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7729# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7730# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7731#
7732# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7733# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7734#
7735# This program is free software; you can redistribute it and/or modify
7736# it under the terms of the GNU General Public License as published by
7737# the Free Software Foundation; either version 2 of the License, or
7738# (at your option) any later version.
7739#
7740# This program is distributed in the hope that it will be useful, but
7741# WITHOUT ANY WARRANTY; without even the implied warranty of
7742# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7743# General Public License for more details.
7744#
7745# You should have received a copy of the GNU General Public License
7746# along with this program; if not, write to the Free Software
7747# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7748#
7749# As a special exception to the GNU General Public License, if you
7750# distribute this file as part of a program that contains a
7751# configuration script generated by Autoconf, you may include it under
7752# the same distribution terms that you use for the rest of that program.
7753
7754# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7755Xsed="sed -e s/^X//"
7756
7757# The HP-UX ksh and POSIX shell print the target directory to stdout
7758# if CDPATH is set.
7759if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7760
7761# ### BEGIN LIBTOOL CONFIG
7762
7763# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7764
7765# Shell to use when invoking shell scripts.
7766SHELL=$lt_SHELL
7767
7768# Whether or not to build shared libraries.
7769build_libtool_libs=$enable_shared
7770
7771# Whether or not to add -lc for building shared libraries.
7772build_libtool_need_lc=$need_lc
7773
7774# Whether or not to build static libraries.
7775build_old_libs=$enable_static
7776
7777# Whether or not to optimize for fast installation.
7778fast_install=$enable_fast_install
7779
7780# The host system.
7781host_alias=$host_alias
7782host=$host
7783
7784# An echo program that does not interpret backslashes.
7785echo=$lt_echo
7786
7787# The archiver.
7788AR=$lt_AR
7789AR_FLAGS=$lt_AR_FLAGS
7790
7791# The default C compiler.
7792CC=$lt_CC
7793
7794# Is the compiler the GNU C compiler?
7795with_gcc=$GCC
7796
7797# The linker used to build libraries.
7798LD=$lt_LD
7799
7800# Whether we need hard or soft links.
7801LN_S=$lt_LN_S
7802
7803# A BSD-compatible nm program.
7804NM=$lt_NM
7805
7806# A symbol stripping program
7807STRIP=$STRIP
7808
7809# Used to examine libraries when file_magic_cmd begins "file"
7810MAGIC_CMD=$MAGIC_CMD
7811
7812# Used on cygwin: DLL creation program.
7813DLLTOOL="$DLLTOOL"
7814
7815# Used on cygwin: object dumper.
7816OBJDUMP="$OBJDUMP"
7817
7818# Used on cygwin: assembler.
7819AS="$AS"
7820
7821# The name of the directory that contains temporary libtool files.
7822objdir=$objdir
7823
7824# How to create reloadable object files.
7825reload_flag=$lt_reload_flag
7826reload_cmds=$lt_reload_cmds
7827
7828# How to pass a linker flag through the compiler.
7829wl=$lt_wl
7830
7831# Object file suffix (normally "o").
7832objext="$ac_objext"
7833
7834# Old archive suffix (normally "a").
7835libext="$libext"
7836
7837# Executable file suffix (normally "").
7838exeext="$exeext"
7839
7840# Additional compiler flags for building library objects.
7841pic_flag=$lt_pic_flag
7842pic_mode=$pic_mode
7843
7844# Does compiler simultaneously support -c and -o options?
7845compiler_c_o=$lt_compiler_c_o
7846
7847# Can we write directly to a .lo ?
7848compiler_o_lo=$lt_compiler_o_lo
7849
7850# Must we lock files when doing compilation ?
7851need_locks=$lt_need_locks
7852
7853# Do we need the lib prefix for modules?
7854need_lib_prefix=$need_lib_prefix
7855
7856# Do we need a version for libraries?
7857need_version=$need_version
7858
7859# Whether dlopen is supported.
7860dlopen_support=$enable_dlopen
7861
7862# Whether dlopen of programs is supported.
7863dlopen_self=$enable_dlopen_self
7864
7865# Whether dlopen of statically linked programs is supported.
7866dlopen_self_static=$enable_dlopen_self_static
7867
7868# Compiler flag to prevent dynamic linking.
7869link_static_flag=$lt_link_static_flag
7870
7871# Compiler flag to turn off builtin functions.
7872no_builtin_flag=$lt_no_builtin_flag
7873
7874# Compiler flag to allow reflexive dlopens.
7875export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7876
7877# Compiler flag to generate shared objects directly from archives.
7878whole_archive_flag_spec=$lt_whole_archive_flag_spec
7879
7880# Compiler flag to generate thread-safe objects.
7881thread_safe_flag_spec=$lt_thread_safe_flag_spec
7882
7883# Library versioning type.
7884version_type=$version_type
7885
7886# Format of library name prefix.
7887libname_spec=$lt_libname_spec
7888
7889# List of archive names. First name is the real one, the rest are links.
7890# The last name is the one that the linker finds with -lNAME.
7891library_names_spec=$lt_library_names_spec
7892
7893# The coded name of the library, if different from the real name.
7894soname_spec=$lt_soname_spec
7895
7896# Commands used to build and install an old-style archive.
7897RANLIB=$lt_RANLIB
7898old_archive_cmds=$lt_old_archive_cmds
7899old_postinstall_cmds=$lt_old_postinstall_cmds
7900old_postuninstall_cmds=$lt_old_postuninstall_cmds
7901
7902# Create an old-style archive from a shared archive.
7903old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7904
7905# Create a temporary old-style archive to link instead of a shared archive.
7906old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7907
7908# Commands used to build and install a shared archive.
7909archive_cmds=$lt_archive_cmds
7910archive_expsym_cmds=$lt_archive_expsym_cmds
7911postinstall_cmds=$lt_postinstall_cmds
7912postuninstall_cmds=$lt_postuninstall_cmds
7913
7914# Commands to strip libraries.
7915old_striplib=$lt_old_striplib
7916striplib=$lt_striplib
7917
7918# Method to check whether dependent libraries are shared objects.
7919deplibs_check_method=$lt_deplibs_check_method
7920
7921# Command to use when deplibs_check_method == file_magic.
7922file_magic_cmd=$lt_file_magic_cmd
7923
7924# Flag that allows shared libraries with undefined symbols to be built.
7925allow_undefined_flag=$lt_allow_undefined_flag
7926
7927# Flag that forces no undefined symbols.
7928no_undefined_flag=$lt_no_undefined_flag
7929
7930# Commands used to finish a libtool library installation in a directory.
7931finish_cmds=$lt_finish_cmds
7932
7933# Same as above, but a single script fragment to be evaled but not shown.
7934finish_eval=$lt_finish_eval
7935
7936# Take the output of nm and produce a listing of raw symbols and C names.
7937global_symbol_pipe=$lt_global_symbol_pipe
7938
7939# Transform the output of nm in a proper C declaration
7940global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7941
7942# This is the shared library runtime path variable.
7943runpath_var=$runpath_var
7944
7945# This is the shared library path variable.
7946shlibpath_var=$shlibpath_var
7947
7948# Is shlibpath searched before the hard-coded library search path?
7949shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7950
7951# How to hardcode a shared library path into an executable.
7952hardcode_action=$hardcode_action
7953
7954# Whether we should hardcode library paths into libraries.
7955hardcode_into_libs=$hardcode_into_libs
7956
7957# Flag to hardcode \$libdir into a binary during linking.
7958# This must work even if \$libdir does not exist.
7959hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7960
7961# Whether we need a single -rpath flag with a separated argument.
7962hardcode_libdir_separator=$lt_hardcode_libdir_separator
7963
7964# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7965# resulting binary.
7966hardcode_direct=$hardcode_direct
7967
7968# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7969# resulting binary.
7970hardcode_minus_L=$hardcode_minus_L
7971
7972# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7973# the resulting binary.
7974hardcode_shlibpath_var=$hardcode_shlibpath_var
7975
7976# Variables whose values should be saved in libtool wrapper scripts and
7977# restored at relink time.
7978variables_saved_for_relink="$variables_saved_for_relink"
7979
7980# Whether libtool must link a program against all its dependency libraries.
7981link_all_deplibs=$link_all_deplibs
7982
7983# Compile-time system search path for libraries
7984sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7985
7986# Run-time system search path for libraries
7987sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7988
7989# Fix the shell variable \$srcfile for the compiler.
7990fix_srcfile_path="$fix_srcfile_path"
7991
7992# Set to yes if exported symbols are required.
7993always_export_symbols=$always_export_symbols
7994
7995# The commands to list exported symbols.
7996export_symbols_cmds=$lt_export_symbols_cmds
7997
7998# The commands to extract the exported symbol list from a shared archive.
7999extract_expsyms_cmds=$lt_extract_expsyms_cmds
8000
8001# Symbols that should not be listed in the preloaded symbols.
8002exclude_expsyms=$lt_exclude_expsyms
8003
8004# Symbols that must always be exported.
8005include_expsyms=$lt_include_expsyms
8006
8007# ### END LIBTOOL CONFIG
8008
8009__EOF__
8010
8011 case "$host_os" in
8012 aix3*)
8013 cat <<\EOF >> "${ofile}T"
8014
8015# AIX sometimes has problems with the GCC collect2 program. For some
8016# reason, if we set the COLLECT_NAMES environment variable, the problems
8017# vanish in a puff of smoke.
8018if test "X${COLLECT_NAMES+set}" != Xset; then
8019 COLLECT_NAMES=
8020 export COLLECT_NAMES
8021fi
8022EOF
8023 ;;
8024 esac
8025
8026 case "$host_os" in
8027 cygwin* | mingw* | pw32* | os2*)
8028 cat <<'EOF' >> "${ofile}T"
8029 # This is a source program that is used to create dlls on Windows
8030 # Don't remove nor modify the starting and closing comments
8031# /* ltdll.c starts here */
8032# #define WIN32_LEAN_AND_MEAN
8033# #include <windows.h>
8034# #undef WIN32_LEAN_AND_MEAN
8035# #include <stdio.h>
8036#
8037# #ifndef __CYGWIN__
8038# # ifdef __CYGWIN32__
8039# # define __CYGWIN__ __CYGWIN32__
8040# # endif
8041# #endif
8042#
8043# #ifdef __cplusplus
8044# extern "C" {
8045# #endif
8046# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8047# #ifdef __cplusplus
8048# }
8049# #endif
8050#
8051# #ifdef __CYGWIN__
8052# #include <cygwin/cygwin_dll.h>
8053# DECLARE_CYGWIN_DLL( DllMain );
8054# #endif
8055# HINSTANCE __hDllInstance_base;
8056#
8057# BOOL APIENTRY
8058# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8059# {
8060# __hDllInstance_base = hInst;
8061# return TRUE;
8062# }
8063# /* ltdll.c ends here */
8064 # This is a source program that is used to create import libraries
8065 # on Windows for dlls which lack them. Don't remove nor modify the
8066 # starting and closing comments
8067# /* impgen.c starts here */
8068# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8069#
8070# This file is part of GNU libtool.
8071#
8072# This program is free software; you can redistribute it and/or modify
8073# it under the terms of the GNU General Public License as published by
8074# the Free Software Foundation; either version 2 of the License, or
8075# (at your option) any later version.
8076#
8077# This program is distributed in the hope that it will be useful,
8078# but WITHOUT ANY WARRANTY; without even the implied warranty of
8079# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8080# GNU General Public License for more details.
8081#
8082# You should have received a copy of the GNU General Public License
8083# along with this program; if not, write to the Free Software
8084# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8085# */
8086#
8087# #include <stdio.h> /* for printf() */
8088# #include <unistd.h> /* for open(), lseek(), read() */
8089# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8090# #include <string.h> /* for strdup() */
8091#
8092# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8093# #ifndef O_BINARY
8094# #define O_BINARY 0
8095# #endif
8096#
8097# static unsigned int
8098# pe_get16 (fd, offset)
8099# int fd;
8100# int offset;
8101# {
8102# unsigned char b[2];
8103# lseek (fd, offset, SEEK_SET);
8104# read (fd, b, 2);
8105# return b[0] + (b[1]<<8);
8106# }
8107#
8108# static unsigned int
8109# pe_get32 (fd, offset)
8110# int fd;
8111# int offset;
8112# {
8113# unsigned char b[4];
8114# lseek (fd, offset, SEEK_SET);
8115# read (fd, b, 4);
8116# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8117# }
8118#
8119# static unsigned int
8120# pe_as32 (ptr)
8121# void *ptr;
8122# {
8123# unsigned char *b = ptr;
8124# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8125# }
8126#
8127# int
8128# main (argc, argv)
8129# int argc;
8130# char *argv[];
8131# {
8132# int dll;
8133# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8134# unsigned long export_rva, export_size, nsections, secptr, expptr;
8135# unsigned long name_rvas, nexp;
8136# unsigned char *expdata, *erva;
8137# char *filename, *dll_name;
8138#
8139# filename = argv[1];
8140#
8141# dll = open(filename, O_RDONLY|O_BINARY);
8142# if (!dll)
8143# return 1;
8144#
8145# dll_name = filename;
8146#
8147# for (i=0; filename[i]; i++)
8148# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8149# dll_name = filename + i +1;
8150#
8151# pe_header_offset = pe_get32 (dll, 0x3c);
8152# opthdr_ofs = pe_header_offset + 4 + 20;
8153# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8154#
8155# if (num_entries < 1) /* no exports */
8156# return 1;
8157#
8158# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8159# export_size = pe_get32 (dll, opthdr_ofs + 100);
8160# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8161# secptr = (pe_header_offset + 4 + 20 +
8162# pe_get16 (dll, pe_header_offset + 4 + 16));
8163#
8164# expptr = 0;
8165# for (i = 0; i < nsections; i++)
8166# {
8167# char sname[8];
8168# unsigned long secptr1 = secptr + 40 * i;
8169# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8170# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8171# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8172# lseek(dll, secptr1, SEEK_SET);
8173# read(dll, sname, 8);
8174# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8175# {
8176# expptr = fptr + (export_rva - vaddr);
8177# if (export_rva + export_size > vaddr + vsize)
8178# export_size = vsize - (export_rva - vaddr);
8179# break;
8180# }
8181# }
8182#
8183# expdata = (unsigned char*)malloc(export_size);
8184# lseek (dll, expptr, SEEK_SET);
8185# read (dll, expdata, export_size);
8186# erva = expdata - export_rva;
8187#
8188# nexp = pe_as32 (expdata+24);
8189# name_rvas = pe_as32 (expdata+32);
8190#
8191# printf ("EXPORTS\n");
8192# for (i = 0; i<nexp; i++)
8193# {
8194# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8195# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8196# }
8197#
8198# return 0;
8199# }
8200# /* impgen.c ends here */
8201
8202EOF
8203 ;;
8204 esac
8205
8206 # We use sed instead of cat because bash on DJGPP gets confused if
8207 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8208 # text mode, it properly converts lines to CR/LF. This bash problem
8209 # is reportedly fixed, but why not run on old versions too?
8210 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8211
8212 mv -f "${ofile}T" "$ofile" || \
8213 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8214 chmod +x "$ofile"
8215fi
8216##
8217## END FIXME
8218
8219
8220
8221
8222
8223# This can be used to rebuild libtool when needed
8224LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8225
8226# Always use our own libtool.
8227LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8228
8229# Prevent multiple expansion
8230 4101
8231 4102
8232MALLOC_TYPE=S 4103MALLOC_TYPE=S
4104
8233support_addstrings=no 4105support_addstrings=no
8234support_frills=no 4106support_frills=yes
8235support_linespace=no
8236support_inheritpixmap=no 4107support_inheritpixmap=no
8237support_tinting=no 4108support_tinting=yes
4109support_fading=yes
8238support_keepscrolling=no 4110support_keepscrolling=yes
8239support_selectionscrolling=no 4111support_selectionscrolling=yes
8240support_menubar=no 4112support_menubar=no
8241support_mousewheel=no 4113support_mousewheel=yes
8242support_mouseslipwheel=no 4114support_mouseslipwheel=yes
8243support_utmp=no 4115support_utmp=yes
8244support_wtmp=no 4116support_wtmp=yes
8245support_lastlog=no 4117support_lastlog=yes
8246support_cursor_blink=no
8247support_text_blink=no 4118support_text_blink=yes
8248support_pointer_blank=no 4119support_pointer_blank=yes
8249support_scroll_rxvt=no 4120support_scroll_rxvt=yes
8250support_scroll_next=no 4121support_scroll_next=yes
8251support_scroll_xterm=no 4122support_scroll_xterm=yes
8252support_scroll_plain=no 4123support_scroll_plain=yes
8253support_xim=no 4124support_xim=yes
8254support_xpm=no 4125support_xpm=no
8255support_xft=no 4126support_xft=yes
8256support_unicode3=no 4127support_unicode3=no
8257support_combining=no 4128support_combining=yes
4129support_8bitctrls=no
4130support_iso14755=yes
4131support_styles=yes
8258codesets= 4132codesets=all
8259 4133
8260 4134
8261if test "x$enable_shared" = xyes; then 4135if test "x$enable_shared" = xyes; then
8262 4136
8263cat >>confdefs.h <<\_ACEOF 4137cat >>confdefs.h <<\_ACEOF
8269 4143
8270 4144
8271# Check whether --enable-everything or --disable-everything was given. 4145# Check whether --enable-everything or --disable-everything was given.
8272if test "${enable_everything+set}" = set; then 4146if test "${enable_everything+set}" = set; then
8273 enableval="$enable_everything" 4147 enableval="$enable_everything"
4148
4149 if test x$enableval = xno; then
4150 support_24bit=no
4151 support_frills=no
4152 support_inheritpixmap=no
4153 support_tinting=no
4154 support_fading=no
4155 support_keepscrolling=no
4156 support_selectionscrolling=no
4157 support_lastlog=no
4158 support_menubar=no
4159 support_mousewheel=no
4160 support_mouseslipwheel=no
4161 support_text_blink=no
4162 support_pointer_blank=no
4163 support_scroll_rxvt=no
4164 support_scroll_next=no
4165 support_scroll_xterm=no
4166 support_scroll_plain=no
4167 support_utmp=no
4168 support_wtmp=no
4169 support_xim=no
4170 support_xpm=no
4171 support_xft=no
4172 support_unicode3=no
4173 support_combining=no
4174 support_8bitctrls=no
4175 support_iso14755=no
4176 support_styles=no
4177 codesets=
4178 fi
8274 if test x$enableval = xyes; then 4179 if test x$enableval = xyes; then
8275 support_24bit=yes 4180 support_24bit=yes
8276 support_frills=yes 4181 support_frills=yes
8277 support_linespace=yes
8278 support_inheritpixmap=yes 4182 support_inheritpixmap=yes
8279 support_tinting=yes 4183 support_tinting=yes
4184 support_fading=yes
8280 support_keepscrolling=yes 4185 support_keepscrolling=yes
8281 support_selectionscrolling=yes 4186 support_selectionscrolling=yes
8282 support_lastlog=yes 4187 support_lastlog=yes
8283 support_menubar=yes 4188 support_menubar=yes
8284 support_mousewheel=yes 4189 support_mousewheel=yes
8285 support_mouseslipwheel=yes 4190 support_mouseslipwheel=yes
8286 support_cursor_blink=yes
8287 support_text_blink=yes 4191 support_text_blink=yes
8288 support_pointer_blank=yes 4192 support_pointer_blank=yes
8289 support_scroll_rxvt=yes 4193 support_scroll_rxvt=yes
8290 support_scroll_next=yes 4194 support_scroll_next=yes
8291 support_scroll_xterm=yes 4195 support_scroll_xterm=yes
8292 support_scroll_plain=yes 4196 support_scroll_plain=yes
8293 support_utmp=yes 4197 support_utmp=yes
8294 support_wtmp=yes 4198 support_wtmp=yes
8295 support_xim=yes 4199 support_xim=yes
8296 support_xpm=yes 4200 support_xpm=yes
8297 support_xft=yes 4201 support_xft=yes
8298 support_unicode3=yes 4202 support_unicode3=yes
8299 support_combining=yes 4203 support_combining=yes
4204 #support_8bitctrls=yes
4205 support_iso14755=yes
4206 support_styles=yes
8300 codesets=all 4207 codesets=all
8301 fi 4208 fi
4209
8302fi; 4210fi;
8303 4211
8304# Check whether --enable-unicode3 or --disable-unicode3 was given. 4212# Check whether --enable-unicode3 or --disable-unicode3 was given.
8305if test "${enable_unicode3+set}" = set; then 4213if test "${enable_unicode3+set}" = set; then
8306 enableval="$enable_unicode3" 4214 enableval="$enable_unicode3"
8307 if test x$enableval = xyes -o x$enableval = xno; then 4215 if test x$enableval = xyes -o x$enableval = xno; then
8308 support_unicode3=yes 4216 support_unicode3=$enableval
8309 fi 4217 fi
8310fi; 4218fi;
8311 4219
8312# Check whether --enable-combining or --disable-combining was given. 4220# Check whether --enable-combining or --disable-combining was given.
8313if test "${enable_combining+set}" = set; then 4221if test "${enable_combining+set}" = set; then
8314 enableval="$enable_combining" 4222 enableval="$enable_combining"
8315 if test x$enableval = xyes -o x$enableval = xno; then 4223 if test x$enableval = xyes -o x$enableval = xno; then
8316 support_combining=yes 4224 support_combining=$enableval
8317 fi 4225 fi
8318fi; 4226fi;
8319 4227
8320# Check whether --enable-xft or --disable-xft was given. 4228# Check whether --enable-xft or --disable-xft was given.
8321if test "${enable_xft+set}" = set; then 4229if test "${enable_xft+set}" = set; then
8322 enableval="$enable_xft" 4230 enableval="$enable_xft"
8323 if test x$enableval = xyes -o x$enableval = xno; then 4231 if test x$enableval = xyes -o x$enableval = xno; then
8324 support_xft=yes 4232 support_xft=$enableval
4233 fi
4234fi;
4235
4236# Check whether --enable-font-styles or --disable-font-styles was given.
4237if test "${enable_font_styles+set}" = set; then
4238 enableval="$enable_font_styles"
4239 if test x$enableval = xyes -o x$enableval = xno; then
4240 support_styles=$enableval
8325 fi 4241 fi
8326fi; 4242fi;
8327 4243
8328# Check whether --enable-utmp or --disable-utmp was given. 4244# Check whether --enable-utmp or --disable-utmp was given.
8329if test "${enable_utmp+set}" = set; then 4245if test "${enable_utmp+set}" = set; then
8371 if test x$enableval = xyes -o x$enableval = xno; then 4287 if test x$enableval = xyes -o x$enableval = xno; then
8372 support_tinting=$enableval 4288 support_tinting=$enableval
8373 fi 4289 fi
8374fi; 4290fi;
8375 4291
4292# Check whether --enable-fading or --disable-fading was given.
4293if test "${enable_fading+set}" = set; then
4294 enableval="$enable_fading"
4295 if test x$enableval = xyes -o x$enableval = xno; then
4296 support_fading=$enableval
4297 fi
4298fi;
4299
8376# Check whether --enable-menubar or --disable-menubar was given. 4300# Check whether --enable-menubar or --disable-menubar was given.
8377if test "${enable_menubar+set}" = set; then 4301if test "${enable_menubar+set}" = set; then
8378 enableval="$enable_menubar" 4302 enableval="$enable_menubar"
8379 if test x$enableval = xyes -o x$enableval = xno; then 4303 if test x$enableval = xyes -o x$enableval = xno; then
8380 support_menubar=$enableval 4304 support_menubar=$enableval
8498_ACEOF 4422_ACEOF
8499 4423
8500 fi 4424 fi
8501fi; 4425fi;
8502 4426
4427# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4428if test "${enable_8bitctrls+set}" = set; then
4429 enableval="$enable_8bitctrls"
4430 if test x$enableval = xyes -o x$enableval = xno; then
4431 support_8bitctrls=$enableval
4432 fi
4433fi;
4434
8503RESFALLBACK=Rxvt 4435RESFALLBACK=Rxvt
8504# Check whether --enable-fallback or --disable-fallback was given. 4436# Check whether --enable-fallback or --disable-fallback was given.
8505if test "${enable_fallback+set}" = set; then 4437if test "${enable_fallback+set}" = set; then
8506 enableval="$enable_fallback" 4438 enableval="$enable_fallback"
8507 4439
8550# Check whether --with-name or --without-name was given. 4482# Check whether --with-name or --without-name was given.
8551if test "${with_name+set}" = set; then 4483if test "${with_name+set}" = set; then
8552 withval="$with_name" 4484 withval="$with_name"
8553 RXVTNAME="$withval" 4485 RXVTNAME="$withval"
8554fi; 4486fi;
4487
4488cat >>confdefs.h <<_ACEOF
4489#define RXVTNAME "$RXVTNAME"
4490_ACEOF
4491
8555 4492
8556RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` 4493RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
8557 4494
8558 4495
8559# Check whether --enable-strings or --disable-strings was given. 4496# Check whether --enable-strings or --disable-strings was given.
8574_ACEOF 4511_ACEOF
8575 4512
8576 fi 4513 fi
8577fi; 4514fi;
8578 4515
4516# Check whether --enable-iso14755 or --disable-iso14755 was given.
4517if test "${enable_iso14755+set}" = set; then
4518 enableval="$enable_iso14755"
4519 if test x$enableval = xyes -o x$enableval = xno; then
4520 support_iso14755=$enableval
4521 fi
4522fi;
4523
8579# Check whether --enable-frills or --disable-frills was given. 4524# Check whether --enable-frills or --disable-frills was given.
8580if test "${enable_frills+set}" = set; then 4525if test "${enable_frills+set}" = set; then
8581 enableval="$enable_frills" 4526 enableval="$enable_frills"
8582 if test x$enableval = xyes -o x$enableval = xno; then 4527 if test x$enableval = xyes -o x$enableval = xno; then
8583 support_frills=$enableval 4528 support_frills=$enableval
8584 fi
8585fi;
8586
8587# Check whether --enable-linespace or --disable-linespace was given.
8588if test "${enable_linespace+set}" = set; then
8589 enableval="$enable_linespace"
8590 if test x$enableval = xyes -o x$enableval = xno; then
8591 support_linespace=$enableval
8592 fi 4529 fi
8593fi; 4530fi;
8594 4531
8595# Check whether --enable-24bit or --disable-24bit was given. 4532# Check whether --enable-24bit or --disable-24bit was given.
8596if test "${enable_24bit+set}" = set; then 4533if test "${enable_24bit+set}" = set; then
8664_ACEOF 4601_ACEOF
8665 4602
8666 fi 4603 fi
8667fi; 4604fi;
8668 4605
8669# Check whether --enable-256-color or --disable-256-color was given.
8670if test "${enable_256_color+set}" = set; then
8671 enableval="$enable_256_color"
8672 if test x$enableval = xyes; then
8673
8674cat >>confdefs.h <<\_ACEOF
8675#define TTY_256COLOR 1
8676_ACEOF
8677
8678 fi
8679fi;
8680
8681# Check whether --enable-cursor-blink or --disable-cursor-blink was given.
8682if test "${enable_cursor_blink+set}" = set; then
8683 enableval="$enable_cursor_blink"
8684 if test x$enableval = xyes -o x$enableval = xno; then
8685 support_cursor_blink=$enableval
8686 fi
8687fi;
8688
8689# Check whether --enable-text-blink or --disable-text-blink was given. 4606# Check whether --enable-text-blink or --disable-text-blink was given.
8690if test "${enable_text_blink+set}" = set; then 4607if test "${enable_text_blink+set}" = set; then
8691 enableval="$enable_text_blink" 4608 enableval="$enable_text_blink"
8692 if test x$enableval = xyes -o x$enableval = xno; then 4609 if test x$enableval = xyes -o x$enableval = xno; then
8693 support_text_blink=$enableval 4610 support_text_blink=$enableval
8732 4649
8733cat >>confdefs.h <<\_ACEOF 4650cat >>confdefs.h <<\_ACEOF
8734#define PROTOTYPES 1 4651#define PROTOTYPES 1
8735_ACEOF 4652_ACEOF
8736 4653
8737
8738if test -z "$CFLAGS"; then
8739 if test -z "$CCOPTS"; then
8740 CCOPTS='-O'
8741 fi
8742 CFLAGS="$CCOPTS"
8743fi
8744 4654
8745# Extract the first word of "mv", so it can be a program name with args. 4655# Extract the first word of "mv", so it can be a program name with args.
8746set dummy mv; ac_word=$2 4656set dummy mv; ac_word=$2
8747echo "$as_me:$LINENO: checking for $ac_word" >&5 4657echo "$as_me:$LINENO: checking for $ac_word" >&5
8748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9054TBL=$ac_cv_path_TBL 4964TBL=$ac_cv_path_TBL
9055 4965
9056if test -n "$TBL"; then 4966if test -n "$TBL"; then
9057 echo "$as_me:$LINENO: result: $TBL" >&5 4967 echo "$as_me:$LINENO: result: $TBL" >&5
9058echo "${ECHO_T}$TBL" >&6 4968echo "${ECHO_T}$TBL" >&6
4969else
4970 echo "$as_me:$LINENO: result: no" >&5
4971echo "${ECHO_T}no" >&6
4972fi
4973
4974# Extract the first word of "tic", so it can be a program name with args.
4975set dummy tic; ac_word=$2
4976echo "$as_me:$LINENO: checking for $ac_word" >&5
4977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4978if test "${ac_cv_path_TIC+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980else
4981 case $TIC in
4982 [\\/]* | ?:[\\/]*)
4983 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
4984 ;;
4985 *)
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4993 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997done
4998done
4999
5000 ;;
5001esac
5002fi
5003TIC=$ac_cv_path_TIC
5004
5005if test -n "$TIC"; then
5006 echo "$as_me:$LINENO: result: $TIC" >&5
5007echo "${ECHO_T}$TIC" >&6
9059else 5008else
9060 echo "$as_me:$LINENO: result: no" >&5 5009 echo "$as_me:$LINENO: result: no" >&5
9061echo "${ECHO_T}no" >&6 5010echo "${ECHO_T}no" >&6
9062fi 5011fi
9063 5012
9168/* confdefs.h. */ 5117/* confdefs.h. */
9169_ACEOF 5118_ACEOF
9170cat confdefs.h >>conftest.$ac_ext 5119cat confdefs.h >>conftest.$ac_ext
9171cat >>conftest.$ac_ext <<_ACEOF 5120cat >>conftest.$ac_ext <<_ACEOF
9172/* end confdefs.h. */ 5121/* end confdefs.h. */
9173#include <X11/Intrinsic.h> 5122#include <X11/Xlib.h>
9174_ACEOF 5123_ACEOF
9175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9177 ac_status=$? 5126 ac_status=$?
9178 grep -v '^ *+' conftest.er1 >conftest.err 5127 grep -v '^ *+' conftest.er1 >conftest.err
9195else 5144else
9196 echo "$as_me: failed program was:" >&5 5145 echo "$as_me: failed program was:" >&5
9197sed 's/^/| /' conftest.$ac_ext >&5 5146sed 's/^/| /' conftest.$ac_ext >&5
9198 5147
9199 for ac_dir in $ac_x_header_dirs; do 5148 for ac_dir in $ac_x_header_dirs; do
9200 if test -r "$ac_dir/X11/Intrinsic.h"; then 5149 if test -r "$ac_dir/X11/Xlib.h"; then
9201 ac_x_includes=$ac_dir 5150 ac_x_includes=$ac_dir
9202 break 5151 break
9203 fi 5152 fi
9204done 5153done
9205fi 5154fi
9209if test "$ac_x_libraries" = no; then 5158if test "$ac_x_libraries" = no; then
9210 # Check for the libraries. 5159 # Check for the libraries.
9211 # See if we find them without any special options. 5160 # See if we find them without any special options.
9212 # Don't add to $LIBS permanently. 5161 # Don't add to $LIBS permanently.
9213 ac_save_LIBS=$LIBS 5162 ac_save_LIBS=$LIBS
9214 LIBS="-lXt $LIBS" 5163 LIBS="-lX11 $LIBS"
9215 cat >conftest.$ac_ext <<_ACEOF 5164 cat >conftest.$ac_ext <<_ACEOF
9216/* confdefs.h. */ 5165/* confdefs.h. */
9217_ACEOF 5166_ACEOF
9218cat confdefs.h >>conftest.$ac_ext 5167cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF 5168cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h. */ 5169/* end confdefs.h. */
9221#include <X11/Intrinsic.h> 5170#include <X11/Xlib.h>
9222int 5171int
9223main () 5172main ()
9224{ 5173{
9225XtMalloc (0) 5174XrmInitialize ()
9226 ; 5175 ;
9227 return 0; 5176 return 0;
9228} 5177}
9229_ACEOF 5178_ACEOF
9230rm -f conftest.$ac_objext conftest$ac_exeext 5179rm -f conftest.$ac_objext conftest$ac_exeext
9258LIBS=$ac_save_LIBS 5207LIBS=$ac_save_LIBS
9259for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5208for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9260do 5209do
9261 # Don't even attempt the hair of trying to link an X program! 5210 # Don't even attempt the hair of trying to link an X program!
9262 for ac_extension in a so sl; do 5211 for ac_extension in a so sl; do
9263 if test -r $ac_dir/libXt.$ac_extension; then 5212 if test -r $ac_dir/libX11.$ac_extension; then
9264 ac_x_libraries=$ac_dir 5213 ac_x_libraries=$ac_dir
9265 break 2 5214 break 2
9266 fi 5215 fi
9267 done 5216 done
9268done 5217done
10870#define HAVE_SYS_WAIT_H 1 6819#define HAVE_SYS_WAIT_H 1
10871_ACEOF 6820_ACEOF
10872 6821
10873fi 6822fi
10874 6823
6824echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6825echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6826if test "${ac_cv_header_stdc+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828else
6829 cat >conftest.$ac_ext <<_ACEOF
6830/* confdefs.h. */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h. */
6835#include <stdlib.h>
6836#include <stdarg.h>
6837#include <string.h>
6838#include <float.h>
6839
6840int
6841main ()
6842{
6843
6844 ;
6845 return 0;
6846}
6847_ACEOF
6848rm -f conftest.$ac_objext
6849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } &&
6857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6859 (eval $ac_try) 2>&5
6860 ac_status=$?
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); }; } &&
6863 { ac_try='test -s conftest.$ac_objext'
6864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 (eval $ac_try) 2>&5
6866 ac_status=$?
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); }; }; then
6869 ac_cv_header_stdc=yes
6870else
6871 echo "$as_me: failed program was:" >&5
6872sed 's/^/| /' conftest.$ac_ext >&5
6873
6874ac_cv_header_stdc=no
6875fi
6876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6877
6878if test $ac_cv_header_stdc = yes; then
6879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6880 cat >conftest.$ac_ext <<_ACEOF
6881/* confdefs.h. */
6882_ACEOF
6883cat confdefs.h >>conftest.$ac_ext
6884cat >>conftest.$ac_ext <<_ACEOF
6885/* end confdefs.h. */
6886#include <string.h>
6887
6888_ACEOF
6889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890 $EGREP "memchr" >/dev/null 2>&1; then
6891 :
6892else
6893 ac_cv_header_stdc=no
6894fi
6895rm -f conftest*
6896
6897fi
6898
6899if test $ac_cv_header_stdc = yes; then
6900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6901 cat >conftest.$ac_ext <<_ACEOF
6902/* confdefs.h. */
6903_ACEOF
6904cat confdefs.h >>conftest.$ac_ext
6905cat >>conftest.$ac_ext <<_ACEOF
6906/* end confdefs.h. */
6907#include <stdlib.h>
6908
6909_ACEOF
6910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6911 $EGREP "free" >/dev/null 2>&1; then
6912 :
6913else
6914 ac_cv_header_stdc=no
6915fi
6916rm -f conftest*
6917
6918fi
6919
6920if test $ac_cv_header_stdc = yes; then
6921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6922 if test "$cross_compiling" = yes; then
6923 :
6924else
6925 cat >conftest.$ac_ext <<_ACEOF
6926/* confdefs.h. */
6927_ACEOF
6928cat confdefs.h >>conftest.$ac_ext
6929cat >>conftest.$ac_ext <<_ACEOF
6930/* end confdefs.h. */
6931#include <ctype.h>
6932#if ((' ' & 0x0FF) == 0x020)
6933# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6934# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6935#else
6936# define ISLOWER(c) \
6937 (('a' <= (c) && (c) <= 'i') \
6938 || ('j' <= (c) && (c) <= 'r') \
6939 || ('s' <= (c) && (c) <= 'z'))
6940# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6941#endif
6942
6943#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6944int
6945main ()
6946{
6947 int i;
6948 for (i = 0; i < 256; i++)
6949 if (XOR (islower (i), ISLOWER (i))
6950 || toupper (i) != TOUPPER (i))
6951 exit(2);
6952 exit (0);
6953}
6954_ACEOF
6955rm -f conftest$ac_exeext
6956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957 (eval $ac_link) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 :
6967else
6968 echo "$as_me: program exited with status $ac_status" >&5
6969echo "$as_me: failed program was:" >&5
6970sed 's/^/| /' conftest.$ac_ext >&5
6971
6972( exit $ac_status )
6973ac_cv_header_stdc=no
6974fi
6975rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6976fi
6977fi
6978fi
6979echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6980echo "${ECHO_T}$ac_cv_header_stdc" >&6
6981if test $ac_cv_header_stdc = yes; then
6982
6983cat >>confdefs.h <<\_ACEOF
6984#define STDC_HEADERS 1
6985_ACEOF
6986
6987fi
6988
6989# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7000 inttypes.h stdint.h unistd.h
7001do
7002as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7003echo "$as_me:$LINENO: checking for $ac_header" >&5
7004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7005if eval "test \"\${$as_ac_Header+set}\" = set"; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008 cat >conftest.$ac_ext <<_ACEOF
7009/* confdefs.h. */
7010_ACEOF
7011cat confdefs.h >>conftest.$ac_ext
7012cat >>conftest.$ac_ext <<_ACEOF
7013/* end confdefs.h. */
7014$ac_includes_default
7015
7016#include <$ac_header>
7017_ACEOF
7018rm -f conftest.$ac_objext
7019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7020 (eval $ac_compile) 2>conftest.er1
7021 ac_status=$?
7022 grep -v '^ *+' conftest.er1 >conftest.err
7023 rm -f conftest.er1
7024 cat conftest.err >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); } &&
7027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029 (eval $ac_try) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); }; } &&
7033 { ac_try='test -s conftest.$ac_objext'
7034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7035 (eval $ac_try) 2>&5
7036 ac_status=$?
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); }; }; then
7039 eval "$as_ac_Header=yes"
7040else
7041 echo "$as_me: failed program was:" >&5
7042sed 's/^/| /' conftest.$ac_ext >&5
7043
7044eval "$as_ac_Header=no"
7045fi
7046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7047fi
7048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7050if test `eval echo '${'$as_ac_Header'}'` = yes; then
7051 cat >>confdefs.h <<_ACEOF
7052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7053_ACEOF
7054
7055fi
7056
7057done
7058
7059
7060
7061
7062
7063
7064
10875 7065
10876 7066
10877 7067
10878 7068
10879 7069
10905 sys/byteorder.h \ 7095 sys/byteorder.h \
10906 sys/ioctl.h \ 7096 sys/ioctl.h \
10907 sys/select.h \ 7097 sys/select.h \
10908 sys/sockio.h \ 7098 sys/sockio.h \
10909 sys/strredir.h \ 7099 sys/strredir.h \
7100 sys/stropts.h \
10910 sys/time.h \ 7101 sys/time.h \
10911 utmp.h \ 7102 utmp.h \
10912 utmpx.h \ 7103 utmpx.h \
10913 stdint.h \ 7104 stdint.h \
7105 pty.h \
7106 wchar.h \
7107 cwchar \
7108 clocale \
10914 7109
10915do 7110do
10916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10917if eval "test \"\${$as_ac_Header+set}\" = set"; then 7112if eval "test \"\${$as_ac_Header+set}\" = set"; then
10918 echo "$as_me:$LINENO: checking for $ac_header" >&5 7113 echo "$as_me:$LINENO: checking for $ac_header" >&5
11702_ACEOF 7897_ACEOF
11703 7898
11704fi 7899fi
11705 7900
11706 7901
11707
11708echo "$as_me:$LINENO: checking for char" >&5
11709echo $ECHO_N "checking for char... $ECHO_C" >&6
11710if test "${ac_cv_type_char+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11712else
11713 cat >conftest.$ac_ext <<_ACEOF
11714/* confdefs.h. */
11715_ACEOF
11716cat confdefs.h >>conftest.$ac_ext
11717cat >>conftest.$ac_ext <<_ACEOF
11718/* end confdefs.h. */
11719$ac_includes_default
11720int
11721main ()
11722{
11723if ((char *) 0)
11724 return 0;
11725if (sizeof (char))
11726 return 0;
11727 ;
11728 return 0;
11729}
11730_ACEOF
11731rm -f conftest.$ac_objext
11732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>conftest.er1
11734 ac_status=$?
11735 grep -v '^ *+' conftest.er1 >conftest.err
11736 rm -f conftest.er1
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest.$ac_objext'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 ac_cv_type_char=yes
11753else
11754 echo "$as_me: failed program was:" >&5
11755sed 's/^/| /' conftest.$ac_ext >&5
11756
11757ac_cv_type_char=no
11758fi
11759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11760fi
11761echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11762echo "${ECHO_T}$ac_cv_type_char" >&6
11763
11764echo "$as_me:$LINENO: checking size of char" >&5
11765echo $ECHO_N "checking size of char... $ECHO_C" >&6
11766if test "${ac_cv_sizeof_char+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768else
11769 if test "$ac_cv_type_char" = yes; then
11770 # The cast to unsigned long works around a bug in the HP C Compiler
11771 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11772 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11773 # This bug is HP SR number 8606223364.
11774 if test "$cross_compiling" = yes; then
11775 # Depending upon the size, compute the lo and hi bounds.
11776cat >conftest.$ac_ext <<_ACEOF
11777/* confdefs.h. */
11778_ACEOF
11779cat confdefs.h >>conftest.$ac_ext
11780cat >>conftest.$ac_ext <<_ACEOF
11781/* end confdefs.h. */
11782$ac_includes_default
11783int
11784main ()
11785{
11786static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11787test_array [0] = 0
11788
11789 ;
11790 return 0;
11791}
11792_ACEOF
11793rm -f conftest.$ac_objext
11794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11795 (eval $ac_compile) 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11804 (eval $ac_try) 2>&5
11805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest.$ac_objext'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_lo=0 ac_mid=0
11815 while :; do
11816 cat >conftest.$ac_ext <<_ACEOF
11817/* confdefs.h. */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h. */
11822$ac_includes_default
11823int
11824main ()
11825{
11826static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11827test_array [0] = 0
11828
11829 ;
11830 return 0;
11831}
11832_ACEOF
11833rm -f conftest.$ac_objext
11834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11835 (eval $ac_compile) 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_hi=$ac_mid; break
11855else
11856 echo "$as_me: failed program was:" >&5
11857sed 's/^/| /' conftest.$ac_ext >&5
11858
11859ac_lo=`expr $ac_mid + 1`
11860 if test $ac_lo -le $ac_mid; then
11861 ac_lo= ac_hi=
11862 break
11863 fi
11864 ac_mid=`expr 2 '*' $ac_mid + 1`
11865fi
11866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11867 done
11868else
11869 echo "$as_me: failed program was:" >&5
11870sed 's/^/| /' conftest.$ac_ext >&5
11871
11872cat >conftest.$ac_ext <<_ACEOF
11873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
11878$ac_includes_default
11879int
11880main ()
11881{
11882static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11883test_array [0] = 0
11884
11885 ;
11886 return 0;
11887}
11888_ACEOF
11889rm -f conftest.$ac_objext
11890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest.$ac_objext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_hi=-1 ac_mid=-1
11911 while :; do
11912 cat >conftest.$ac_ext <<_ACEOF
11913/* confdefs.h. */
11914_ACEOF
11915cat confdefs.h >>conftest.$ac_ext
11916cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h. */
11918$ac_includes_default
11919int
11920main ()
11921{
11922static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11923test_array [0] = 0
11924
11925 ;
11926 return 0;
11927}
11928_ACEOF
11929rm -f conftest.$ac_objext
11930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11931 (eval $ac_compile) 2>conftest.er1
11932 ac_status=$?
11933 grep -v '^ *+' conftest.er1 >conftest.err
11934 rm -f conftest.er1
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11941 ac_status=$?
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try='test -s conftest.$ac_objext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 ac_lo=$ac_mid; break
11951else
11952 echo "$as_me: failed program was:" >&5
11953sed 's/^/| /' conftest.$ac_ext >&5
11954
11955ac_hi=`expr '(' $ac_mid ')' - 1`
11956 if test $ac_mid -le $ac_hi; then
11957 ac_lo= ac_hi=
11958 break
11959 fi
11960 ac_mid=`expr 2 '*' $ac_mid`
11961fi
11962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11963 done
11964else
11965 echo "$as_me: failed program was:" >&5
11966sed 's/^/| /' conftest.$ac_ext >&5
11967
11968ac_lo= ac_hi=
11969fi
11970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11971fi
11972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11973# Binary search between lo and hi bounds.
11974while test "x$ac_lo" != "x$ac_hi"; do
11975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11976 cat >conftest.$ac_ext <<_ACEOF
11977/* confdefs.h. */
11978_ACEOF
11979cat confdefs.h >>conftest.$ac_ext
11980cat >>conftest.$ac_ext <<_ACEOF
11981/* end confdefs.h. */
11982$ac_includes_default
11983int
11984main ()
11985{
11986static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11987test_array [0] = 0
11988
11989 ;
11990 return 0;
11991}
11992_ACEOF
11993rm -f conftest.$ac_objext
11994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest.$ac_objext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_hi=$ac_mid
12015else
12016 echo "$as_me: failed program was:" >&5
12017sed 's/^/| /' conftest.$ac_ext >&5
12018
12019ac_lo=`expr '(' $ac_mid ')' + 1`
12020fi
12021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12022done
12023case $ac_lo in
12024?*) ac_cv_sizeof_char=$ac_lo;;
12025'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12026See \`config.log' for more details." >&5
12027echo "$as_me: error: cannot compute sizeof (char), 77
12028See \`config.log' for more details." >&2;}
12029 { (exit 1); exit 1; }; } ;;
12030esac
12031else
12032 if test "$cross_compiling" = yes; then
12033 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12034echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12035 { (exit 1); exit 1; }; }
12036else
12037 cat >conftest.$ac_ext <<_ACEOF
12038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
12043$ac_includes_default
12044long longval () { return (long) (sizeof (char)); }
12045unsigned long ulongval () { return (long) (sizeof (char)); }
12046#include <stdio.h>
12047#include <stdlib.h>
12048int
12049main ()
12050{
12051
12052 FILE *f = fopen ("conftest.val", "w");
12053 if (! f)
12054 exit (1);
12055 if (((long) (sizeof (char))) < 0)
12056 {
12057 long i = longval ();
12058 if (i != ((long) (sizeof (char))))
12059 exit (1);
12060 fprintf (f, "%ld\n", i);
12061 }
12062 else
12063 {
12064 unsigned long i = ulongval ();
12065 if (i != ((long) (sizeof (char))))
12066 exit (1);
12067 fprintf (f, "%lu\n", i);
12068 }
12069 exit (ferror (f) || fclose (f) != 0);
12070
12071 ;
12072 return 0;
12073}
12074_ACEOF
12075rm -f conftest$ac_exeext
12076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12077 (eval $ac_link) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 ac_cv_sizeof_char=`cat conftest.val`
12087else
12088 echo "$as_me: program exited with status $ac_status" >&5
12089echo "$as_me: failed program was:" >&5
12090sed 's/^/| /' conftest.$ac_ext >&5
12091
12092( exit $ac_status )
12093{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12094See \`config.log' for more details." >&5
12095echo "$as_me: error: cannot compute sizeof (char), 77
12096See \`config.log' for more details." >&2;}
12097 { (exit 1); exit 1; }; }
12098fi
12099rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12100fi
12101fi
12102rm -f conftest.val
12103else
12104 ac_cv_sizeof_char=0
12105fi
12106fi
12107echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12108echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12109cat >>confdefs.h <<_ACEOF
12110#define SIZEOF_CHAR $ac_cv_sizeof_char
12111_ACEOF
12112
12113
12114echo "$as_me:$LINENO: checking for short" >&5 7902echo "$as_me:$LINENO: checking for short" >&5
12115echo $ECHO_N "checking for short... $ECHO_C" >&6 7903echo $ECHO_N "checking for short... $ECHO_C" >&6
12116if test "${ac_cv_type_short+set}" = set; then 7904if test "${ac_cv_type_short+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6 7905 echo $ECHO_N "(cached) $ECHO_C" >&6
12118else 7906else
12921cat >>confdefs.h <<_ACEOF 8709cat >>confdefs.h <<_ACEOF
12922#define SIZEOF_INT $ac_cv_sizeof_int 8710#define SIZEOF_INT $ac_cv_sizeof_int
12923_ACEOF 8711_ACEOF
12924 8712
12925 8713
12926echo "$as_me:$LINENO: checking for long" >&5
12927echo $ECHO_N "checking for long... $ECHO_C" >&6
12928if test "${ac_cv_type_long+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12930else
12931 cat >conftest.$ac_ext <<_ACEOF
12932/* confdefs.h. */
12933_ACEOF
12934cat confdefs.h >>conftest.$ac_ext
12935cat >>conftest.$ac_ext <<_ACEOF
12936/* end confdefs.h. */
12937$ac_includes_default
12938int
12939main ()
12940{
12941if ((long *) 0)
12942 return 0;
12943if (sizeof (long))
12944 return 0;
12945 ;
12946 return 0;
12947}
12948_ACEOF
12949rm -f conftest.$ac_objext
12950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951 (eval $ac_compile) 2>conftest.er1
12952 ac_status=$?
12953 grep -v '^ *+' conftest.er1 >conftest.err
12954 rm -f conftest.er1
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12960 (eval $ac_try) 2>&5
12961 ac_status=$?
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; } &&
12964 { ac_try='test -s conftest.$ac_objext'
12965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); }; }; then
12970 ac_cv_type_long=yes
12971else
12972 echo "$as_me: failed program was:" >&5
12973sed 's/^/| /' conftest.$ac_ext >&5
12974
12975ac_cv_type_long=no
12976fi
12977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12978fi
12979echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12980echo "${ECHO_T}$ac_cv_type_long" >&6
12981
12982echo "$as_me:$LINENO: checking size of long" >&5
12983echo $ECHO_N "checking size of long... $ECHO_C" >&6
12984if test "${ac_cv_sizeof_long+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12986else
12987 if test "$ac_cv_type_long" = yes; then
12988 # The cast to unsigned long works around a bug in the HP C Compiler
12989 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12990 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12991 # This bug is HP SR number 8606223364.
12992 if test "$cross_compiling" = yes; then
12993 # Depending upon the size, compute the lo and hi bounds.
12994cat >conftest.$ac_ext <<_ACEOF
12995/* confdefs.h. */
12996_ACEOF
12997cat confdefs.h >>conftest.$ac_ext
12998cat >>conftest.$ac_ext <<_ACEOF
12999/* end confdefs.h. */
13000$ac_includes_default
13001int
13002main ()
13003{
13004static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
13005test_array [0] = 0
13006
13007 ;
13008 return 0;
13009}
13010_ACEOF
13011rm -f conftest.$ac_objext
13012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13013 (eval $ac_compile) 2>conftest.er1
13014 ac_status=$?
13015 grep -v '^ *+' conftest.er1 >conftest.err
13016 rm -f conftest.er1
13017 cat conftest.err >&5
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); } &&
13020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13023 ac_status=$?
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest.$ac_objext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13029 ac_status=$?
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_lo=0 ac_mid=0
13033 while :; do
13034 cat >conftest.$ac_ext <<_ACEOF
13035/* confdefs.h. */
13036_ACEOF
13037cat confdefs.h >>conftest.$ac_ext
13038cat >>conftest.$ac_ext <<_ACEOF
13039/* end confdefs.h. */
13040$ac_includes_default
13041int
13042main ()
13043{
13044static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13045test_array [0] = 0
13046
13047 ;
13048 return 0;
13049}
13050_ACEOF
13051rm -f conftest.$ac_objext
13052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13053 (eval $ac_compile) 2>conftest.er1
13054 ac_status=$?
13055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest.$ac_objext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_hi=$ac_mid; break
13073else
13074 echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077ac_lo=`expr $ac_mid + 1`
13078 if test $ac_lo -le $ac_mid; then
13079 ac_lo= ac_hi=
13080 break
13081 fi
13082 ac_mid=`expr 2 '*' $ac_mid + 1`
13083fi
13084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13085 done
13086else
13087 echo "$as_me: failed program was:" >&5
13088sed 's/^/| /' conftest.$ac_ext >&5
13089
13090cat >conftest.$ac_ext <<_ACEOF
13091/* confdefs.h. */
13092_ACEOF
13093cat confdefs.h >>conftest.$ac_ext
13094cat >>conftest.$ac_ext <<_ACEOF
13095/* end confdefs.h. */
13096$ac_includes_default
13097int
13098main ()
13099{
13100static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
13101test_array [0] = 0
13102
13103 ;
13104 return 0;
13105}
13106_ACEOF
13107rm -f conftest.$ac_objext
13108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13109 (eval $ac_compile) 2>conftest.er1
13110 ac_status=$?
13111 grep -v '^ *+' conftest.er1 >conftest.err
13112 rm -f conftest.er1
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } &&
13116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13119 ac_status=$?
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; } &&
13122 { ac_try='test -s conftest.$ac_objext'
13123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13124 (eval $ac_try) 2>&5
13125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 ac_hi=-1 ac_mid=-1
13129 while :; do
13130 cat >conftest.$ac_ext <<_ACEOF
13131/* confdefs.h. */
13132_ACEOF
13133cat confdefs.h >>conftest.$ac_ext
13134cat >>conftest.$ac_ext <<_ACEOF
13135/* end confdefs.h. */
13136$ac_includes_default
13137int
13138main ()
13139{
13140static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
13141test_array [0] = 0
13142
13143 ;
13144 return 0;
13145}
13146_ACEOF
13147rm -f conftest.$ac_objext
13148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13149 (eval $ac_compile) 2>conftest.er1
13150 ac_status=$?
13151 grep -v '^ *+' conftest.er1 >conftest.err
13152 rm -f conftest.er1
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } &&
13156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; } &&
13162 { ac_try='test -s conftest.$ac_objext'
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_lo=$ac_mid; break
13169else
13170 echo "$as_me: failed program was:" >&5
13171sed 's/^/| /' conftest.$ac_ext >&5
13172
13173ac_hi=`expr '(' $ac_mid ')' - 1`
13174 if test $ac_mid -le $ac_hi; then
13175 ac_lo= ac_hi=
13176 break
13177 fi
13178 ac_mid=`expr 2 '*' $ac_mid`
13179fi
13180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13181 done
13182else
13183 echo "$as_me: failed program was:" >&5
13184sed 's/^/| /' conftest.$ac_ext >&5
13185
13186ac_lo= ac_hi=
13187fi
13188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13189fi
13190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13191# Binary search between lo and hi bounds.
13192while test "x$ac_lo" != "x$ac_hi"; do
13193 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13194 cat >conftest.$ac_ext <<_ACEOF
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h. */
13200$ac_includes_default
13201int
13202main ()
13203{
13204static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
13205test_array [0] = 0
13206
13207 ;
13208 return 0;
13209}
13210_ACEOF
13211rm -f conftest.$ac_objext
13212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } &&
13220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13223 ac_status=$?
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest.$ac_objext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13229 ac_status=$?
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_hi=$ac_mid
13233else
13234 echo "$as_me: failed program was:" >&5
13235sed 's/^/| /' conftest.$ac_ext >&5
13236
13237ac_lo=`expr '(' $ac_mid ')' + 1`
13238fi
13239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13240done
13241case $ac_lo in
13242?*) ac_cv_sizeof_long=$ac_lo;;
13243'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13244See \`config.log' for more details." >&5
13245echo "$as_me: error: cannot compute sizeof (long), 77
13246See \`config.log' for more details." >&2;}
13247 { (exit 1); exit 1; }; } ;;
13248esac
13249else
13250 if test "$cross_compiling" = yes; then
13251 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13252echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13253 { (exit 1); exit 1; }; }
13254else
13255 cat >conftest.$ac_ext <<_ACEOF
13256/* confdefs.h. */
13257_ACEOF
13258cat confdefs.h >>conftest.$ac_ext
13259cat >>conftest.$ac_ext <<_ACEOF
13260/* end confdefs.h. */
13261$ac_includes_default
13262long longval () { return (long) (sizeof (long)); }
13263unsigned long ulongval () { return (long) (sizeof (long)); }
13264#include <stdio.h>
13265#include <stdlib.h>
13266int
13267main ()
13268{
13269
13270 FILE *f = fopen ("conftest.val", "w");
13271 if (! f)
13272 exit (1);
13273 if (((long) (sizeof (long))) < 0)
13274 {
13275 long i = longval ();
13276 if (i != ((long) (sizeof (long))))
13277 exit (1);
13278 fprintf (f, "%ld\n", i);
13279 }
13280 else
13281 {
13282 unsigned long i = ulongval ();
13283 if (i != ((long) (sizeof (long))))
13284 exit (1);
13285 fprintf (f, "%lu\n", i);
13286 }
13287 exit (ferror (f) || fclose (f) != 0);
13288
13289 ;
13290 return 0;
13291}
13292_ACEOF
13293rm -f conftest$ac_exeext
13294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13295 (eval $ac_link) 2>&5
13296 ac_status=$?
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13300 (eval $ac_try) 2>&5
13301 ac_status=$?
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; }; then
13304 ac_cv_sizeof_long=`cat conftest.val`
13305else
13306 echo "$as_me: program exited with status $ac_status" >&5
13307echo "$as_me: failed program was:" >&5
13308sed 's/^/| /' conftest.$ac_ext >&5
13309
13310( exit $ac_status )
13311{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
13312See \`config.log' for more details." >&5
13313echo "$as_me: error: cannot compute sizeof (long), 77
13314See \`config.log' for more details." >&2;}
13315 { (exit 1); exit 1; }; }
13316fi
13317rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13318fi
13319fi
13320rm -f conftest.val
13321else
13322 ac_cv_sizeof_long=0
13323fi
13324fi
13325echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13326echo "${ECHO_T}$ac_cv_sizeof_long" >&6
13327cat >>confdefs.h <<_ACEOF
13328#define SIZEOF_LONG $ac_cv_sizeof_long
13329_ACEOF
13330
13331
13332echo "$as_me:$LINENO: checking for long long" >&5 8714echo "$as_me:$LINENO: checking for long long" >&5
13333echo $ECHO_N "checking for long long... $ECHO_C" >&6 8715echo $ECHO_N "checking for long long... $ECHO_C" >&6
13334if test "${ac_cv_type_long_long+set}" = set; then 8716if test "${ac_cv_type_long_long+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6 8717 echo $ECHO_N "(cached) $ECHO_C" >&6
13336else 8718else
14187 rxvt_cv_int16_t=yes 9569 rxvt_cv_int16_t=yes
14188else 9570else
14189 echo "$as_me: failed program was:" >&5 9571 echo "$as_me: failed program was:" >&5
14190sed 's/^/| /' conftest.$ac_ext >&5 9572sed 's/^/| /' conftest.$ac_ext >&5
14191 9573
14192if test $ac_cv_sizeof_char -ge 2; then 9574if test "$ac_cv_sizeof_char" -ge 2; then
14193 rxvt_cv_int16_t=" char" 9575 rxvt_cv_int16_t=" char"
14194else 9576else
14195 if test $ac_cv_sizeof_short -ge 2; then 9577 if test "$ac_cv_sizeof_short" -ge 2; then
14196 rxvt_cv_int16_t=" short" 9578 rxvt_cv_int16_t=" short"
14197 else 9579 else
14198 if test $ac_cv_sizeof_int -ge 2; then 9580 if test "$ac_cv_sizeof_int" -ge 2; then
14199 rxvt_cv_int16_t=" int" 9581 rxvt_cv_int16_t=" int"
14200 else 9582 else
14201 if test $ac_cv_sizeof_long -ge 2; then 9583 if test "$ac_cv_sizeof_long" -ge 2; then
14202 rxvt_cv_int16_t=" long" 9584 rxvt_cv_int16_t=" long"
14203 else 9585 else
14204 if test $ac_cv_sizeof_long_long -ge 2; then 9586 if test "$ac_cv_sizeof_long_long" -ge 2; then
14205 rxvt_cv_int16_t=" long long" 9587 rxvt_cv_int16_t=" long long"
14206 else 9588 else
14207 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default 9589 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
14208 fi 9590 fi
14209 fi 9591 fi
14269 rxvt_cv_uint16_t=yes 9651 rxvt_cv_uint16_t=yes
14270else 9652else
14271 echo "$as_me: failed program was:" >&5 9653 echo "$as_me: failed program was:" >&5
14272sed 's/^/| /' conftest.$ac_ext >&5 9654sed 's/^/| /' conftest.$ac_ext >&5
14273 9655
14274if test $ac_cv_sizeof_char -ge 2; then 9656if test "$ac_cv_sizeof_char" -ge 2; then
14275 rxvt_cv_uint16_t="unsigned char" 9657 rxvt_cv_uint16_t="unsigned char"
14276else 9658else
14277 if test $ac_cv_sizeof_short -ge 2; then 9659 if test "$ac_cv_sizeof_short" -ge 2; then
14278 rxvt_cv_uint16_t="unsigned short" 9660 rxvt_cv_uint16_t="unsigned short"
14279 else 9661 else
14280 if test $ac_cv_sizeof_int -ge 2; then 9662 if test "$ac_cv_sizeof_int" -ge 2; then
14281 rxvt_cv_uint16_t="unsigned int" 9663 rxvt_cv_uint16_t="unsigned int"
14282 else 9664 else
14283 if test $ac_cv_sizeof_long -ge 2; then 9665 if test "$ac_cv_sizeof_long" -ge 2; then
14284 rxvt_cv_uint16_t="unsigned long" 9666 rxvt_cv_uint16_t="unsigned long"
14285 else 9667 else
14286 if test $ac_cv_sizeof_long_long -ge 2; then 9668 if test "$ac_cv_sizeof_long_long" -ge 2; then
14287 rxvt_cv_uint16_t="unsigned long long" 9669 rxvt_cv_uint16_t="unsigned long long"
14288 else 9670 else
14289 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default 9671 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
14290 fi 9672 fi
14291 fi 9673 fi
14351 rxvt_cv_int32_t=yes 9733 rxvt_cv_int32_t=yes
14352else 9734else
14353 echo "$as_me: failed program was:" >&5 9735 echo "$as_me: failed program was:" >&5
14354sed 's/^/| /' conftest.$ac_ext >&5 9736sed 's/^/| /' conftest.$ac_ext >&5
14355 9737
14356if test $ac_cv_sizeof_char -ge 4; then 9738if test "$ac_cv_sizeof_char" -ge 4; then
14357 rxvt_cv_int32_t=" char" 9739 rxvt_cv_int32_t=" char"
14358else 9740else
14359 if test $ac_cv_sizeof_short -ge 4; then 9741 if test "$ac_cv_sizeof_short" -ge 4; then
14360 rxvt_cv_int32_t=" short" 9742 rxvt_cv_int32_t=" short"
14361 else 9743 else
14362 if test $ac_cv_sizeof_int -ge 4; then 9744 if test "$ac_cv_sizeof_int" -ge 4; then
14363 rxvt_cv_int32_t=" int" 9745 rxvt_cv_int32_t=" int"
14364 else 9746 else
14365 if test $ac_cv_sizeof_long -ge 4; then 9747 if test "$ac_cv_sizeof_long" -ge 4; then
14366 rxvt_cv_int32_t=" long" 9748 rxvt_cv_int32_t=" long"
14367 else 9749 else
14368 if test $ac_cv_sizeof_long_long -ge 4; then 9750 if test "$ac_cv_sizeof_long_long" -ge 4; then
14369 rxvt_cv_int32_t=" long long" 9751 rxvt_cv_int32_t=" long long"
14370 else 9752 else
14371 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default 9753 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
14372 fi 9754 fi
14373 fi 9755 fi
14433 rxvt_cv_uint32_t=yes 9815 rxvt_cv_uint32_t=yes
14434else 9816else
14435 echo "$as_me: failed program was:" >&5 9817 echo "$as_me: failed program was:" >&5
14436sed 's/^/| /' conftest.$ac_ext >&5 9818sed 's/^/| /' conftest.$ac_ext >&5
14437 9819
14438if test $ac_cv_sizeof_char -ge 4; then 9820if test "$ac_cv_sizeof_char" -ge 4; then
14439 rxvt_cv_uint32_t="unsigned char" 9821 rxvt_cv_uint32_t="unsigned char"
14440else 9822else
14441 if test $ac_cv_sizeof_short -ge 4; then 9823 if test "$ac_cv_sizeof_short" -ge 4; then
14442 rxvt_cv_uint32_t="unsigned short" 9824 rxvt_cv_uint32_t="unsigned short"
14443 else 9825 else
14444 if test $ac_cv_sizeof_int -ge 4; then 9826 if test "$ac_cv_sizeof_int" -ge 4; then
14445 rxvt_cv_uint32_t="unsigned int" 9827 rxvt_cv_uint32_t="unsigned int"
14446 else 9828 else
14447 if test $ac_cv_sizeof_long -ge 4; then 9829 if test "$ac_cv_sizeof_long" -ge 4; then
14448 rxvt_cv_uint32_t="unsigned long" 9830 rxvt_cv_uint32_t="unsigned long"
14449 else 9831 else
14450 if test $ac_cv_sizeof_long_long -ge 4; then 9832 if test "$ac_cv_sizeof_long_long" -ge 4; then
14451 rxvt_cv_uint32_t="unsigned long long" 9833 rxvt_cv_uint32_t="unsigned long long"
14452 else 9834 else
14453 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default 9835 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
14454 fi 9836 fi
14455 fi 9837 fi
14469 else 9851 else
14470 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" 9852 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
14471 fi 9853 fi
14472fi 9854fi
14473 9855
14474if test $ac_cv_sizeof_int_p -eq 8; then 9856if test "$ac_cv_sizeof_int_p" -eq 8; then
14475 rxvt_intp_define="#define intp_t int64_t" 9857 rxvt_intp_define="#define intp_t int64_t"
14476 rxvt_u_intp_define="#define u_intp_t u_int64_t" 9858 rxvt_u_intp_define="#define u_intp_t u_int64_t"
14477else 9859else
14478 if test $ac_cv_sizeof_int_p -eq 4; then 9860 if test "$ac_cv_sizeof_int_p" -eq 4; then
14479 rxvt_intp_define="#define intp_t int32_t" 9861 rxvt_intp_define="#define intp_t int32_t"
14480 rxvt_u_intp_define="#define u_intp_t u_int32_t" 9862 rxvt_u_intp_define="#define u_intp_t u_int32_t"
14481 else 9863 else
14482 if test $ac_cv_sizeof_int_p -eq 2; then 9864 if test "$ac_cv_sizeof_int_p" -eq 2; then
14483 rxvt_intp_define="#define intp_t int16_t" 9865 rxvt_intp_define="#define intp_t int16_t"
14484 rxvt_u_intp_define="#define u_intp_t u_int16_t" 9866 rxvt_u_intp_define="#define u_intp_t u_int16_t"
14485 else 9867 else
14486 rxvt_intp_define="#error set intp_t" 9868 rxvt_intp_define="#error set intp_t"
14487 rxvt_u_intp_define="#error set u_intp_t" 9869 rxvt_u_intp_define="#error set u_intp_t"
14562 9944
14563case "$host_alias" in 9945case "$host_alias" in
14564 *ultrix) ac_cv_func_setsid='no' ;; 9946 *ultrix) ac_cv_func_setsid='no' ;;
14565 *) break;; 9947 *) break;;
14566esac 9948esac
9949
14567 9950
14568 9951
14569 9952
14570 9953
14571 9954
14599 unlockpt \ 9982 unlockpt \
14600 isastream \ 9983 isastream \
14601 on_exit \ 9984 on_exit \
14602 nanosleep \ 9985 nanosleep \
14603 updwtmp \ 9986 updwtmp \
9987 updwtmpx \
14604 ttyslot \ 9988 ttyslot \
14605 9989
14606do 9990do
14607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9991as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14608echo "$as_me:$LINENO: checking for $ac_func" >&5 9992echo "$as_me:$LINENO: checking for $ac_func" >&5
15288#define HAVE_UTMPX_HOST 1 10672#define HAVE_UTMPX_HOST 1
15289_ACEOF 10673_ACEOF
15290 10674
15291fi 10675fi
15292 10676
15293fi 10677echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10678echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10679if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681else
10682 cat >conftest.$ac_ext <<_ACEOF
10683/* confdefs.h. */
10684_ACEOF
10685cat confdefs.h >>conftest.$ac_ext
10686cat >>conftest.$ac_ext <<_ACEOF
10687/* end confdefs.h. */
10688#include <sys/types.h>
10689#include <utmpx.h>
10690int
10691main ()
10692{
10693struct utmpx utx; utx.ut_session;
10694 ;
10695 return 0;
10696}
10697_ACEOF
10698rm -f conftest.$ac_objext
10699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10700 (eval $ac_compile) 2>conftest.er1
10701 ac_status=$?
10702 grep -v '^ *+' conftest.er1 >conftest.err
10703 rm -f conftest.er1
10704 cat conftest.err >&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } &&
10707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709 (eval $ac_try) 2>&5
10710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest.$ac_objext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10716 ac_status=$?
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 rxvt_cv_struct_utmpx_session=yes
10720else
10721 echo "$as_me: failed program was:" >&5
10722sed 's/^/| /' conftest.$ac_ext >&5
15294 10723
10724rxvt_cv_struct_utmpx_session=no
10725fi
10726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10727fi
10728echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10729echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10730if test x$rxvt_cv_struct_utmpx_session = xyes; then
10731
10732cat >>confdefs.h <<\_ACEOF
10733#define HAVE_UTMPX_SESSION 1
10734_ACEOF
10735
10736fi
10737
10738fi
15295 10739
15296 10740
15297echo "$as_me:$LINENO: checking for struct lastlog" >&5 10741echo "$as_me:$LINENO: checking for struct lastlog" >&5
15298echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 10742echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
15299if test "${rxvt_cv_struct_lastlog+set}" = set; then 10743if test "${rxvt_cv_struct_lastlog+set}" = set; then
16176#define HAVE_NL_LANGINFO 1 11620#define HAVE_NL_LANGINFO 1
16177_ACEOF 11621_ACEOF
16178 11622
16179fi 11623fi
16180 11624
11625echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5
11626echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6
11627if test "${rxvt_can_pass_fds+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630 cat >conftest.$ac_ext <<_ACEOF
11631/* confdefs.h. */
11632_ACEOF
11633cat confdefs.h >>conftest.$ac_ext
11634cat >>conftest.$ac_ext <<_ACEOF
11635/* end confdefs.h. */
11636
11637#include <sys/types.h>
11638#include <sys/socket.h>
11639
11640int
11641main ()
11642{
11643
11644{
11645 msghdr msg;
11646 iovec iov;
11647 char buf [100];
11648 char data = 0;
11649
11650 iov.iov_base = &data;
11651 iov.iov_len = 1;
11652
11653 msg.msg_iov = &iov;
11654 msg.msg_iovlen = 1;
11655 msg.msg_control = buf;
11656 msg.msg_controllen = sizeof buf;
11657
11658 cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
11659 cmsg->cmsg_level = SOL_SOCKET;
11660 cmsg->cmsg_type = SCM_RIGHTS;
11661 cmsg->cmsg_len = 100;
11662
11663 *(int *)CMSG_DATA (cmsg) = 5;
11664
11665 return sendmsg (3, &msg, 0);
11666}
11667
11668 ;
11669 return 0;
11670}
11671_ACEOF
11672rm -f conftest.$ac_objext conftest$ac_exeext
11673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11674 (eval $ac_link) 2>conftest.er1
11675 ac_status=$?
11676 grep -v '^ *+' conftest.er1 >conftest.err
11677 rm -f conftest.er1
11678 cat conftest.err >&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; } &&
11687 { ac_try='test -s conftest$ac_exeext'
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; }; then
11693 rxvt_can_pass_fds=yes
11694else
11695 echo "$as_me: failed program was:" >&5
11696sed 's/^/| /' conftest.$ac_ext >&5
11697
11698rxvt_can_pass_fds=no
11699fi
11700rm -f conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
11702fi
11703echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5
11704echo "${ECHO_T}$rxvt_can_pass_fds" >&6
11705if test x$rxvt_can_pass_fds = xyes; then
11706
11707cat >>confdefs.h <<\_ACEOF
11708#define HAVE_UNIX_FDPASS 1
11709_ACEOF
11710
11711fi
11712
11713echo "$as_me:$LINENO: checking for broken XIM callback" >&5
11714echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11715if test "${rxvt_broken_ximcb+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717else
11718 cat >conftest.$ac_ext <<_ACEOF
11719
11720#include <X11/Xlib.h>
11721
11722void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
11723
11724void f() {
11725 XIMCallback cb;
11726 cb.callback = im_destroy_cb;
11727}
11728
11729_ACEOF
11730rm -f conftest.$ac_objext
11731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11732 (eval $ac_compile) 2>conftest.er1
11733 ac_status=$?
11734 grep -v '^ *+' conftest.er1 >conftest.err
11735 rm -f conftest.er1
11736 cat conftest.err >&5
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } &&
11739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest.$ac_objext'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11748 ac_status=$?
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; }; then
11751 rxvt_broken_ximcb=yes
11752else
11753 echo "$as_me: failed program was:" >&5
11754sed 's/^/| /' conftest.$ac_ext >&5
11755
11756rxvt_broken_ximcb=no
11757fi
11758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11759fi
11760echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11761echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11762
11763if test x$rxvt_broken_ximcb = xyes; then
11764
11765cat >>confdefs.h <<\_ACEOF
11766#define XIMCB_PROTO_BROKEN 1
11767_ACEOF
11768
11769fi
11770
16181echo "$as_me:$LINENO: checking for getpt" >&5 11771echo "$as_me:$LINENO: checking for getpt" >&5
16182echo $ECHO_N "checking for getpt... $ECHO_C" >&6 11772echo $ECHO_N "checking for getpt... $ECHO_C" >&6
16183if test "${rxvt_cv_func_getpt+set}" = set; then 11773if test "${rxvt_cv_func_getpt+set}" = set; then
16184 echo $ECHO_N "(cached) $ECHO_C" >&6 11774 echo $ECHO_N "(cached) $ECHO_C" >&6
16185else 11775else
16362 11952
16363cat >>confdefs.h <<_ACEOF 11953cat >>confdefs.h <<_ACEOF
16364#define PTYCHAR2 "$pch2" 11954#define PTYCHAR2 "$pch2"
16365_ACEOF 11955_ACEOF
16366 11956
16367fi
16368
16369if test x$support_tinting = xyes; then
16370
16371cat >>confdefs.h <<\_ACEOF
16372#define TINTING 1
16373_ACEOF
16374
16375fi
16376if test x$support_inheritpixmap = xyes; then
16377
16378cat >>confdefs.h <<\_ACEOF
16379#define TRANSPARENT 1
16380_ACEOF
16381
16382fi
16383if test x$support_keepscrolling = xno; then
16384
16385cat >>confdefs.h <<\_ACEOF
16386#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
16387_ACEOF
16388
16389fi
16390if test x$support_selectionscrolling = xyes; then
16391
16392cat >>confdefs.h <<\_ACEOF
16393#define SELECTION_SCROLLING 1
16394_ACEOF
16395
16396fi
16397if test x$support_menubar = xyes; then
16398
16399cat >>confdefs.h <<\_ACEOF
16400#define MENUBAR 1
16401_ACEOF
16402
16403fi
16404if test x$support_frills = xno; then
16405
16406cat >>confdefs.h <<\_ACEOF
16407#define NO_FRILLS 1
16408_ACEOF
16409
16410fi
16411if test x$support_linespace = xno; then
16412
16413cat >>confdefs.h <<\_ACEOF
16414#define NO_LINESPACE 1
16415_ACEOF
16416
16417fi
16418if test x$support_24bit = xyes; then
16419
16420cat >>confdefs.h <<\_ACEOF
16421#define PREFER_24BIT 1
16422_ACEOF
16423
16424fi
16425if test x$support_mousewheel = xyes; then
16426
16427cat >>confdefs.h <<\_ACEOF
16428#define MOUSE_WHEEL 1
16429_ACEOF
16430
16431fi
16432if test x$support_mouseslipwheel = xyes; then
16433
16434cat >>confdefs.h <<\_ACEOF
16435#define MOUSE_SLIP_WHEELING 1
16436_ACEOF
16437
16438fi
16439if test x$support_utmp = xyes; then
16440
16441cat >>confdefs.h <<\_ACEOF
16442#define UTMP_SUPPORT 1
16443_ACEOF
16444
16445fi
16446if test x$support_wtmp = xyes; then
16447
16448cat >>confdefs.h <<\_ACEOF
16449#define WTMP_SUPPORT 1
16450_ACEOF
16451
16452fi
16453if test x$support_lastlog = xyes; then
16454
16455cat >>confdefs.h <<\_ACEOF
16456#define LASTLOG_SUPPORT 1
16457_ACEOF
16458
16459fi
16460if test x$support_xim = xyes -o x$multichar_set = xyes; then
16461 if test x$rxvt_cv_func_xlocale = xyes; then
16462
16463cat >>confdefs.h <<\_ACEOF
16464#define USE_XIM 1
16465_ACEOF
16466
16467 fi
16468fi
16469if test x$support_xpm = xyes; then
16470
16471cat >>confdefs.h <<\_ACEOF
16472#define XPM_BACKGROUND 1
16473_ACEOF
16474
16475fi
16476if test x$support_scroll_rxvt = xyes; then
16477
16478cat >>confdefs.h <<\_ACEOF
16479#define RXVT_SCROLLBAR 1
16480_ACEOF
16481
16482 scrolltypes="rxvt"
16483fi
16484if test x$support_scroll_next = xyes; then
16485
16486cat >>confdefs.h <<\_ACEOF
16487#define NEXT_SCROLLBAR 1
16488_ACEOF
16489
16490 scrolltypes="$scrolltypes next"
16491fi
16492if test x$support_scroll_xterm = xyes; then
16493
16494cat >>confdefs.h <<\_ACEOF
16495#define XTERM_SCROLLBAR 1
16496_ACEOF
16497
16498 scrolltypes="$scrolltypes xterm"
16499fi
16500if test x$support_scroll_plain = xyes; then
16501
16502cat >>confdefs.h <<\_ACEOF
16503#define PLAIN_SCROLLBAR 1
16504_ACEOF
16505
16506 scrolltypes="$scrolltypes plain"
16507fi
16508if test x$support_pointer_blank = xyes; then
16509
16510cat >>confdefs.h <<\_ACEOF
16511#define POINTER_BLANK 1
16512_ACEOF
16513
16514fi
16515if test x$support_cursor_blink = xyes; then
16516
16517cat >>confdefs.h <<\_ACEOF
16518#define CURSOR_BLINK 1
16519_ACEOF
16520
16521fi
16522if test x$support_text_blink = xyes; then
16523
16524cat >>confdefs.h <<\_ACEOF
16525#define TEXT_BLINK 1
16526_ACEOF
16527
16528fi
16529if test x$support_unicode3 = xyes; then
16530
16531cat >>confdefs.h <<\_ACEOF
16532#define UNICODE_3 1
16533_ACEOF
16534
16535fi
16536if test x$support_combining = xyes; then
16537
16538cat >>confdefs.h <<\_ACEOF
16539#define ENABLE_COMBINING 1
16540_ACEOF
16541
16542fi
16543if test x$codesets = xall; then
16544 codesets=jp,jp-ext,kr,cn,cn-ext
16545fi
16546for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
16547
16548cat >>confdefs.h <<\_ACEOF
16549#define ENCODING_EU 1
16550_ACEOF
16551
16552
16553cat >>confdefs.h <<\_ACEOF
16554#define ENCODING_VN 1
16555_ACEOF
16556
16557 case "$codeset" in
16558 JP )
16559cat >>confdefs.h <<\_ACEOF
16560#define ENCODING_JP 1
16561_ACEOF
16562 ;;
16563 JP_EXT )
16564cat >>confdefs.h <<\_ACEOF
16565#define ENCODING_JP_EXT 1
16566_ACEOF
16567 ;;
16568 KR )
16569cat >>confdefs.h <<\_ACEOF
16570#define ENCODING_KR 1
16571_ACEOF
16572 ;;
16573 CN )
16574cat >>confdefs.h <<\_ACEOF
16575#define ENCODING_CN 1
16576_ACEOF
16577 ;;
16578 CN_EXT )
16579cat >>confdefs.h <<\_ACEOF
16580#define ENCODING_CN_EXT 1
16581_ACEOF
16582 ;;
16583 esac
16584done
16585
16586
16587CFLAGS=${CFLAGS--O}
16588LDFLAGS=${LDFLAGS--O}
16589
16590CPPFLAGS="$CPPFLAGS"
16591
16592
16593
16594
16595
16596
16597
16598if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
16599 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
16600 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
16601 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
16602 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
16603 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
16604fi
16605
16606
16607
16608
16609
16610if test x$support_addstrings = xno; then
16611
16612cat >>confdefs.h <<\_ACEOF
16613#define NO_STRINGS 1
16614_ACEOF
16615
16616fi
16617
16618MCOMMON=./autoconf/Make.common
16619
16620
16621test "$program_prefix" != NONE &&
16622 program_transform_name="s,^,$program_prefix,;$program_transform_name"
16623# Use a double $ so make ignores it.
16624test "$program_suffix" != NONE &&
16625 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
16626# Double any \ or $. echo might interpret backslashes.
16627# By default was `s,x,x', remove it if useless.
16628cat <<\_ACEOF >conftest.sed
16629s/[\\$]/&&/g;s/;s,x,x,$//
16630_ACEOF
16631program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
16632rm conftest.sed
16633
16634
16635
16636
16637
16638if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
16639 include_stdint_h="#include <stdint.h>"
16640else
16641 include_stdint_h="/* #include <stdint.h> */"
16642fi
16643if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
16644 include_stdarg_h="#include <cstdarg>"
16645else
16646 include_stdarg_h="/* #include <cstdarg> */"
16647fi
16648if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
16649 include_stdlib_h="#include <cstdlib>"
16650else
16651 include_stdlib_h="/* #include <cstdlib> */"
16652fi
16653if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
16654 include_unistd_h="#include <unistd.h>"
16655else
16656 include_unistd_h="/* #include <unistd.h> */"
16657fi
16658if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
16659 include_string_h="#include <cstring>"
16660else
16661 include_string_h="/* #include <cstring> */"
16662fi
16663if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
16664 include_fcntl_h="#include <fcntl.h>"
16665else
16666 include_fcntl_h="/* #include <fcntl.h> */"
16667fi
16668if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
16669 include_util_h="#include <util.h>"
16670else
16671 include_util_h="/* #include <util.h> */"
16672fi
16673if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
16674 include_assert_h="#include <assert.h>"
16675else
16676 include_assert_h="/* #include <assert.h> */"
16677fi
16678if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
16679 include_sys_ioctl_h="#include <sys/ioctl.h>"
16680else
16681 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
16682fi
16683if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
16684 include_sys_select_h="#include <sys/select.h>"
16685else
16686 include_sys_select_h="/* #include <sys/select.h> */"
16687fi
16688if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
16689 include_sys_strredir_h="#include <sys/strredir.h>"
16690else
16691 include_sys_strredir_h="/* #include <sys/strredir.h> */"
16692fi
16693if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
16694 include_sys_time_h="#include <sys/time.h>"
16695else
16696 include_sys_time_h="/* #include <sys/time.h> */"
16697fi
16698if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
16699 include_time_h="#include <time.h>"
16700else
16701 include_time_h="/* #include <time.h> */"
16702fi 11957fi
16703 11958
16704if test x$support_xft = xyes; then 11959if test x$support_xft = xyes; then
16705 LIBS="$LIBS `pkg-config xft --libs`" 11960 LIBS="$LIBS `pkg-config xft --libs`"
16706 CFLAGS="$CFLAGS `pkg-config xft --cflags`" 11961 CFLAGS="$CFLAGS `pkg-config xft --cflags`"
16939#define XFT 1 12194#define XFT 1
16940_ACEOF 12195_ACEOF
16941 12196
16942 fi 12197 fi
16943fi 12198fi
12199if test x$support_styles = xyes; then
16944 12200
12201cat >>confdefs.h <<\_ACEOF
12202#define ENABLE_STYLES 1
12203_ACEOF
12204
12205fi
12206if test x$support_iso14755 = xyes; then
12207
12208cat >>confdefs.h <<\_ACEOF
12209#define ISO_14755 1
12210_ACEOF
12211
12212fi
12213if test x$support_8bitctrls = xyes; then
12214
12215cat >>confdefs.h <<\_ACEOF
12216#define EIGHT_BIT_CONTROLS 1
12217_ACEOF
12218
12219fi
12220if test x$support_fading = xyes; then
12221
12222cat >>confdefs.h <<\_ACEOF
12223#define OFF_FOCUS_FADING 1
12224_ACEOF
12225
12226fi
12227if test x$support_tinting = xyes; then
12228
12229cat >>confdefs.h <<\_ACEOF
12230#define TINTING 1
12231_ACEOF
12232
12233fi
12234if test x$support_inheritpixmap = xyes; then
12235
12236cat >>confdefs.h <<\_ACEOF
12237#define TRANSPARENT 1
12238_ACEOF
12239
12240fi
12241if test x$support_keepscrolling = xno; then
12242
12243cat >>confdefs.h <<\_ACEOF
12244#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1
12245_ACEOF
12246
12247fi
12248if test x$support_selectionscrolling = xyes; then
12249
12250cat >>confdefs.h <<\_ACEOF
12251#define SELECTION_SCROLLING 1
12252_ACEOF
12253
12254fi
12255if test x$support_menubar = xyes; then
12256
12257cat >>confdefs.h <<\_ACEOF
12258#define MENUBAR 1
12259_ACEOF
12260
12261fi
12262if test x$support_frills = xyes; then
12263
12264cat >>confdefs.h <<\_ACEOF
12265#define ENABLE_FRILLS 1
12266_ACEOF
12267
12268fi
12269if test x$support_24bit = xyes; then
12270
12271cat >>confdefs.h <<\_ACEOF
12272#define PREFER_24BIT 1
12273_ACEOF
12274
12275fi
12276if test x$support_mousewheel = xyes; then
12277
12278cat >>confdefs.h <<\_ACEOF
12279#define MOUSE_WHEEL 1
12280_ACEOF
12281
12282fi
12283if test x$support_mouseslipwheel = xyes; then
12284
12285cat >>confdefs.h <<\_ACEOF
12286#define MOUSE_SLIP_WHEELING 1
12287_ACEOF
12288
12289fi
12290if test x$support_utmp = xyes; then
12291
12292cat >>confdefs.h <<\_ACEOF
12293#define UTMP_SUPPORT 1
12294_ACEOF
12295
12296fi
12297if test x$support_wtmp = xyes; then
12298
12299cat >>confdefs.h <<\_ACEOF
12300#define WTMP_SUPPORT 1
12301_ACEOF
12302
12303fi
12304if test x$support_lastlog = xyes; then
12305
12306cat >>confdefs.h <<\_ACEOF
12307#define LASTLOG_SUPPORT 1
12308_ACEOF
12309
12310fi
12311if test x$support_xim = xyes -o x$multichar_set = xyes; then
12312 if test x$rxvt_cv_func_xlocale = xyes; then
12313
12314cat >>confdefs.h <<\_ACEOF
12315#define USE_XIM 1
12316_ACEOF
12317
12318 fi
12319fi
12320if test x$support_xpm = xyes; then
12321
12322cat >>confdefs.h <<\_ACEOF
12323#define XPM_BACKGROUND 1
12324_ACEOF
12325
12326fi
12327if test x$support_scroll_rxvt = xyes; then
12328
12329cat >>confdefs.h <<\_ACEOF
12330#define RXVT_SCROLLBAR 1
12331_ACEOF
12332
12333 scrolltypes="rxvt"
12334fi
12335if test x$support_scroll_next = xyes; then
12336
12337cat >>confdefs.h <<\_ACEOF
12338#define NEXT_SCROLLBAR 1
12339_ACEOF
12340
12341 scrolltypes="$scrolltypes next"
12342fi
12343if test x$support_scroll_xterm = xyes; then
12344
12345cat >>confdefs.h <<\_ACEOF
12346#define XTERM_SCROLLBAR 1
12347_ACEOF
12348
12349 scrolltypes="$scrolltypes xterm"
12350fi
12351if test x$support_scroll_plain = xyes; then
12352
12353cat >>confdefs.h <<\_ACEOF
12354#define PLAIN_SCROLLBAR 1
12355_ACEOF
12356
12357 scrolltypes="$scrolltypes plain"
12358fi
12359if test x$support_pointer_blank = xyes; then
12360
12361cat >>confdefs.h <<\_ACEOF
12362#define POINTER_BLANK 1
12363_ACEOF
12364
12365fi
12366if test x$support_text_blink = xyes; then
12367
12368cat >>confdefs.h <<\_ACEOF
12369#define TEXT_BLINK 1
12370_ACEOF
12371
12372fi
12373if test x$support_unicode3 = xyes; then
12374
12375cat >>confdefs.h <<\_ACEOF
12376#define UNICODE_3 1
12377_ACEOF
12378
12379fi
12380if test x$support_combining = xyes; then
12381
12382cat >>confdefs.h <<\_ACEOF
12383#define ENABLE_COMBINING 1
12384_ACEOF
12385
12386fi
12387if test x$codesets = xall; then
12388 codesets=jp,jp-ext,kr,zh,zh-ext
12389fi
12390
12391cat >>confdefs.h <<\_ACEOF
12392#define ENCODING_EU 1
12393_ACEOF
12394
12395
12396cat >>confdefs.h <<\_ACEOF
12397#define ENCODING_VN 1
12398_ACEOF
12399
12400for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12401 case "$codeset" in
12402 JP )
12403cat >>confdefs.h <<\_ACEOF
12404#define ENCODING_JP 1
12405_ACEOF
12406 ;;
12407 JP_EXT )
12408cat >>confdefs.h <<\_ACEOF
12409#define ENCODING_JP_EXT 1
12410_ACEOF
12411 ;;
12412 KR )
12413cat >>confdefs.h <<\_ACEOF
12414#define ENCODING_KR 1
12415_ACEOF
12416 ;;
12417 ZH )
12418cat >>confdefs.h <<\_ACEOF
12419#define ENCODING_ZH 1
12420_ACEOF
12421 ;;
12422 ZH_EXT )
12423cat >>confdefs.h <<\_ACEOF
12424#define ENCODING_ZH_EXT 1
12425_ACEOF
12426 ;;
12427 esac
12428done
12429
12430
12431CFLAGS=${CFLAGS--O}
12432LDFLAGS=${LDFLAGS--O}
12433
12434CPPFLAGS="$CPPFLAGS"
12435
12436
12437
12438
12439
12440
12441
12442if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12443 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12444 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12445 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12446 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12447 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12448fi
12449
12450
12451
12452
12453
12454if test x$support_addstrings = xno; then
12455
12456cat >>confdefs.h <<\_ACEOF
12457#define NO_STRINGS 1
12458_ACEOF
12459
12460fi
12461
12462MCOMMON=./autoconf/Make.common
12463
12464
12465test "$program_prefix" != NONE &&
12466 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12467# Use a double $ so make ignores it.
12468test "$program_suffix" != NONE &&
12469 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12470# Double any \ or $. echo might interpret backslashes.
12471# By default was `s,x,x', remove it if useless.
12472cat <<\_ACEOF >conftest.sed
12473s/[\\$]/&&/g;s/;s,x,x,$//
12474_ACEOF
12475program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12476rm conftest.sed
12477
12478
12479
12480
12481
12482if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12483 include_stdint_h="#include <stdint.h>"
12484else
12485 include_stdint_h="/* #include <stdint.h> */"
12486fi
12487if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12488 include_stdarg_h="#include <cstdarg>"
12489else
12490 include_stdarg_h="/* #include <cstdarg> */"
12491fi
12492if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12493 include_stdlib_h="#include <cstdlib>"
12494else
12495 include_stdlib_h="/* #include <cstdlib> */"
12496fi
12497if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12498 include_unistd_h="#include <unistd.h>"
12499else
12500 include_unistd_h="/* #include <unistd.h> */"
12501fi
12502if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12503 include_string_h="#include <cstring>"
12504else
12505 include_string_h="/* #include <cstring> */"
12506fi
12507if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12508 include_fcntl_h="#include <fcntl.h>"
12509else
12510 include_fcntl_h="/* #include <fcntl.h> */"
12511fi
12512if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12513 include_util_h="#include <util.h>"
12514else
12515 include_util_h="/* #include <util.h> */"
12516fi
12517if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12518 include_assert_h="#include <assert.h>"
12519else
12520 include_assert_h="/* #include <assert.h> */"
12521fi
12522if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12523 include_sys_ioctl_h="#include <sys/ioctl.h>"
12524else
12525 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12526fi
12527if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12528 include_sys_select_h="#include <sys/select.h>"
12529else
12530 include_sys_select_h="/* #include <sys/select.h> */"
12531fi
12532if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12533 include_sys_strredir_h="#include <sys/strredir.h>"
12534else
12535 include_sys_strredir_h="/* #include <sys/strredir.h> */"
12536fi
12537if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12538 include_sys_time_h="#include <sys/time.h>"
12539else
12540 include_sys_time_h="/* #include <sys/time.h> */"
12541fi
12542if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12543 include_time_h="#include <time.h>"
12544else
12545 include_time_h="/* #include <time.h> */"
12546fi
12547
16945 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" 12548 ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/rxvtlib.h"
12549
16946cat >confcache <<\_ACEOF 12550cat >confcache <<\_ACEOF
16947# This file is a shell script that caches the results of configure 12551# This file is a shell script that caches the results of configure
16948# tests run on this system so they can be shared between configure 12552# tests run on this system so they can be shared between configure
16949# scripts and configure runs, see configure's option --config-cache. 12553# scripts and configure runs, see configure's option --config-cache.
16950# It is not useful on other systems. If it contains results you don't 12554# It is not useful on other systems. If it contains results you don't
17470 # Handling of arguments. 13074 # Handling of arguments.
17471 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; 13075 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
17472 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13076 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17473 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13077 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17474 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13078 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17475 "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
17476 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 13079 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
17477 "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;;
17478 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 13080 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;;
17479 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 13081 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17480echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 13082echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17481 { (exit 1); exit 1; }; };; 13083 { (exit 1); exit 1; }; };;
17482 esac 13084 esac
17558s,@DEFS@,$DEFS,;t t 13160s,@DEFS@,$DEFS,;t t
17559s,@ECHO_C@,$ECHO_C,;t t 13161s,@ECHO_C@,$ECHO_C,;t t
17560s,@ECHO_N@,$ECHO_N,;t t 13162s,@ECHO_N@,$ECHO_N,;t t
17561s,@ECHO_T@,$ECHO_T,;t t 13163s,@ECHO_T@,$ECHO_T,;t t
17562s,@LIBS@,$LIBS,;t t 13164s,@LIBS@,$LIBS,;t t
13165s,@build@,$build,;t t
13166s,@build_cpu@,$build_cpu,;t t
13167s,@build_vendor@,$build_vendor,;t t
13168s,@build_os@,$build_os,;t t
13169s,@host@,$host,;t t
13170s,@host_cpu@,$host_cpu,;t t
13171s,@host_vendor@,$host_vendor,;t t
13172s,@host_os@,$host_os,;t t
17563s,@VERSION@,$VERSION,;t t 13173s,@VERSION@,$VERSION,;t t
17564s,@DATE@,$DATE,;t t 13174s,@DATE@,$DATE,;t t
17565s,@LSMDATE@,$LSMDATE,;t t 13175s,@LSMDATE@,$LSMDATE,;t t
17566s,@LIBVERSION@,$LIBVERSION,;t t 13176s,@LIBVERSION@,$LIBVERSION,;t t
17567s,@CC@,$CC,;t t 13177s,@CC@,$CC,;t t
17580s,@INSTALL_DATA@,$INSTALL_DATA,;t t 13190s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17581s,@AWK@,$AWK,;t t 13191s,@AWK@,$AWK,;t t
17582s,@LINKER@,$LINKER,;t t 13192s,@LINKER@,$LINKER,;t t
17583s,@CXXCPP@,$CXXCPP,;t t 13193s,@CXXCPP@,$CXXCPP,;t t
17584s,@EGREP@,$EGREP,;t t 13194s,@EGREP@,$EGREP,;t t
17585s,@build@,$build,;t t
17586s,@build_cpu@,$build_cpu,;t t
17587s,@build_vendor@,$build_vendor,;t t
17588s,@build_os@,$build_os,;t t
17589s,@host@,$host,;t t
17590s,@host_cpu@,$host_cpu,;t t
17591s,@host_vendor@,$host_vendor,;t t
17592s,@host_os@,$host_os,;t t
17593s,@LN_S@,$LN_S,;t t
17594s,@ECHO@,$ECHO,;t t
17595s,@RANLIB@,$RANLIB,;t t
17596s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17597s,@STRIP@,$STRIP,;t t
17598s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17599s,@LIBTOOL@,$LIBTOOL,;t t
17600s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t 13195s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
17601s,@RXVTNAME@,$RXVTNAME,;t t 13196s,@RXVTNAME@,$RXVTNAME,;t t
17602s,@MV@,$MV,;t t 13197s,@MV@,$MV,;t t
17603s,@RM@,$RM,;t t 13198s,@RM@,$RM,;t t
17604s,@CP@,$CP,;t t 13199s,@CP@,$CP,;t t
17605s,@LN@,$LN,;t t 13200s,@LN@,$LN,;t t
17606s,@SED@,$SED,;t t 13201s,@SED@,$SED,;t t
13202s,@ECHO@,$ECHO,;t t
17607s,@CMP@,$CMP,;t t 13203s,@CMP@,$CMP,;t t
17608s,@TBL@,$TBL,;t t 13204s,@TBL@,$TBL,;t t
13205s,@TIC@,$TIC,;t t
17609s,@X_CFLAGS@,$X_CFLAGS,;t t 13206s,@X_CFLAGS@,$X_CFLAGS,;t t
17610s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 13207s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17611s,@X_LIBS@,$X_LIBS,;t t 13208s,@X_LIBS@,$X_LIBS,;t t
17612s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 13209s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17613s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t 13210s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
18206 echo ". functions could not be found. ." 13803 echo ". functions could not be found. ."
18207 echo ". XIM is now being DISABLED! ." 13804 echo ". XIM is now being DISABLED! ."
18208 echo ".----------------------------------------------------------------." 13805 echo ".----------------------------------------------------------------."
18209fi 13806fi
18210 13807
18211echo " *** Please check src/feature.h for further options ***" 13808echo " *** Optionally check src/feature.h for further options ***"
18212echo 13809echo
18213 13810
18214echo ".----------------------------------------------------------------." 13811echo ".----------------------------------------------------------------."
18215echo ". NOTE: most features are disabled by default, try ." 13812echo ". NOTE: some features are disabled by default, try ."
18216echo ". configure --help to get an idea of the optional features ." 13813echo ". configure --help to get an idea of the optional features, ."
13814echo ". or read ./README.configure ."
13815echo ". ."
13816echo ". The script ./reconf gives a reasonable baseline, try it if ."
13817echo ". you do not want to read documentation and still want some ."
13818echo ". useful features. ."
18217echo ".----------------------------------------------------------------." 13819echo ".----------------------------------------------------------------."
18218echo 13820echo
18219 13821

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines