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

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines