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

Comparing rxvt-unicode/configure (file contents):
Revision 1.22 by pcg, Wed Mar 17 03:07:35 2004 UTC vs.
Revision 1.52 by root, Wed Feb 16 21:21:43 2005 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines