… | |
… | |
239 | |
239 | |
240 | # CDPATH. |
240 | # CDPATH. |
241 | $as_unset CDPATH |
241 | $as_unset CDPATH |
242 | |
242 | |
243 | |
243 | |
244 | # Find the correct PATH separator. Usually this is `:', but |
|
|
245 | # DJGPP uses `;' like DOS. |
|
|
246 | if 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 |
|
|
252 | fi |
|
|
253 | |
|
|
254 | |
|
|
255 | # Check that we are running under the correct shell. |
|
|
256 | SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
257 | |
|
|
258 | case "X$ECHO" in |
|
|
259 | X*--fallback-echo) |
|
|
260 | # Remove one level of quotation (which was required for Make). |
|
|
261 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
|
|
262 | ;; |
|
|
263 | esac |
|
|
264 | |
|
|
265 | echo=${ECHO-echo} |
|
|
266 | if test "X$1" = X--no-reexec; then |
|
|
267 | # Discard the --no-reexec flag, and continue. |
|
|
268 | shift |
|
|
269 | elif test "X$1" = X--fallback-echo; then |
|
|
270 | # Avoid inline document here, it may be left over |
|
|
271 | : |
|
|
272 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then |
|
|
273 | # Yippee, $echo works! |
|
|
274 | : |
|
|
275 | else |
|
|
276 | # Restart under the correct shell. |
|
|
277 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
|
|
278 | fi |
|
|
279 | |
|
|
280 | if test "X$1" = X--fallback-echo; then |
|
|
281 | # used as fallback echo |
|
|
282 | shift |
|
|
283 | cat <<EOF |
|
|
284 | |
|
|
285 | EOF |
|
|
286 | exit 0 |
|
|
287 | fi |
|
|
288 | |
|
|
289 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
290 | # if CDPATH is set. |
|
|
291 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
292 | |
|
|
293 | if test -z "$ECHO"; then |
|
|
294 | if 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 |
|
|
305 | fi |
|
|
306 | |
|
|
307 | if 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 | : |
|
|
311 | else |
|
|
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 |
|
|
390 | fi |
|
|
391 | fi |
|
|
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. |
|
|
395 | ECHO=$echo |
|
|
396 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
|
|
397 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
|
|
398 | fi |
|
|
399 | |
|
|
400 | |
|
|
401 | |
|
|
402 | # Name of the host. |
244 | # Name of the host. |
403 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
404 | # so uname gets run too. |
246 | # so uname gets run too. |
405 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
406 | |
248 | |
… | |
… | |
465 | #endif |
307 | #endif |
466 | #if HAVE_UNISTD_H |
308 | #if HAVE_UNISTD_H |
467 | # include <unistd.h> |
309 | # include <unistd.h> |
468 | #endif" |
310 | #endif" |
469 | |
311 | |
470 | ac_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' |
312 | ac_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 EGREP LINKER INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TIC CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' |
471 | ac_subst_files='MCOMMON' |
313 | ac_subst_files='' |
472 | |
314 | |
473 | # Initialize some variables set by options. |
315 | # Initialize some variables set by options. |
474 | ac_init_help= |
316 | ac_init_help= |
475 | ac_init_version=false |
317 | ac_init_version=false |
476 | # The variables have the same names as the options, with |
318 | # The variables have the same names as the options, with |
… | |
… | |
1021 | cat <<\_ACEOF |
863 | cat <<\_ACEOF |
1022 | |
864 | |
1023 | Optional Features: |
865 | Optional Features: |
1024 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
866 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1025 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
867 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1026 | --enable-shared=PKGS build shared libraries default=no |
|
|
1027 | --enable-static=PKGS build static libraries default=yes |
|
|
1028 | --enable-fast-install=PKGS optimize for fast installation default=yes |
|
|
1029 | --disable-libtool-lock avoid locking (might break parallel builds) |
|
|
1030 | --enable-everything enable standard non-multichoice features |
868 | --enable-everything enable standard non-multichoice features |
1031 | NOTE: this option is order dependent |
869 | NOTE: this option is order dependent |
1032 | NOTE: automatically enabled with --enable-shared |
870 | NOTE: automatically enabled with --enable-shared |
1033 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
871 | --enable-unicode3 use 21 instead of 16 bits to represent unicode characters |
1034 | --enable-combining enable composition of base and combining characters |
872 | --enable-combining enable composition of base and combining characters |
1035 | --enable-xft enable xft support on systems that have it |
873 | --enable-xft enable xft support on systems that have it |
|
|
874 | --enable-font-styles enable bold and italic support |
1036 | --enable-utmp enable utmp (utmpx) support |
875 | --enable-utmp enable utmp (utmpx) support |
1037 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
876 | --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) |
1038 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
877 | --enable-lastlog enable lastlog support (requires --enable-utmp) |
1039 | --enable-xpm-background enable XPM background pixmaps |
878 | --enable-xpm-background enable XPM background pixmaps |
1040 | --enable-transparency enable transparent backgrounds |
879 | --enable-transparency enable transparent backgrounds |
1041 | --enable-tinting enable tinting of transparent bg |
880 | --enable-tinting enable tinting of transparent bg |
1042 | --enable-fading enable colors fading when off focus |
881 | --enable-fading enable colors fading when off focus |
1043 | --enable-menubar enable menubar |
|
|
1044 | --enable-rxvt-scroll enable rxvt style scrollbar |
882 | --enable-rxvt-scroll enable rxvt style scrollbar |
1045 | --enable-next-scroll enable NeXT style scrollbar |
883 | --enable-next-scroll enable NeXT style scrollbar |
1046 | --enable-xterm-scroll enable Xterm style scrollbar |
884 | --enable-xterm-scroll enable Xterm style scrollbar |
|
|
885 | --enable-perl enable embedded perl interpreter |
1047 | --enable-plain-scroll enable plain style scrollbar |
886 | --enable-plain-scroll enable plain style scrollbar |
1048 | --enable-half-shadow use half width/height shadow on rxvt scrollbar |
|
|
1049 | --enable-xim XIM (X Input Method) protocol support |
887 | --enable-xim XIM (X Input Method) protocol support |
1050 | --enable-ttygid enable tty setting to group named "tty" |
888 | --enable-ttygid enable tty setting to group named "tty" |
1051 | --disable-backspace-key disable handling of the backspace key |
889 | --disable-backspace-key disable handling of the backspace key |
1052 | --disable-delete-key disable handling of the delete key |
890 | --disable-delete-key disable handling of the delete key |
1053 | --disable-resources disable all resource checking |
891 | --disable-resources disable all resource checking |
1054 | --enable-xgetdefault enable resources via X instead of our small version |
|
|
1055 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
892 | --enable-8bitctrls enable 8 bit control sequences (not recommended) |
1056 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
893 | --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) |
1057 | --enable-strings enable some replacement system functions |
|
|
1058 | --disable-swapscreen disable swap screen support |
894 | --disable-swapscreen disable swap screen support |
|
|
895 | --enable-iso14755 enable support for extended ISO 14755 modes |
1059 | --enable-frills enable support for rarely used features |
896 | --enable-frills enable support for rarely used features |
1060 | --enable-linespace enable support for linespace |
|
|
1061 | --enable-24bit enable support for using 24bit visuals if available |
897 | --enable-24bit enable support for using 24bit visuals if available |
1062 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
898 | --enable-keepscrolling enable continual scrolling on scrollbar arrow press |
1063 | --enable-selectionscrolling enable scrolling during selections |
899 | --enable-selectionscrolling enable scrolling during selections |
1064 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
900 | --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 |
1065 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
901 | --enable-slipwheeling enable slip wheel scrolling (requires previous) |
1066 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
902 | --enable-dmalloc enable Gray Watson's malloc - for debugging use |
1067 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
903 | --enable-dlmalloc enable Doug Lea's malloc - for production use |
1068 | NOTE: enable only one malloc package |
904 | NOTE: enable only one malloc package |
1069 | --enable-smart-resize enable smart growth/shrink behaviour |
905 | --enable-smart-resize enable smart growth/shrink behaviour |
1070 | --enable-256-color enable 256-color support |
|
|
1071 | --enable-cursor-blink enable blinking cursor |
|
|
1072 | --enable-text-blink enable blinking text |
906 | --enable-text-blink enable blinking text |
1073 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
907 | --enable-pointer-blank enable pointer blank when typing or inactive pointer |
1074 | |
908 | |
1075 | Optional Packages: |
909 | Optional Packages: |
1076 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
910 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1077 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
911 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1078 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
|
|
1079 | --with-pic try to use only PIC/non-PIC objects default=use both |
|
|
1080 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,cn,cn_ext,all) |
912 | --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) |
1081 | --with-res-name=NAME use this as default resource name (default: urxvt) |
913 | --with-res-name=NAME use this as default resource name (default: urxvt) |
1082 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
914 | --with-res-class=CLASS use this as the resource class (default: URxvt) |
1083 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
915 | --with-name=NAME set the basename for the installed binaries (default: urxvt) |
1084 | --with-term=NAME set the terminal to NAME (default: rxvt) |
916 | --with-term=NAME set the terminal to NAME (default: rxvt) |
1085 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
917 | --with-terminfo=PATH set the path to the terminfo tree to PATH |
… | |
… | |
1537 | |
1369 | |
1538 | |
1370 | |
1539 | |
1371 | |
1540 | |
1372 | |
1541 | |
1373 | |
|
|
1374 | |
|
|
1375 | ac_config_headers="$ac_config_headers config.h:config.h.in" |
|
|
1376 | |
|
|
1377 | |
1542 | ac_aux_dir= |
1378 | ac_aux_dir= |
1543 | for ac_dir in autoconf $srcdir/autoconf; do |
1379 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
1544 | if test -f $ac_dir/install-sh; then |
1380 | if test -f $ac_dir/install-sh; then |
1545 | ac_aux_dir=$ac_dir |
1381 | ac_aux_dir=$ac_dir |
1546 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1382 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1547 | break |
1383 | break |
1548 | elif test -f $ac_dir/install.sh; then |
1384 | elif test -f $ac_dir/install.sh; then |
… | |
… | |
1554 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1390 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1555 | break |
1391 | break |
1556 | fi |
1392 | fi |
1557 | done |
1393 | done |
1558 | if test -z "$ac_aux_dir"; then |
1394 | if test -z "$ac_aux_dir"; then |
1559 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 |
1395 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1560 | echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;} |
1396 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1561 | { (exit 1); exit 1; }; } |
1397 | { (exit 1); exit 1; }; } |
1562 | fi |
1398 | fi |
1563 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1399 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1564 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1400 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1565 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1401 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1566 | |
1402 | |
1567 | ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in" |
1403 | # Make sure we can run config.sub. |
|
|
1404 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
1405 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
1406 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
1407 | { (exit 1); exit 1; }; } |
|
|
1408 | |
|
|
1409 | echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
1410 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
1411 | if test "${ac_cv_build+set}" = set; then |
|
|
1412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1413 | else |
|
|
1414 | ac_cv_build_alias=$build_alias |
|
|
1415 | test -z "$ac_cv_build_alias" && |
|
|
1416 | ac_cv_build_alias=`$ac_config_guess` |
|
|
1417 | test -z "$ac_cv_build_alias" && |
|
|
1418 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
1419 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
1420 | { (exit 1); exit 1; }; } |
|
|
1421 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
1422 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
1423 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
1424 | { (exit 1); exit 1; }; } |
|
|
1425 | |
|
|
1426 | fi |
|
|
1427 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
1428 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
1429 | build=$ac_cv_build |
|
|
1430 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1431 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1432 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1433 | |
|
|
1434 | |
|
|
1435 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
1436 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
1437 | if test "${ac_cv_host+set}" = set; then |
|
|
1438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
1439 | else |
|
|
1440 | ac_cv_host_alias=$host_alias |
|
|
1441 | test -z "$ac_cv_host_alias" && |
|
|
1442 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
1443 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
1444 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
1445 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
1446 | { (exit 1); exit 1; }; } |
|
|
1447 | |
|
|
1448 | fi |
|
|
1449 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
1450 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
1451 | host=$ac_cv_host |
|
|
1452 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
1453 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
1454 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
1455 | |
1568 | |
1456 | |
1569 | |
1457 | |
1570 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1458 | VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1571 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1459 | DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
1572 | LSMDATE=`sed -n -e 's/^.*[ \t]LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1573 | LIBVERSION=`sed -n -e 's/^.*[ \t]LIBVERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` |
|
|
1574 | echo "" |
1460 | echo "" |
1575 | echo "configuring for rxvt $VERSION" |
1461 | echo "configuring for rxvt $VERSION" |
1576 | echo "" |
1462 | echo "" |
|
|
1463 | |
|
|
1464 | orig_CXXFLAGS="$CXXFLAGS" |
1577 | |
1465 | |
1578 | |
1466 | |
1579 | ac_ext=c |
1467 | ac_ext=c |
1580 | ac_cpp='$CPP $CPPFLAGS' |
1468 | ac_cpp='$CPP $CPPFLAGS' |
1581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
… | |
… | |
3162 | |
3050 | |
3163 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3051 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3164 | |
3052 | |
3165 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3053 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3166 | |
3054 | |
3167 | for ac_prog in gawk mawk nawk awk |
|
|
3168 | do |
|
|
3169 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
|
3170 | set dummy $ac_prog; ac_word=$2 |
|
|
3171 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
3172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
3173 | if test "${ac_cv_prog_AWK+set}" = set; then |
|
|
3174 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3175 | else |
|
|
3176 | if test -n "$AWK"; then |
|
|
3177 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
|
3178 | else |
|
|
3179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3180 | for as_dir in $PATH |
|
|
3181 | do |
|
|
3182 | IFS=$as_save_IFS |
|
|
3183 | test -z "$as_dir" && as_dir=. |
|
|
3184 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3185 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
3186 | ac_cv_prog_AWK="$ac_prog" |
|
|
3187 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
3188 | break 2 |
|
|
3189 | fi |
|
|
3190 | done |
|
|
3191 | done |
|
|
3192 | |
3055 | |
3193 | fi |
|
|
3194 | fi |
|
|
3195 | AWK=$ac_cv_prog_AWK |
|
|
3196 | if test -n "$AWK"; then |
|
|
3197 | echo "$as_me:$LINENO: result: $AWK" >&5 |
|
|
3198 | echo "${ECHO_T}$AWK" >&6 |
|
|
3199 | else |
|
|
3200 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
3201 | echo "${ECHO_T}no" >&6 |
|
|
3202 | fi |
|
|
3203 | |
|
|
3204 | test -n "$AWK" && break |
|
|
3205 | done |
|
|
3206 | |
|
|
3207 | |
|
|
3208 | ac_ext=c |
|
|
3209 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3210 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3211 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3212 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3213 | |
|
|
3214 | |
|
|
3215 | LINKER="$CXX" |
|
|
3216 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3217 | |
|
|
3218 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3219 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3220 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3222 | else |
|
|
3223 | ac_check_lib_save_LIBS=$LIBS |
|
|
3224 | LIBS="-lsupc++ $LIBS" |
|
|
3225 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3226 | /* confdefs.h. */ |
|
|
3227 | _ACEOF |
|
|
3228 | cat confdefs.h >>conftest.$ac_ext |
|
|
3229 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3230 | /* end confdefs.h. */ |
|
|
3231 | |
|
|
3232 | |
|
|
3233 | int |
|
|
3234 | main () |
|
|
3235 | { |
|
|
3236 | main (); |
|
|
3237 | ; |
|
|
3238 | return 0; |
|
|
3239 | } |
|
|
3240 | _ACEOF |
|
|
3241 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3243 | (eval $ac_link) 2>conftest.er1 |
|
|
3244 | ac_status=$? |
|
|
3245 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3246 | rm -f conftest.er1 |
|
|
3247 | cat conftest.err >&5 |
|
|
3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3249 | (exit $ac_status); } && |
|
|
3250 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3252 | (eval $ac_try) 2>&5 |
|
|
3253 | ac_status=$? |
|
|
3254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3255 | (exit $ac_status); }; } && |
|
|
3256 | { ac_try='test -s conftest$ac_exeext' |
|
|
3257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3258 | (eval $ac_try) 2>&5 |
|
|
3259 | ac_status=$? |
|
|
3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3261 | (exit $ac_status); }; }; then |
|
|
3262 | ac_cv_lib_supcpp_main=yes |
|
|
3263 | else |
|
|
3264 | echo "$as_me: failed program was:" >&5 |
|
|
3265 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3266 | |
|
|
3267 | ac_cv_lib_supcpp_main=no |
|
|
3268 | fi |
|
|
3269 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3270 | conftest$ac_exeext conftest.$ac_ext |
|
|
3271 | LIBS=$ac_check_lib_save_LIBS |
|
|
3272 | fi |
|
|
3273 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3274 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3275 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3276 | |
|
|
3277 | LINKER="$CC" |
|
|
3278 | LIBS="$LIBS -lsupc++" |
|
|
3279 | |
|
|
3280 | fi |
|
|
3281 | |
|
|
3282 | fi |
|
|
3283 | LINKER=$LINKER |
|
|
3284 | |
|
|
3285 | |
|
|
3286 | CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE" |
|
|
3287 | |
|
|
3288 | |
|
|
3289 | ac_ext=cc |
|
|
3290 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3291 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3292 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3293 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3294 | |
|
|
3295 | |
|
|
3296 | |
|
|
3297 | ac_ext=cc |
|
|
3298 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3299 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3300 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3301 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3302 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
3303 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
3304 | if test -z "$CXXCPP"; then |
|
|
3305 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
3306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3307 | else |
|
|
3308 | # Double quotes because CXXCPP needs to be expanded |
|
|
3309 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
3310 | do |
|
|
3311 | ac_preproc_ok=false |
|
|
3312 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3313 | do |
|
|
3314 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3315 | # with a fresh cross-compiler works. |
|
|
3316 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3317 | # <limits.h> exists even on freestanding compilers. |
|
|
3318 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3319 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3320 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3321 | /* confdefs.h. */ |
|
|
3322 | _ACEOF |
|
|
3323 | cat confdefs.h >>conftest.$ac_ext |
|
|
3324 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3325 | /* end confdefs.h. */ |
|
|
3326 | #ifdef __STDC__ |
|
|
3327 | # include <limits.h> |
|
|
3328 | #else |
|
|
3329 | # include <assert.h> |
|
|
3330 | #endif |
|
|
3331 | Syntax error |
|
|
3332 | _ACEOF |
|
|
3333 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3334 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3335 | ac_status=$? |
|
|
3336 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3337 | rm -f conftest.er1 |
|
|
3338 | cat conftest.err >&5 |
|
|
3339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3340 | (exit $ac_status); } >/dev/null; then |
|
|
3341 | if test -s conftest.err; then |
|
|
3342 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3343 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3344 | else |
|
|
3345 | ac_cpp_err= |
|
|
3346 | fi |
|
|
3347 | else |
|
|
3348 | ac_cpp_err=yes |
|
|
3349 | fi |
|
|
3350 | if test -z "$ac_cpp_err"; then |
|
|
3351 | : |
|
|
3352 | else |
|
|
3353 | echo "$as_me: failed program was:" >&5 |
|
|
3354 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3355 | |
|
|
3356 | # Broken: fails on valid input. |
|
|
3357 | continue |
|
|
3358 | fi |
|
|
3359 | rm -f conftest.err conftest.$ac_ext |
|
|
3360 | |
|
|
3361 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3362 | # can be detected and how. |
|
|
3363 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3364 | /* confdefs.h. */ |
|
|
3365 | _ACEOF |
|
|
3366 | cat confdefs.h >>conftest.$ac_ext |
|
|
3367 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3368 | /* end confdefs.h. */ |
|
|
3369 | #include <ac_nonexistent.h> |
|
|
3370 | _ACEOF |
|
|
3371 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3372 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3373 | ac_status=$? |
|
|
3374 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3375 | rm -f conftest.er1 |
|
|
3376 | cat conftest.err >&5 |
|
|
3377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3378 | (exit $ac_status); } >/dev/null; then |
|
|
3379 | if test -s conftest.err; then |
|
|
3380 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3381 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3382 | else |
|
|
3383 | ac_cpp_err= |
|
|
3384 | fi |
|
|
3385 | else |
|
|
3386 | ac_cpp_err=yes |
|
|
3387 | fi |
|
|
3388 | if test -z "$ac_cpp_err"; then |
|
|
3389 | # Broken: success on invalid input. |
|
|
3390 | continue |
|
|
3391 | else |
|
|
3392 | echo "$as_me: failed program was:" >&5 |
|
|
3393 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3394 | |
|
|
3395 | # Passes both tests. |
|
|
3396 | ac_preproc_ok=: |
|
|
3397 | break |
|
|
3398 | fi |
|
|
3399 | rm -f conftest.err conftest.$ac_ext |
|
|
3400 | |
|
|
3401 | done |
|
|
3402 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3403 | rm -f conftest.err conftest.$ac_ext |
|
|
3404 | if $ac_preproc_ok; then |
|
|
3405 | break |
|
|
3406 | fi |
|
|
3407 | |
|
|
3408 | done |
|
|
3409 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3410 | |
|
|
3411 | fi |
|
|
3412 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
3413 | else |
|
|
3414 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
3415 | fi |
|
|
3416 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
3417 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
3418 | ac_preproc_ok=false |
|
|
3419 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
3420 | do |
|
|
3421 | # Use a header file that comes with gcc, so configuring glibc |
|
|
3422 | # with a fresh cross-compiler works. |
|
|
3423 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3424 | # <limits.h> exists even on freestanding compilers. |
|
|
3425 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
3426 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
3427 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3428 | /* confdefs.h. */ |
|
|
3429 | _ACEOF |
|
|
3430 | cat confdefs.h >>conftest.$ac_ext |
|
|
3431 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3432 | /* end confdefs.h. */ |
|
|
3433 | #ifdef __STDC__ |
|
|
3434 | # include <limits.h> |
|
|
3435 | #else |
|
|
3436 | # include <assert.h> |
|
|
3437 | #endif |
|
|
3438 | Syntax error |
|
|
3439 | _ACEOF |
|
|
3440 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3441 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3442 | ac_status=$? |
|
|
3443 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3444 | rm -f conftest.er1 |
|
|
3445 | cat conftest.err >&5 |
|
|
3446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3447 | (exit $ac_status); } >/dev/null; then |
|
|
3448 | if test -s conftest.err; then |
|
|
3449 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3450 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3451 | else |
|
|
3452 | ac_cpp_err= |
|
|
3453 | fi |
|
|
3454 | else |
|
|
3455 | ac_cpp_err=yes |
|
|
3456 | fi |
|
|
3457 | if test -z "$ac_cpp_err"; then |
|
|
3458 | : |
|
|
3459 | else |
|
|
3460 | echo "$as_me: failed program was:" >&5 |
|
|
3461 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3462 | |
|
|
3463 | # Broken: fails on valid input. |
|
|
3464 | continue |
|
|
3465 | fi |
|
|
3466 | rm -f conftest.err conftest.$ac_ext |
|
|
3467 | |
|
|
3468 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
3469 | # can be detected and how. |
|
|
3470 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3471 | /* confdefs.h. */ |
|
|
3472 | _ACEOF |
|
|
3473 | cat confdefs.h >>conftest.$ac_ext |
|
|
3474 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3475 | /* end confdefs.h. */ |
|
|
3476 | #include <ac_nonexistent.h> |
|
|
3477 | _ACEOF |
|
|
3478 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
3479 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
3480 | ac_status=$? |
|
|
3481 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3482 | rm -f conftest.er1 |
|
|
3483 | cat conftest.err >&5 |
|
|
3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3485 | (exit $ac_status); } >/dev/null; then |
|
|
3486 | if test -s conftest.err; then |
|
|
3487 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
3488 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
3489 | else |
|
|
3490 | ac_cpp_err= |
|
|
3491 | fi |
|
|
3492 | else |
|
|
3493 | ac_cpp_err=yes |
|
|
3494 | fi |
|
|
3495 | if test -z "$ac_cpp_err"; then |
|
|
3496 | # Broken: success on invalid input. |
|
|
3497 | continue |
|
|
3498 | else |
|
|
3499 | echo "$as_me: failed program was:" >&5 |
|
|
3500 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3501 | |
|
|
3502 | # Passes both tests. |
|
|
3503 | ac_preproc_ok=: |
|
|
3504 | break |
|
|
3505 | fi |
|
|
3506 | rm -f conftest.err conftest.$ac_ext |
|
|
3507 | |
|
|
3508 | done |
|
|
3509 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
3510 | rm -f conftest.err conftest.$ac_ext |
|
|
3511 | if $ac_preproc_ok; then |
|
|
3512 | : |
|
|
3513 | else |
|
|
3514 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3515 | See \`config.log' for more details." >&5 |
|
|
3516 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
3517 | See \`config.log' for more details." >&2;} |
|
|
3518 | { (exit 1); exit 1; }; } |
|
|
3519 | fi |
|
|
3520 | |
|
|
3521 | ac_ext=cc |
|
|
3522 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3523 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3524 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3525 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3526 | |
3056 | |
3527 | |
3057 | |
3528 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3058 | echo "$as_me:$LINENO: checking for egrep" >&5 |
3529 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3059 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3530 | if test "${ac_cv_prog_egrep+set}" = set; then |
3060 | if test "${ac_cv_prog_egrep+set}" = set; then |
… | |
… | |
3605 | grep -v '^ *+' conftest.er1 >conftest.err |
3135 | grep -v '^ *+' conftest.er1 >conftest.err |
3606 | rm -f conftest.er1 |
3136 | rm -f conftest.er1 |
3607 | cat conftest.err >&5 |
3137 | cat conftest.err >&5 |
3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3609 | (exit $ac_status); } && |
3139 | (exit $ac_status); } && |
3610 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3140 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3612 | (eval $ac_try) 2>&5 |
3142 | (eval $ac_try) 2>&5 |
3613 | ac_status=$? |
3143 | ac_status=$? |
3614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3615 | (exit $ac_status); }; } && |
3145 | (exit $ac_status); }; } && |
… | |
… | |
3659 | grep -v '^ *+' conftest.er1 >conftest.err |
3189 | grep -v '^ *+' conftest.er1 >conftest.err |
3660 | rm -f conftest.er1 |
3190 | rm -f conftest.er1 |
3661 | cat conftest.err >&5 |
3191 | cat conftest.err >&5 |
3662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3663 | (exit $ac_status); } && |
3193 | (exit $ac_status); } && |
3664 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3666 | (eval $ac_try) 2>&5 |
3196 | (eval $ac_try) 2>&5 |
3667 | ac_status=$? |
3197 | ac_status=$? |
3668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3669 | (exit $ac_status); }; } && |
3199 | (exit $ac_status); }; } && |
… | |
… | |
3692 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3222 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
3693 | |
3223 | |
3694 | fi |
3224 | fi |
3695 | |
3225 | |
3696 | |
3226 | |
|
|
3227 | ac_ext=c |
|
|
3228 | ac_cpp='$CPP $CPPFLAGS' |
|
|
3229 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3230 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3231 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3232 | |
|
|
3233 | |
|
|
3234 | LINKER="$CXX" |
|
|
3235 | if test x$GCC = xyes && test x$GXX = xyes; then |
|
|
3236 | echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 |
|
|
3237 | echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 |
|
|
3238 | if test "${ac_cv_lib_supcpp_main+set}" = set; then |
|
|
3239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3240 | else |
|
|
3241 | ac_check_lib_save_LIBS=$LIBS |
|
|
3242 | LIBS="-lsupc++ $LIBS" |
|
|
3243 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3244 | /* confdefs.h. */ |
|
|
3245 | _ACEOF |
|
|
3246 | cat confdefs.h >>conftest.$ac_ext |
|
|
3247 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3248 | /* end confdefs.h. */ |
|
|
3249 | |
|
|
3250 | |
|
|
3251 | int |
|
|
3252 | main () |
|
|
3253 | { |
|
|
3254 | main (); |
|
|
3255 | ; |
|
|
3256 | return 0; |
|
|
3257 | } |
|
|
3258 | _ACEOF |
|
|
3259 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3261 | (eval $ac_link) 2>conftest.er1 |
|
|
3262 | ac_status=$? |
|
|
3263 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3264 | rm -f conftest.er1 |
|
|
3265 | cat conftest.err >&5 |
|
|
3266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3267 | (exit $ac_status); } && |
|
|
3268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3270 | (eval $ac_try) 2>&5 |
|
|
3271 | ac_status=$? |
|
|
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3273 | (exit $ac_status); }; } && |
|
|
3274 | { ac_try='test -s conftest$ac_exeext' |
|
|
3275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3276 | (eval $ac_try) 2>&5 |
|
|
3277 | ac_status=$? |
|
|
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3279 | (exit $ac_status); }; }; then |
|
|
3280 | ac_cv_lib_supcpp_main=yes |
|
|
3281 | else |
|
|
3282 | echo "$as_me: failed program was:" >&5 |
|
|
3283 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3284 | |
|
|
3285 | ac_cv_lib_supcpp_main=no |
|
|
3286 | fi |
|
|
3287 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3288 | conftest$ac_exeext conftest.$ac_ext |
|
|
3289 | LIBS=$ac_check_lib_save_LIBS |
|
|
3290 | fi |
|
|
3291 | echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 |
|
|
3292 | echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 |
|
|
3293 | if test $ac_cv_lib_supcpp_main = yes; then |
|
|
3294 | |
|
|
3295 | LINKER="$CC" |
|
|
3296 | LIBS="$LIBS -lsupc++" |
|
|
3297 | |
|
|
3298 | fi |
|
|
3299 | |
|
|
3300 | fi |
|
|
3301 | LINKER=$LINKER |
|
|
3302 | |
|
|
3303 | |
|
|
3304 | ac_ext=cc |
|
|
3305 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
3306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
3307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
3308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
3309 | |
|
|
3310 | if test -z "$orig_CXXFLAGS"; then |
|
|
3311 | if test x$GCC = xyes && test "x$GXX" = xyes; then |
|
|
3312 | CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" |
|
|
3313 | |
|
|
3314 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3315 | int i; |
|
|
3316 | _ACEOF |
|
|
3317 | rm -f conftest.$ac_objext |
|
|
3318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
3319 | (eval $ac_compile) 2>conftest.er1 |
|
|
3320 | ac_status=$? |
|
|
3321 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3322 | rm -f conftest.er1 |
|
|
3323 | cat conftest.err >&5 |
|
|
3324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3325 | (exit $ac_status); } && |
|
|
3326 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3328 | (eval $ac_try) 2>&5 |
|
|
3329 | ac_status=$? |
|
|
3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3331 | (exit $ac_status); }; } && |
|
|
3332 | { ac_try='test -s conftest.$ac_objext' |
|
|
3333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3334 | (eval $ac_try) 2>&5 |
|
|
3335 | ac_status=$? |
|
|
3336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3337 | (exit $ac_status); }; }; then |
|
|
3338 | echo didididid |
|
|
3339 | else |
|
|
3340 | echo "$as_me: failed program was:" >&5 |
|
|
3341 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3342 | |
|
|
3343 | CXXFLAGS="-g -O3" |
|
|
3344 | fi |
|
|
3345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
3346 | else |
|
|
3347 | CXXFLAGS="-O" |
|
|
3348 | fi |
|
|
3349 | CFLAGS="$CXXFLAGS" |
|
|
3350 | fi |
|
|
3351 | |
|
|
3352 | |
|
|
3353 | cat >>confdefs.h <<\_ACEOF |
|
|
3354 | #define _GNU_SOURCE 1 |
|
|
3355 | _ACEOF |
|
|
3356 | |
|
|
3357 | |
|
|
3358 | case $host in |
|
|
3359 | *-*-solaris* ) |
|
|
3360 | |
|
|
3361 | cat >>confdefs.h <<\_ACEOF |
|
|
3362 | #define _XOPEN_SOURCE_EXTENDED 1 |
|
|
3363 | _ACEOF |
|
|
3364 | |
|
|
3365 | |
|
|
3366 | cat >>confdefs.h <<\_ACEOF |
|
|
3367 | #define _XOPEN_SOURCE 2 |
|
|
3368 | _ACEOF |
|
|
3369 | |
|
|
3370 | |
|
|
3371 | cat >>confdefs.h <<\_ACEOF |
|
|
3372 | #define __EXTENSIONS__ 1 |
|
|
3373 | _ACEOF |
|
|
3374 | |
|
|
3375 | ;; |
|
|
3376 | esac |
|
|
3377 | |
|
|
3378 | |
|
|
3379 | echo "$as_me:$LINENO: checking for setlocale" >&5 |
|
|
3380 | echo $ECHO_N "checking for setlocale... $ECHO_C" >&6 |
|
|
3381 | if test "${ac_cv_func_setlocale+set}" = set; then |
|
|
3382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3383 | else |
|
|
3384 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3385 | /* confdefs.h. */ |
|
|
3386 | _ACEOF |
|
|
3387 | cat confdefs.h >>conftest.$ac_ext |
|
|
3388 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3389 | /* end confdefs.h. */ |
|
|
3390 | /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale. |
|
|
3391 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3392 | #define setlocale innocuous_setlocale |
|
|
3393 | |
|
|
3394 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3395 | which can conflict with char setlocale (); below. |
|
|
3396 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3397 | <limits.h> exists even on freestanding compilers. */ |
|
|
3398 | |
|
|
3399 | #ifdef __STDC__ |
|
|
3400 | # include <limits.h> |
|
|
3401 | #else |
|
|
3402 | # include <assert.h> |
|
|
3403 | #endif |
|
|
3404 | |
|
|
3405 | #undef setlocale |
|
|
3406 | |
|
|
3407 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3408 | #ifdef __cplusplus |
|
|
3409 | extern "C" |
|
|
3410 | { |
|
|
3411 | #endif |
|
|
3412 | /* We use char because int might match the return type of a gcc2 |
|
|
3413 | builtin and then its argument prototype would still apply. */ |
|
|
3414 | char setlocale (); |
|
|
3415 | /* The GNU C library defines this for functions which it implements |
|
|
3416 | to always fail with ENOSYS. Some functions are actually named |
|
|
3417 | something starting with __ and the normal name is an alias. */ |
|
|
3418 | #if defined (__stub_setlocale) || defined (__stub___setlocale) |
|
|
3419 | choke me |
|
|
3420 | #else |
|
|
3421 | char (*f) () = setlocale; |
|
|
3422 | #endif |
|
|
3423 | #ifdef __cplusplus |
|
|
3424 | } |
|
|
3425 | #endif |
|
|
3426 | |
|
|
3427 | int |
|
|
3428 | main () |
|
|
3429 | { |
|
|
3430 | return f != setlocale; |
|
|
3431 | ; |
|
|
3432 | return 0; |
|
|
3433 | } |
|
|
3434 | _ACEOF |
|
|
3435 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3437 | (eval $ac_link) 2>conftest.er1 |
|
|
3438 | ac_status=$? |
|
|
3439 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3440 | rm -f conftest.er1 |
|
|
3441 | cat conftest.err >&5 |
|
|
3442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3443 | (exit $ac_status); } && |
|
|
3444 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3446 | (eval $ac_try) 2>&5 |
|
|
3447 | ac_status=$? |
|
|
3448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3449 | (exit $ac_status); }; } && |
|
|
3450 | { ac_try='test -s conftest$ac_exeext' |
|
|
3451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3452 | (eval $ac_try) 2>&5 |
|
|
3453 | ac_status=$? |
|
|
3454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3455 | (exit $ac_status); }; }; then |
|
|
3456 | ac_cv_func_setlocale=yes |
|
|
3457 | else |
|
|
3458 | echo "$as_me: failed program was:" >&5 |
|
|
3459 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3460 | |
|
|
3461 | ac_cv_func_setlocale=no |
|
|
3462 | fi |
|
|
3463 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3464 | conftest$ac_exeext conftest.$ac_ext |
|
|
3465 | fi |
|
|
3466 | echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 |
|
|
3467 | echo "${ECHO_T}$ac_cv_func_setlocale" >&6 |
|
|
3468 | if test $ac_cv_func_setlocale = yes; then |
|
|
3469 | : |
|
|
3470 | else |
3697 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
3471 | echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5 |
3698 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
3472 | echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6 |
3699 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
3473 | if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then |
3700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3701 | else |
3475 | else |
3702 | ac_check_lib_save_LIBS=$LIBS |
3476 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3759 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
3533 | echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6 |
3760 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
3534 | if test $ac_cv_lib_xpg4_setlocale = yes; then |
3761 | LIBS="$LIBS -lxpg4" |
3535 | LIBS="$LIBS -lxpg4" |
3762 | fi |
3536 | fi |
3763 | |
3537 | |
|
|
3538 | fi |
3764 | |
3539 | |
|
|
3540 | |
|
|
3541 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
|
|
3542 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
|
|
3543 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
|
|
3544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3545 | else |
|
|
3546 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3547 | /* confdefs.h. */ |
|
|
3548 | _ACEOF |
|
|
3549 | cat confdefs.h >>conftest.$ac_ext |
|
|
3550 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3551 | /* end confdefs.h. */ |
|
|
3552 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
|
|
3553 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3554 | #define gethostbyname innocuous_gethostbyname |
|
|
3555 | |
|
|
3556 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3557 | which can conflict with char gethostbyname (); below. |
|
|
3558 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3559 | <limits.h> exists even on freestanding compilers. */ |
|
|
3560 | |
|
|
3561 | #ifdef __STDC__ |
|
|
3562 | # include <limits.h> |
|
|
3563 | #else |
|
|
3564 | # include <assert.h> |
|
|
3565 | #endif |
|
|
3566 | |
|
|
3567 | #undef gethostbyname |
|
|
3568 | |
|
|
3569 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3570 | #ifdef __cplusplus |
|
|
3571 | extern "C" |
|
|
3572 | { |
|
|
3573 | #endif |
|
|
3574 | /* We use char because int might match the return type of a gcc2 |
|
|
3575 | builtin and then its argument prototype would still apply. */ |
|
|
3576 | char gethostbyname (); |
|
|
3577 | /* The GNU C library defines this for functions which it implements |
|
|
3578 | to always fail with ENOSYS. Some functions are actually named |
|
|
3579 | something starting with __ and the normal name is an alias. */ |
|
|
3580 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
|
|
3581 | choke me |
|
|
3582 | #else |
|
|
3583 | char (*f) () = gethostbyname; |
|
|
3584 | #endif |
|
|
3585 | #ifdef __cplusplus |
|
|
3586 | } |
|
|
3587 | #endif |
|
|
3588 | |
|
|
3589 | int |
|
|
3590 | main () |
|
|
3591 | { |
|
|
3592 | return f != gethostbyname; |
|
|
3593 | ; |
|
|
3594 | return 0; |
|
|
3595 | } |
|
|
3596 | _ACEOF |
|
|
3597 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3599 | (eval $ac_link) 2>conftest.er1 |
|
|
3600 | ac_status=$? |
|
|
3601 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3602 | rm -f conftest.er1 |
|
|
3603 | cat conftest.err >&5 |
|
|
3604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3605 | (exit $ac_status); } && |
|
|
3606 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3608 | (eval $ac_try) 2>&5 |
|
|
3609 | ac_status=$? |
|
|
3610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3611 | (exit $ac_status); }; } && |
|
|
3612 | { ac_try='test -s conftest$ac_exeext' |
|
|
3613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3614 | (eval $ac_try) 2>&5 |
|
|
3615 | ac_status=$? |
|
|
3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3617 | (exit $ac_status); }; }; then |
|
|
3618 | ac_cv_func_gethostbyname=yes |
|
|
3619 | else |
|
|
3620 | echo "$as_me: failed program was:" >&5 |
|
|
3621 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3622 | |
|
|
3623 | ac_cv_func_gethostbyname=no |
|
|
3624 | fi |
|
|
3625 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3626 | conftest$ac_exeext conftest.$ac_ext |
|
|
3627 | fi |
|
|
3628 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
|
|
3629 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
|
|
3630 | if test $ac_cv_func_gethostbyname = yes; then |
|
|
3631 | : |
|
|
3632 | else |
3765 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3633 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
3766 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3634 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
3767 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3635 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
3768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3769 | else |
3637 | else |
3770 | ac_check_lib_save_LIBS=$LIBS |
3638 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3827 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3695 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3828 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
3696 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
3829 | LIBS="$LIBS -lnsl" |
3697 | LIBS="$LIBS -lnsl" |
3830 | fi |
3698 | fi |
3831 | |
3699 | |
|
|
3700 | fi |
|
|
3701 | |
|
|
3702 | echo "$as_me:$LINENO: checking for socket" >&5 |
|
|
3703 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
|
|
3704 | if test "${ac_cv_func_socket+set}" = set; then |
|
|
3705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3706 | else |
|
|
3707 | cat >conftest.$ac_ext <<_ACEOF |
|
|
3708 | /* confdefs.h. */ |
|
|
3709 | _ACEOF |
|
|
3710 | cat confdefs.h >>conftest.$ac_ext |
|
|
3711 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
3712 | /* end confdefs.h. */ |
|
|
3713 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
|
|
3714 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
3715 | #define socket innocuous_socket |
|
|
3716 | |
|
|
3717 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
3718 | which can conflict with char socket (); below. |
|
|
3719 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
3720 | <limits.h> exists even on freestanding compilers. */ |
|
|
3721 | |
|
|
3722 | #ifdef __STDC__ |
|
|
3723 | # include <limits.h> |
|
|
3724 | #else |
|
|
3725 | # include <assert.h> |
|
|
3726 | #endif |
|
|
3727 | |
|
|
3728 | #undef socket |
|
|
3729 | |
|
|
3730 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
3731 | #ifdef __cplusplus |
|
|
3732 | extern "C" |
|
|
3733 | { |
|
|
3734 | #endif |
|
|
3735 | /* We use char because int might match the return type of a gcc2 |
|
|
3736 | builtin and then its argument prototype would still apply. */ |
|
|
3737 | char socket (); |
|
|
3738 | /* The GNU C library defines this for functions which it implements |
|
|
3739 | to always fail with ENOSYS. Some functions are actually named |
|
|
3740 | something starting with __ and the normal name is an alias. */ |
|
|
3741 | #if defined (__stub_socket) || defined (__stub___socket) |
|
|
3742 | choke me |
|
|
3743 | #else |
|
|
3744 | char (*f) () = socket; |
|
|
3745 | #endif |
|
|
3746 | #ifdef __cplusplus |
|
|
3747 | } |
|
|
3748 | #endif |
|
|
3749 | |
|
|
3750 | int |
|
|
3751 | main () |
|
|
3752 | { |
|
|
3753 | return f != socket; |
|
|
3754 | ; |
|
|
3755 | return 0; |
|
|
3756 | } |
|
|
3757 | _ACEOF |
|
|
3758 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
3759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
3760 | (eval $ac_link) 2>conftest.er1 |
|
|
3761 | ac_status=$? |
|
|
3762 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
3763 | rm -f conftest.er1 |
|
|
3764 | cat conftest.err >&5 |
|
|
3765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3766 | (exit $ac_status); } && |
|
|
3767 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
3768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3769 | (eval $ac_try) 2>&5 |
|
|
3770 | ac_status=$? |
|
|
3771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3772 | (exit $ac_status); }; } && |
|
|
3773 | { ac_try='test -s conftest$ac_exeext' |
|
|
3774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
3775 | (eval $ac_try) 2>&5 |
|
|
3776 | ac_status=$? |
|
|
3777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
3778 | (exit $ac_status); }; }; then |
|
|
3779 | ac_cv_func_socket=yes |
|
|
3780 | else |
|
|
3781 | echo "$as_me: failed program was:" >&5 |
|
|
3782 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
3783 | |
|
|
3784 | ac_cv_func_socket=no |
|
|
3785 | fi |
|
|
3786 | rm -f conftest.err conftest.$ac_objext \ |
|
|
3787 | conftest$ac_exeext conftest.$ac_ext |
|
|
3788 | fi |
|
|
3789 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
|
|
3790 | echo "${ECHO_T}$ac_cv_func_socket" >&6 |
|
|
3791 | if test $ac_cv_func_socket = yes; then |
|
|
3792 | : |
|
|
3793 | else |
3832 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
3794 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
3833 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
3795 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
3834 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
3796 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
3835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3836 | else |
3798 | else |
3837 | ac_check_lib_save_LIBS=$LIBS |
3799 | ac_check_lib_save_LIBS=$LIBS |
… | |
… | |
3894 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
3856 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
3895 | if test $ac_cv_lib_socket_socket = yes; then |
3857 | if test $ac_cv_lib_socket_socket = yes; then |
3896 | LIBS="$LIBS -lsocket" |
3858 | LIBS="$LIBS -lsocket" |
3897 | fi |
3859 | fi |
3898 | |
3860 | |
3899 | |
|
|
3900 | # Check whether --enable-shared or --disable-shared was given. |
|
|
3901 | if test "${enable_shared+set}" = set; then |
|
|
3902 | enableval="$enable_shared" |
|
|
3903 | p=${PACKAGE-default} |
|
|
3904 | case "$enableval" in |
|
|
3905 | yes) enable_shared=yes ;; |
|
|
3906 | no) enable_shared=no ;; |
|
|
3907 | *) |
|
|
3908 | enable_shared=no |
|
|
3909 | # Look at the argument we got. We use all the common list separators. |
|
|
3910 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3911 | for pkg in $enableval; do |
|
|
3912 | if test "X$pkg" = "X$p"; then |
|
|
3913 | enable_shared=yes |
|
|
3914 | fi |
|
|
3915 | done |
|
|
3916 | IFS="$ac_save_ifs" |
|
|
3917 | ;; |
|
|
3918 | esac |
|
|
3919 | else |
|
|
3920 | enable_shared=no |
|
|
3921 | fi; # Check whether --enable-static or --disable-static was given. |
|
|
3922 | if test "${enable_static+set}" = set; then |
|
|
3923 | enableval="$enable_static" |
|
|
3924 | p=${PACKAGE-default} |
|
|
3925 | case "$enableval" in |
|
|
3926 | yes) enable_static=yes ;; |
|
|
3927 | no) enable_static=no ;; |
|
|
3928 | *) |
|
|
3929 | enable_static=no |
|
|
3930 | # Look at the argument we got. We use all the common list separators. |
|
|
3931 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3932 | for pkg in $enableval; do |
|
|
3933 | if test "X$pkg" = "X$p"; then |
|
|
3934 | enable_static=yes |
|
|
3935 | fi |
|
|
3936 | done |
|
|
3937 | IFS="$ac_save_ifs" |
|
|
3938 | ;; |
|
|
3939 | esac |
|
|
3940 | else |
|
|
3941 | enable_static=yes |
|
|
3942 | fi; # Check whether --enable-fast-install or --disable-fast-install was given. |
|
|
3943 | if test "${enable_fast_install+set}" = set; then |
|
|
3944 | enableval="$enable_fast_install" |
|
|
3945 | p=${PACKAGE-default} |
|
|
3946 | case "$enableval" in |
|
|
3947 | yes) enable_fast_install=yes ;; |
|
|
3948 | no) enable_fast_install=no ;; |
|
|
3949 | *) |
|
|
3950 | enable_fast_install=no |
|
|
3951 | # Look at the argument we got. We use all the common list separators. |
|
|
3952 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
|
|
3953 | for pkg in $enableval; do |
|
|
3954 | if test "X$pkg" = "X$p"; then |
|
|
3955 | enable_fast_install=yes |
|
|
3956 | fi |
|
|
3957 | done |
|
|
3958 | IFS="$ac_save_ifs" |
|
|
3959 | ;; |
|
|
3960 | esac |
|
|
3961 | else |
|
|
3962 | enable_fast_install=yes |
|
|
3963 | fi; |
3861 | fi |
3964 | # Make sure we can run config.sub. |
|
|
3965 | $ac_config_sub sun4 >/dev/null 2>&1 || |
|
|
3966 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
|
|
3967 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
|
|
3968 | { (exit 1); exit 1; }; } |
|
|
3969 | |
3862 | |
3970 | echo "$as_me:$LINENO: checking build system type" >&5 |
|
|
3971 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
|
|
3972 | if test "${ac_cv_build+set}" = set; then |
|
|
3973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
3974 | else |
|
|
3975 | ac_cv_build_alias=$build_alias |
|
|
3976 | test -z "$ac_cv_build_alias" && |
|
|
3977 | ac_cv_build_alias=`$ac_config_guess` |
|
|
3978 | test -z "$ac_cv_build_alias" && |
|
|
3979 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
|
|
3980 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
|
|
3981 | { (exit 1); exit 1; }; } |
|
|
3982 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
|
|
3983 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
|
|
3984 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
|
|
3985 | { (exit 1); exit 1; }; } |
|
|
3986 | |
3863 | |
3987 | fi |
|
|
3988 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
|
|
3989 | echo "${ECHO_T}$ac_cv_build" >&6 |
|
|
3990 | build=$ac_cv_build |
|
|
3991 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
3992 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
3993 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
3994 | |
|
|
3995 | |
|
|
3996 | echo "$as_me:$LINENO: checking host system type" >&5 |
|
|
3997 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
|
|
3998 | if test "${ac_cv_host+set}" = set; then |
|
|
3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4000 | else |
|
|
4001 | ac_cv_host_alias=$host_alias |
|
|
4002 | test -z "$ac_cv_host_alias" && |
|
|
4003 | ac_cv_host_alias=$ac_cv_build_alias |
|
|
4004 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
|
|
4005 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
|
|
4006 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
|
|
4007 | { (exit 1); exit 1; }; } |
|
|
4008 | |
|
|
4009 | fi |
|
|
4010 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
|
|
4011 | echo "${ECHO_T}$ac_cv_host" >&6 |
|
|
4012 | host=$ac_cv_host |
|
|
4013 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
|
|
4014 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
|
|
4015 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
|
|
4016 | |
|
|
4017 | |
|
|
4018 | |
|
|
4019 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
|
|
4020 | if test "${with_gnu_ld+set}" = set; then |
|
|
4021 | withval="$with_gnu_ld" |
|
|
4022 | test "$withval" = no || with_gnu_ld=yes |
|
|
4023 | else |
|
|
4024 | with_gnu_ld=no |
|
|
4025 | fi; |
|
|
4026 | ac_prog=ld |
|
|
4027 | if test "$GCC" = yes; then |
|
|
4028 | # Check if gcc -print-prog-name=ld gives a path. |
|
|
4029 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
|
|
4030 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
|
|
4031 | case $host in |
|
|
4032 | *-*-mingw*) |
|
|
4033 | # gcc leaves a trailing carriage return which upsets mingw |
|
|
4034 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
|
4035 | *) |
|
|
4036 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
|
4037 | esac |
|
|
4038 | case "$ac_prog" in |
|
|
4039 | # Accept absolute paths. |
|
|
4040 | [\\/]* | [A-Za-z]:[\\/]*) |
|
|
4041 | re_direlt='/[^/][^/]*/\.\./' |
|
|
4042 | # Canonicalize the path of ld |
|
|
4043 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
|
|
4044 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
|
|
4045 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
|
|
4046 | done |
|
|
4047 | test -z "$LD" && LD="$ac_prog" |
|
|
4048 | ;; |
|
|
4049 | "") |
|
|
4050 | # If it fails, then pretend we aren't using GCC. |
|
|
4051 | ac_prog=ld |
|
|
4052 | ;; |
|
|
4053 | *) |
|
|
4054 | # If it is relative, then search for the first ld in PATH. |
|
|
4055 | with_gnu_ld=unknown |
|
|
4056 | ;; |
|
|
4057 | esac |
|
|
4058 | elif test "$with_gnu_ld" = yes; then |
|
|
4059 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3864 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
4060 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
3865 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 |
4061 | else |
|
|
4062 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
|
|
4063 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
|
|
4064 | fi |
|
|
4065 | if test "${lt_cv_path_LD+set}" = set; then |
|
|
4066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4067 | else |
|
|
4068 | if test -z "$LD"; then |
|
|
4069 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
4070 | for ac_dir in $PATH; do |
|
|
4071 | test -z "$ac_dir" && ac_dir=. |
|
|
4072 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
|
4073 | lt_cv_path_LD="$ac_dir/$ac_prog" |
|
|
4074 | # Check to see if the program is GNU ld. I'd rather use --version, |
|
|
4075 | # but apparently some GNU ld's only accept -v. |
|
|
4076 | # Break only if it was the GNU/non-GNU ld that we prefer. |
|
|
4077 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
4078 | test "$with_gnu_ld" != no && break |
|
|
4079 | else |
|
|
4080 | test "$with_gnu_ld" != yes && break |
|
|
4081 | fi |
|
|
4082 | fi |
|
|
4083 | done |
|
|
4084 | IFS="$ac_save_ifs" |
|
|
4085 | else |
|
|
4086 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
|
4087 | fi |
|
|
4088 | fi |
|
|
4089 | |
|
|
4090 | LD="$lt_cv_path_LD" |
|
|
4091 | if test -n "$LD"; then |
|
|
4092 | echo "$as_me:$LINENO: result: $LD" >&5 |
|
|
4093 | echo "${ECHO_T}$LD" >&6 |
|
|
4094 | else |
|
|
4095 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4096 | echo "${ECHO_T}no" >&6 |
|
|
4097 | fi |
|
|
4098 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
|
|
4099 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
|
|
4100 | { (exit 1); exit 1; }; } |
|
|
4101 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
|
|
4102 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
|
|
4103 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
|
|
4104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4105 | else |
|
|
4106 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
|
|
4107 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
|
|
4108 | lt_cv_prog_gnu_ld=yes |
|
|
4109 | else |
|
|
4110 | lt_cv_prog_gnu_ld=no |
|
|
4111 | fi |
|
|
4112 | fi |
|
|
4113 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
|
|
4114 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 |
|
|
4115 | with_gnu_ld=$lt_cv_prog_gnu_ld |
|
|
4116 | |
|
|
4117 | |
|
|
4118 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
|
|
4119 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 |
|
|
4120 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
|
|
4121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4122 | else |
|
|
4123 | lt_cv_ld_reload_flag='-r' |
|
|
4124 | fi |
|
|
4125 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
|
|
4126 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 |
|
|
4127 | reload_flag=$lt_cv_ld_reload_flag |
|
|
4128 | test -n "$reload_flag" && reload_flag=" $reload_flag" |
|
|
4129 | |
|
|
4130 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
|
|
4131 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
|
|
4132 | if test "${lt_cv_path_NM+set}" = set; then |
|
|
4133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4134 | else |
|
|
4135 | if test -n "$NM"; then |
|
|
4136 | # Let the user override the test. |
|
|
4137 | lt_cv_path_NM="$NM" |
|
|
4138 | else |
|
|
4139 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
|
|
4140 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
|
|
4141 | test -z "$ac_dir" && ac_dir=. |
|
|
4142 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
|
|
4143 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then |
|
|
4144 | # Check to see if the nm accepts a BSD-compat flag. |
|
|
4145 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
|
4146 | # nm: unknown option "B" ignored |
|
|
4147 | # Tru64's nm complains that /dev/null is an invalid object file |
|
|
4148 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then |
|
|
4149 | lt_cv_path_NM="$tmp_nm -B" |
|
|
4150 | break |
|
|
4151 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
|
|
4152 | lt_cv_path_NM="$tmp_nm -p" |
|
|
4153 | break |
|
|
4154 | else |
|
|
4155 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
|
4156 | continue # so that we can try to find one that supports BSD flags |
|
|
4157 | fi |
|
|
4158 | fi |
|
|
4159 | done |
|
|
4160 | IFS="$ac_save_ifs" |
|
|
4161 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
|
|
4162 | fi |
|
|
4163 | fi |
|
|
4164 | |
|
|
4165 | NM="$lt_cv_path_NM" |
|
|
4166 | echo "$as_me:$LINENO: result: $NM" >&5 |
|
|
4167 | echo "${ECHO_T}$NM" >&6 |
|
|
4168 | |
|
|
4169 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
|
|
4170 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
|
|
4171 | LN_S=$as_ln_s |
|
|
4172 | if test "$LN_S" = "ln -s"; then |
|
|
4173 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4174 | echo "${ECHO_T}yes" >&6 |
|
|
4175 | else |
|
|
4176 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
|
|
4177 | echo "${ECHO_T}no, using $LN_S" >&6 |
|
|
4178 | fi |
|
|
4179 | |
|
|
4180 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
|
|
4181 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 |
|
|
4182 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
|
|
4183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4184 | else |
|
|
4185 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
|
4186 | lt_cv_file_magic_test_file= |
|
|
4187 | lt_cv_deplibs_check_method='unknown' |
|
|
4188 | # Need to set the preceding variable on all platforms that support |
|
|
4189 | # interlibrary dependencies. |
|
|
4190 | # 'none' -- dependencies not supported. |
|
|
4191 | # `unknown' -- same as none, but documents that we really don't know. |
|
|
4192 | # 'pass_all' -- all dependencies passed with no checks. |
|
|
4193 | # 'test_compile' -- check by making test program. |
|
|
4194 | # ['file_magic [regex]'] -- check by looking for files in library path |
|
|
4195 | # which responds to the $file_magic_cmd with a given egrep regex. |
|
|
4196 | # If you have `file' or equivalent on your system and you're not sure |
|
|
4197 | # whether `pass_all' will *always* work, you probably want this one. |
|
|
4198 | |
|
|
4199 | case "$host_os" in |
|
|
4200 | aix4*) |
|
|
4201 | lt_cv_deplibs_check_method=pass_all |
|
|
4202 | ;; |
|
|
4203 | |
|
|
4204 | beos*) |
|
|
4205 | lt_cv_deplibs_check_method=pass_all |
|
|
4206 | ;; |
|
|
4207 | |
|
|
4208 | bsdi4*) |
|
|
4209 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
|
4210 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
4211 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
4212 | ;; |
|
|
4213 | |
|
|
4214 | cygwin* | mingw* | pw32*) |
|
|
4215 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
|
4216 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
|
4217 | ;; |
|
|
4218 | |
|
|
4219 | darwin*|rhapsody*) |
|
|
4220 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
|
|
4221 | lt_cv_file_magiic_cmd=/usr/bin/file |
|
|
4222 | lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` |
|
|
4223 | ;; |
|
|
4224 | |
|
|
4225 | freebsd*) |
|
|
4226 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
4227 | case "$host_cpu" in |
|
|
4228 | i*86 ) |
|
|
4229 | # Not sure whether the presence of OpenBSD here was a mistake. |
|
|
4230 | # Let's accept both of them until this is cleared up. |
|
|
4231 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
|
|
4232 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4233 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
|
4234 | ;; |
|
|
4235 | esac |
|
|
4236 | else |
|
|
4237 | lt_cv_deplibs_check_method=pass_all |
|
|
4238 | fi |
|
|
4239 | ;; |
|
|
4240 | |
|
|
4241 | gnu*) |
|
|
4242 | lt_cv_deplibs_check_method=pass_all |
|
|
4243 | ;; |
|
|
4244 | |
|
|
4245 | hpux10.20*|hpux11*) |
|
|
4246 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
|
4247 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4248 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
|
4249 | ;; |
|
|
4250 | |
|
|
4251 | irix5* | irix6*) |
|
|
4252 | case "$host_os" in |
|
|
4253 | irix5*) |
|
|
4254 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4255 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" |
|
|
4256 | ;; |
|
|
4257 | *) |
|
|
4258 | case "$LD" in |
|
|
4259 | *-32|*"-32 ") libmagic=32-bit;; |
|
|
4260 | *-n32|*"-n32 ") libmagic=N32;; |
|
|
4261 | *-64|*"-64 ") libmagic=64-bit;; |
|
|
4262 | *) libmagic=never-match;; |
|
|
4263 | esac |
|
|
4264 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4265 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
|
|
4266 | ;; |
|
|
4267 | esac |
|
|
4268 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` |
|
|
4269 | lt_cv_deplibs_check_method=pass_all |
|
|
4270 | ;; |
|
|
4271 | |
|
|
4272 | # This must be Linux ELF. |
|
|
4273 | linux-gnu*) |
|
|
4274 | case "$host_cpu" in |
|
|
4275 | alpha* | i*86 | powerpc* | sparc* | ia64* ) |
|
|
4276 | lt_cv_deplibs_check_method=pass_all ;; |
|
|
4277 | *) |
|
|
4278 | # glibc up to 2.1.1 does not perform some relocations on ARM |
|
|
4279 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
|
|
4280 | esac |
|
|
4281 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
|
|
4282 | ;; |
|
|
4283 | |
|
|
4284 | netbsd*) |
|
|
4285 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
|
|
4286 | lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library' |
|
|
4287 | else |
|
|
4288 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' |
|
|
4289 | fi |
|
|
4290 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
|
4291 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
4292 | ;; |
|
|
4293 | |
|
|
4294 | newos6*) |
|
|
4295 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
|
4296 | lt_cv_file_magic_cmd=/usr/bin/file |
|
|
4297 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
|
4298 | ;; |
|
|
4299 | |
|
|
4300 | osf3* | osf4* | osf5*) |
|
|
4301 | # this will be overridden with pass_all, but let us keep it just in case |
|
|
4302 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' |
|
|
4303 | lt_cv_file_magic_test_file=/shlib/libc.so |
|
|
4304 | lt_cv_deplibs_check_method=pass_all |
|
|
4305 | ;; |
|
|
4306 | |
|
|
4307 | sco3.2v5*) |
|
|
4308 | lt_cv_deplibs_check_method=pass_all |
|
|
4309 | ;; |
|
|
4310 | |
|
|
4311 | solaris*) |
|
|
4312 | lt_cv_deplibs_check_method=pass_all |
|
|
4313 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
4314 | ;; |
|
|
4315 | |
|
|
4316 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
4317 | case "$host_vendor" in |
|
|
4318 | motorola) |
|
|
4319 | 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]' |
|
|
4320 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
|
4321 | ;; |
|
|
4322 | ncr) |
|
|
4323 | lt_cv_deplibs_check_method=pass_all |
|
|
4324 | ;; |
|
|
4325 | sequent) |
|
|
4326 | lt_cv_file_magic_cmd='/bin/file' |
|
|
4327 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
|
4328 | ;; |
|
|
4329 | sni) |
|
|
4330 | lt_cv_file_magic_cmd='/bin/file' |
|
|
4331 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
|
4332 | lt_cv_file_magic_test_file=/lib/libc.so |
|
|
4333 | ;; |
|
|
4334 | esac |
|
|
4335 | ;; |
|
|
4336 | esac |
|
|
4337 | |
|
|
4338 | fi |
|
|
4339 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
|
|
4340 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 |
|
|
4341 | file_magic_cmd=$lt_cv_file_magic_cmd |
|
|
4342 | deplibs_check_method=$lt_cv_deplibs_check_method |
|
|
4343 | |
|
|
4344 | |
|
|
4345 | |
|
|
4346 | |
|
|
4347 | |
|
|
4348 | |
|
|
4349 | |
|
|
4350 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
|
|
4351 | echo "$as_me:$LINENO: checking command to parse $NM output" >&5 |
|
|
4352 | echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 |
|
|
4353 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
|
|
4354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4355 | else |
|
|
4356 | |
|
|
4357 | # These are sane defaults that work on at least a few old systems. |
|
|
4358 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
|
4359 | |
|
|
4360 | # Character class describing NM global symbol codes. |
|
|
4361 | symcode='[BCDEGRST]' |
|
|
4362 | |
|
|
4363 | # Regexp to match symbols that can be accessed directly from C. |
|
|
4364 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
|
4365 | |
|
|
4366 | # Transform the above into a raw symbol and a C symbol. |
|
|
4367 | symxfrm='\1 \2\3 \3' |
|
|
4368 | |
|
|
4369 | # Transform an extracted symbol line into a proper C declaration |
|
|
4370 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
4371 | |
|
|
4372 | # Define system-specific variables. |
|
|
4373 | case "$host_os" in |
|
|
4374 | aix*) |
|
|
4375 | symcode='[BCDT]' |
|
|
4376 | ;; |
|
|
4377 | cygwin* | mingw* | pw32*) |
|
|
4378 | symcode='[ABCDGISTW]' |
|
|
4379 | ;; |
|
|
4380 | hpux*) # Its linker distinguishes data from code symbols |
|
|
4381 | lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" |
|
|
4382 | ;; |
|
|
4383 | irix*) |
|
|
4384 | symcode='[BCDEGRST]' |
|
|
4385 | ;; |
|
|
4386 | solaris* | sysv5*) |
|
|
4387 | symcode='[BDT]' |
|
|
4388 | ;; |
|
|
4389 | sysv4) |
|
|
4390 | symcode='[DFNSTU]' |
|
|
4391 | ;; |
|
|
4392 | esac |
|
|
4393 | |
|
|
4394 | # Handle CRLF in mingw tool chain |
|
|
4395 | opt_cr= |
|
|
4396 | case "$host_os" in |
|
|
4397 | mingw*) |
|
|
4398 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
|
4399 | ;; |
|
|
4400 | esac |
|
|
4401 | |
|
|
4402 | # If we're using GNU nm, then use its standard symbol codes. |
|
|
4403 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then |
|
|
4404 | symcode='[ABCDGISTW]' |
|
|
4405 | fi |
|
|
4406 | |
|
|
4407 | # Try without a prefix undercore, then with it. |
|
|
4408 | for ac_symprfx in "" "_"; do |
|
|
4409 | |
|
|
4410 | # Write the raw and C identifiers. |
|
|
4411 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" |
|
|
4412 | |
|
|
4413 | # Check to see that the pipe works correctly. |
|
|
4414 | pipe_works=no |
|
|
4415 | rm -f conftest* |
|
|
4416 | cat > conftest.$ac_ext <<EOF |
|
|
4417 | #ifdef __cplusplus |
|
|
4418 | extern "C" { |
|
|
4419 | #endif |
|
|
4420 | char nm_test_var; |
|
|
4421 | void nm_test_func(){} |
|
|
4422 | #ifdef __cplusplus |
|
|
4423 | } |
|
|
4424 | #endif |
|
|
4425 | main(){nm_test_var='a';nm_test_func();return(0);} |
|
|
4426 | EOF |
|
|
4427 | |
|
|
4428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4429 | (eval $ac_compile) 2>&5 |
|
|
4430 | ac_status=$? |
|
|
4431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4432 | (exit $ac_status); }; then |
|
|
4433 | # Now try to grab the symbols. |
|
|
4434 | nlist=conftest.nm |
|
|
4435 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
|
|
4436 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
|
4437 | ac_status=$? |
|
|
4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4439 | (exit $ac_status); } && test -s "$nlist"; then |
|
|
4440 | # Try sorting and uniquifying the output. |
|
|
4441 | if sort "$nlist" | uniq > "$nlist"T; then |
|
|
4442 | mv -f "$nlist"T "$nlist" |
|
|
4443 | else |
|
|
4444 | rm -f "$nlist"T |
|
|
4445 | fi |
|
|
4446 | |
|
|
4447 | # Make sure that we snagged all the symbols we need. |
|
|
4448 | if egrep ' nm_test_var$' "$nlist" >/dev/null; then |
|
|
4449 | if egrep ' nm_test_func$' "$nlist" >/dev/null; then |
|
|
4450 | cat <<EOF > conftest.$ac_ext |
|
|
4451 | #ifdef __cplusplus |
|
|
4452 | extern "C" { |
|
|
4453 | #endif |
|
|
4454 | |
|
|
4455 | EOF |
|
|
4456 | # Now generate the symbol file. |
|
|
4457 | eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' |
|
|
4458 | |
|
|
4459 | cat <<EOF >> conftest.$ac_ext |
|
|
4460 | #if defined (__STDC__) && __STDC__ |
|
|
4461 | # define lt_ptr_t void * |
|
|
4462 | #else |
|
|
4463 | # define lt_ptr_t char * |
|
|
4464 | # define const |
|
|
4465 | #endif |
|
|
4466 | |
|
|
4467 | /* The mapping between symbol names and symbols. */ |
|
|
4468 | const struct { |
|
|
4469 | const char *name; |
|
|
4470 | lt_ptr_t address; |
|
|
4471 | } |
|
|
4472 | lt_preloaded_symbols[] = |
|
|
4473 | { |
|
|
4474 | EOF |
|
|
4475 | sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.$ac_ext |
|
|
4476 | cat <<\EOF >> conftest.$ac_ext |
|
|
4477 | {0, (lt_ptr_t) 0} |
|
|
4478 | }; |
|
|
4479 | |
|
|
4480 | #ifdef __cplusplus |
|
|
4481 | } |
|
|
4482 | #endif |
|
|
4483 | EOF |
|
|
4484 | # Now try linking the two files. |
|
|
4485 | mv conftest.$ac_objext conftstm.$ac_objext |
|
|
4486 | save_LIBS="$LIBS" |
|
|
4487 | save_CFLAGS="$CFLAGS" |
|
|
4488 | LIBS="conftstm.$ac_objext" |
|
|
4489 | CFLAGS="$CFLAGS$no_builtin_flag" |
|
|
4490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4491 | (eval $ac_link) 2>&5 |
|
|
4492 | ac_status=$? |
|
|
4493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4494 | (exit $ac_status); } && test -s conftest; then |
|
|
4495 | pipe_works=yes |
|
|
4496 | fi |
|
|
4497 | LIBS="$save_LIBS" |
|
|
4498 | CFLAGS="$save_CFLAGS" |
|
|
4499 | else |
|
|
4500 | echo "cannot find nm_test_func in $nlist" >&5 |
|
|
4501 | fi |
|
|
4502 | else |
|
|
4503 | echo "cannot find nm_test_var in $nlist" >&5 |
|
|
4504 | fi |
|
|
4505 | else |
|
|
4506 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
|
4507 | fi |
|
|
4508 | else |
|
|
4509 | echo "$progname: failed program was:" >&5 |
|
|
4510 | cat conftest.$ac_ext >&5 |
|
|
4511 | fi |
|
|
4512 | rm -f conftest* conftst* |
|
|
4513 | |
|
|
4514 | # Do not use the global_symbol_pipe unless it works. |
|
|
4515 | if test "$pipe_works" = yes; then |
|
|
4516 | break |
|
|
4517 | else |
|
|
4518 | lt_cv_sys_global_symbol_pipe= |
|
|
4519 | fi |
|
|
4520 | done |
|
|
4521 | |
|
|
4522 | fi |
|
|
4523 | |
|
|
4524 | global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" |
|
|
4525 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
|
4526 | global_symbol_to_cdecl= |
|
|
4527 | else |
|
|
4528 | global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" |
|
|
4529 | fi |
|
|
4530 | if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then |
|
|
4531 | echo "$as_me:$LINENO: result: failed" >&5 |
|
|
4532 | echo "${ECHO_T}failed" >&6 |
|
|
4533 | else |
|
|
4534 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
4535 | echo "${ECHO_T}ok" >&6 |
|
|
4536 | fi |
|
|
4537 | |
|
|
4538 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
4539 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
4540 | if test "${ac_cv_header_stdc+set}" = set; then |
3866 | if test "${ac_cv_func_sched_yield+set}" = set; then |
4541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4542 | else |
3868 | else |
4543 | cat >conftest.$ac_ext <<_ACEOF |
3869 | cat >conftest.$ac_ext <<_ACEOF |
4544 | /* confdefs.h. */ |
3870 | /* confdefs.h. */ |
4545 | _ACEOF |
3871 | _ACEOF |
4546 | cat confdefs.h >>conftest.$ac_ext |
3872 | cat confdefs.h >>conftest.$ac_ext |
4547 | cat >>conftest.$ac_ext <<_ACEOF |
3873 | cat >>conftest.$ac_ext <<_ACEOF |
4548 | /* end confdefs.h. */ |
3874 | /* end confdefs.h. */ |
4549 | #include <stdlib.h> |
|
|
4550 | #include <stdarg.h> |
|
|
4551 | #include <string.h> |
|
|
4552 | #include <float.h> |
|
|
4553 | |
|
|
4554 | int |
|
|
4555 | main () |
|
|
4556 | { |
|
|
4557 | |
|
|
4558 | ; |
|
|
4559 | return 0; |
|
|
4560 | } |
|
|
4561 | _ACEOF |
|
|
4562 | rm -f conftest.$ac_objext |
|
|
4563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4564 | (eval $ac_compile) 2>conftest.er1 |
|
|
4565 | ac_status=$? |
|
|
4566 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4567 | rm -f conftest.er1 |
|
|
4568 | cat conftest.err >&5 |
|
|
4569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4570 | (exit $ac_status); } && |
|
|
4571 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4573 | (eval $ac_try) 2>&5 |
|
|
4574 | ac_status=$? |
|
|
4575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4576 | (exit $ac_status); }; } && |
|
|
4577 | { ac_try='test -s conftest.$ac_objext' |
|
|
4578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4579 | (eval $ac_try) 2>&5 |
|
|
4580 | ac_status=$? |
|
|
4581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4582 | (exit $ac_status); }; }; then |
|
|
4583 | ac_cv_header_stdc=yes |
|
|
4584 | else |
|
|
4585 | echo "$as_me: failed program was:" >&5 |
|
|
4586 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4587 | |
|
|
4588 | ac_cv_header_stdc=no |
|
|
4589 | fi |
|
|
4590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4591 | |
|
|
4592 | if test $ac_cv_header_stdc = yes; then |
|
|
4593 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
4594 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4595 | /* confdefs.h. */ |
|
|
4596 | _ACEOF |
|
|
4597 | cat confdefs.h >>conftest.$ac_ext |
|
|
4598 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4599 | /* end confdefs.h. */ |
|
|
4600 | #include <string.h> |
|
|
4601 | |
|
|
4602 | _ACEOF |
|
|
4603 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4604 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
4605 | : |
|
|
4606 | else |
|
|
4607 | ac_cv_header_stdc=no |
|
|
4608 | fi |
|
|
4609 | rm -f conftest* |
|
|
4610 | |
|
|
4611 | fi |
|
|
4612 | |
|
|
4613 | if test $ac_cv_header_stdc = yes; then |
|
|
4614 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
4615 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4616 | /* confdefs.h. */ |
|
|
4617 | _ACEOF |
|
|
4618 | cat confdefs.h >>conftest.$ac_ext |
|
|
4619 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4620 | /* end confdefs.h. */ |
|
|
4621 | #include <stdlib.h> |
|
|
4622 | |
|
|
4623 | _ACEOF |
|
|
4624 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
4625 | $EGREP "free" >/dev/null 2>&1; then |
|
|
4626 | : |
|
|
4627 | else |
|
|
4628 | ac_cv_header_stdc=no |
|
|
4629 | fi |
|
|
4630 | rm -f conftest* |
|
|
4631 | |
|
|
4632 | fi |
|
|
4633 | |
|
|
4634 | if test $ac_cv_header_stdc = yes; then |
|
|
4635 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
4636 | if test "$cross_compiling" = yes; then |
|
|
4637 | : |
|
|
4638 | else |
|
|
4639 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4640 | /* confdefs.h. */ |
|
|
4641 | _ACEOF |
|
|
4642 | cat confdefs.h >>conftest.$ac_ext |
|
|
4643 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4644 | /* end confdefs.h. */ |
|
|
4645 | #include <ctype.h> |
|
|
4646 | #if ((' ' & 0x0FF) == 0x020) |
|
|
4647 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
4648 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
4649 | #else |
|
|
4650 | # define ISLOWER(c) \ |
|
|
4651 | (('a' <= (c) && (c) <= 'i') \ |
|
|
4652 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
4653 | || ('s' <= (c) && (c) <= 'z')) |
|
|
4654 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
4655 | #endif |
|
|
4656 | |
|
|
4657 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
4658 | int |
|
|
4659 | main () |
|
|
4660 | { |
|
|
4661 | int i; |
|
|
4662 | for (i = 0; i < 256; i++) |
|
|
4663 | if (XOR (islower (i), ISLOWER (i)) |
|
|
4664 | || toupper (i) != TOUPPER (i)) |
|
|
4665 | exit(2); |
|
|
4666 | exit (0); |
|
|
4667 | } |
|
|
4668 | _ACEOF |
|
|
4669 | rm -f conftest$ac_exeext |
|
|
4670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
4671 | (eval $ac_link) 2>&5 |
|
|
4672 | ac_status=$? |
|
|
4673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4674 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
4675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4676 | (eval $ac_try) 2>&5 |
|
|
4677 | ac_status=$? |
|
|
4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4679 | (exit $ac_status); }; }; then |
|
|
4680 | : |
|
|
4681 | else |
|
|
4682 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
4683 | echo "$as_me: failed program was:" >&5 |
|
|
4684 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4685 | |
|
|
4686 | ( exit $ac_status ) |
|
|
4687 | ac_cv_header_stdc=no |
|
|
4688 | fi |
|
|
4689 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
4690 | fi |
|
|
4691 | fi |
|
|
4692 | fi |
|
|
4693 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
4694 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
4695 | if test $ac_cv_header_stdc = yes; then |
|
|
4696 | |
|
|
4697 | cat >>confdefs.h <<\_ACEOF |
|
|
4698 | #define STDC_HEADERS 1 |
|
|
4699 | _ACEOF |
|
|
4700 | |
|
|
4701 | fi |
|
|
4702 | |
|
|
4703 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
4704 | |
|
|
4705 | |
|
|
4706 | |
|
|
4707 | |
|
|
4708 | |
|
|
4709 | |
|
|
4710 | |
|
|
4711 | |
|
|
4712 | |
|
|
4713 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
4714 | inttypes.h stdint.h unistd.h |
|
|
4715 | do |
|
|
4716 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4717 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4718 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4719 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4721 | else |
|
|
4722 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4723 | /* confdefs.h. */ |
|
|
4724 | _ACEOF |
|
|
4725 | cat confdefs.h >>conftest.$ac_ext |
|
|
4726 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4727 | /* end confdefs.h. */ |
|
|
4728 | $ac_includes_default |
|
|
4729 | |
|
|
4730 | #include <$ac_header> |
|
|
4731 | _ACEOF |
|
|
4732 | rm -f conftest.$ac_objext |
|
|
4733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4734 | (eval $ac_compile) 2>conftest.er1 |
|
|
4735 | ac_status=$? |
|
|
4736 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4737 | rm -f conftest.er1 |
|
|
4738 | cat conftest.err >&5 |
|
|
4739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4740 | (exit $ac_status); } && |
|
|
4741 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4743 | (eval $ac_try) 2>&5 |
|
|
4744 | ac_status=$? |
|
|
4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4746 | (exit $ac_status); }; } && |
|
|
4747 | { ac_try='test -s conftest.$ac_objext' |
|
|
4748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4749 | (eval $ac_try) 2>&5 |
|
|
4750 | ac_status=$? |
|
|
4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4752 | (exit $ac_status); }; }; then |
|
|
4753 | eval "$as_ac_Header=yes" |
|
|
4754 | else |
|
|
4755 | echo "$as_me: failed program was:" >&5 |
|
|
4756 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4757 | |
|
|
4758 | eval "$as_ac_Header=no" |
|
|
4759 | fi |
|
|
4760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4761 | fi |
|
|
4762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4763 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4764 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4765 | cat >>confdefs.h <<_ACEOF |
|
|
4766 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4767 | _ACEOF |
|
|
4768 | |
|
|
4769 | fi |
|
|
4770 | |
|
|
4771 | done |
|
|
4772 | |
|
|
4773 | |
|
|
4774 | |
|
|
4775 | for ac_header in dlfcn.h |
|
|
4776 | do |
|
|
4777 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
4778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4779 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4780 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4781 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4783 | fi |
|
|
4784 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4785 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4786 | else |
|
|
4787 | # Is the header compilable? |
|
|
4788 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
|
|
4789 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
|
|
4790 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4791 | /* confdefs.h. */ |
|
|
4792 | _ACEOF |
|
|
4793 | cat confdefs.h >>conftest.$ac_ext |
|
|
4794 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4795 | /* end confdefs.h. */ |
|
|
4796 | $ac_includes_default |
|
|
4797 | #include <$ac_header> |
|
|
4798 | _ACEOF |
|
|
4799 | rm -f conftest.$ac_objext |
|
|
4800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
4801 | (eval $ac_compile) 2>conftest.er1 |
|
|
4802 | ac_status=$? |
|
|
4803 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4804 | rm -f conftest.er1 |
|
|
4805 | cat conftest.err >&5 |
|
|
4806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4807 | (exit $ac_status); } && |
|
|
4808 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
4809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4810 | (eval $ac_try) 2>&5 |
|
|
4811 | ac_status=$? |
|
|
4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4813 | (exit $ac_status); }; } && |
|
|
4814 | { ac_try='test -s conftest.$ac_objext' |
|
|
4815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
4816 | (eval $ac_try) 2>&5 |
|
|
4817 | ac_status=$? |
|
|
4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4819 | (exit $ac_status); }; }; then |
|
|
4820 | ac_header_compiler=yes |
|
|
4821 | else |
|
|
4822 | echo "$as_me: failed program was:" >&5 |
|
|
4823 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4824 | |
|
|
4825 | ac_header_compiler=no |
|
|
4826 | fi |
|
|
4827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
4828 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
|
|
4829 | echo "${ECHO_T}$ac_header_compiler" >&6 |
|
|
4830 | |
|
|
4831 | # Is the header present? |
|
|
4832 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
|
|
4833 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
|
|
4834 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4835 | /* confdefs.h. */ |
|
|
4836 | _ACEOF |
|
|
4837 | cat confdefs.h >>conftest.$ac_ext |
|
|
4838 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4839 | /* end confdefs.h. */ |
|
|
4840 | #include <$ac_header> |
|
|
4841 | _ACEOF |
|
|
4842 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4843 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4844 | ac_status=$? |
|
|
4845 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4846 | rm -f conftest.er1 |
|
|
4847 | cat conftest.err >&5 |
|
|
4848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4849 | (exit $ac_status); } >/dev/null; then |
|
|
4850 | if test -s conftest.err; then |
|
|
4851 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4852 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4853 | else |
|
|
4854 | ac_cpp_err= |
|
|
4855 | fi |
|
|
4856 | else |
|
|
4857 | ac_cpp_err=yes |
|
|
4858 | fi |
|
|
4859 | if test -z "$ac_cpp_err"; then |
|
|
4860 | ac_header_preproc=yes |
|
|
4861 | else |
|
|
4862 | echo "$as_me: failed program was:" >&5 |
|
|
4863 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4864 | |
|
|
4865 | ac_header_preproc=no |
|
|
4866 | fi |
|
|
4867 | rm -f conftest.err conftest.$ac_ext |
|
|
4868 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
|
|
4869 | echo "${ECHO_T}$ac_header_preproc" >&6 |
|
|
4870 | |
|
|
4871 | # So? What about this header? |
|
|
4872 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
|
|
4873 | yes:no: ) |
|
|
4874 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
4875 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
4876 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
|
|
4877 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
|
|
4878 | ac_header_preproc=yes |
|
|
4879 | ;; |
|
|
4880 | no:yes:* ) |
|
|
4881 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
|
|
4882 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
|
|
4883 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
|
|
4884 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
|
|
4885 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
|
|
4886 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
|
|
4887 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
4888 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
4889 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
|
|
4890 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
|
|
4891 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
|
|
4892 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
|
|
4893 | ( |
|
|
4894 | cat <<\_ASBOX |
|
|
4895 | ## ------------------------------------------ ## |
|
|
4896 | ## Report this to the AC_PACKAGE_NAME lists. ## |
|
|
4897 | ## ------------------------------------------ ## |
|
|
4898 | _ASBOX |
|
|
4899 | ) | |
|
|
4900 | sed "s/^/$as_me: WARNING: /" >&2 |
|
|
4901 | ;; |
|
|
4902 | esac |
|
|
4903 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
4904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
4905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
4906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4907 | else |
|
|
4908 | eval "$as_ac_Header=\$ac_header_preproc" |
|
|
4909 | fi |
|
|
4910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
4911 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
4912 | |
|
|
4913 | fi |
|
|
4914 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
4915 | cat >>confdefs.h <<_ACEOF |
|
|
4916 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
4917 | _ACEOF |
|
|
4918 | |
|
|
4919 | fi |
|
|
4920 | |
|
|
4921 | done |
|
|
4922 | |
|
|
4923 | |
|
|
4924 | |
|
|
4925 | |
|
|
4926 | |
|
|
4927 | # Only perform the check for file, if the check method requires it |
|
|
4928 | case "$deplibs_check_method" in |
|
|
4929 | file_magic*) |
|
|
4930 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
|
4931 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
|
|
4932 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 |
|
|
4933 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4935 | else |
|
|
4936 | case "$MAGIC_CMD" in |
|
|
4937 | /*) |
|
|
4938 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
4939 | ;; |
|
|
4940 | ?:/*) |
|
|
4941 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
4942 | ;; |
|
|
4943 | *) |
|
|
4944 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
4945 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
4946 | ac_dummy="/usr/bin:$PATH" |
|
|
4947 | for ac_dir in $ac_dummy; do |
|
|
4948 | test -z "$ac_dir" && ac_dir=. |
|
|
4949 | if test -f $ac_dir/${ac_tool_prefix}file; then |
|
|
4950 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
|
4951 | if test -n "$file_magic_test_file"; then |
|
|
4952 | case "$deplibs_check_method" in |
|
|
4953 | "file_magic "*) |
|
|
4954 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
4955 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4956 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
4957 | egrep "$file_magic_regex" > /dev/null; then |
|
|
4958 | : |
|
|
4959 | else |
|
|
4960 | cat <<EOF 1>&2 |
|
|
4961 | |
|
|
4962 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
4963 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
4964 | *** The result is that libtool may fail to recognize shared libraries |
|
|
4965 | *** as such. This will affect the creation of libtool libraries that |
|
|
4966 | *** depend on shared libraries, but programs linked with such libtool |
|
|
4967 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
4968 | *** may want to report the problem to your system manager and/or to |
|
|
4969 | *** bug-libtool@gnu.org |
|
|
4970 | |
|
|
4971 | EOF |
|
|
4972 | fi ;; |
|
|
4973 | esac |
|
|
4974 | fi |
|
|
4975 | break |
|
|
4976 | fi |
|
|
4977 | done |
|
|
4978 | IFS="$ac_save_ifs" |
|
|
4979 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
4980 | ;; |
|
|
4981 | esac |
|
|
4982 | fi |
|
|
4983 | |
|
|
4984 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
4985 | if test -n "$MAGIC_CMD"; then |
|
|
4986 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
4987 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
4988 | else |
|
|
4989 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4990 | echo "${ECHO_T}no" >&6 |
|
|
4991 | fi |
|
|
4992 | |
|
|
4993 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
|
4994 | if test -n "$ac_tool_prefix"; then |
|
|
4995 | echo "$as_me:$LINENO: checking for file" >&5 |
|
|
4996 | echo $ECHO_N "checking for file... $ECHO_C" >&6 |
|
|
4997 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
|
|
4998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4999 | else |
|
|
5000 | case "$MAGIC_CMD" in |
|
|
5001 | /*) |
|
|
5002 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
|
5003 | ;; |
|
|
5004 | ?:/*) |
|
|
5005 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
|
|
5006 | ;; |
|
|
5007 | *) |
|
|
5008 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
|
|
5009 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
|
5010 | ac_dummy="/usr/bin:$PATH" |
|
|
5011 | for ac_dir in $ac_dummy; do |
|
|
5012 | test -z "$ac_dir" && ac_dir=. |
|
|
5013 | if test -f $ac_dir/file; then |
|
|
5014 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
|
5015 | if test -n "$file_magic_test_file"; then |
|
|
5016 | case "$deplibs_check_method" in |
|
|
5017 | "file_magic "*) |
|
|
5018 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
|
|
5019 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5020 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
|
5021 | egrep "$file_magic_regex" > /dev/null; then |
|
|
5022 | : |
|
|
5023 | else |
|
|
5024 | cat <<EOF 1>&2 |
|
|
5025 | |
|
|
5026 | *** Warning: the command libtool uses to detect shared libraries, |
|
|
5027 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
|
|
5028 | *** The result is that libtool may fail to recognize shared libraries |
|
|
5029 | *** as such. This will affect the creation of libtool libraries that |
|
|
5030 | *** depend on shared libraries, but programs linked with such libtool |
|
|
5031 | *** libraries will work regardless of this problem. Nevertheless, you |
|
|
5032 | *** may want to report the problem to your system manager and/or to |
|
|
5033 | *** bug-libtool@gnu.org |
|
|
5034 | |
|
|
5035 | EOF |
|
|
5036 | fi ;; |
|
|
5037 | esac |
|
|
5038 | fi |
|
|
5039 | break |
|
|
5040 | fi |
|
|
5041 | done |
|
|
5042 | IFS="$ac_save_ifs" |
|
|
5043 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
|
|
5044 | ;; |
|
|
5045 | esac |
|
|
5046 | fi |
|
|
5047 | |
|
|
5048 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
|
5049 | if test -n "$MAGIC_CMD"; then |
|
|
5050 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
|
|
5051 | echo "${ECHO_T}$MAGIC_CMD" >&6 |
|
|
5052 | else |
|
|
5053 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5054 | echo "${ECHO_T}no" >&6 |
|
|
5055 | fi |
|
|
5056 | |
|
|
5057 | else |
|
|
5058 | MAGIC_CMD=: |
|
|
5059 | fi |
|
|
5060 | fi |
|
|
5061 | |
|
|
5062 | fi |
|
|
5063 | ;; |
|
|
5064 | esac |
|
|
5065 | |
|
|
5066 | if test -n "$ac_tool_prefix"; then |
|
|
5067 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
|
5068 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
|
5069 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5070 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5071 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
|
|
5072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5073 | else |
|
|
5074 | if test -n "$RANLIB"; then |
|
|
5075 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
|
5076 | else |
|
|
5077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5078 | for as_dir in $PATH |
|
|
5079 | do |
|
|
5080 | IFS=$as_save_IFS |
|
|
5081 | test -z "$as_dir" && as_dir=. |
|
|
5082 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5083 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5084 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
|
5085 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5086 | break 2 |
|
|
5087 | fi |
|
|
5088 | done |
|
|
5089 | done |
|
|
5090 | |
|
|
5091 | fi |
|
|
5092 | fi |
|
|
5093 | RANLIB=$ac_cv_prog_RANLIB |
|
|
5094 | if test -n "$RANLIB"; then |
|
|
5095 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
|
|
5096 | echo "${ECHO_T}$RANLIB" >&6 |
|
|
5097 | else |
|
|
5098 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5099 | echo "${ECHO_T}no" >&6 |
|
|
5100 | fi |
|
|
5101 | |
|
|
5102 | fi |
|
|
5103 | if test -z "$ac_cv_prog_RANLIB"; then |
|
|
5104 | ac_ct_RANLIB=$RANLIB |
|
|
5105 | # Extract the first word of "ranlib", so it can be a program name with args. |
|
|
5106 | set dummy ranlib; ac_word=$2 |
|
|
5107 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5109 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
|
|
5110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5111 | else |
|
|
5112 | if test -n "$ac_ct_RANLIB"; then |
|
|
5113 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
|
5114 | else |
|
|
5115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5116 | for as_dir in $PATH |
|
|
5117 | do |
|
|
5118 | IFS=$as_save_IFS |
|
|
5119 | test -z "$as_dir" && as_dir=. |
|
|
5120 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5121 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5122 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
|
5123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5124 | break 2 |
|
|
5125 | fi |
|
|
5126 | done |
|
|
5127 | done |
|
|
5128 | |
|
|
5129 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
|
|
5130 | fi |
|
|
5131 | fi |
|
|
5132 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
|
5133 | if test -n "$ac_ct_RANLIB"; then |
|
|
5134 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
|
|
5135 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
|
|
5136 | else |
|
|
5137 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5138 | echo "${ECHO_T}no" >&6 |
|
|
5139 | fi |
|
|
5140 | |
|
|
5141 | RANLIB=$ac_ct_RANLIB |
|
|
5142 | else |
|
|
5143 | RANLIB="$ac_cv_prog_RANLIB" |
|
|
5144 | fi |
|
|
5145 | |
|
|
5146 | if test -n "$ac_tool_prefix"; then |
|
|
5147 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
|
5148 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
|
5149 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5151 | if test "${ac_cv_prog_STRIP+set}" = set; then |
|
|
5152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5153 | else |
|
|
5154 | if test -n "$STRIP"; then |
|
|
5155 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
|
5156 | else |
|
|
5157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5158 | for as_dir in $PATH |
|
|
5159 | do |
|
|
5160 | IFS=$as_save_IFS |
|
|
5161 | test -z "$as_dir" && as_dir=. |
|
|
5162 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5163 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5164 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
|
5165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5166 | break 2 |
|
|
5167 | fi |
|
|
5168 | done |
|
|
5169 | done |
|
|
5170 | |
|
|
5171 | fi |
|
|
5172 | fi |
|
|
5173 | STRIP=$ac_cv_prog_STRIP |
|
|
5174 | if test -n "$STRIP"; then |
|
|
5175 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
|
|
5176 | echo "${ECHO_T}$STRIP" >&6 |
|
|
5177 | else |
|
|
5178 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5179 | echo "${ECHO_T}no" >&6 |
|
|
5180 | fi |
|
|
5181 | |
|
|
5182 | fi |
|
|
5183 | if test -z "$ac_cv_prog_STRIP"; then |
|
|
5184 | ac_ct_STRIP=$STRIP |
|
|
5185 | # Extract the first word of "strip", so it can be a program name with args. |
|
|
5186 | set dummy strip; ac_word=$2 |
|
|
5187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
5188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
5189 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
|
|
5190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5191 | else |
|
|
5192 | if test -n "$ac_ct_STRIP"; then |
|
|
5193 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
|
5194 | else |
|
|
5195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
5196 | for as_dir in $PATH |
|
|
5197 | do |
|
|
5198 | IFS=$as_save_IFS |
|
|
5199 | test -z "$as_dir" && as_dir=. |
|
|
5200 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
5201 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
5202 | ac_cv_prog_ac_ct_STRIP="strip" |
|
|
5203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
5204 | break 2 |
|
|
5205 | fi |
|
|
5206 | done |
|
|
5207 | done |
|
|
5208 | |
|
|
5209 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
|
|
5210 | fi |
|
|
5211 | fi |
|
|
5212 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
|
5213 | if test -n "$ac_ct_STRIP"; then |
|
|
5214 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
|
|
5215 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
|
|
5216 | else |
|
|
5217 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
5218 | echo "${ECHO_T}no" >&6 |
|
|
5219 | fi |
|
|
5220 | |
|
|
5221 | STRIP=$ac_ct_STRIP |
|
|
5222 | else |
|
|
5223 | STRIP="$ac_cv_prog_STRIP" |
|
|
5224 | fi |
|
|
5225 | |
|
|
5226 | |
|
|
5227 | enable_dlopen=no |
|
|
5228 | enable_win32_dll=no |
|
|
5229 | |
|
|
5230 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
|
|
5231 | if test "${enable_libtool_lock+set}" = set; then |
|
|
5232 | enableval="$enable_libtool_lock" |
|
|
5233 | |
|
|
5234 | fi; |
|
|
5235 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
|
5236 | |
|
|
5237 | # Some flags need to be propagated to the compiler or linker for good |
|
|
5238 | # libtool support. |
|
|
5239 | case "$host" in |
|
|
5240 | *-*-irix6*) |
|
|
5241 | # Find out which ABI we are using. |
|
|
5242 | echo '#line 5242 "configure"' > conftest.$ac_ext |
|
|
5243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5244 | (eval $ac_compile) 2>&5 |
|
|
5245 | ac_status=$? |
|
|
5246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5247 | (exit $ac_status); }; then |
|
|
5248 | case "`/usr/bin/file conftest.$ac_objext`" in |
|
|
5249 | *32-bit*) |
|
|
5250 | LD="${LD-ld} -32" |
|
|
5251 | ;; |
|
|
5252 | *N32*) |
|
|
5253 | LD="${LD-ld} -n32" |
|
|
5254 | ;; |
|
|
5255 | *64-bit*) |
|
|
5256 | LD="${LD-ld} -64" |
|
|
5257 | ;; |
|
|
5258 | esac |
|
|
5259 | fi |
|
|
5260 | rm -rf conftest* |
|
|
5261 | ;; |
|
|
5262 | |
|
|
5263 | *-*-sco3.2v5*) |
|
|
5264 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
|
5265 | SAVE_CFLAGS="$CFLAGS" |
|
|
5266 | CFLAGS="$CFLAGS -belf" |
|
|
5267 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
|
|
5268 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
|
|
5269 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
|
|
5270 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5271 | else |
|
|
5272 | |
|
|
5273 | |
|
|
5274 | ac_ext=c |
|
|
5275 | ac_cpp='$CPP $CPPFLAGS' |
|
|
5276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
5279 | |
|
|
5280 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5281 | /* confdefs.h. */ |
|
|
5282 | _ACEOF |
|
|
5283 | cat confdefs.h >>conftest.$ac_ext |
|
|
5284 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5285 | /* end confdefs.h. */ |
|
|
5286 | |
|
|
5287 | int |
|
|
5288 | main () |
|
|
5289 | { |
|
|
5290 | |
|
|
5291 | ; |
|
|
5292 | return 0; |
|
|
5293 | } |
|
|
5294 | _ACEOF |
|
|
5295 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5297 | (eval $ac_link) 2>conftest.er1 |
|
|
5298 | ac_status=$? |
|
|
5299 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5300 | rm -f conftest.er1 |
|
|
5301 | cat conftest.err >&5 |
|
|
5302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5303 | (exit $ac_status); } && |
|
|
5304 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
|
|
5305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5306 | (eval $ac_try) 2>&5 |
|
|
5307 | ac_status=$? |
|
|
5308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5309 | (exit $ac_status); }; } && |
|
|
5310 | { ac_try='test -s conftest$ac_exeext' |
|
|
5311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5312 | (eval $ac_try) 2>&5 |
|
|
5313 | ac_status=$? |
|
|
5314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5315 | (exit $ac_status); }; }; then |
|
|
5316 | lt_cv_cc_needs_belf=yes |
|
|
5317 | else |
|
|
5318 | echo "$as_me: failed program was:" >&5 |
|
|
5319 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5320 | |
|
|
5321 | lt_cv_cc_needs_belf=no |
|
|
5322 | fi |
|
|
5323 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5324 | conftest$ac_exeext conftest.$ac_ext |
|
|
5325 | ac_ext=cc |
|
|
5326 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5327 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5328 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5329 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
5330 | |
|
|
5331 | fi |
|
|
5332 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
|
|
5333 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
|
|
5334 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
|
5335 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
|
5336 | CFLAGS="$SAVE_CFLAGS" |
|
|
5337 | fi |
|
|
5338 | ;; |
|
|
5339 | |
|
|
5340 | |
|
|
5341 | esac |
|
|
5342 | |
|
|
5343 | # Sed substitution that helps us do robust quoting. It backslashifies |
|
|
5344 | # metacharacters that are still active within double-quoted strings. |
|
|
5345 | Xsed='sed -e s/^X//' |
|
|
5346 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
|
|
5347 | |
|
|
5348 | # Same as above, but do not quote variable references. |
|
|
5349 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
|
|
5350 | |
|
|
5351 | # Sed substitution to delay expansion of an escaped shell variable in a |
|
|
5352 | # double_quote_subst'ed string. |
|
|
5353 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
|
5354 | |
|
|
5355 | # Constants: |
|
|
5356 | rm="rm -f" |
|
|
5357 | |
|
|
5358 | # Global variables: |
|
|
5359 | default_ofile=libtool |
|
|
5360 | can_build_shared=yes |
|
|
5361 | |
|
|
5362 | # All known linkers require a `.a' archive for static linking (except M$VC, |
|
|
5363 | # which needs '.lib'). |
|
|
5364 | libext=a |
|
|
5365 | ltmain="$ac_aux_dir/ltmain.sh" |
|
|
5366 | ofile="$default_ofile" |
|
|
5367 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
|
5368 | need_locks="$enable_libtool_lock" |
|
|
5369 | |
|
|
5370 | old_CC="$CC" |
|
|
5371 | old_CFLAGS="$CFLAGS" |
|
|
5372 | |
|
|
5373 | # Set sane defaults for various variables |
|
|
5374 | test -z "$AR" && AR=ar |
|
|
5375 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
|
5376 | test -z "$AS" && AS=as |
|
|
5377 | test -z "$CC" && CC=cc |
|
|
5378 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
|
5379 | test -z "$LD" && LD=ld |
|
|
5380 | test -z "$LN_S" && LN_S="ln -s" |
|
|
5381 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
|
5382 | test -z "$NM" && NM=nm |
|
|
5383 | test -z "$OBJDUMP" && OBJDUMP=objdump |
|
|
5384 | test -z "$RANLIB" && RANLIB=: |
|
|
5385 | test -z "$STRIP" && STRIP=: |
|
|
5386 | test -z "$ac_objext" && ac_objext=o |
|
|
5387 | |
|
|
5388 | if test x"$host" != x"$build"; then |
|
|
5389 | ac_tool_prefix=${host_alias}- |
|
|
5390 | else |
|
|
5391 | ac_tool_prefix= |
|
|
5392 | fi |
|
|
5393 | |
|
|
5394 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
|
|
5395 | case "$host_os" in |
|
|
5396 | linux-gnu*) ;; |
|
|
5397 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
|
|
5398 | esac |
|
|
5399 | |
|
|
5400 | case "$host_os" in |
|
|
5401 | aix3*) |
|
|
5402 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
5403 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
5404 | # vanish in a puff of smoke. |
|
|
5405 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
5406 | COLLECT_NAMES= |
|
|
5407 | export COLLECT_NAMES |
|
|
5408 | fi |
|
|
5409 | ;; |
|
|
5410 | esac |
|
|
5411 | |
|
|
5412 | # Determine commands to create old-style static archives. |
|
|
5413 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
|
|
5414 | old_postinstall_cmds='chmod 644 $oldlib' |
|
|
5415 | old_postuninstall_cmds= |
|
|
5416 | |
|
|
5417 | if test -n "$RANLIB"; then |
|
|
5418 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
|
5419 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
|
|
5420 | fi |
|
|
5421 | |
|
|
5422 | # Allow CC to be a program name with arguments. |
|
|
5423 | set dummy $CC |
|
|
5424 | compiler="$2" |
|
|
5425 | |
|
|
5426 | ## FIXME: this should be a separate macro |
|
|
5427 | ## |
|
|
5428 | echo "$as_me:$LINENO: checking for objdir" >&5 |
|
|
5429 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 |
|
|
5430 | rm -f .libs 2>/dev/null |
|
|
5431 | mkdir .libs 2>/dev/null |
|
|
5432 | if test -d .libs; then |
|
|
5433 | objdir=.libs |
|
|
5434 | else |
|
|
5435 | # MS-DOS does not allow filenames that begin with a dot. |
|
|
5436 | objdir=_libs |
|
|
5437 | fi |
|
|
5438 | rmdir .libs 2>/dev/null |
|
|
5439 | echo "$as_me:$LINENO: result: $objdir" >&5 |
|
|
5440 | echo "${ECHO_T}$objdir" >&6 |
|
|
5441 | ## |
|
|
5442 | ## END FIXME |
|
|
5443 | |
|
|
5444 | |
|
|
5445 | ## FIXME: this should be a separate macro |
|
|
5446 | ## |
|
|
5447 | |
|
|
5448 | # Check whether --with-pic or --without-pic was given. |
|
|
5449 | if test "${with_pic+set}" = set; then |
|
|
5450 | withval="$with_pic" |
|
|
5451 | pic_mode="$withval" |
|
|
5452 | else |
|
|
5453 | pic_mode=default |
|
|
5454 | fi; |
|
|
5455 | test -z "$pic_mode" && pic_mode=default |
|
|
5456 | |
|
|
5457 | # We assume here that the value for lt_cv_prog_cc_pic will not be cached |
|
|
5458 | # in isolation, and that seeing it set (from the cache) indicates that |
|
|
5459 | # the associated values are set (in the cache) correctly too. |
|
|
5460 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
|
|
5461 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 |
|
|
5462 | if test "${lt_cv_prog_cc_pic+set}" = set; then |
|
|
5463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5464 | else |
|
|
5465 | lt_cv_prog_cc_pic= |
|
|
5466 | lt_cv_prog_cc_shlib= |
|
|
5467 | lt_cv_prog_cc_wl= |
|
|
5468 | lt_cv_prog_cc_static= |
|
|
5469 | lt_cv_prog_cc_no_builtin= |
|
|
5470 | lt_cv_prog_cc_can_build_shared=$can_build_shared |
|
|
5471 | |
|
|
5472 | if test "$GCC" = yes; then |
|
|
5473 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5474 | lt_cv_prog_cc_static='-static' |
|
|
5475 | |
|
|
5476 | case "$host_os" in |
|
|
5477 | beos* | irix5* | irix6* | osf3* | osf4* | osf5*) |
|
|
5478 | # PIC is the default for these OSes. |
|
|
5479 | ;; |
|
|
5480 | aix*) |
|
|
5481 | # Below there is a dirty hack to force normal static linking with -ldl |
|
|
5482 | # The problem is because libdl dynamically linked with both libc and |
|
|
5483 | # libC (AIX C++ library), which obviously doesn't included in libraries |
|
|
5484 | # list by gcc. This cause undefined symbols with -static flags. |
|
|
5485 | # This hack allows C programs to be linked with "-static -ldl", but |
|
|
5486 | # we not sure about C++ programs. |
|
|
5487 | lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" |
|
|
5488 | ;; |
|
|
5489 | cygwin* | mingw* | pw32* | os2*) |
|
|
5490 | # This hack is so that the source file can tell whether it is being |
|
|
5491 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5492 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
5493 | ;; |
|
|
5494 | amigaos*) |
|
|
5495 | # FIXME: we need at least 68020 code to build shared libraries, but |
|
|
5496 | # adding the `-m68020' flag to GCC prevents building anything better, |
|
|
5497 | # like `-m68040'. |
|
|
5498 | lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' |
|
|
5499 | ;; |
|
|
5500 | sysv4*MP*) |
|
|
5501 | if test -d /usr/nec; then |
|
|
5502 | lt_cv_prog_cc_pic=-Kconform_pic |
|
|
5503 | fi |
|
|
5504 | ;; |
|
|
5505 | *) |
|
|
5506 | lt_cv_prog_cc_pic='-fPIC' |
|
|
5507 | ;; |
|
|
5508 | esac |
|
|
5509 | else |
|
|
5510 | # PORTME Check for PIC flags for the system compiler. |
|
|
5511 | case "$host_os" in |
|
|
5512 | aix3* | aix4*) |
|
|
5513 | # All AIX code is PIC. |
|
|
5514 | lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' |
|
|
5515 | ;; |
|
|
5516 | |
|
|
5517 | hpux9* | hpux10* | hpux11*) |
|
|
5518 | # Is there a better lt_cv_prog_cc_static that works with the bundled CC? |
|
|
5519 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5520 | lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" |
|
|
5521 | lt_cv_prog_cc_pic='+Z' |
|
|
5522 | ;; |
|
|
5523 | |
|
|
5524 | irix5* | irix6*) |
|
|
5525 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5526 | lt_cv_prog_cc_static='-non_shared' |
|
|
5527 | # PIC (with -KPIC) is the default. |
|
|
5528 | ;; |
|
|
5529 | |
|
|
5530 | cygwin* | mingw* | pw32* | os2*) |
|
|
5531 | # This hack is so that the source file can tell whether it is being |
|
|
5532 | # built for inclusion in a dll (and should export symbols for example). |
|
|
5533 | lt_cv_prog_cc_pic='-DDLL_EXPORT' |
|
|
5534 | ;; |
|
|
5535 | |
|
|
5536 | newsos6) |
|
|
5537 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5538 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5539 | ;; |
|
|
5540 | |
|
|
5541 | osf3* | osf4* | osf5*) |
|
|
5542 | # All OSF/1 code is PIC. |
|
|
5543 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5544 | lt_cv_prog_cc_static='-non_shared' |
|
|
5545 | ;; |
|
|
5546 | |
|
|
5547 | sco3.2v5*) |
|
|
5548 | lt_cv_prog_cc_pic='-Kpic' |
|
|
5549 | lt_cv_prog_cc_static='-dn' |
|
|
5550 | lt_cv_prog_cc_shlib='-belf' |
|
|
5551 | ;; |
|
|
5552 | |
|
|
5553 | solaris*) |
|
|
5554 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5555 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5556 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5557 | ;; |
|
|
5558 | |
|
|
5559 | sunos4*) |
|
|
5560 | lt_cv_prog_cc_pic='-PIC' |
|
|
5561 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5562 | lt_cv_prog_cc_wl='-Qoption ld ' |
|
|
5563 | ;; |
|
|
5564 | |
|
|
5565 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
5566 | lt_cv_prog_cc_pic='-KPIC' |
|
|
5567 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5568 | if test "x$host_vendor" = xsni; then |
|
|
5569 | lt_cv_prog_cc_wl='-LD' |
|
|
5570 | else |
|
|
5571 | lt_cv_prog_cc_wl='-Wl,' |
|
|
5572 | fi |
|
|
5573 | ;; |
|
|
5574 | |
|
|
5575 | uts4*) |
|
|
5576 | lt_cv_prog_cc_pic='-pic' |
|
|
5577 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5578 | ;; |
|
|
5579 | |
|
|
5580 | sysv4*MP*) |
|
|
5581 | if test -d /usr/nec ;then |
|
|
5582 | lt_cv_prog_cc_pic='-Kconform_pic' |
|
|
5583 | lt_cv_prog_cc_static='-Bstatic' |
|
|
5584 | fi |
|
|
5585 | ;; |
|
|
5586 | |
|
|
5587 | *) |
|
|
5588 | lt_cv_prog_cc_can_build_shared=no |
|
|
5589 | ;; |
|
|
5590 | esac |
|
|
5591 | fi |
|
|
5592 | |
|
|
5593 | fi |
|
|
5594 | |
|
|
5595 | if test -z "$lt_cv_prog_cc_pic"; then |
|
|
5596 | echo "$as_me:$LINENO: result: none" >&5 |
|
|
5597 | echo "${ECHO_T}none" >&6 |
|
|
5598 | else |
|
|
5599 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 |
|
|
5600 | echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 |
|
|
5601 | |
|
|
5602 | # Check to make sure the pic_flag actually works. |
|
|
5603 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 |
|
|
5604 | echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 |
|
|
5605 | if test "${lt_cv_prog_cc_pic_works+set}" = set; then |
|
|
5606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5607 | else |
|
|
5608 | save_CFLAGS="$CFLAGS" |
|
|
5609 | CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" |
|
|
5610 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5611 | /* confdefs.h. */ |
|
|
5612 | _ACEOF |
|
|
5613 | cat confdefs.h >>conftest.$ac_ext |
|
|
5614 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5615 | /* end confdefs.h. */ |
|
|
5616 | |
|
|
5617 | int |
|
|
5618 | main () |
|
|
5619 | { |
|
|
5620 | |
|
|
5621 | ; |
|
|
5622 | return 0; |
|
|
5623 | } |
|
|
5624 | _ACEOF |
|
|
5625 | rm -f conftest.$ac_objext |
|
|
5626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5627 | (eval $ac_compile) 2>conftest.er1 |
|
|
5628 | ac_status=$? |
|
|
5629 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5630 | rm -f conftest.er1 |
|
|
5631 | cat conftest.err >&5 |
|
|
5632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5633 | (exit $ac_status); } && |
|
|
5634 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5636 | (eval $ac_try) 2>&5 |
|
|
5637 | ac_status=$? |
|
|
5638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5639 | (exit $ac_status); }; } && |
|
|
5640 | { ac_try='test -s conftest.$ac_objext' |
|
|
5641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5642 | (eval $ac_try) 2>&5 |
|
|
5643 | ac_status=$? |
|
|
5644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5645 | (exit $ac_status); }; }; then |
|
|
5646 | case "$host_os" in |
|
|
5647 | hpux9* | hpux10* | hpux11*) |
|
|
5648 | # On HP-UX, both CC and GCC only warn that PIC is supported... then |
|
|
5649 | # they create non-PIC objects. So, if there were any warnings, we |
|
|
5650 | # assume that PIC is not supported. |
|
|
5651 | if test -s conftest.err; then |
|
|
5652 | lt_cv_prog_cc_pic_works=no |
|
|
5653 | else |
|
|
5654 | lt_cv_prog_cc_pic_works=yes |
|
|
5655 | fi |
|
|
5656 | ;; |
|
|
5657 | *) |
|
|
5658 | lt_cv_prog_cc_pic_works=yes |
|
|
5659 | ;; |
|
|
5660 | esac |
|
|
5661 | |
|
|
5662 | else |
|
|
5663 | echo "$as_me: failed program was:" >&5 |
|
|
5664 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5665 | |
|
|
5666 | lt_cv_prog_cc_pic_works=no |
|
|
5667 | |
|
|
5668 | fi |
|
|
5669 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5670 | CFLAGS="$save_CFLAGS" |
|
|
5671 | |
|
|
5672 | fi |
|
|
5673 | |
|
|
5674 | |
|
|
5675 | if test "X$lt_cv_prog_cc_pic_works" = Xno; then |
|
|
5676 | lt_cv_prog_cc_pic= |
|
|
5677 | lt_cv_prog_cc_can_build_shared=no |
|
|
5678 | else |
|
|
5679 | lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" |
|
|
5680 | fi |
|
|
5681 | |
|
|
5682 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 |
|
|
5683 | echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 |
|
|
5684 | fi |
|
|
5685 | ## |
|
|
5686 | ## END FIXME |
|
|
5687 | |
|
|
5688 | # Check for any special shared library compilation flags. |
|
|
5689 | if test -n "$lt_cv_prog_cc_shlib"; then |
|
|
5690 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 |
|
|
5691 | echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} |
|
|
5692 | if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : |
|
|
5693 | else |
|
|
5694 | { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
|
|
5695 | echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
|
|
5696 | lt_cv_prog_cc_can_build_shared=no |
|
|
5697 | fi |
|
|
5698 | fi |
|
|
5699 | |
|
|
5700 | ## FIXME: this should be a separate macro |
|
|
5701 | ## |
|
|
5702 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 |
|
|
5703 | echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 |
|
|
5704 | if test "${lt_cv_prog_cc_static_works+set}" = set; then |
|
|
5705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
5706 | else |
|
|
5707 | lt_cv_prog_cc_static_works=no |
|
|
5708 | save_LDFLAGS="$LDFLAGS" |
|
|
5709 | LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" |
|
|
5710 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5711 | /* confdefs.h. */ |
|
|
5712 | _ACEOF |
|
|
5713 | cat confdefs.h >>conftest.$ac_ext |
|
|
5714 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5715 | /* end confdefs.h. */ |
|
|
5716 | |
|
|
5717 | int |
|
|
5718 | main () |
|
|
5719 | { |
|
|
5720 | |
|
|
5721 | ; |
|
|
5722 | return 0; |
|
|
5723 | } |
|
|
5724 | _ACEOF |
|
|
5725 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
5726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
5727 | (eval $ac_link) 2>conftest.er1 |
|
|
5728 | ac_status=$? |
|
|
5729 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5730 | rm -f conftest.er1 |
|
|
5731 | cat conftest.err >&5 |
|
|
5732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5733 | (exit $ac_status); } && |
|
|
5734 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5736 | (eval $ac_try) 2>&5 |
|
|
5737 | ac_status=$? |
|
|
5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5739 | (exit $ac_status); }; } && |
|
|
5740 | { ac_try='test -s conftest$ac_exeext' |
|
|
5741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5742 | (eval $ac_try) 2>&5 |
|
|
5743 | ac_status=$? |
|
|
5744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5745 | (exit $ac_status); }; }; then |
|
|
5746 | lt_cv_prog_cc_static_works=yes |
|
|
5747 | else |
|
|
5748 | echo "$as_me: failed program was:" >&5 |
|
|
5749 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5750 | |
|
|
5751 | fi |
|
|
5752 | rm -f conftest.err conftest.$ac_objext \ |
|
|
5753 | conftest$ac_exeext conftest.$ac_ext |
|
|
5754 | LDFLAGS="$save_LDFLAGS" |
|
|
5755 | |
|
|
5756 | fi |
|
|
5757 | |
|
|
5758 | |
|
|
5759 | # Belt *and* braces to stop my trousers falling down: |
|
|
5760 | test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= |
|
|
5761 | echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 |
|
|
5762 | echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 |
|
|
5763 | |
|
|
5764 | pic_flag="$lt_cv_prog_cc_pic" |
|
|
5765 | special_shlib_compile_flags="$lt_cv_prog_cc_shlib" |
|
|
5766 | wl="$lt_cv_prog_cc_wl" |
|
|
5767 | link_static_flag="$lt_cv_prog_cc_static" |
|
|
5768 | no_builtin_flag="$lt_cv_prog_cc_no_builtin" |
|
|
5769 | can_build_shared="$lt_cv_prog_cc_can_build_shared" |
|
|
5770 | ## |
|
|
5771 | ## END FIXME |
|
|
5772 | |
|
|
5773 | |
|
|
5774 | ## FIXME: this should be a separate macro |
|
|
5775 | ## |
|
|
5776 | # Check to see if options -o and -c are simultaneously supported by compiler |
|
|
5777 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
|
5778 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
|
|
5779 | $rm -r conftest 2>/dev/null |
|
|
5780 | mkdir conftest |
|
|
5781 | cd conftest |
|
|
5782 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5783 | mkdir out |
|
|
5784 | # According to Tom Tromey, Ian Lance Taylor reported there are C compilers |
|
|
5785 | # that will create temporary files in the current directory regardless of |
|
|
5786 | # the output directory. Thus, making CWD read-only will cause this test |
|
|
5787 | # to fail, enabling locking or at least warning the user not to do parallel |
|
|
5788 | # builds. |
|
|
5789 | chmod -w . |
|
|
5790 | save_CFLAGS="$CFLAGS" |
|
|
5791 | CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" |
|
|
5792 | compiler_c_o=no |
|
|
5793 | if { (eval echo configure:5793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then |
|
|
5794 | # The compiler can only warn and ignore the option if not recognized |
|
|
5795 | # So say no if there are warnings |
|
|
5796 | if test -s out/conftest.err; then |
|
|
5797 | compiler_c_o=no |
|
|
5798 | else |
|
|
5799 | compiler_c_o=yes |
|
|
5800 | fi |
|
|
5801 | else |
|
|
5802 | # Append any errors to the config.log. |
|
|
5803 | cat out/conftest.err 1>&5 |
|
|
5804 | compiler_c_o=no |
|
|
5805 | fi |
|
|
5806 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5807 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5808 | CFLAGS="$save_CFLAGS" |
|
|
5809 | chmod u+w . |
|
|
5810 | $rm conftest* out/* |
|
|
5811 | rmdir out |
|
|
5812 | cd .. |
|
|
5813 | rmdir conftest |
|
|
5814 | $rm -r conftest 2>/dev/null |
|
|
5815 | |
|
|
5816 | if test x"$compiler_c_o" = x"yes"; then |
|
|
5817 | # Check to see if we can write to a .lo |
|
|
5818 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 |
|
|
5819 | echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 |
|
|
5820 | compiler_o_lo=no |
|
|
5821 | save_CFLAGS="$CFLAGS" |
|
|
5822 | CFLAGS="$CFLAGS -c -o conftest.lo" |
|
|
5823 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5824 | /* confdefs.h. */ |
|
|
5825 | _ACEOF |
|
|
5826 | cat confdefs.h >>conftest.$ac_ext |
|
|
5827 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5828 | /* end confdefs.h. */ |
|
|
5829 | |
|
|
5830 | int |
|
|
5831 | main () |
|
|
5832 | { |
|
|
5833 | int some_variable = 0; |
|
|
5834 | ; |
|
|
5835 | return 0; |
|
|
5836 | } |
|
|
5837 | _ACEOF |
|
|
5838 | rm -f conftest.$ac_objext |
|
|
5839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5840 | (eval $ac_compile) 2>conftest.er1 |
|
|
5841 | ac_status=$? |
|
|
5842 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5843 | rm -f conftest.er1 |
|
|
5844 | cat conftest.err >&5 |
|
|
5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5846 | (exit $ac_status); } && |
|
|
5847 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5849 | (eval $ac_try) 2>&5 |
|
|
5850 | ac_status=$? |
|
|
5851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5852 | (exit $ac_status); }; } && |
|
|
5853 | { ac_try='test -s conftest.$ac_objext' |
|
|
5854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5855 | (eval $ac_try) 2>&5 |
|
|
5856 | ac_status=$? |
|
|
5857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5858 | (exit $ac_status); }; }; then |
|
|
5859 | # The compiler can only warn and ignore the option if not recognized |
|
|
5860 | # So say no if there are warnings |
|
|
5861 | if test -s conftest.err; then |
|
|
5862 | compiler_o_lo=no |
|
|
5863 | else |
|
|
5864 | compiler_o_lo=yes |
|
|
5865 | fi |
|
|
5866 | |
|
|
5867 | else |
|
|
5868 | echo "$as_me: failed program was:" >&5 |
|
|
5869 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5870 | |
|
|
5871 | fi |
|
|
5872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5873 | echo "$as_me:$LINENO: result: $compiler_c_o" >&5 |
|
|
5874 | echo "${ECHO_T}$compiler_c_o" >&6 |
|
|
5875 | CFLAGS="$save_CFLAGS" |
|
|
5876 | else |
|
|
5877 | compiler_o_lo=no |
|
|
5878 | fi |
|
|
5879 | ## |
|
|
5880 | ## END FIXME |
|
|
5881 | |
|
|
5882 | ## FIXME: this should be a separate macro |
|
|
5883 | ## |
|
|
5884 | # Check to see if we can do hard links to lock some files if needed |
|
|
5885 | hard_links="nottested" |
|
|
5886 | if test "$compiler_c_o" = no && test "$need_locks" != no; then |
|
|
5887 | # do not overwrite the value of need_locks provided by the user |
|
|
5888 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
|
|
5889 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 |
|
|
5890 | hard_links=yes |
|
|
5891 | $rm conftest* |
|
|
5892 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5893 | touch conftest.a |
|
|
5894 | ln conftest.a conftest.b 2>&5 || hard_links=no |
|
|
5895 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
|
5896 | echo "$as_me:$LINENO: result: $hard_links" >&5 |
|
|
5897 | echo "${ECHO_T}$hard_links" >&6 |
|
|
5898 | if test "$hard_links" = no; then |
|
|
5899 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
|
5900 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
|
5901 | need_locks=warn |
|
|
5902 | fi |
|
|
5903 | else |
|
|
5904 | need_locks=no |
|
|
5905 | fi |
|
|
5906 | ## |
|
|
5907 | ## END FIXME |
|
|
5908 | |
|
|
5909 | ## FIXME: this should be a separate macro |
|
|
5910 | ## |
|
|
5911 | if test "$GCC" = yes; then |
|
|
5912 | # Check to see if options -fno-rtti -fno-exceptions are supported by compiler |
|
|
5913 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
|
5914 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 |
|
|
5915 | echo "int some_variable = 0;" > conftest.$ac_ext |
|
|
5916 | save_CFLAGS="$CFLAGS" |
|
|
5917 | CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" |
|
|
5918 | compiler_rtti_exceptions=no |
|
|
5919 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5920 | /* confdefs.h. */ |
|
|
5921 | _ACEOF |
|
|
5922 | cat confdefs.h >>conftest.$ac_ext |
|
|
5923 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5924 | /* end confdefs.h. */ |
|
|
5925 | |
|
|
5926 | int |
|
|
5927 | main () |
|
|
5928 | { |
|
|
5929 | int some_variable = 0; |
|
|
5930 | ; |
|
|
5931 | return 0; |
|
|
5932 | } |
|
|
5933 | _ACEOF |
|
|
5934 | rm -f conftest.$ac_objext |
|
|
5935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
5936 | (eval $ac_compile) 2>conftest.er1 |
|
|
5937 | ac_status=$? |
|
|
5938 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5939 | rm -f conftest.er1 |
|
|
5940 | cat conftest.err >&5 |
|
|
5941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5942 | (exit $ac_status); } && |
|
|
5943 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
5944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5945 | (eval $ac_try) 2>&5 |
|
|
5946 | ac_status=$? |
|
|
5947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5948 | (exit $ac_status); }; } && |
|
|
5949 | { ac_try='test -s conftest.$ac_objext' |
|
|
5950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
5951 | (eval $ac_try) 2>&5 |
|
|
5952 | ac_status=$? |
|
|
5953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5954 | (exit $ac_status); }; }; then |
|
|
5955 | # The compiler can only warn and ignore the option if not recognized |
|
|
5956 | # So say no if there are warnings |
|
|
5957 | if test -s conftest.err; then |
|
|
5958 | compiler_rtti_exceptions=no |
|
|
5959 | else |
|
|
5960 | compiler_rtti_exceptions=yes |
|
|
5961 | fi |
|
|
5962 | |
|
|
5963 | else |
|
|
5964 | echo "$as_me: failed program was:" >&5 |
|
|
5965 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5966 | |
|
|
5967 | fi |
|
|
5968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
5969 | CFLAGS="$save_CFLAGS" |
|
|
5970 | echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 |
|
|
5971 | echo "${ECHO_T}$compiler_rtti_exceptions" >&6 |
|
|
5972 | |
|
|
5973 | if test "$compiler_rtti_exceptions" = "yes"; then |
|
|
5974 | no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' |
|
|
5975 | else |
|
|
5976 | no_builtin_flag=' -fno-builtin' |
|
|
5977 | fi |
|
|
5978 | fi |
|
|
5979 | ## |
|
|
5980 | ## END FIXME |
|
|
5981 | |
|
|
5982 | ## FIXME: this should be a separate macro |
|
|
5983 | ## |
|
|
5984 | # See if the linker supports building shared libraries. |
|
|
5985 | echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 |
|
|
5986 | echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 |
|
|
5987 | |
|
|
5988 | allow_undefined_flag= |
|
|
5989 | no_undefined_flag= |
|
|
5990 | need_lib_prefix=unknown |
|
|
5991 | need_version=unknown |
|
|
5992 | # when you set need_version to no, make sure it does not cause -set_version |
|
|
5993 | # flags to be left without arguments |
|
|
5994 | archive_cmds= |
|
|
5995 | archive_expsym_cmds= |
|
|
5996 | old_archive_from_new_cmds= |
|
|
5997 | old_archive_from_expsyms_cmds= |
|
|
5998 | export_dynamic_flag_spec= |
|
|
5999 | whole_archive_flag_spec= |
|
|
6000 | thread_safe_flag_spec= |
|
|
6001 | hardcode_into_libs=no |
|
|
6002 | hardcode_libdir_flag_spec= |
|
|
6003 | hardcode_libdir_separator= |
|
|
6004 | hardcode_direct=no |
|
|
6005 | hardcode_minus_L=no |
|
|
6006 | hardcode_shlibpath_var=unsupported |
|
|
6007 | runpath_var= |
|
|
6008 | link_all_deplibs=unknown |
|
|
6009 | always_export_symbols=no |
|
|
6010 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
|
6011 | # include_expsyms should be a list of space-separated symbols to be *always* |
|
|
6012 | # included in the symbol list |
|
|
6013 | include_expsyms= |
|
|
6014 | # exclude_expsyms can be an egrep regular expression of symbols to exclude |
|
|
6015 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
|
6016 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
|
6017 | # as well as any symbol that contains `d'. |
|
|
6018 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
|
|
6019 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
|
6020 | # platforms (ab)use it in PIC code, but their linkers get confused if |
|
|
6021 | # the symbol is explicitly referenced. Since portable code cannot |
|
|
6022 | # rely on this symbol name, it's probably fine to never include it in |
|
|
6023 | # preloaded symbol tables. |
|
|
6024 | extract_expsyms_cmds= |
|
|
6025 | |
|
|
6026 | case "$host_os" in |
|
|
6027 | cygwin* | mingw* | pw32* ) |
|
|
6028 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
|
6029 | # When not using gcc, we currently assume that we are using |
|
|
6030 | # Microsoft Visual C++. |
|
|
6031 | if test "$GCC" != yes; then |
|
|
6032 | with_gnu_ld=no |
|
|
6033 | fi |
|
|
6034 | ;; |
|
|
6035 | |
|
|
6036 | esac |
|
|
6037 | |
|
|
6038 | ld_shlibs=yes |
|
|
6039 | if test "$with_gnu_ld" = yes; then |
|
|
6040 | # If archive_cmds runs LD, not CC, wlarc should be empty |
|
|
6041 | wlarc='${wl}' |
|
|
6042 | |
|
|
6043 | # See if GNU ld supports shared libraries. |
|
|
6044 | case "$host_os" in |
|
|
6045 | aix3* | aix4*) |
|
|
6046 | # On AIX, the GNU linker is very broken |
|
|
6047 | ld_shlibs=no |
|
|
6048 | cat <<EOF 1>&2 |
|
|
6049 | |
|
|
6050 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
|
6051 | *** to be unable to reliably create shared libraries on AIX. |
|
|
6052 | *** Therefore, libtool is disabling shared libraries support. If you |
|
|
6053 | *** really care for shared libraries, you may want to modify your PATH |
|
|
6054 | *** so that a non-GNU linker is found, and then restart. |
|
|
6055 | |
|
|
6056 | EOF |
|
|
6057 | ;; |
|
|
6058 | |
|
|
6059 | amigaos*) |
|
|
6060 | 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)' |
|
|
6061 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6062 | hardcode_minus_L=yes |
|
|
6063 | |
|
|
6064 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
|
|
6065 | # that the semantics of dynamic libraries on AmigaOS, at least up |
|
|
6066 | # to version 4, is to share data among multiple programs linked |
|
|
6067 | # with the same dynamic library. Since this doesn't match the |
|
|
6068 | # behavior of shared libraries on other platforms, we can use |
|
|
6069 | # them. |
|
|
6070 | ld_shlibs=no |
|
|
6071 | ;; |
|
|
6072 | |
|
|
6073 | beos*) |
|
|
6074 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6075 | allow_undefined_flag=unsupported |
|
|
6076 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
|
6077 | # support --undefined. This deserves some investigation. FIXME |
|
|
6078 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6079 | else |
|
|
6080 | ld_shlibs=no |
|
|
6081 | fi |
|
|
6082 | ;; |
|
|
6083 | |
|
|
6084 | cygwin* | mingw* | pw32*) |
|
|
6085 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6086 | # no search path for DLLs. |
|
|
6087 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6088 | allow_undefined_flag=unsupported |
|
|
6089 | always_export_symbols=yes |
|
|
6090 | |
|
|
6091 | extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ |
|
|
6092 | sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ |
|
|
6093 | test -f $output_objdir/impgen.exe || (cd $output_objdir && \ |
|
|
6094 | if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ |
|
|
6095 | else $CC -o impgen impgen.c ; fi)~ |
|
|
6096 | $output_objdir/impgen $dir/$soname > $output_objdir/$soname-def' |
|
|
6097 | |
|
|
6098 | old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' |
|
|
6099 | |
|
|
6100 | # cygwin and mingw dlls have different entry points and sets of symbols |
|
|
6101 | # to exclude. |
|
|
6102 | # FIXME: what about values for MSVC? |
|
|
6103 | dll_entry=__cygwin_dll_entry@12 |
|
|
6104 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ |
|
|
6105 | case "$host_os" in |
|
|
6106 | mingw*) |
|
|
6107 | # mingw values |
|
|
6108 | dll_entry=_DllMainCRTStartup@12 |
|
|
6109 | dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ |
|
|
6110 | ;; |
|
|
6111 | esac |
|
|
6112 | |
|
|
6113 | # mingw and cygwin differ, and it's simplest to just exclude the union |
|
|
6114 | # of the two symbol sets. |
|
|
6115 | dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 |
|
|
6116 | |
|
|
6117 | # recent cygwin and mingw systems supply a stub DllMain which the user |
|
|
6118 | # can override, but on older systems we have to supply one (in ltdll.c) |
|
|
6119 | if test "x$lt_cv_need_dllmain" = "xyes"; then |
|
|
6120 | ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " |
|
|
6121 | 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~ |
|
|
6122 | test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' |
|
|
6123 | else |
|
|
6124 | ltdll_obj= |
|
|
6125 | ltdll_cmds= |
|
|
6126 | fi |
|
|
6127 | |
|
|
6128 | # Extract the symbol export list from an `--export-all' def file, |
|
|
6129 | # then regenerate the def file from the symbol export list, so that |
|
|
6130 | # the compiled dll only exports the symbol export list. |
|
|
6131 | # Be careful not to strip the DATA tag left be newer dlltools. |
|
|
6132 | export_symbols_cmds="$ltdll_cmds"' |
|
|
6133 | $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ |
|
|
6134 | sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' |
|
|
6135 | |
|
|
6136 | # If DATA tags from a recent dlltool are present, honour them! |
|
|
6137 | archive_expsym_cmds='echo EXPORTS > $output_objdir/$soname-def~ |
|
|
6138 | _lt_hint=1; |
|
|
6139 | cat $export_symbols | while read symbol; do |
|
|
6140 | set dummy \$symbol; |
|
|
6141 | case \$# in |
|
|
6142 | 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; |
|
|
6143 | *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; |
|
|
6144 | esac; |
|
|
6145 | _lt_hint=`expr 1 + \$_lt_hint`; |
|
|
6146 | done~ |
|
|
6147 | '"$ltdll_cmds"' |
|
|
6148 | $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~ |
|
|
6149 | $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~ |
|
|
6150 | $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~ |
|
|
6151 | $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~ |
|
|
6152 | $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $lib '$ltdll_obj'$libobjs $deplibs $compiler_flags' |
|
|
6153 | ;; |
|
|
6154 | |
|
|
6155 | netbsd*) |
|
|
6156 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6157 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
|
6158 | wlarc= |
|
|
6159 | else |
|
|
6160 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6161 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6162 | fi |
|
|
6163 | ;; |
|
|
6164 | |
|
|
6165 | solaris* | sysv5*) |
|
|
6166 | if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then |
|
|
6167 | ld_shlibs=no |
|
|
6168 | cat <<EOF 1>&2 |
|
|
6169 | |
|
|
6170 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
|
6171 | *** create shared libraries on Solaris systems. Therefore, libtool |
|
|
6172 | *** is disabling shared libraries support. We urge you to upgrade GNU |
|
|
6173 | *** binutils to release 2.9.1 or newer. Another option is to modify |
|
|
6174 | *** your PATH or compiler configuration so that the native linker is |
|
|
6175 | *** used, and then restart. |
|
|
6176 | |
|
|
6177 | EOF |
|
|
6178 | elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6179 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6180 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6181 | else |
|
|
6182 | ld_shlibs=no |
|
|
6183 | fi |
|
|
6184 | ;; |
|
|
6185 | |
|
|
6186 | sunos4*) |
|
|
6187 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6188 | wlarc= |
|
|
6189 | hardcode_direct=yes |
|
|
6190 | hardcode_shlibpath_var=no |
|
|
6191 | ;; |
|
|
6192 | |
|
|
6193 | *) |
|
|
6194 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then |
|
|
6195 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
|
6196 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
|
6197 | else |
|
|
6198 | ld_shlibs=no |
|
|
6199 | fi |
|
|
6200 | ;; |
|
|
6201 | esac |
|
|
6202 | |
|
|
6203 | if test "$ld_shlibs" = yes; then |
|
|
6204 | runpath_var=LD_RUN_PATH |
|
|
6205 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
|
|
6206 | export_dynamic_flag_spec='${wl}--export-dynamic' |
|
|
6207 | case $host_os in |
|
|
6208 | cygwin* | mingw* | pw32*) |
|
|
6209 | # dlltool doesn't understand --whole-archive et. al. |
|
|
6210 | whole_archive_flag_spec= |
|
|
6211 | ;; |
|
|
6212 | *) |
|
|
6213 | # ancient GNU ld didn't support --whole-archive et. al. |
|
|
6214 | if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then |
|
|
6215 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
|
6216 | else |
|
|
6217 | whole_archive_flag_spec= |
|
|
6218 | fi |
|
|
6219 | ;; |
|
|
6220 | esac |
|
|
6221 | fi |
|
|
6222 | else |
|
|
6223 | # PORTME fill in a description of your system's linker (not GNU ld) |
|
|
6224 | case "$host_os" in |
|
|
6225 | aix3*) |
|
|
6226 | allow_undefined_flag=unsupported |
|
|
6227 | always_export_symbols=yes |
|
|
6228 | 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' |
|
|
6229 | # Note: this linker hardcodes the directories in LIBPATH if there |
|
|
6230 | # are no directories specified by -L. |
|
|
6231 | hardcode_minus_L=yes |
|
|
6232 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
|
|
6233 | # Neither direct hardcoding nor static linking is supported with a |
|
|
6234 | # broken collect2. |
|
|
6235 | hardcode_direct=unsupported |
|
|
6236 | fi |
|
|
6237 | ;; |
|
|
6238 | |
|
|
6239 | aix4*) |
|
|
6240 | hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib' |
|
|
6241 | hardcode_libdir_separator=':' |
|
|
6242 | if test "$GCC" = yes; then |
|
|
6243 | collect2name=`${CC} -print-prog-name=collect2` |
|
|
6244 | if test -f "$collect2name" && \ |
|
|
6245 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
|
|
6246 | then |
|
|
6247 | # We have reworked collect2 |
|
|
6248 | hardcode_direct=yes |
|
|
6249 | else |
|
|
6250 | # We have old collect2 |
|
|
6251 | hardcode_direct=unsupported |
|
|
6252 | # It fails to find uninstalled libraries when the uninstalled |
|
|
6253 | # path is not listed in the libpath. Setting hardcode_minus_L |
|
|
6254 | # to unsupported forces relinking |
|
|
6255 | hardcode_minus_L=yes |
|
|
6256 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6257 | hardcode_libdir_separator= |
|
|
6258 | fi |
|
|
6259 | shared_flag='-shared' |
|
|
6260 | else |
|
|
6261 | shared_flag='${wl}-bM:SRE' |
|
|
6262 | hardcode_direct=yes |
|
|
6263 | fi |
|
|
6264 | allow_undefined_flag=' ${wl}-berok' |
|
|
6265 | archive_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}' |
|
|
6266 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}' |
|
|
6267 | case "$host_os" in aix4.[01]|aix4.[01].*) |
|
|
6268 | # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on |
|
|
6269 | always_export_symbols=yes ;; |
|
|
6270 | esac |
|
|
6271 | |
|
|
6272 | # We don't want to build shared libraries on unknown CPU types. |
|
|
6273 | case $host_cpu in |
|
|
6274 | powerpc | rs6000) ;; |
|
|
6275 | *) ld_shlibs=no ;; |
|
|
6276 | esac |
|
|
6277 | ;; |
|
|
6278 | |
|
|
6279 | amigaos*) |
|
|
6280 | 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)' |
|
|
6281 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6282 | hardcode_minus_L=yes |
|
|
6283 | # see comment about different semantics on the GNU ld section |
|
|
6284 | ld_shlibs=no |
|
|
6285 | ;; |
|
|
6286 | |
|
|
6287 | cygwin* | mingw* | pw32*) |
|
|
6288 | # When not using gcc, we currently assume that we are using |
|
|
6289 | # Microsoft Visual C++. |
|
|
6290 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
|
|
6291 | # no search path for DLLs. |
|
|
6292 | hardcode_libdir_flag_spec=' ' |
|
|
6293 | allow_undefined_flag=unsupported |
|
|
6294 | # Tell ltmain to make .lib files, not .a files. |
|
|
6295 | libext=lib |
|
|
6296 | # FIXME: Setting linknames here is a bad hack. |
|
|
6297 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
|
6298 | # The linker will automatically build a .lib file if we build a DLL. |
|
|
6299 | old_archive_from_new_cmds='true' |
|
|
6300 | # FIXME: Should let the user specify the lib program. |
|
|
6301 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
|
|
6302 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
|
6303 | ;; |
|
|
6304 | |
|
|
6305 | darwin* | rhapsody*) |
|
|
6306 | allow_undefined_flag='-undefined warning' |
|
|
6307 | archive_cmds='$CC `if test "$module" = "yes"; then echo -bundle; else |
|
|
6308 | echo -dynamiclib; fi` -o $lib $libobjs $deplibs $linkopts' |
|
|
6309 | archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' |
|
|
6310 | ## What we need is to hardcode the path to the library, not the search path |
|
|
6311 | #hardcode_direct=yes |
|
|
6312 | #hardcode_libdir_flag_spec='-install_name $libdir/$lib' |
|
|
6313 | hardcode_shlibpath_var=no |
|
|
6314 | whole_archive_flag_spec='-all_load' |
|
|
6315 | ;; |
|
|
6316 | |
|
|
6317 | freebsd1*) |
|
|
6318 | ld_shlibs=no |
|
|
6319 | ;; |
|
|
6320 | |
|
|
6321 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
|
6322 | # support. Future versions do this automatically, but an explicit c++rt0.o |
|
|
6323 | # does not break anything, and helps significantly (at the cost of a little |
|
|
6324 | # extra space). |
|
|
6325 | freebsd2.2*) |
|
|
6326 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
|
6327 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6328 | hardcode_direct=yes |
|
|
6329 | hardcode_shlibpath_var=no |
|
|
6330 | ;; |
|
|
6331 | |
|
|
6332 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
|
6333 | freebsd2*) |
|
|
6334 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6335 | hardcode_direct=yes |
|
|
6336 | hardcode_minus_L=yes |
|
|
6337 | hardcode_shlibpath_var=no |
|
|
6338 | ;; |
|
|
6339 | |
|
|
6340 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
|
6341 | freebsd*) |
|
|
6342 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6343 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6344 | hardcode_direct=yes |
|
|
6345 | hardcode_shlibpath_var=no |
|
|
6346 | ;; |
|
|
6347 | |
|
|
6348 | hpux9* | hpux10* | hpux11*) |
|
|
6349 | case "$host_os" in |
|
|
6350 | 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' ;; |
|
|
6351 | *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; |
|
|
6352 | esac |
|
|
6353 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
|
6354 | hardcode_libdir_separator=: |
|
|
6355 | hardcode_direct=yes |
|
|
6356 | hardcode_minus_L=yes # Not in the search PATH, but as the default |
|
|
6357 | # location of the library. |
|
|
6358 | export_dynamic_flag_spec='${wl}-E' |
|
|
6359 | ;; |
|
|
6360 | |
|
|
6361 | irix5* | irix6*) |
|
|
6362 | if test "$GCC" = yes; then |
|
|
6363 | 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' |
|
|
6364 | else |
|
|
6365 | 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' |
|
|
6366 | fi |
|
|
6367 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6368 | hardcode_libdir_separator=: |
|
|
6369 | link_all_deplibs=yes |
|
|
6370 | ;; |
|
|
6371 | |
|
|
6372 | netbsd*) |
|
|
6373 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6374 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
|
6375 | else |
|
|
6376 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
|
6377 | fi |
|
|
6378 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6379 | hardcode_direct=yes |
|
|
6380 | hardcode_shlibpath_var=no |
|
|
6381 | ;; |
|
|
6382 | |
|
|
6383 | newsos6) |
|
|
6384 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
6385 | hardcode_direct=yes |
|
|
6386 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6387 | hardcode_libdir_separator=: |
|
|
6388 | hardcode_shlibpath_var=no |
|
|
6389 | ;; |
|
|
6390 | |
|
|
6391 | openbsd*) |
|
|
6392 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
|
6393 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6394 | hardcode_direct=yes |
|
|
6395 | hardcode_shlibpath_var=no |
|
|
6396 | ;; |
|
|
6397 | |
|
|
6398 | os2*) |
|
|
6399 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6400 | hardcode_minus_L=yes |
|
|
6401 | allow_undefined_flag=unsupported |
|
|
6402 | 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' |
|
|
6403 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
|
6404 | ;; |
|
|
6405 | |
|
|
6406 | osf3*) |
|
|
6407 | if test "$GCC" = yes; then |
|
|
6408 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6409 | 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' |
|
|
6410 | else |
|
|
6411 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6412 | 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' |
|
|
6413 | fi |
|
|
6414 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
|
6415 | hardcode_libdir_separator=: |
|
|
6416 | ;; |
|
|
6417 | |
|
|
6418 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
|
6419 | if test "$GCC" = yes; then |
|
|
6420 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
|
6421 | 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' |
|
|
6422 | else |
|
|
6423 | allow_undefined_flag=' -expect_unresolved \*' |
|
|
6424 | 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' |
|
|
6425 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
|
|
6426 | $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' |
|
|
6427 | fi |
|
|
6428 | #Both c and cxx compiler support -rpath directly |
|
|
6429 | hardcode_libdir_flag_spec='-rpath $libdir' |
|
|
6430 | hardcode_libdir_separator=: |
|
|
6431 | ;; |
|
|
6432 | |
|
|
6433 | sco3.2v5*) |
|
|
6434 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6435 | hardcode_shlibpath_var=no |
|
|
6436 | runpath_var=LD_RUN_PATH |
|
|
6437 | hardcode_runpath_var=yes |
|
|
6438 | ;; |
|
|
6439 | |
|
|
6440 | solaris*) |
|
|
6441 | no_undefined_flag=' -z text' |
|
|
6442 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
6443 | # object files and a static libstdc++, better avoid it by now |
|
|
6444 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6445 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6446 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6447 | hardcode_libdir_flag_spec='-R$libdir' |
|
|
6448 | hardcode_shlibpath_var=no |
|
|
6449 | case "$host_os" in |
|
|
6450 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
|
6451 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) |
|
|
6452 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
|
|
6453 | esac |
|
|
6454 | link_all_deplibs=yes |
|
|
6455 | ;; |
|
|
6456 | |
|
|
6457 | sunos4*) |
|
|
6458 | if test "x$host_vendor" = xsequent; then |
|
|
6459 | # Use $CC to link under sequent, because it throws in some extra .o |
|
|
6460 | # files that make .init and .fini sections work. |
|
|
6461 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
|
6462 | else |
|
|
6463 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
|
6464 | fi |
|
|
6465 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6466 | hardcode_direct=yes |
|
|
6467 | hardcode_minus_L=yes |
|
|
6468 | hardcode_shlibpath_var=no |
|
|
6469 | ;; |
|
|
6470 | |
|
|
6471 | sysv4) |
|
|
6472 | if test "x$host_vendor" = xsno; then |
|
|
6473 | archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts' |
|
|
6474 | hardcode_direct=yes # is this really true??? |
|
|
6475 | else |
|
|
6476 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6477 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
|
6478 | fi |
|
|
6479 | runpath_var='LD_RUN_PATH' |
|
|
6480 | hardcode_shlibpath_var=no |
|
|
6481 | ;; |
|
|
6482 | |
|
|
6483 | sysv4.3*) |
|
|
6484 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6485 | hardcode_shlibpath_var=no |
|
|
6486 | export_dynamic_flag_spec='-Bexport' |
|
|
6487 | ;; |
|
|
6488 | |
|
|
6489 | sysv5*) |
|
|
6490 | no_undefined_flag=' -z text' |
|
|
6491 | # $CC -shared without GNU ld will not create a library from C++ |
|
|
6492 | # object files and a static libstdc++, better avoid it by now |
|
|
6493 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6494 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
|
|
6495 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
|
|
6496 | hardcode_libdir_flag_spec= |
|
|
6497 | hardcode_shlibpath_var=no |
|
|
6498 | runpath_var='LD_RUN_PATH' |
|
|
6499 | ;; |
|
|
6500 | |
|
|
6501 | uts4*) |
|
|
6502 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6503 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6504 | hardcode_shlibpath_var=no |
|
|
6505 | ;; |
|
|
6506 | |
|
|
6507 | dgux*) |
|
|
6508 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6509 | hardcode_libdir_flag_spec='-L$libdir' |
|
|
6510 | hardcode_shlibpath_var=no |
|
|
6511 | ;; |
|
|
6512 | |
|
|
6513 | sysv4*MP*) |
|
|
6514 | if test -d /usr/nec; then |
|
|
6515 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6516 | hardcode_shlibpath_var=no |
|
|
6517 | runpath_var=LD_RUN_PATH |
|
|
6518 | hardcode_runpath_var=yes |
|
|
6519 | ld_shlibs=yes |
|
|
6520 | fi |
|
|
6521 | ;; |
|
|
6522 | |
|
|
6523 | sysv4.2uw2*) |
|
|
6524 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
|
6525 | hardcode_direct=yes |
|
|
6526 | hardcode_minus_L=no |
|
|
6527 | hardcode_shlibpath_var=no |
|
|
6528 | hardcode_runpath_var=yes |
|
|
6529 | runpath_var=LD_RUN_PATH |
|
|
6530 | ;; |
|
|
6531 | |
|
|
6532 | unixware7*) |
|
|
6533 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
|
6534 | runpath_var='LD_RUN_PATH' |
|
|
6535 | hardcode_shlibpath_var=no |
|
|
6536 | ;; |
|
|
6537 | |
|
|
6538 | *) |
|
|
6539 | ld_shlibs=no |
|
|
6540 | ;; |
|
|
6541 | esac |
|
|
6542 | fi |
|
|
6543 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
|
|
6544 | echo "${ECHO_T}$ld_shlibs" >&6 |
|
|
6545 | test "$ld_shlibs" = no && can_build_shared=no |
|
|
6546 | ## |
|
|
6547 | ## END FIXME |
|
|
6548 | |
|
|
6549 | ## FIXME: this should be a separate macro |
|
|
6550 | ## |
|
|
6551 | # Check hardcoding attributes. |
|
|
6552 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
|
|
6553 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
|
|
6554 | hardcode_action= |
|
|
6555 | if test -n "$hardcode_libdir_flag_spec" || \ |
|
|
6556 | test -n "$runpath_var"; then |
|
|
6557 | |
|
|
6558 | # We can hardcode non-existant directories. |
|
|
6559 | if test "$hardcode_direct" != no && |
|
|
6560 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
|
6561 | # have to relink, otherwise we might link with an installed library |
|
|
6562 | # when we should be linking with a yet-to-be-installed one |
|
|
6563 | ## test "$hardcode_shlibpath_var" != no && |
|
|
6564 | test "$hardcode_minus_L" != no; then |
|
|
6565 | # Linking always hardcodes the temporary library directory. |
|
|
6566 | hardcode_action=relink |
|
|
6567 | else |
|
|
6568 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
|
6569 | hardcode_action=immediate |
|
|
6570 | fi |
|
|
6571 | else |
|
|
6572 | # We cannot hardcode anything, or else we can only hardcode existing |
|
|
6573 | # directories. |
|
|
6574 | hardcode_action=unsupported |
|
|
6575 | fi |
|
|
6576 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
|
|
6577 | echo "${ECHO_T}$hardcode_action" >&6 |
|
|
6578 | ## |
|
|
6579 | ## END FIXME |
|
|
6580 | |
|
|
6581 | ## FIXME: this should be a separate macro |
|
|
6582 | ## |
|
|
6583 | striplib= |
|
|
6584 | old_striplib= |
|
|
6585 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
|
|
6586 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 |
|
|
6587 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
|
|
6588 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
|
6589 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
|
6590 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
6591 | echo "${ECHO_T}yes" >&6 |
|
|
6592 | else |
|
|
6593 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
6594 | echo "${ECHO_T}no" >&6 |
|
|
6595 | fi |
|
|
6596 | ## |
|
|
6597 | ## END FIXME |
|
|
6598 | |
|
|
6599 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
|
6600 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
|
6601 | |
|
|
6602 | ## FIXME: this should be a separate macro |
|
|
6603 | ## |
|
|
6604 | # PORTME Fill in your ld.so characteristics |
|
|
6605 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
|
|
6606 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 |
|
|
6607 | library_names_spec= |
|
|
6608 | libname_spec='lib$name' |
|
|
6609 | soname_spec= |
|
|
6610 | postinstall_cmds= |
|
|
6611 | postuninstall_cmds= |
|
|
6612 | finish_cmds= |
|
|
6613 | finish_eval= |
|
|
6614 | shlibpath_var= |
|
|
6615 | shlibpath_overrides_runpath=unknown |
|
|
6616 | version_type=none |
|
|
6617 | dynamic_linker="$host_os ld.so" |
|
|
6618 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
|
6619 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
|
6620 | |
|
|
6621 | case "$host_os" in |
|
|
6622 | aix3*) |
|
|
6623 | version_type=linux |
|
|
6624 | library_names_spec='${libname}${release}.so$versuffix $libname.a' |
|
|
6625 | shlibpath_var=LIBPATH |
|
|
6626 | |
|
|
6627 | # AIX has no versioning support, so we append a major version to the name. |
|
|
6628 | soname_spec='${libname}${release}.so$major' |
|
|
6629 | ;; |
|
|
6630 | |
|
|
6631 | aix4*) |
|
|
6632 | version_type=linux |
|
|
6633 | # AIX has no versioning support, so currently we can not hardcode correct |
|
|
6634 | # soname into executable. Probably we can add versioning support to |
|
|
6635 | # collect2, so additional links can be useful in future. |
|
|
6636 | # We preserve .a as extension for shared libraries though AIX4.2 |
|
|
6637 | # and later linker supports .so |
|
|
6638 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a' |
|
|
6639 | shlibpath_var=LIBPATH |
|
|
6640 | ;; |
|
|
6641 | |
|
|
6642 | amigaos*) |
|
|
6643 | library_names_spec='$libname.ixlibrary $libname.a' |
|
|
6644 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
|
6645 | 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' |
|
|
6646 | ;; |
|
|
6647 | |
|
|
6648 | beos*) |
|
|
6649 | library_names_spec='${libname}.so' |
|
|
6650 | dynamic_linker="$host_os ld.so" |
|
|
6651 | shlibpath_var=LIBRARY_PATH |
|
|
6652 | ;; |
|
|
6653 | |
|
|
6654 | bsdi4*) |
|
|
6655 | version_type=linux |
|
|
6656 | need_version=no |
|
|
6657 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6658 | soname_spec='${libname}${release}.so$major' |
|
|
6659 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
|
6660 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6661 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
|
6662 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
|
6663 | export_dynamic_flag_spec=-rdynamic |
|
|
6664 | # the default ld.so.conf also contains /usr/contrib/lib and |
|
|
6665 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
|
6666 | # libtool to hard-code these into programs |
|
|
6667 | ;; |
|
|
6668 | |
|
|
6669 | cygwin* | mingw* | pw32*) |
|
|
6670 | version_type=windows |
|
|
6671 | need_version=no |
|
|
6672 | need_lib_prefix=no |
|
|
6673 | if test "$GCC" = yes; then |
|
|
6674 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' |
|
|
6675 | else |
|
|
6676 | library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' |
|
|
6677 | fi |
|
|
6678 | dynamic_linker='Win32 ld.exe' |
|
|
6679 | # FIXME: first we should search . and the directory the executable is in |
|
|
6680 | shlibpath_var=PATH |
|
|
6681 | ;; |
|
|
6682 | |
|
|
6683 | darwin* | rhapsody*) |
|
|
6684 | need_lib_prefix=no |
|
|
6685 | need_version=no |
|
|
6686 | library_names_spec='${libname}.`if test "$module" = "yes"; then echo so; else echo dylib; fi`' |
|
|
6687 | shlibpath_overrides_runpath=yes |
|
|
6688 | shlibpath_var=DYLD_LIBRARY_PATH |
|
|
6689 | postinstall_cmds='chmod +x $lib' |
|
|
6690 | ;; |
|
|
6691 | |
|
|
6692 | freebsd1*) |
|
|
6693 | dynamic_linker=no |
|
|
6694 | ;; |
|
|
6695 | |
|
|
6696 | freebsd*) |
|
|
6697 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
|
|
6698 | version_type=freebsd-$objformat |
|
|
6699 | case "$version_type" in |
|
|
6700 | freebsd-elf*) |
|
|
6701 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6702 | need_version=no |
|
|
6703 | need_lib_prefix=no |
|
|
6704 | ;; |
|
|
6705 | freebsd-*) |
|
|
6706 | library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' |
|
|
6707 | need_version=yes |
|
|
6708 | ;; |
|
|
6709 | esac |
|
|
6710 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6711 | case "$host_os" in |
|
|
6712 | freebsd2*) |
|
|
6713 | shlibpath_overrides_runpath=yes |
|
|
6714 | ;; |
|
|
6715 | *) |
|
|
6716 | shlibpath_overrides_runpath=no |
|
|
6717 | hardcode_into_libs=yes |
|
|
6718 | ;; |
|
|
6719 | esac |
|
|
6720 | ;; |
|
|
6721 | |
|
|
6722 | gnu*) |
|
|
6723 | version_type=linux |
|
|
6724 | need_lib_prefix=no |
|
|
6725 | need_version=no |
|
|
6726 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' |
|
|
6727 | soname_spec='${libname}${release}.so$major' |
|
|
6728 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6729 | hardcode_into_libs=yes |
|
|
6730 | ;; |
|
|
6731 | |
|
|
6732 | hpux9* | hpux10* | hpux11*) |
|
|
6733 | # Give a soname corresponding to the major version so that dld.sl refuses to |
|
|
6734 | # link against other versions. |
|
|
6735 | dynamic_linker="$host_os dld.sl" |
|
|
6736 | version_type=sunos |
|
|
6737 | need_lib_prefix=no |
|
|
6738 | need_version=no |
|
|
6739 | shlibpath_var=SHLIB_PATH |
|
|
6740 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
|
6741 | library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' |
|
|
6742 | soname_spec='${libname}${release}.sl$major' |
|
|
6743 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
|
6744 | postinstall_cmds='chmod 555 $lib' |
|
|
6745 | ;; |
|
|
6746 | |
|
|
6747 | irix5* | irix6*) |
|
|
6748 | version_type=irix |
|
|
6749 | need_lib_prefix=no |
|
|
6750 | need_version=no |
|
|
6751 | soname_spec='${libname}${release}.so$major' |
|
|
6752 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' |
|
|
6753 | case "$host_os" in |
|
|
6754 | irix5*) |
|
|
6755 | libsuff= shlibsuff= |
|
|
6756 | ;; |
|
|
6757 | *) |
|
|
6758 | case "$LD" in # libtool.m4 will add one of these switches to LD |
|
|
6759 | *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; |
|
|
6760 | *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
|
6761 | *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
|
6762 | *) libsuff= shlibsuff= libmagic=never-match;; |
|
|
6763 | esac |
|
|
6764 | ;; |
|
|
6765 | esac |
|
|
6766 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
|
6767 | shlibpath_overrides_runpath=no |
|
|
6768 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
|
6769 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
|
6770 | ;; |
|
|
6771 | |
|
|
6772 | # No shared lib support for Linux oldld, aout, or coff. |
|
|
6773 | linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) |
|
|
6774 | dynamic_linker=no |
|
|
6775 | ;; |
|
|
6776 | |
|
|
6777 | # This must be Linux ELF. |
|
|
6778 | linux-gnu*) |
|
|
6779 | version_type=linux |
|
|
6780 | need_lib_prefix=no |
|
|
6781 | need_version=no |
|
|
6782 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6783 | soname_spec='${libname}${release}.so$major' |
|
|
6784 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
|
6785 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6786 | shlibpath_overrides_runpath=no |
|
|
6787 | # This implies no fast_install, which is unacceptable. |
|
|
6788 | # Some rework will be needed to allow for fast_install |
|
|
6789 | # before this can be enabled. |
|
|
6790 | hardcode_into_libs=yes |
|
|
6791 | |
|
|
6792 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
|
|
6793 | # powerpc, because MkLinux only supported shared libraries with the |
|
|
6794 | # GNU dynamic linker. Since this was broken with cross compilers, |
|
|
6795 | # most powerpc-linux boxes support dynamic linking these days and |
|
|
6796 | # people can always --disable-shared, the test was removed, and we |
|
|
6797 | # assume the GNU/Linux dynamic linker is in use. |
|
|
6798 | dynamic_linker='GNU/Linux ld.so' |
|
|
6799 | ;; |
|
|
6800 | |
|
|
6801 | netbsd*) |
|
|
6802 | version_type=sunos |
|
|
6803 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
|
|
6804 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6805 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6806 | dynamic_linker='NetBSD (a.out) ld.so' |
|
|
6807 | else |
|
|
6808 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' |
|
|
6809 | soname_spec='${libname}${release}.so$major' |
|
|
6810 | dynamic_linker='NetBSD ld.elf_so' |
|
|
6811 | fi |
|
|
6812 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6813 | shlibpath_overrides_runpath=yes |
|
|
6814 | hardcode_into_libs=yes |
|
|
6815 | ;; |
|
|
6816 | |
|
|
6817 | newsos6) |
|
|
6818 | version_type=linux |
|
|
6819 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6820 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6821 | shlibpath_overrides_runpath=yes |
|
|
6822 | ;; |
|
|
6823 | |
|
|
6824 | openbsd*) |
|
|
6825 | version_type=sunos |
|
|
6826 | if test "$with_gnu_ld" = yes; then |
|
|
6827 | need_lib_prefix=no |
|
|
6828 | need_version=no |
|
|
6829 | fi |
|
|
6830 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6831 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
|
6832 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6833 | ;; |
|
|
6834 | |
|
|
6835 | os2*) |
|
|
6836 | libname_spec='$name' |
|
|
6837 | need_lib_prefix=no |
|
|
6838 | library_names_spec='$libname.dll $libname.a' |
|
|
6839 | dynamic_linker='OS/2 ld.exe' |
|
|
6840 | shlibpath_var=LIBPATH |
|
|
6841 | ;; |
|
|
6842 | |
|
|
6843 | osf3* | osf4* | osf5*) |
|
|
6844 | version_type=osf |
|
|
6845 | need_version=no |
|
|
6846 | soname_spec='${libname}${release}.so' |
|
|
6847 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' |
|
|
6848 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6849 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
|
6850 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
|
6851 | ;; |
|
|
6852 | |
|
|
6853 | sco3.2v5*) |
|
|
6854 | version_type=osf |
|
|
6855 | soname_spec='${libname}${release}.so$major' |
|
|
6856 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6857 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6858 | ;; |
|
|
6859 | |
|
|
6860 | solaris*) |
|
|
6861 | version_type=linux |
|
|
6862 | need_lib_prefix=no |
|
|
6863 | need_version=no |
|
|
6864 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6865 | soname_spec='${libname}${release}.so$major' |
|
|
6866 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6867 | shlibpath_overrides_runpath=yes |
|
|
6868 | hardcode_into_libs=yes |
|
|
6869 | # ldd complains unless libraries are executable |
|
|
6870 | postinstall_cmds='chmod +x $lib' |
|
|
6871 | ;; |
|
|
6872 | |
|
|
6873 | sunos4*) |
|
|
6874 | version_type=sunos |
|
|
6875 | library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' |
|
|
6876 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
|
6877 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6878 | shlibpath_overrides_runpath=yes |
|
|
6879 | if test "$with_gnu_ld" = yes; then |
|
|
6880 | need_lib_prefix=no |
|
|
6881 | fi |
|
|
6882 | need_version=yes |
|
|
6883 | ;; |
|
|
6884 | |
|
|
6885 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
|
6886 | version_type=linux |
|
|
6887 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6888 | soname_spec='${libname}${release}.so$major' |
|
|
6889 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6890 | case "$host_vendor" in |
|
|
6891 | sni) |
|
|
6892 | shlibpath_overrides_runpath=no |
|
|
6893 | ;; |
|
|
6894 | motorola) |
|
|
6895 | need_lib_prefix=no |
|
|
6896 | need_version=no |
|
|
6897 | shlibpath_overrides_runpath=no |
|
|
6898 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
|
6899 | ;; |
|
|
6900 | esac |
|
|
6901 | ;; |
|
|
6902 | |
|
|
6903 | uts4*) |
|
|
6904 | version_type=linux |
|
|
6905 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6906 | soname_spec='${libname}${release}.so$major' |
|
|
6907 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6908 | ;; |
|
|
6909 | |
|
|
6910 | dgux*) |
|
|
6911 | version_type=linux |
|
|
6912 | need_lib_prefix=no |
|
|
6913 | need_version=no |
|
|
6914 | library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
|
|
6915 | soname_spec='${libname}${release}.so$major' |
|
|
6916 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6917 | ;; |
|
|
6918 | |
|
|
6919 | sysv4*MP*) |
|
|
6920 | if test -d /usr/nec ;then |
|
|
6921 | version_type=linux |
|
|
6922 | library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' |
|
|
6923 | soname_spec='$libname.so.$major' |
|
|
6924 | shlibpath_var=LD_LIBRARY_PATH |
|
|
6925 | fi |
|
|
6926 | ;; |
|
|
6927 | |
|
|
6928 | *) |
|
|
6929 | dynamic_linker=no |
|
|
6930 | ;; |
|
|
6931 | esac |
|
|
6932 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
|
|
6933 | echo "${ECHO_T}$dynamic_linker" >&6 |
|
|
6934 | test "$dynamic_linker" = no && can_build_shared=no |
|
|
6935 | ## |
|
|
6936 | ## END FIXME |
|
|
6937 | |
|
|
6938 | ## FIXME: this should be a separate macro |
|
|
6939 | ## |
|
|
6940 | # Report the final consequences. |
|
|
6941 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
|
|
6942 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
|
|
6943 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
|
|
6944 | echo "${ECHO_T}$can_build_shared" >&6 |
|
|
6945 | ## |
|
|
6946 | ## END FIXME |
|
|
6947 | |
|
|
6948 | if test "$hardcode_action" = relink; then |
|
|
6949 | # Fast installation is not supported |
|
|
6950 | enable_fast_install=no |
|
|
6951 | elif test "$shlibpath_overrides_runpath" = yes || |
|
|
6952 | test "$enable_shared" = no; then |
|
|
6953 | # Fast installation is not necessary |
|
|
6954 | enable_fast_install=needless |
|
|
6955 | fi |
|
|
6956 | |
|
|
6957 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
|
6958 | if test "$GCC" = yes; then |
|
|
6959 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
|
6960 | fi |
|
|
6961 | |
|
|
6962 | if test "x$enable_dlopen" != xyes; then |
|
|
6963 | enable_dlopen=unknown |
|
|
6964 | enable_dlopen_self=unknown |
|
|
6965 | enable_dlopen_self_static=unknown |
|
|
6966 | else |
|
|
6967 | lt_cv_dlopen=no |
|
|
6968 | lt_cv_dlopen_libs= |
|
|
6969 | |
|
|
6970 | case "$host_os" in |
|
|
6971 | beos*) |
|
|
6972 | lt_cv_dlopen="load_add_on" |
|
|
6973 | lt_cv_dlopen_libs= |
|
|
6974 | lt_cv_dlopen_self=yes |
|
|
6975 | ;; |
|
|
6976 | |
|
|
6977 | cygwin* | mingw* | pw32*) |
|
|
6978 | lt_cv_dlopen="LoadLibrary" |
|
|
6979 | lt_cv_dlopen_libs= |
|
|
6980 | ;; |
|
|
6981 | |
|
|
6982 | *) |
|
|
6983 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
|
|
6984 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
|
|
6985 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
|
|
6986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6987 | else |
|
|
6988 | ac_check_lib_save_LIBS=$LIBS |
|
|
6989 | LIBS="-ldl $LIBS" |
|
|
6990 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6991 | /* confdefs.h. */ |
|
|
6992 | _ACEOF |
|
|
6993 | cat confdefs.h >>conftest.$ac_ext |
|
|
6994 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6995 | /* end confdefs.h. */ |
|
|
6996 | |
|
|
6997 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
6998 | #ifdef __cplusplus |
|
|
6999 | extern "C" |
|
|
7000 | #endif |
|
|
7001 | /* We use char because int might match the return type of a gcc2 |
|
|
7002 | builtin and then its argument prototype would still apply. */ |
|
|
7003 | char dlopen (); |
|
|
7004 | int |
|
|
7005 | main () |
|
|
7006 | { |
|
|
7007 | dlopen (); |
|
|
7008 | ; |
|
|
7009 | return 0; |
|
|
7010 | } |
|
|
7011 | _ACEOF |
|
|
7012 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7014 | (eval $ac_link) 2>conftest.er1 |
|
|
7015 | ac_status=$? |
|
|
7016 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7017 | rm -f conftest.er1 |
|
|
7018 | cat conftest.err >&5 |
|
|
7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7020 | (exit $ac_status); } && |
|
|
7021 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7023 | (eval $ac_try) 2>&5 |
|
|
7024 | ac_status=$? |
|
|
7025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7026 | (exit $ac_status); }; } && |
|
|
7027 | { ac_try='test -s conftest$ac_exeext' |
|
|
7028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7029 | (eval $ac_try) 2>&5 |
|
|
7030 | ac_status=$? |
|
|
7031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7032 | (exit $ac_status); }; }; then |
|
|
7033 | ac_cv_lib_dl_dlopen=yes |
|
|
7034 | else |
|
|
7035 | echo "$as_me: failed program was:" >&5 |
|
|
7036 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7037 | |
|
|
7038 | ac_cv_lib_dl_dlopen=no |
|
|
7039 | fi |
|
|
7040 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7041 | conftest$ac_exeext conftest.$ac_ext |
|
|
7042 | LIBS=$ac_check_lib_save_LIBS |
|
|
7043 | fi |
|
|
7044 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
|
|
7045 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
|
|
7046 | if test $ac_cv_lib_dl_dlopen = yes; then |
|
|
7047 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
|
7048 | else |
|
|
7049 | echo "$as_me:$LINENO: checking for dlopen" >&5 |
|
|
7050 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 |
|
|
7051 | if test "${ac_cv_func_dlopen+set}" = set; then |
|
|
7052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7053 | else |
|
|
7054 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7055 | /* confdefs.h. */ |
|
|
7056 | _ACEOF |
|
|
7057 | cat confdefs.h >>conftest.$ac_ext |
|
|
7058 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7059 | /* end confdefs.h. */ |
|
|
7060 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
3875 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
7061 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
3876 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
7062 | #define dlopen innocuous_dlopen |
3877 | #define sched_yield innocuous_sched_yield |
7063 | |
3878 | |
7064 | /* System header to define __stub macros and hopefully few prototypes, |
3879 | /* System header to define __stub macros and hopefully few prototypes, |
7065 | which can conflict with char dlopen (); below. |
3880 | which can conflict with char sched_yield (); below. |
7066 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3881 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
7067 | <limits.h> exists even on freestanding compilers. */ |
3882 | <limits.h> exists even on freestanding compilers. */ |
7068 | |
3883 | |
7069 | #ifdef __STDC__ |
3884 | #ifdef __STDC__ |
7070 | # include <limits.h> |
3885 | # include <limits.h> |
7071 | #else |
3886 | #else |
7072 | # include <assert.h> |
3887 | # include <assert.h> |
7073 | #endif |
3888 | #endif |
7074 | |
3889 | |
7075 | #undef dlopen |
3890 | #undef sched_yield |
7076 | |
3891 | |
7077 | /* Override any gcc2 internal prototype to avoid an error. */ |
3892 | /* Override any gcc2 internal prototype to avoid an error. */ |
7078 | #ifdef __cplusplus |
3893 | #ifdef __cplusplus |
7079 | extern "C" |
3894 | extern "C" |
7080 | { |
3895 | { |
7081 | #endif |
3896 | #endif |
7082 | /* We use char because int might match the return type of a gcc2 |
3897 | /* We use char because int might match the return type of a gcc2 |
7083 | builtin and then its argument prototype would still apply. */ |
3898 | builtin and then its argument prototype would still apply. */ |
7084 | char dlopen (); |
3899 | char sched_yield (); |
7085 | /* The GNU C library defines this for functions which it implements |
3900 | /* The GNU C library defines this for functions which it implements |
7086 | to always fail with ENOSYS. Some functions are actually named |
3901 | to always fail with ENOSYS. Some functions are actually named |
7087 | something starting with __ and the normal name is an alias. */ |
3902 | something starting with __ and the normal name is an alias. */ |
7088 | #if defined (__stub_dlopen) || defined (__stub___dlopen) |
3903 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) |
7089 | choke me |
3904 | choke me |
7090 | #else |
3905 | #else |
7091 | char (*f) () = dlopen; |
3906 | char (*f) () = sched_yield; |
7092 | #endif |
3907 | #endif |
7093 | #ifdef __cplusplus |
3908 | #ifdef __cplusplus |
7094 | } |
3909 | } |
7095 | #endif |
3910 | #endif |
7096 | |
3911 | |
7097 | int |
3912 | int |
7098 | main () |
3913 | main () |
7099 | { |
3914 | { |
7100 | return f != dlopen; |
3915 | return f != sched_yield; |
7101 | ; |
3916 | ; |
7102 | return 0; |
3917 | return 0; |
7103 | } |
3918 | } |
7104 | _ACEOF |
3919 | _ACEOF |
7105 | rm -f conftest.$ac_objext conftest$ac_exeext |
3920 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7122 | (eval $ac_try) 2>&5 |
3937 | (eval $ac_try) 2>&5 |
7123 | ac_status=$? |
3938 | ac_status=$? |
7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7125 | (exit $ac_status); }; }; then |
3940 | (exit $ac_status); }; }; then |
7126 | ac_cv_func_dlopen=yes |
3941 | ac_cv_func_sched_yield=yes |
7127 | else |
3942 | else |
7128 | echo "$as_me: failed program was:" >&5 |
3943 | echo "$as_me: failed program was:" >&5 |
7129 | sed 's/^/| /' conftest.$ac_ext >&5 |
3944 | sed 's/^/| /' conftest.$ac_ext >&5 |
7130 | |
3945 | |
7131 | ac_cv_func_dlopen=no |
3946 | ac_cv_func_sched_yield=no |
7132 | fi |
3947 | fi |
7133 | rm -f conftest.err conftest.$ac_objext \ |
3948 | rm -f conftest.err conftest.$ac_objext \ |
7134 | conftest$ac_exeext conftest.$ac_ext |
3949 | conftest$ac_exeext conftest.$ac_ext |
7135 | fi |
3950 | fi |
7136 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
3951 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 |
7137 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 |
3952 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 |
7138 | if test $ac_cv_func_dlopen = yes; then |
3953 | if test $ac_cv_func_sched_yield = yes; then |
7139 | lt_cv_dlopen="dlopen" |
3954 | : |
7140 | else |
3955 | else |
7141 | echo "$as_me:$LINENO: checking for shl_load" >&5 |
3956 | echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5 |
7142 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 |
3957 | echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6 |
7143 | if test "${ac_cv_func_shl_load+set}" = set; then |
3958 | if test "${ac_cv_lib_rt_sched_yield+set}" = set; then |
7144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7145 | else |
3960 | else |
7146 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7147 | /* confdefs.h. */ |
|
|
7148 | _ACEOF |
|
|
7149 | cat confdefs.h >>conftest.$ac_ext |
|
|
7150 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7151 | /* end confdefs.h. */ |
|
|
7152 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
|
|
7153 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
|
7154 | #define shl_load innocuous_shl_load |
|
|
7155 | |
|
|
7156 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
7157 | which can conflict with char shl_load (); below. |
|
|
7158 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
7159 | <limits.h> exists even on freestanding compilers. */ |
|
|
7160 | |
|
|
7161 | #ifdef __STDC__ |
|
|
7162 | # include <limits.h> |
|
|
7163 | #else |
|
|
7164 | # include <assert.h> |
|
|
7165 | #endif |
|
|
7166 | |
|
|
7167 | #undef shl_load |
|
|
7168 | |
|
|
7169 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7170 | #ifdef __cplusplus |
|
|
7171 | extern "C" |
|
|
7172 | { |
|
|
7173 | #endif |
|
|
7174 | /* We use char because int might match the return type of a gcc2 |
|
|
7175 | builtin and then its argument prototype would still apply. */ |
|
|
7176 | char shl_load (); |
|
|
7177 | /* The GNU C library defines this for functions which it implements |
|
|
7178 | to always fail with ENOSYS. Some functions are actually named |
|
|
7179 | something starting with __ and the normal name is an alias. */ |
|
|
7180 | #if defined (__stub_shl_load) || defined (__stub___shl_load) |
|
|
7181 | choke me |
|
|
7182 | #else |
|
|
7183 | char (*f) () = shl_load; |
|
|
7184 | #endif |
|
|
7185 | #ifdef __cplusplus |
|
|
7186 | } |
|
|
7187 | #endif |
|
|
7188 | |
|
|
7189 | int |
|
|
7190 | main () |
|
|
7191 | { |
|
|
7192 | return f != shl_load; |
|
|
7193 | ; |
|
|
7194 | return 0; |
|
|
7195 | } |
|
|
7196 | _ACEOF |
|
|
7197 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
7198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7199 | (eval $ac_link) 2>conftest.er1 |
|
|
7200 | ac_status=$? |
|
|
7201 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7202 | rm -f conftest.er1 |
|
|
7203 | cat conftest.err >&5 |
|
|
7204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7205 | (exit $ac_status); } && |
|
|
7206 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7208 | (eval $ac_try) 2>&5 |
|
|
7209 | ac_status=$? |
|
|
7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7211 | (exit $ac_status); }; } && |
|
|
7212 | { ac_try='test -s conftest$ac_exeext' |
|
|
7213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7214 | (eval $ac_try) 2>&5 |
|
|
7215 | ac_status=$? |
|
|
7216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7217 | (exit $ac_status); }; }; then |
|
|
7218 | ac_cv_func_shl_load=yes |
|
|
7219 | else |
|
|
7220 | echo "$as_me: failed program was:" >&5 |
|
|
7221 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7222 | |
|
|
7223 | ac_cv_func_shl_load=no |
|
|
7224 | fi |
|
|
7225 | rm -f conftest.err conftest.$ac_objext \ |
|
|
7226 | conftest$ac_exeext conftest.$ac_ext |
|
|
7227 | fi |
|
|
7228 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
|
|
7229 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 |
|
|
7230 | if test $ac_cv_func_shl_load = yes; then |
|
|
7231 | lt_cv_dlopen="shl_load" |
|
|
7232 | else |
|
|
7233 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
|
|
7234 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 |
|
|
7235 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
|
|
7236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7237 | else |
|
|
7238 | ac_check_lib_save_LIBS=$LIBS |
3961 | ac_check_lib_save_LIBS=$LIBS |
7239 | LIBS="-lsvld $LIBS" |
3962 | LIBS="-lrt $LIBS" |
7240 | cat >conftest.$ac_ext <<_ACEOF |
3963 | cat >conftest.$ac_ext <<_ACEOF |
7241 | /* confdefs.h. */ |
3964 | /* confdefs.h. */ |
7242 | _ACEOF |
3965 | _ACEOF |
7243 | cat confdefs.h >>conftest.$ac_ext |
3966 | cat confdefs.h >>conftest.$ac_ext |
7244 | cat >>conftest.$ac_ext <<_ACEOF |
3967 | cat >>conftest.$ac_ext <<_ACEOF |
… | |
… | |
7248 | #ifdef __cplusplus |
3971 | #ifdef __cplusplus |
7249 | extern "C" |
3972 | extern "C" |
7250 | #endif |
3973 | #endif |
7251 | /* We use char because int might match the return type of a gcc2 |
3974 | /* We use char because int might match the return type of a gcc2 |
7252 | builtin and then its argument prototype would still apply. */ |
3975 | builtin and then its argument prototype would still apply. */ |
7253 | char dlopen (); |
3976 | char sched_yield (); |
7254 | int |
3977 | int |
7255 | main () |
3978 | main () |
7256 | { |
3979 | { |
7257 | dlopen (); |
3980 | sched_yield (); |
7258 | ; |
3981 | ; |
7259 | return 0; |
3982 | return 0; |
7260 | } |
3983 | } |
7261 | _ACEOF |
3984 | _ACEOF |
7262 | rm -f conftest.$ac_objext conftest$ac_exeext |
3985 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7279 | (eval $ac_try) 2>&5 |
4002 | (eval $ac_try) 2>&5 |
7280 | ac_status=$? |
4003 | ac_status=$? |
7281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7282 | (exit $ac_status); }; }; then |
4005 | (exit $ac_status); }; }; then |
7283 | ac_cv_lib_svld_dlopen=yes |
4006 | ac_cv_lib_rt_sched_yield=yes |
7284 | else |
4007 | else |
7285 | echo "$as_me: failed program was:" >&5 |
4008 | echo "$as_me: failed program was:" >&5 |
7286 | sed 's/^/| /' conftest.$ac_ext >&5 |
4009 | sed 's/^/| /' conftest.$ac_ext >&5 |
7287 | |
4010 | |
7288 | ac_cv_lib_svld_dlopen=no |
4011 | ac_cv_lib_rt_sched_yield=no |
7289 | fi |
4012 | fi |
7290 | rm -f conftest.err conftest.$ac_objext \ |
4013 | rm -f conftest.err conftest.$ac_objext \ |
7291 | conftest$ac_exeext conftest.$ac_ext |
4014 | conftest$ac_exeext conftest.$ac_ext |
7292 | LIBS=$ac_check_lib_save_LIBS |
4015 | LIBS=$ac_check_lib_save_LIBS |
7293 | fi |
4016 | fi |
7294 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
4017 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5 |
7295 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 |
4018 | echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6 |
7296 | if test $ac_cv_lib_svld_dlopen = yes; then |
4019 | if test $ac_cv_lib_rt_sched_yield = yes; then |
7297 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
4020 | LIBS="$LIBS -lrt" |
7298 | else |
4021 | fi |
|
|
4022 | |
|
|
4023 | fi |
|
|
4024 | |
|
|
4025 | |
7299 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
4026 | echo "$as_me:$LINENO: checking for sched_yield support" >&5 |
7300 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
4027 | echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6 |
7301 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
|
|
7302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7303 | else |
|
|
7304 | ac_check_lib_save_LIBS=$LIBS |
|
|
7305 | LIBS="-ldld $LIBS" |
|
|
7306 | cat >conftest.$ac_ext <<_ACEOF |
4028 | cat >conftest.$ac_ext <<_ACEOF |
7307 | /* confdefs.h. */ |
4029 | /* confdefs.h. */ |
7308 | _ACEOF |
4030 | _ACEOF |
7309 | cat confdefs.h >>conftest.$ac_ext |
4031 | cat confdefs.h >>conftest.$ac_ext |
7310 | cat >>conftest.$ac_ext <<_ACEOF |
4032 | cat >>conftest.$ac_ext <<_ACEOF |
7311 | /* end confdefs.h. */ |
4033 | /* end confdefs.h. */ |
7312 | |
4034 | #include <sched.h> |
7313 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
7314 | #ifdef __cplusplus |
|
|
7315 | extern "C" |
|
|
7316 | #endif |
|
|
7317 | /* We use char because int might match the return type of a gcc2 |
|
|
7318 | builtin and then its argument prototype would still apply. */ |
|
|
7319 | char shl_load (); |
|
|
7320 | int |
4035 | int |
7321 | main () |
4036 | main () |
7322 | { |
4037 | { |
7323 | shl_load (); |
4038 | sched_yield () |
7324 | ; |
4039 | ; |
7325 | return 0; |
4040 | return 0; |
7326 | } |
4041 | } |
7327 | _ACEOF |
4042 | _ACEOF |
7328 | rm -f conftest.$ac_objext conftest$ac_exeext |
4043 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
7344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7345 | (eval $ac_try) 2>&5 |
4060 | (eval $ac_try) 2>&5 |
7346 | ac_status=$? |
4061 | ac_status=$? |
7347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7348 | (exit $ac_status); }; }; then |
4063 | (exit $ac_status); }; }; then |
7349 | ac_cv_lib_dld_shl_load=yes |
4064 | echo "$as_me:$LINENO: result: yes" >&5 |
|
|
4065 | echo "${ECHO_T}yes" >&6 |
|
|
4066 | |
|
|
4067 | cat >>confdefs.h <<\_ACEOF |
|
|
4068 | #define HAVE_SCHED_YIELD 1 |
|
|
4069 | _ACEOF |
|
|
4070 | |
7350 | else |
4071 | else |
7351 | echo "$as_me: failed program was:" >&5 |
4072 | echo "$as_me: failed program was:" >&5 |
7352 | sed 's/^/| /' conftest.$ac_ext >&5 |
4073 | sed 's/^/| /' conftest.$ac_ext >&5 |
7353 | |
4074 | |
7354 | ac_cv_lib_dld_shl_load=no |
4075 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
4076 | echo "${ECHO_T}no" >&6 |
7355 | fi |
4077 | fi |
7356 | rm -f conftest.err conftest.$ac_objext \ |
4078 | rm -f conftest.err conftest.$ac_objext \ |
7357 | conftest$ac_exeext conftest.$ac_ext |
4079 | conftest$ac_exeext conftest.$ac_ext |
7358 | LIBS=$ac_check_lib_save_LIBS |
|
|
7359 | fi |
|
|
7360 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
|
|
7361 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
|
|
7362 | if test $ac_cv_lib_dld_shl_load = yes; then |
|
|
7363 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
|
|
7364 | fi |
|
|
7365 | |
|
|
7366 | |
|
|
7367 | fi |
|
|
7368 | |
|
|
7369 | |
|
|
7370 | fi |
|
|
7371 | |
|
|
7372 | |
|
|
7373 | fi |
|
|
7374 | |
|
|
7375 | |
|
|
7376 | fi |
|
|
7377 | |
|
|
7378 | ;; |
|
|
7379 | esac |
|
|
7380 | |
|
|
7381 | if test "x$lt_cv_dlopen" != xno; then |
|
|
7382 | enable_dlopen=yes |
|
|
7383 | else |
|
|
7384 | enable_dlopen=no |
|
|
7385 | fi |
|
|
7386 | |
|
|
7387 | case "$lt_cv_dlopen" in |
|
|
7388 | dlopen) |
|
|
7389 | save_CPPFLAGS="$CPP_FLAGS" |
|
|
7390 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
|
7391 | |
|
|
7392 | save_LDFLAGS="$LDFLAGS" |
|
|
7393 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
|
7394 | |
|
|
7395 | save_LIBS="$LIBS" |
|
|
7396 | LIBS="$lt_cv_dlopen_libs $LIBS" |
|
|
7397 | |
|
|
7398 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
|
|
7399 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 |
|
|
7400 | if test "${lt_cv_dlopen_self+set}" = set; then |
|
|
7401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7402 | else |
|
|
7403 | if test "$cross_compiling" = yes; then : |
|
|
7404 | lt_cv_dlopen_self=cross |
|
|
7405 | else |
|
|
7406 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
7407 | lt_status=$lt_dlunknown |
|
|
7408 | cat > conftest.$ac_ext <<EOF |
|
|
7409 | #line 7409 "configure" |
|
|
7410 | #include "confdefs.h" |
|
|
7411 | |
|
|
7412 | #if HAVE_DLFCN_H |
|
|
7413 | #include <dlfcn.h> |
|
|
7414 | #endif |
|
|
7415 | |
|
|
7416 | #include <stdio.h> |
|
|
7417 | |
|
|
7418 | #ifdef RTLD_GLOBAL |
|
|
7419 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
7420 | #else |
|
|
7421 | # ifdef DL_GLOBAL |
|
|
7422 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
7423 | # else |
|
|
7424 | # define LT_DLGLOBAL 0 |
|
|
7425 | # endif |
|
|
7426 | #endif |
|
|
7427 | |
|
|
7428 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
7429 | find out it does not work in some platform. */ |
|
|
7430 | #ifndef LT_DLLAZY_OR_NOW |
|
|
7431 | # ifdef RTLD_LAZY |
|
|
7432 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
7433 | # else |
|
|
7434 | # ifdef DL_LAZY |
|
|
7435 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
7436 | # else |
|
|
7437 | # ifdef RTLD_NOW |
|
|
7438 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
7439 | # else |
|
|
7440 | # ifdef DL_NOW |
|
|
7441 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
7442 | # else |
|
|
7443 | # define LT_DLLAZY_OR_NOW 0 |
|
|
7444 | # endif |
|
|
7445 | # endif |
|
|
7446 | # endif |
|
|
7447 | # endif |
|
|
7448 | #endif |
|
|
7449 | |
|
|
7450 | #ifdef __cplusplus |
|
|
7451 | extern "C" void exit (int); |
|
|
7452 | #endif |
|
|
7453 | |
|
|
7454 | fnord() { int i=42;} |
|
|
7455 | main () |
|
|
7456 | { |
|
|
7457 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
7458 | int status = $lt_dlunknown; |
|
|
7459 | |
|
|
7460 | if (self) |
|
|
7461 | { |
|
|
7462 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
7463 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
7464 | /* dlclose (self); */ |
|
|
7465 | } |
|
|
7466 | |
|
|
7467 | exit (status); |
|
|
7468 | } |
|
|
7469 | EOF |
|
|
7470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7471 | (eval $ac_link) 2>&5 |
|
|
7472 | ac_status=$? |
|
|
7473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7474 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
7475 | (./conftest; exit; ) 2>/dev/null |
|
|
7476 | lt_status=$? |
|
|
7477 | case x$lt_status in |
|
|
7478 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
|
7479 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
|
7480 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
|
|
7481 | esac |
|
|
7482 | else : |
|
|
7483 | # compilation failed |
|
|
7484 | lt_cv_dlopen_self=no |
|
|
7485 | fi |
|
|
7486 | fi |
|
|
7487 | rm -fr conftest* |
|
|
7488 | |
|
|
7489 | |
|
|
7490 | fi |
|
|
7491 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
|
|
7492 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
|
|
7493 | |
|
|
7494 | if test "x$lt_cv_dlopen_self" = xyes; then |
|
|
7495 | LDFLAGS="$LDFLAGS $link_static_flag" |
|
|
7496 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
|
|
7497 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
|
|
7498 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
|
|
7499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7500 | else |
|
|
7501 | if test "$cross_compiling" = yes; then : |
|
|
7502 | lt_cv_dlopen_self_static=cross |
|
|
7503 | else |
|
|
7504 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
|
7505 | lt_status=$lt_dlunknown |
|
|
7506 | cat > conftest.$ac_ext <<EOF |
|
|
7507 | #line 7507 "configure" |
|
|
7508 | #include "confdefs.h" |
|
|
7509 | |
|
|
7510 | #if HAVE_DLFCN_H |
|
|
7511 | #include <dlfcn.h> |
|
|
7512 | #endif |
|
|
7513 | |
|
|
7514 | #include <stdio.h> |
|
|
7515 | |
|
|
7516 | #ifdef RTLD_GLOBAL |
|
|
7517 | # define LT_DLGLOBAL RTLD_GLOBAL |
|
|
7518 | #else |
|
|
7519 | # ifdef DL_GLOBAL |
|
|
7520 | # define LT_DLGLOBAL DL_GLOBAL |
|
|
7521 | # else |
|
|
7522 | # define LT_DLGLOBAL 0 |
|
|
7523 | # endif |
|
|
7524 | #endif |
|
|
7525 | |
|
|
7526 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
|
7527 | find out it does not work in some platform. */ |
|
|
7528 | #ifndef LT_DLLAZY_OR_NOW |
|
|
7529 | # ifdef RTLD_LAZY |
|
|
7530 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
|
7531 | # else |
|
|
7532 | # ifdef DL_LAZY |
|
|
7533 | # define LT_DLLAZY_OR_NOW DL_LAZY |
|
|
7534 | # else |
|
|
7535 | # ifdef RTLD_NOW |
|
|
7536 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
|
|
7537 | # else |
|
|
7538 | # ifdef DL_NOW |
|
|
7539 | # define LT_DLLAZY_OR_NOW DL_NOW |
|
|
7540 | # else |
|
|
7541 | # define LT_DLLAZY_OR_NOW 0 |
|
|
7542 | # endif |
|
|
7543 | # endif |
|
|
7544 | # endif |
|
|
7545 | # endif |
|
|
7546 | #endif |
|
|
7547 | |
|
|
7548 | #ifdef __cplusplus |
|
|
7549 | extern "C" void exit (int); |
|
|
7550 | #endif |
|
|
7551 | |
|
|
7552 | fnord() { int i=42;} |
|
|
7553 | main () |
|
|
7554 | { |
|
|
7555 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
|
7556 | int status = $lt_dlunknown; |
|
|
7557 | |
|
|
7558 | if (self) |
|
|
7559 | { |
|
|
7560 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
|
7561 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
|
7562 | /* dlclose (self); */ |
|
|
7563 | } |
|
|
7564 | |
|
|
7565 | exit (status); |
|
|
7566 | } |
|
|
7567 | EOF |
|
|
7568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7569 | (eval $ac_link) 2>&5 |
|
|
7570 | ac_status=$? |
|
|
7571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7572 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
|
7573 | (./conftest; exit; ) 2>/dev/null |
|
|
7574 | lt_status=$? |
|
|
7575 | case x$lt_status in |
|
|
7576 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7577 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
|
7578 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
|
|
7579 | esac |
|
|
7580 | else : |
|
|
7581 | # compilation failed |
|
|
7582 | lt_cv_dlopen_self_static=no |
|
|
7583 | fi |
|
|
7584 | fi |
|
|
7585 | rm -fr conftest* |
|
|
7586 | |
|
|
7587 | |
|
|
7588 | fi |
|
|
7589 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
|
|
7590 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 |
|
|
7591 | fi |
|
|
7592 | |
|
|
7593 | CPPFLAGS="$save_CPPFLAGS" |
|
|
7594 | LDFLAGS="$save_LDFLAGS" |
|
|
7595 | LIBS="$save_LIBS" |
|
|
7596 | ;; |
|
|
7597 | esac |
|
|
7598 | |
|
|
7599 | case "$lt_cv_dlopen_self" in |
|
|
7600 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
|
7601 | *) enable_dlopen_self=unknown ;; |
|
|
7602 | esac |
|
|
7603 | |
|
|
7604 | case "$lt_cv_dlopen_self_static" in |
|
|
7605 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
|
7606 | *) enable_dlopen_self_static=unknown ;; |
|
|
7607 | esac |
|
|
7608 | fi |
|
|
7609 | |
|
|
7610 | |
|
|
7611 | ## FIXME: this should be a separate macro |
|
|
7612 | ## |
|
|
7613 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
|
7614 | case "$archive_cmds" in |
|
|
7615 | *'~'*) |
|
|
7616 | # FIXME: we may have to deal with multi-command sequences. |
|
|
7617 | ;; |
|
|
7618 | '$CC '*) |
|
|
7619 | # Test whether the compiler implicitly links with -lc since on some |
|
|
7620 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
|
7621 | # to ld, don't add -lc before -lgcc. |
|
|
7622 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
|
|
7623 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 |
|
|
7624 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
|
|
7625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7626 | else |
|
|
7627 | $rm conftest* |
|
|
7628 | echo 'static int dummy;' > conftest.$ac_ext |
|
|
7629 | |
|
|
7630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7631 | (eval $ac_compile) 2>&5 |
|
|
7632 | ac_status=$? |
|
|
7633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7634 | (exit $ac_status); }; then |
|
|
7635 | soname=conftest |
|
|
7636 | lib=conftest |
|
|
7637 | libobjs=conftest.$ac_objext |
|
|
7638 | deplibs= |
|
|
7639 | wl=$lt_cv_prog_cc_wl |
|
|
7640 | compiler_flags=-v |
|
|
7641 | linker_flags=-v |
|
|
7642 | verstring= |
|
|
7643 | output_objdir=. |
|
|
7644 | libname=conftest |
|
|
7645 | save_allow_undefined_flag=$allow_undefined_flag |
|
|
7646 | allow_undefined_flag= |
|
|
7647 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
|
|
7648 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
|
7649 | ac_status=$? |
|
|
7650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7651 | (exit $ac_status); } |
|
|
7652 | then |
|
|
7653 | lt_cv_archive_cmds_need_lc=no |
|
|
7654 | else |
|
|
7655 | lt_cv_archive_cmds_need_lc=yes |
|
|
7656 | fi |
|
|
7657 | allow_undefined_flag=$save_allow_undefined_flag |
|
|
7658 | else |
|
|
7659 | cat conftest.err 1>&5 |
|
|
7660 | fi |
|
|
7661 | fi |
|
|
7662 | |
|
|
7663 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 |
|
|
7664 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 |
|
|
7665 | ;; |
|
|
7666 | esac |
|
|
7667 | fi |
|
|
7668 | need_lc=${lt_cv_archive_cmds_need_lc-yes} |
|
|
7669 | ## |
|
|
7670 | ## END FIXME |
|
|
7671 | |
|
|
7672 | ## FIXME: this should be a separate macro |
|
|
7673 | ## |
|
|
7674 | # The second clause should only fire when bootstrapping the |
|
|
7675 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
|
|
7676 | # with your package, and you will get complaints that there are |
|
|
7677 | # no rules to generate ltmain.sh. |
|
|
7678 | if test -f "$ltmain"; then |
|
|
7679 | : |
|
|
7680 | else |
|
|
7681 | # If there is no Makefile yet, we rely on a make rule to execute |
|
|
7682 | # `config.status --recheck' to rerun these tests and create the |
|
|
7683 | # libtool script then. |
|
|
7684 | test -f Makefile && make "$ltmain" |
|
|
7685 | fi |
|
|
7686 | |
|
|
7687 | if test -f "$ltmain"; then |
|
|
7688 | trap "$rm \"${ofile}T\"; exit 1" 1 2 15 |
|
|
7689 | $rm -f "${ofile}T" |
|
|
7690 | |
|
|
7691 | echo creating $ofile |
|
|
7692 | |
|
|
7693 | # Now quote all the things that may contain metacharacters while being |
|
|
7694 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
|
|
7695 | # variables and quote the copies for generation of the libtool script. |
|
|
7696 | for var in echo old_CC old_CFLAGS \ |
|
|
7697 | AR AR_FLAGS CC LD LN_S NM SHELL \ |
|
|
7698 | reload_flag reload_cmds wl \ |
|
|
7699 | pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ |
|
|
7700 | thread_safe_flag_spec whole_archive_flag_spec libname_spec \ |
|
|
7701 | library_names_spec soname_spec \ |
|
|
7702 | RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ |
|
|
7703 | old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ |
|
|
7704 | postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ |
|
|
7705 | old_striplib striplib file_magic_cmd export_symbols_cmds \ |
|
|
7706 | deplibs_check_method allow_undefined_flag no_undefined_flag \ |
|
|
7707 | finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ |
|
|
7708 | hardcode_libdir_flag_spec hardcode_libdir_separator \ |
|
|
7709 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
|
|
7710 | compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do |
|
|
7711 | |
|
|
7712 | case "$var" in |
|
|
7713 | reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ |
|
|
7714 | old_postinstall_cmds | old_postuninstall_cmds | \ |
|
|
7715 | export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ |
|
|
7716 | extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ |
|
|
7717 | postinstall_cmds | postuninstall_cmds | \ |
|
|
7718 | finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
|
|
7719 | # Double-quote double-evaled strings. |
|
|
7720 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
|
|
7721 | ;; |
|
|
7722 | *) |
|
|
7723 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
|
|
7724 | ;; |
|
|
7725 | esac |
|
|
7726 | done |
|
|
7727 | |
|
|
7728 | cat <<__EOF__ > "${ofile}T" |
|
|
7729 | #! $SHELL |
|
|
7730 | |
|
|
7731 | # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
|
7732 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
|
|
7733 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
|
7734 | # |
|
|
7735 | # Copyright (C) 1996-2000 Free Software Foundation, Inc. |
|
|
7736 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
|
|
7737 | # |
|
|
7738 | # This program is free software; you can redistribute it and/or modify |
|
|
7739 | # it under the terms of the GNU General Public License as published by |
|
|
7740 | # the Free Software Foundation; either version 2 of the License, or |
|
|
7741 | # (at your option) any later version. |
|
|
7742 | # |
|
|
7743 | # This program is distributed in the hope that it will be useful, but |
|
|
7744 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
7745 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
7746 | # General Public License for more details. |
|
|
7747 | # |
|
|
7748 | # You should have received a copy of the GNU General Public License |
|
|
7749 | # along with this program; if not, write to the Free Software |
|
|
7750 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
7751 | # |
|
|
7752 | # As a special exception to the GNU General Public License, if you |
|
|
7753 | # distribute this file as part of a program that contains a |
|
|
7754 | # configuration script generated by Autoconf, you may include it under |
|
|
7755 | # the same distribution terms that you use for the rest of that program. |
|
|
7756 | |
|
|
7757 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
|
7758 | Xsed="sed -e s/^X//" |
|
|
7759 | |
|
|
7760 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
|
|
7761 | # if CDPATH is set. |
|
|
7762 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi |
|
|
7763 | |
|
|
7764 | # ### BEGIN LIBTOOL CONFIG |
|
|
7765 | |
|
|
7766 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
7767 | |
|
|
7768 | # Shell to use when invoking shell scripts. |
|
|
7769 | SHELL=$lt_SHELL |
|
|
7770 | |
|
|
7771 | # Whether or not to build shared libraries. |
|
|
7772 | build_libtool_libs=$enable_shared |
|
|
7773 | |
|
|
7774 | # Whether or not to add -lc for building shared libraries. |
|
|
7775 | build_libtool_need_lc=$need_lc |
|
|
7776 | |
|
|
7777 | # Whether or not to build static libraries. |
|
|
7778 | build_old_libs=$enable_static |
|
|
7779 | |
|
|
7780 | # Whether or not to optimize for fast installation. |
|
|
7781 | fast_install=$enable_fast_install |
|
|
7782 | |
|
|
7783 | # The host system. |
|
|
7784 | host_alias=$host_alias |
|
|
7785 | host=$host |
|
|
7786 | |
|
|
7787 | # An echo program that does not interpret backslashes. |
|
|
7788 | echo=$lt_echo |
|
|
7789 | |
|
|
7790 | # The archiver. |
|
|
7791 | AR=$lt_AR |
|
|
7792 | AR_FLAGS=$lt_AR_FLAGS |
|
|
7793 | |
|
|
7794 | # The default C compiler. |
|
|
7795 | CC=$lt_CC |
|
|
7796 | |
|
|
7797 | # Is the compiler the GNU C compiler? |
|
|
7798 | with_gcc=$GCC |
|
|
7799 | |
|
|
7800 | # The linker used to build libraries. |
|
|
7801 | LD=$lt_LD |
|
|
7802 | |
|
|
7803 | # Whether we need hard or soft links. |
|
|
7804 | LN_S=$lt_LN_S |
|
|
7805 | |
|
|
7806 | # A BSD-compatible nm program. |
|
|
7807 | NM=$lt_NM |
|
|
7808 | |
|
|
7809 | # A symbol stripping program |
|
|
7810 | STRIP=$STRIP |
|
|
7811 | |
|
|
7812 | # Used to examine libraries when file_magic_cmd begins "file" |
|
|
7813 | MAGIC_CMD=$MAGIC_CMD |
|
|
7814 | |
|
|
7815 | # Used on cygwin: DLL creation program. |
|
|
7816 | DLLTOOL="$DLLTOOL" |
|
|
7817 | |
|
|
7818 | # Used on cygwin: object dumper. |
|
|
7819 | OBJDUMP="$OBJDUMP" |
|
|
7820 | |
|
|
7821 | # Used on cygwin: assembler. |
|
|
7822 | AS="$AS" |
|
|
7823 | |
|
|
7824 | # The name of the directory that contains temporary libtool files. |
|
|
7825 | objdir=$objdir |
|
|
7826 | |
|
|
7827 | # How to create reloadable object files. |
|
|
7828 | reload_flag=$lt_reload_flag |
|
|
7829 | reload_cmds=$lt_reload_cmds |
|
|
7830 | |
|
|
7831 | # How to pass a linker flag through the compiler. |
|
|
7832 | wl=$lt_wl |
|
|
7833 | |
|
|
7834 | # Object file suffix (normally "o"). |
|
|
7835 | objext="$ac_objext" |
|
|
7836 | |
|
|
7837 | # Old archive suffix (normally "a"). |
|
|
7838 | libext="$libext" |
|
|
7839 | |
|
|
7840 | # Executable file suffix (normally ""). |
|
|
7841 | exeext="$exeext" |
|
|
7842 | |
|
|
7843 | # Additional compiler flags for building library objects. |
|
|
7844 | pic_flag=$lt_pic_flag |
|
|
7845 | pic_mode=$pic_mode |
|
|
7846 | |
|
|
7847 | # Does compiler simultaneously support -c and -o options? |
|
|
7848 | compiler_c_o=$lt_compiler_c_o |
|
|
7849 | |
|
|
7850 | # Can we write directly to a .lo ? |
|
|
7851 | compiler_o_lo=$lt_compiler_o_lo |
|
|
7852 | |
|
|
7853 | # Must we lock files when doing compilation ? |
|
|
7854 | need_locks=$lt_need_locks |
|
|
7855 | |
|
|
7856 | # Do we need the lib prefix for modules? |
|
|
7857 | need_lib_prefix=$need_lib_prefix |
|
|
7858 | |
|
|
7859 | # Do we need a version for libraries? |
|
|
7860 | need_version=$need_version |
|
|
7861 | |
|
|
7862 | # Whether dlopen is supported. |
|
|
7863 | dlopen_support=$enable_dlopen |
|
|
7864 | |
|
|
7865 | # Whether dlopen of programs is supported. |
|
|
7866 | dlopen_self=$enable_dlopen_self |
|
|
7867 | |
|
|
7868 | # Whether dlopen of statically linked programs is supported. |
|
|
7869 | dlopen_self_static=$enable_dlopen_self_static |
|
|
7870 | |
|
|
7871 | # Compiler flag to prevent dynamic linking. |
|
|
7872 | link_static_flag=$lt_link_static_flag |
|
|
7873 | |
|
|
7874 | # Compiler flag to turn off builtin functions. |
|
|
7875 | no_builtin_flag=$lt_no_builtin_flag |
|
|
7876 | |
|
|
7877 | # Compiler flag to allow reflexive dlopens. |
|
|
7878 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
|
7879 | |
|
|
7880 | # Compiler flag to generate shared objects directly from archives. |
|
|
7881 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
|
7882 | |
|
|
7883 | # Compiler flag to generate thread-safe objects. |
|
|
7884 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
|
|
7885 | |
|
|
7886 | # Library versioning type. |
|
|
7887 | version_type=$version_type |
|
|
7888 | |
|
|
7889 | # Format of library name prefix. |
|
|
7890 | libname_spec=$lt_libname_spec |
|
|
7891 | |
|
|
7892 | # List of archive names. First name is the real one, the rest are links. |
|
|
7893 | # The last name is the one that the linker finds with -lNAME. |
|
|
7894 | library_names_spec=$lt_library_names_spec |
|
|
7895 | |
|
|
7896 | # The coded name of the library, if different from the real name. |
|
|
7897 | soname_spec=$lt_soname_spec |
|
|
7898 | |
|
|
7899 | # Commands used to build and install an old-style archive. |
|
|
7900 | RANLIB=$lt_RANLIB |
|
|
7901 | old_archive_cmds=$lt_old_archive_cmds |
|
|
7902 | old_postinstall_cmds=$lt_old_postinstall_cmds |
|
|
7903 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
|
7904 | |
|
|
7905 | # Create an old-style archive from a shared archive. |
|
|
7906 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
|
7907 | |
|
|
7908 | # Create a temporary old-style archive to link instead of a shared archive. |
|
|
7909 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
|
7910 | |
|
|
7911 | # Commands used to build and install a shared archive. |
|
|
7912 | archive_cmds=$lt_archive_cmds |
|
|
7913 | archive_expsym_cmds=$lt_archive_expsym_cmds |
|
|
7914 | postinstall_cmds=$lt_postinstall_cmds |
|
|
7915 | postuninstall_cmds=$lt_postuninstall_cmds |
|
|
7916 | |
|
|
7917 | # Commands to strip libraries. |
|
|
7918 | old_striplib=$lt_old_striplib |
|
|
7919 | striplib=$lt_striplib |
|
|
7920 | |
|
|
7921 | # Method to check whether dependent libraries are shared objects. |
|
|
7922 | deplibs_check_method=$lt_deplibs_check_method |
|
|
7923 | |
|
|
7924 | # Command to use when deplibs_check_method == file_magic. |
|
|
7925 | file_magic_cmd=$lt_file_magic_cmd |
|
|
7926 | |
|
|
7927 | # Flag that allows shared libraries with undefined symbols to be built. |
|
|
7928 | allow_undefined_flag=$lt_allow_undefined_flag |
|
|
7929 | |
|
|
7930 | # Flag that forces no undefined symbols. |
|
|
7931 | no_undefined_flag=$lt_no_undefined_flag |
|
|
7932 | |
|
|
7933 | # Commands used to finish a libtool library installation in a directory. |
|
|
7934 | finish_cmds=$lt_finish_cmds |
|
|
7935 | |
|
|
7936 | # Same as above, but a single script fragment to be evaled but not shown. |
|
|
7937 | finish_eval=$lt_finish_eval |
|
|
7938 | |
|
|
7939 | # Take the output of nm and produce a listing of raw symbols and C names. |
|
|
7940 | global_symbol_pipe=$lt_global_symbol_pipe |
|
|
7941 | |
|
|
7942 | # Transform the output of nm in a proper C declaration |
|
|
7943 | global_symbol_to_cdecl=$lt_global_symbol_to_cdecl |
|
|
7944 | |
|
|
7945 | # This is the shared library runtime path variable. |
|
|
7946 | runpath_var=$runpath_var |
|
|
7947 | |
|
|
7948 | # This is the shared library path variable. |
|
|
7949 | shlibpath_var=$shlibpath_var |
|
|
7950 | |
|
|
7951 | # Is shlibpath searched before the hard-coded library search path? |
|
|
7952 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
|
7953 | |
|
|
7954 | # How to hardcode a shared library path into an executable. |
|
|
7955 | hardcode_action=$hardcode_action |
|
|
7956 | |
|
|
7957 | # Whether we should hardcode library paths into libraries. |
|
|
7958 | hardcode_into_libs=$hardcode_into_libs |
|
|
7959 | |
|
|
7960 | # Flag to hardcode \$libdir into a binary during linking. |
|
|
7961 | # This must work even if \$libdir does not exist. |
|
|
7962 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
|
7963 | |
|
|
7964 | # Whether we need a single -rpath flag with a separated argument. |
|
|
7965 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
|
7966 | |
|
|
7967 | # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the |
|
|
7968 | # resulting binary. |
|
|
7969 | hardcode_direct=$hardcode_direct |
|
|
7970 | |
|
|
7971 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
|
|
7972 | # resulting binary. |
|
|
7973 | hardcode_minus_L=$hardcode_minus_L |
|
|
7974 | |
|
|
7975 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
|
|
7976 | # the resulting binary. |
|
|
7977 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
|
7978 | |
|
|
7979 | # Variables whose values should be saved in libtool wrapper scripts and |
|
|
7980 | # restored at relink time. |
|
|
7981 | variables_saved_for_relink="$variables_saved_for_relink" |
|
|
7982 | |
|
|
7983 | # Whether libtool must link a program against all its dependency libraries. |
|
|
7984 | link_all_deplibs=$link_all_deplibs |
|
|
7985 | |
|
|
7986 | # Compile-time system search path for libraries |
|
|
7987 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
|
7988 | |
|
|
7989 | # Run-time system search path for libraries |
|
|
7990 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
|
7991 | |
|
|
7992 | # Fix the shell variable \$srcfile for the compiler. |
|
|
7993 | fix_srcfile_path="$fix_srcfile_path" |
|
|
7994 | |
|
|
7995 | # Set to yes if exported symbols are required. |
|
|
7996 | always_export_symbols=$always_export_symbols |
|
|
7997 | |
|
|
7998 | # The commands to list exported symbols. |
|
|
7999 | export_symbols_cmds=$lt_export_symbols_cmds |
|
|
8000 | |
|
|
8001 | # The commands to extract the exported symbol list from a shared archive. |
|
|
8002 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
|
8003 | |
|
|
8004 | # Symbols that should not be listed in the preloaded symbols. |
|
|
8005 | exclude_expsyms=$lt_exclude_expsyms |
|
|
8006 | |
|
|
8007 | # Symbols that must always be exported. |
|
|
8008 | include_expsyms=$lt_include_expsyms |
|
|
8009 | |
|
|
8010 | # ### END LIBTOOL CONFIG |
|
|
8011 | |
|
|
8012 | __EOF__ |
|
|
8013 | |
|
|
8014 | case "$host_os" in |
|
|
8015 | aix3*) |
|
|
8016 | cat <<\EOF >> "${ofile}T" |
|
|
8017 | |
|
|
8018 | # AIX sometimes has problems with the GCC collect2 program. For some |
|
|
8019 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
|
|
8020 | # vanish in a puff of smoke. |
|
|
8021 | if test "X${COLLECT_NAMES+set}" != Xset; then |
|
|
8022 | COLLECT_NAMES= |
|
|
8023 | export COLLECT_NAMES |
|
|
8024 | fi |
|
|
8025 | EOF |
|
|
8026 | ;; |
|
|
8027 | esac |
|
|
8028 | |
|
|
8029 | case "$host_os" in |
|
|
8030 | cygwin* | mingw* | pw32* | os2*) |
|
|
8031 | cat <<'EOF' >> "${ofile}T" |
|
|
8032 | # This is a source program that is used to create dlls on Windows |
|
|
8033 | # Don't remove nor modify the starting and closing comments |
|
|
8034 | # /* ltdll.c starts here */ |
|
|
8035 | # #define WIN32_LEAN_AND_MEAN |
|
|
8036 | # #include <windows.h> |
|
|
8037 | # #undef WIN32_LEAN_AND_MEAN |
|
|
8038 | # #include <stdio.h> |
|
|
8039 | # |
|
|
8040 | # #ifndef __CYGWIN__ |
|
|
8041 | # # ifdef __CYGWIN32__ |
|
|
8042 | # # define __CYGWIN__ __CYGWIN32__ |
|
|
8043 | # # endif |
|
|
8044 | # #endif |
|
|
8045 | # |
|
|
8046 | # #ifdef __cplusplus |
|
|
8047 | # extern "C" { |
|
|
8048 | # #endif |
|
|
8049 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); |
|
|
8050 | # #ifdef __cplusplus |
|
|
8051 | # } |
|
|
8052 | # #endif |
|
|
8053 | # |
|
|
8054 | # #ifdef __CYGWIN__ |
|
|
8055 | # #include <cygwin/cygwin_dll.h> |
|
|
8056 | # DECLARE_CYGWIN_DLL( DllMain ); |
|
|
8057 | # #endif |
|
|
8058 | # HINSTANCE __hDllInstance_base; |
|
|
8059 | # |
|
|
8060 | # BOOL APIENTRY |
|
|
8061 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) |
|
|
8062 | # { |
|
|
8063 | # __hDllInstance_base = hInst; |
|
|
8064 | # return TRUE; |
|
|
8065 | # } |
|
|
8066 | # /* ltdll.c ends here */ |
|
|
8067 | # This is a source program that is used to create import libraries |
|
|
8068 | # on Windows for dlls which lack them. Don't remove nor modify the |
|
|
8069 | # starting and closing comments |
|
|
8070 | # /* impgen.c starts here */ |
|
|
8071 | # /* Copyright (C) 1999-2000 Free Software Foundation, Inc. |
|
|
8072 | # |
|
|
8073 | # This file is part of GNU libtool. |
|
|
8074 | # |
|
|
8075 | # This program is free software; you can redistribute it and/or modify |
|
|
8076 | # it under the terms of the GNU General Public License as published by |
|
|
8077 | # the Free Software Foundation; either version 2 of the License, or |
|
|
8078 | # (at your option) any later version. |
|
|
8079 | # |
|
|
8080 | # This program is distributed in the hope that it will be useful, |
|
|
8081 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
8082 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
8083 | # GNU General Public License for more details. |
|
|
8084 | # |
|
|
8085 | # You should have received a copy of the GNU General Public License |
|
|
8086 | # along with this program; if not, write to the Free Software |
|
|
8087 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
|
8088 | # */ |
|
|
8089 | # |
|
|
8090 | # #include <stdio.h> /* for printf() */ |
|
|
8091 | # #include <unistd.h> /* for open(), lseek(), read() */ |
|
|
8092 | # #include <fcntl.h> /* for O_RDONLY, O_BINARY */ |
|
|
8093 | # #include <string.h> /* for strdup() */ |
|
|
8094 | # |
|
|
8095 | # /* O_BINARY isn't required (or even defined sometimes) under Unix */ |
|
|
8096 | # #ifndef O_BINARY |
|
|
8097 | # #define O_BINARY 0 |
|
|
8098 | # #endif |
|
|
8099 | # |
|
|
8100 | # static unsigned int |
|
|
8101 | # pe_get16 (fd, offset) |
|
|
8102 | # int fd; |
|
|
8103 | # int offset; |
|
|
8104 | # { |
|
|
8105 | # unsigned char b[2]; |
|
|
8106 | # lseek (fd, offset, SEEK_SET); |
|
|
8107 | # read (fd, b, 2); |
|
|
8108 | # return b[0] + (b[1]<<8); |
|
|
8109 | # } |
|
|
8110 | # |
|
|
8111 | # static unsigned int |
|
|
8112 | # pe_get32 (fd, offset) |
|
|
8113 | # int fd; |
|
|
8114 | # int offset; |
|
|
8115 | # { |
|
|
8116 | # unsigned char b[4]; |
|
|
8117 | # lseek (fd, offset, SEEK_SET); |
|
|
8118 | # read (fd, b, 4); |
|
|
8119 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
8120 | # } |
|
|
8121 | # |
|
|
8122 | # static unsigned int |
|
|
8123 | # pe_as32 (ptr) |
|
|
8124 | # void *ptr; |
|
|
8125 | # { |
|
|
8126 | # unsigned char *b = ptr; |
|
|
8127 | # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); |
|
|
8128 | # } |
|
|
8129 | # |
|
|
8130 | # int |
|
|
8131 | # main (argc, argv) |
|
|
8132 | # int argc; |
|
|
8133 | # char *argv[]; |
|
|
8134 | # { |
|
|
8135 | # int dll; |
|
|
8136 | # unsigned long pe_header_offset, opthdr_ofs, num_entries, i; |
|
|
8137 | # unsigned long export_rva, export_size, nsections, secptr, expptr; |
|
|
8138 | # unsigned long name_rvas, nexp; |
|
|
8139 | # unsigned char *expdata, *erva; |
|
|
8140 | # char *filename, *dll_name; |
|
|
8141 | # |
|
|
8142 | # filename = argv[1]; |
|
|
8143 | # |
|
|
8144 | # dll = open(filename, O_RDONLY|O_BINARY); |
|
|
8145 | # if (!dll) |
|
|
8146 | # return 1; |
|
|
8147 | # |
|
|
8148 | # dll_name = filename; |
|
|
8149 | # |
|
|
8150 | # for (i=0; filename[i]; i++) |
|
|
8151 | # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') |
|
|
8152 | # dll_name = filename + i +1; |
|
|
8153 | # |
|
|
8154 | # pe_header_offset = pe_get32 (dll, 0x3c); |
|
|
8155 | # opthdr_ofs = pe_header_offset + 4 + 20; |
|
|
8156 | # num_entries = pe_get32 (dll, opthdr_ofs + 92); |
|
|
8157 | # |
|
|
8158 | # if (num_entries < 1) /* no exports */ |
|
|
8159 | # return 1; |
|
|
8160 | # |
|
|
8161 | # export_rva = pe_get32 (dll, opthdr_ofs + 96); |
|
|
8162 | # export_size = pe_get32 (dll, opthdr_ofs + 100); |
|
|
8163 | # nsections = pe_get16 (dll, pe_header_offset + 4 +2); |
|
|
8164 | # secptr = (pe_header_offset + 4 + 20 + |
|
|
8165 | # pe_get16 (dll, pe_header_offset + 4 + 16)); |
|
|
8166 | # |
|
|
8167 | # expptr = 0; |
|
|
8168 | # for (i = 0; i < nsections; i++) |
|
|
8169 | # { |
|
|
8170 | # char sname[8]; |
|
|
8171 | # unsigned long secptr1 = secptr + 40 * i; |
|
|
8172 | # unsigned long vaddr = pe_get32 (dll, secptr1 + 12); |
|
|
8173 | # unsigned long vsize = pe_get32 (dll, secptr1 + 16); |
|
|
8174 | # unsigned long fptr = pe_get32 (dll, secptr1 + 20); |
|
|
8175 | # lseek(dll, secptr1, SEEK_SET); |
|
|
8176 | # read(dll, sname, 8); |
|
|
8177 | # if (vaddr <= export_rva && vaddr+vsize > export_rva) |
|
|
8178 | # { |
|
|
8179 | # expptr = fptr + (export_rva - vaddr); |
|
|
8180 | # if (export_rva + export_size > vaddr + vsize) |
|
|
8181 | # export_size = vsize - (export_rva - vaddr); |
|
|
8182 | # break; |
|
|
8183 | # } |
|
|
8184 | # } |
|
|
8185 | # |
|
|
8186 | # expdata = (unsigned char*)malloc(export_size); |
|
|
8187 | # lseek (dll, expptr, SEEK_SET); |
|
|
8188 | # read (dll, expdata, export_size); |
|
|
8189 | # erva = expdata - export_rva; |
|
|
8190 | # |
|
|
8191 | # nexp = pe_as32 (expdata+24); |
|
|
8192 | # name_rvas = pe_as32 (expdata+32); |
|
|
8193 | # |
|
|
8194 | # printf ("EXPORTS\n"); |
|
|
8195 | # for (i = 0; i<nexp; i++) |
|
|
8196 | # { |
|
|
8197 | # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); |
|
|
8198 | # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); |
|
|
8199 | # } |
|
|
8200 | # |
|
|
8201 | # return 0; |
|
|
8202 | # } |
|
|
8203 | # /* impgen.c ends here */ |
|
|
8204 | |
|
|
8205 | EOF |
|
|
8206 | ;; |
|
|
8207 | esac |
|
|
8208 | |
|
|
8209 | # We use sed instead of cat because bash on DJGPP gets confused if |
|
|
8210 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
|
8211 | # text mode, it properly converts lines to CR/LF. This bash problem |
|
|
8212 | # is reportedly fixed, but why not run on old versions too? |
|
|
8213 | sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) |
|
|
8214 | |
|
|
8215 | mv -f "${ofile}T" "$ofile" || \ |
|
|
8216 | (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") |
|
|
8217 | chmod +x "$ofile" |
|
|
8218 | fi |
|
|
8219 | ## |
|
|
8220 | ## END FIXME |
|
|
8221 | |
|
|
8222 | |
|
|
8223 | |
|
|
8224 | |
|
|
8225 | |
|
|
8226 | # This can be used to rebuild libtool when needed |
|
|
8227 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
|
|
8228 | |
|
|
8229 | # Always use our own libtool. |
|
|
8230 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
|
8231 | |
|
|
8232 | # Prevent multiple expansion |
|
|
8233 | |
4080 | |
8234 | |
4081 | |
8235 | MALLOC_TYPE=S |
4082 | MALLOC_TYPE=S |
8236 | support_addstrings=no |
4083 | |
8237 | support_frills=no |
4084 | support_frills=yes |
8238 | support_linespace=no |
|
|
8239 | support_inheritpixmap=no |
4085 | support_inheritpixmap=yes |
8240 | support_tinting=no |
4086 | support_tinting=yes |
8241 | support_fading=no |
4087 | support_fading=yes |
8242 | support_keepscrolling=no |
4088 | support_keepscrolling=yes |
8243 | support_selectionscrolling=no |
4089 | support_selectionscrolling=yes |
8244 | support_menubar=no |
|
|
8245 | support_mousewheel=no |
4090 | support_mousewheel=yes |
8246 | support_mouseslipwheel=no |
4091 | support_mouseslipwheel=yes |
8247 | support_utmp=no |
4092 | support_utmp=yes |
8248 | support_wtmp=no |
4093 | support_wtmp=yes |
8249 | support_lastlog=no |
4094 | support_lastlog=yes |
8250 | support_cursor_blink=no |
|
|
8251 | support_text_blink=no |
4095 | support_text_blink=yes |
8252 | support_pointer_blank=no |
4096 | support_pointer_blank=yes |
8253 | support_scroll_rxvt=no |
4097 | support_scroll_rxvt=yes |
8254 | support_scroll_next=no |
4098 | support_scroll_next=yes |
8255 | support_scroll_xterm=no |
4099 | support_scroll_xterm=yes |
8256 | support_scroll_plain=no |
4100 | support_scroll_plain=yes |
8257 | support_xim=no |
4101 | support_xim=yes |
8258 | support_xpm=no |
4102 | support_xpm=yes |
8259 | support_xft=no |
4103 | support_xft=yes |
8260 | support_unicode3=no |
4104 | support_unicode3=no |
8261 | support_combining=no |
4105 | support_combining=yes |
8262 | support_8bitctrls=no |
4106 | support_8bitctrls=no |
|
|
4107 | support_iso14755=yes |
|
|
4108 | support_styles=yes |
|
|
4109 | support_perl=yes |
8263 | codesets= |
4110 | codesets=all |
8264 | |
4111 | |
8265 | |
4112 | |
8266 | if test "x$enable_shared" = xyes; then |
4113 | if test "x$enable_shared" = xyes; then |
8267 | |
4114 | |
8268 | cat >>confdefs.h <<\_ACEOF |
4115 | cat >>confdefs.h <<\_ACEOF |
… | |
… | |
8274 | |
4121 | |
8275 | |
4122 | |
8276 | # Check whether --enable-everything or --disable-everything was given. |
4123 | # Check whether --enable-everything or --disable-everything was given. |
8277 | if test "${enable_everything+set}" = set; then |
4124 | if test "${enable_everything+set}" = set; then |
8278 | enableval="$enable_everything" |
4125 | enableval="$enable_everything" |
|
|
4126 | |
|
|
4127 | if test x$enableval = xno; then |
|
|
4128 | support_24bit=no |
|
|
4129 | support_frills=no |
|
|
4130 | support_inheritpixmap=no |
|
|
4131 | support_tinting=no |
|
|
4132 | support_fading=no |
|
|
4133 | support_keepscrolling=no |
|
|
4134 | support_selectionscrolling=no |
|
|
4135 | support_lastlog=no |
|
|
4136 | support_mousewheel=no |
|
|
4137 | support_mouseslipwheel=no |
|
|
4138 | support_text_blink=no |
|
|
4139 | support_pointer_blank=no |
|
|
4140 | support_scroll_rxvt=no |
|
|
4141 | support_scroll_next=no |
|
|
4142 | support_scroll_xterm=no |
|
|
4143 | support_scroll_plain=no |
|
|
4144 | support_utmp=no |
|
|
4145 | support_wtmp=no |
|
|
4146 | support_xim=no |
|
|
4147 | support_xpm=no |
|
|
4148 | support_xft=no |
|
|
4149 | support_unicode3=no |
|
|
4150 | support_combining=no |
|
|
4151 | support_8bitctrls=no |
|
|
4152 | support_iso14755=no |
|
|
4153 | support_styles=no |
|
|
4154 | support_perl=no |
|
|
4155 | codesets= |
|
|
4156 | fi |
8279 | if test x$enableval = xyes; then |
4157 | if test x$enableval = xyes; then |
8280 | support_24bit=yes |
4158 | support_24bit=yes |
8281 | support_frills=yes |
4159 | support_frills=yes |
8282 | support_linespace=yes |
|
|
8283 | support_inheritpixmap=yes |
4160 | support_inheritpixmap=yes |
8284 | support_tinting=yes |
4161 | support_tinting=yes |
8285 | support_fading=yes |
4162 | support_fading=yes |
8286 | support_keepscrolling=yes |
4163 | support_keepscrolling=yes |
8287 | support_selectionscrolling=yes |
4164 | support_selectionscrolling=yes |
8288 | support_lastlog=yes |
4165 | support_lastlog=yes |
8289 | support_menubar=yes |
|
|
8290 | support_mousewheel=yes |
4166 | support_mousewheel=yes |
8291 | support_mouseslipwheel=yes |
4167 | support_mouseslipwheel=yes |
8292 | support_cursor_blink=yes |
|
|
8293 | support_text_blink=yes |
4168 | support_text_blink=yes |
8294 | support_pointer_blank=yes |
4169 | support_pointer_blank=yes |
8295 | support_scroll_rxvt=yes |
4170 | support_scroll_rxvt=yes |
8296 | support_scroll_next=yes |
4171 | support_scroll_next=yes |
8297 | support_scroll_xterm=yes |
4172 | support_scroll_xterm=yes |
8298 | support_scroll_plain=yes |
4173 | support_scroll_plain=yes |
8299 | support_utmp=yes |
4174 | support_utmp=yes |
8300 | support_wtmp=yes |
4175 | support_wtmp=yes |
8301 | support_xim=yes |
4176 | support_xim=yes |
8302 | support_xpm=yes |
4177 | support_xpm=yes |
8303 | support_xft=yes |
4178 | support_xft=yes |
8304 | support_unicode3=yes |
4179 | support_unicode3=yes |
8305 | support_combining=yes |
4180 | support_combining=yes |
8306 | #support_8bitctrls=yes |
4181 | #support_8bitctrls=yes |
|
|
4182 | support_iso14755=yes |
|
|
4183 | support_styles=yes |
|
|
4184 | support_perl=yes |
8307 | codesets=all |
4185 | codesets=all |
8308 | fi |
4186 | fi |
|
|
4187 | |
8309 | fi; |
4188 | fi; |
8310 | |
4189 | |
8311 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
4190 | # Check whether --enable-unicode3 or --disable-unicode3 was given. |
8312 | if test "${enable_unicode3+set}" = set; then |
4191 | if test "${enable_unicode3+set}" = set; then |
8313 | enableval="$enable_unicode3" |
4192 | enableval="$enable_unicode3" |
8314 | if test x$enableval = xyes -o x$enableval = xno; then |
4193 | if test x$enableval = xyes -o x$enableval = xno; then |
8315 | support_unicode3=yes |
4194 | support_unicode3=$enableval |
8316 | fi |
4195 | fi |
8317 | fi; |
4196 | fi; |
8318 | |
4197 | |
8319 | # Check whether --enable-combining or --disable-combining was given. |
4198 | # Check whether --enable-combining or --disable-combining was given. |
8320 | if test "${enable_combining+set}" = set; then |
4199 | if test "${enable_combining+set}" = set; then |
8321 | enableval="$enable_combining" |
4200 | enableval="$enable_combining" |
8322 | if test x$enableval = xyes -o x$enableval = xno; then |
4201 | if test x$enableval = xyes -o x$enableval = xno; then |
8323 | support_combining=yes |
4202 | support_combining=$enableval |
8324 | fi |
4203 | fi |
8325 | fi; |
4204 | fi; |
8326 | |
4205 | |
8327 | # Check whether --enable-xft or --disable-xft was given. |
4206 | # Check whether --enable-xft or --disable-xft was given. |
8328 | if test "${enable_xft+set}" = set; then |
4207 | if test "${enable_xft+set}" = set; then |
8329 | enableval="$enable_xft" |
4208 | enableval="$enable_xft" |
8330 | if test x$enableval = xyes -o x$enableval = xno; then |
4209 | if test x$enableval = xyes -o x$enableval = xno; then |
8331 | support_xft=yes |
4210 | support_xft=$enableval |
|
|
4211 | fi |
|
|
4212 | fi; |
|
|
4213 | |
|
|
4214 | # Check whether --enable-font-styles or --disable-font-styles was given. |
|
|
4215 | if test "${enable_font_styles+set}" = set; then |
|
|
4216 | enableval="$enable_font_styles" |
|
|
4217 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4218 | support_styles=$enableval |
8332 | fi |
4219 | fi |
8333 | fi; |
4220 | fi; |
8334 | |
4221 | |
8335 | # Check whether --enable-utmp or --disable-utmp was given. |
4222 | # Check whether --enable-utmp or --disable-utmp was given. |
8336 | if test "${enable_utmp+set}" = set; then |
4223 | if test "${enable_utmp+set}" = set; then |
… | |
… | |
8386 | if test x$enableval = xyes -o x$enableval = xno; then |
4273 | if test x$enableval = xyes -o x$enableval = xno; then |
8387 | support_fading=$enableval |
4274 | support_fading=$enableval |
8388 | fi |
4275 | fi |
8389 | fi; |
4276 | fi; |
8390 | |
4277 | |
8391 | # Check whether --enable-menubar or --disable-menubar was given. |
|
|
8392 | if test "${enable_menubar+set}" = set; then |
|
|
8393 | enableval="$enable_menubar" |
|
|
8394 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8395 | support_menubar=$enableval |
|
|
8396 | fi |
|
|
8397 | fi; |
|
|
8398 | |
|
|
8399 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
4278 | # Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given. |
8400 | if test "${enable_rxvt_scroll+set}" = set; then |
4279 | if test "${enable_rxvt_scroll+set}" = set; then |
8401 | enableval="$enable_rxvt_scroll" |
4280 | enableval="$enable_rxvt_scroll" |
8402 | if test x$enableval = xyes -o x$enableval = xno; then |
4281 | if test x$enableval = xyes -o x$enableval = xno; then |
8403 | support_scroll_rxvt=$enableval |
4282 | support_scroll_rxvt=$enableval |
… | |
… | |
8418 | if test x$enableval = xyes -o x$enableval = xno; then |
4297 | if test x$enableval = xyes -o x$enableval = xno; then |
8419 | support_scroll_xterm=$enableval |
4298 | support_scroll_xterm=$enableval |
8420 | fi |
4299 | fi |
8421 | fi; |
4300 | fi; |
8422 | |
4301 | |
|
|
4302 | # Check whether --enable-perl or --disable-perl was given. |
|
|
4303 | if test "${enable_perl+set}" = set; then |
|
|
4304 | enableval="$enable_perl" |
|
|
4305 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4306 | support_perl=$enableval |
|
|
4307 | fi |
|
|
4308 | fi; |
|
|
4309 | |
8423 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
4310 | # Check whether --enable-plain-scroll or --disable-plain-scroll was given. |
8424 | if test "${enable_plain_scroll+set}" = set; then |
4311 | if test "${enable_plain_scroll+set}" = set; then |
8425 | enableval="$enable_plain_scroll" |
4312 | enableval="$enable_plain_scroll" |
8426 | if test x$enableval = xyes -o x$enableval = xno; then |
4313 | if test x$enableval = xyes -o x$enableval = xno; then |
8427 | support_scroll_plain=$enableval |
4314 | support_scroll_plain=$enableval |
8428 | fi |
4315 | fi |
8429 | fi; |
4316 | fi; |
8430 | |
4317 | |
8431 | # Check whether --enable-half-shadow or --disable-half-shadow was given. |
|
|
8432 | if test "${enable_half_shadow+set}" = set; then |
|
|
8433 | enableval="$enable_half_shadow" |
|
|
8434 | if test x$enableval = xyes; then |
|
|
8435 | |
|
|
8436 | cat >>confdefs.h <<\_ACEOF |
|
|
8437 | #define HALFSHADOW 1 |
|
|
8438 | _ACEOF |
|
|
8439 | |
|
|
8440 | fi |
|
|
8441 | fi; |
|
|
8442 | |
4318 | |
8443 | |
4319 | |
8444 | # Check whether --with-codesets or --without-codesets was given. |
4320 | # Check whether --with-codesets or --without-codesets was given. |
8445 | if test "${with_codesets+set}" = set; then |
4321 | if test "${with_codesets+set}" = set; then |
8446 | withval="$with_codesets" |
4322 | withval="$with_codesets" |
… | |
… | |
8501 | _ACEOF |
4377 | _ACEOF |
8502 | |
4378 | |
8503 | fi |
4379 | fi |
8504 | fi; |
4380 | fi; |
8505 | |
4381 | |
8506 | # Check whether --enable-xgetdefault or --disable-xgetdefault was given. |
|
|
8507 | if test "${enable_xgetdefault+set}" = set; then |
|
|
8508 | enableval="$enable_xgetdefault" |
|
|
8509 | if test x$enableval = xyes; then |
|
|
8510 | |
|
|
8511 | cat >>confdefs.h <<\_ACEOF |
|
|
8512 | #define USE_XGETDEFAULT 1 |
|
|
8513 | _ACEOF |
|
|
8514 | |
|
|
8515 | fi |
|
|
8516 | fi; |
|
|
8517 | |
|
|
8518 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
4382 | # Check whether --enable-8bitctrls or --disable-8bitctrls was given. |
8519 | if test "${enable_8bitctrls+set}" = set; then |
4383 | if test "${enable_8bitctrls+set}" = set; then |
8520 | enableval="$enable_8bitctrls" |
4384 | enableval="$enable_8bitctrls" |
8521 | if test x$enableval = xyes -o x$enableval = xno; then |
4385 | if test x$enableval = xyes -o x$enableval = xno; then |
8522 | support_8bitctrls=yes |
4386 | support_8bitctrls=$enableval |
8523 | fi |
4387 | fi |
8524 | fi; |
4388 | fi; |
8525 | |
4389 | |
8526 | RESFALLBACK=Rxvt |
4390 | RESFALLBACK=Rxvt |
8527 | # Check whether --enable-fallback or --disable-fallback was given. |
4391 | # Check whether --enable-fallback or --disable-fallback was given. |
… | |
… | |
8574 | if test "${with_name+set}" = set; then |
4438 | if test "${with_name+set}" = set; then |
8575 | withval="$with_name" |
4439 | withval="$with_name" |
8576 | RXVTNAME="$withval" |
4440 | RXVTNAME="$withval" |
8577 | fi; |
4441 | fi; |
8578 | |
4442 | |
|
|
4443 | cat >>confdefs.h <<_ACEOF |
|
|
4444 | #define RXVTNAME "$RXVTNAME" |
|
|
4445 | _ACEOF |
|
|
4446 | |
|
|
4447 | |
8579 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
4448 | RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"` |
8580 | |
4449 | |
8581 | |
|
|
8582 | # Check whether --enable-strings or --disable-strings was given. |
|
|
8583 | if test "${enable_strings+set}" = set; then |
|
|
8584 | enableval="$enable_strings" |
|
|
8585 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8586 | support_addstrings=$enableval |
|
|
8587 | fi |
|
|
8588 | fi; |
|
|
8589 | |
4450 | |
8590 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
4451 | # Check whether --enable-swapscreen or --disable-swapscreen was given. |
8591 | if test "${enable_swapscreen+set}" = set; then |
4452 | if test "${enable_swapscreen+set}" = set; then |
8592 | enableval="$enable_swapscreen" |
4453 | enableval="$enable_swapscreen" |
8593 | if test x$enableval = xno; then |
4454 | if test x$enableval = xno; then |
8594 | |
4455 | |
8595 | cat >>confdefs.h <<\_ACEOF |
4456 | cat >>confdefs.h <<\_ACEOF |
8596 | #define NO_SECONDARY_SCREEN 1 |
4457 | #define NO_SECONDARY_SCREEN 1 |
8597 | _ACEOF |
4458 | _ACEOF |
8598 | |
4459 | |
|
|
4460 | fi |
|
|
4461 | fi; |
|
|
4462 | |
|
|
4463 | # Check whether --enable-iso14755 or --disable-iso14755 was given. |
|
|
4464 | if test "${enable_iso14755+set}" = set; then |
|
|
4465 | enableval="$enable_iso14755" |
|
|
4466 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
4467 | support_iso14755=$enableval |
8599 | fi |
4468 | fi |
8600 | fi; |
4469 | fi; |
8601 | |
4470 | |
8602 | # Check whether --enable-frills or --disable-frills was given. |
4471 | # Check whether --enable-frills or --disable-frills was given. |
8603 | if test "${enable_frills+set}" = set; then |
4472 | if test "${enable_frills+set}" = set; then |
8604 | enableval="$enable_frills" |
4473 | enableval="$enable_frills" |
8605 | if test x$enableval = xyes -o x$enableval = xno; then |
4474 | if test x$enableval = xyes -o x$enableval = xno; then |
8606 | support_frills=$enableval |
4475 | support_frills=$enableval |
8607 | fi |
|
|
8608 | fi; |
|
|
8609 | |
|
|
8610 | # Check whether --enable-linespace or --disable-linespace was given. |
|
|
8611 | if test "${enable_linespace+set}" = set; then |
|
|
8612 | enableval="$enable_linespace" |
|
|
8613 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8614 | support_linespace=$enableval |
|
|
8615 | fi |
4476 | fi |
8616 | fi; |
4477 | fi; |
8617 | |
4478 | |
8618 | # Check whether --enable-24bit or --disable-24bit was given. |
4479 | # Check whether --enable-24bit or --disable-24bit was given. |
8619 | if test "${enable_24bit+set}" = set; then |
4480 | if test "${enable_24bit+set}" = set; then |
… | |
… | |
8687 | _ACEOF |
4548 | _ACEOF |
8688 | |
4549 | |
8689 | fi |
4550 | fi |
8690 | fi; |
4551 | fi; |
8691 | |
4552 | |
8692 | # Check whether --enable-256-color or --disable-256-color was given. |
|
|
8693 | if test "${enable_256_color+set}" = set; then |
|
|
8694 | enableval="$enable_256_color" |
|
|
8695 | if test x$enableval = xyes; then |
|
|
8696 | |
|
|
8697 | cat >>confdefs.h <<\_ACEOF |
|
|
8698 | #define TTY_256COLOR 1 |
|
|
8699 | _ACEOF |
|
|
8700 | |
|
|
8701 | fi |
|
|
8702 | fi; |
|
|
8703 | |
|
|
8704 | # Check whether --enable-cursor-blink or --disable-cursor-blink was given. |
|
|
8705 | if test "${enable_cursor_blink+set}" = set; then |
|
|
8706 | enableval="$enable_cursor_blink" |
|
|
8707 | if test x$enableval = xyes -o x$enableval = xno; then |
|
|
8708 | support_cursor_blink=$enableval |
|
|
8709 | fi |
|
|
8710 | fi; |
|
|
8711 | |
|
|
8712 | # Check whether --enable-text-blink or --disable-text-blink was given. |
4553 | # Check whether --enable-text-blink or --disable-text-blink was given. |
8713 | if test "${enable_text_blink+set}" = set; then |
4554 | if test "${enable_text_blink+set}" = set; then |
8714 | enableval="$enable_text_blink" |
4555 | enableval="$enable_text_blink" |
8715 | if test x$enableval = xyes -o x$enableval = xno; then |
4556 | if test x$enableval = xyes -o x$enableval = xno; then |
8716 | support_text_blink=$enableval |
4557 | support_text_blink=$enableval |
… | |
… | |
8749 | _ACEOF |
4590 | _ACEOF |
8750 | terminfo="$withval" |
4591 | terminfo="$withval" |
8751 | fi |
4592 | fi |
8752 | fi; |
4593 | fi; |
8753 | |
4594 | |
8754 | |
|
|
8755 | |
|
|
8756 | cat >>confdefs.h <<\_ACEOF |
|
|
8757 | #define PROTOTYPES 1 |
|
|
8758 | _ACEOF |
|
|
8759 | |
|
|
8760 | |
|
|
8761 | if test -z "$CFLAGS"; then |
|
|
8762 | if test -z "$CCOPTS"; then |
|
|
8763 | CCOPTS='-O' |
|
|
8764 | fi |
|
|
8765 | CFLAGS="$CCOPTS" |
|
|
8766 | fi |
|
|
8767 | |
4595 | |
8768 | # Extract the first word of "mv", so it can be a program name with args. |
4596 | # Extract the first word of "mv", so it can be a program name with args. |
8769 | set dummy mv; ac_word=$2 |
4597 | set dummy mv; ac_word=$2 |
8770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4598 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4599 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
… | |
… | |
9043 | else |
4871 | else |
9044 | echo "$as_me:$LINENO: result: no" >&5 |
4872 | echo "$as_me:$LINENO: result: no" >&5 |
9045 | echo "${ECHO_T}no" >&6 |
4873 | echo "${ECHO_T}no" >&6 |
9046 | fi |
4874 | fi |
9047 | |
4875 | |
9048 | # Extract the first word of "tbl", so it can be a program name with args. |
4876 | # Extract the first word of "tic", so it can be a program name with args. |
9049 | set dummy tbl; ac_word=$2 |
4877 | set dummy tic; ac_word=$2 |
9050 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4878 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9051 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
9052 | if test "${ac_cv_path_TBL+set}" = set; then |
4880 | if test "${ac_cv_path_TIC+set}" = set; then |
9053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9054 | else |
4882 | else |
9055 | case $TBL in |
4883 | case $TIC in |
9056 | [\\/]* | ?:[\\/]*) |
4884 | [\\/]* | ?:[\\/]*) |
9057 | ac_cv_path_TBL="$TBL" # Let the user override the test with a path. |
4885 | ac_cv_path_TIC="$TIC" # Let the user override the test with a path. |
9058 | ;; |
4886 | ;; |
9059 | *) |
4887 | *) |
9060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9061 | for as_dir in $PATH |
4889 | for as_dir in $PATH |
9062 | do |
4890 | do |
9063 | IFS=$as_save_IFS |
4891 | IFS=$as_save_IFS |
9064 | test -z "$as_dir" && as_dir=. |
4892 | test -z "$as_dir" && as_dir=. |
9065 | for ac_exec_ext in '' $ac_executable_extensions; do |
4893 | for ac_exec_ext in '' $ac_executable_extensions; do |
9066 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9067 | ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext" |
4895 | ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" |
9068 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9069 | break 2 |
4897 | break 2 |
9070 | fi |
4898 | fi |
9071 | done |
4899 | done |
9072 | done |
4900 | done |
9073 | |
4901 | |
9074 | ;; |
4902 | ;; |
9075 | esac |
4903 | esac |
9076 | fi |
4904 | fi |
9077 | TBL=$ac_cv_path_TBL |
4905 | TIC=$ac_cv_path_TIC |
9078 | |
4906 | |
9079 | if test -n "$TBL"; then |
4907 | if test -n "$TIC"; then |
9080 | echo "$as_me:$LINENO: result: $TBL" >&5 |
4908 | echo "$as_me:$LINENO: result: $TIC" >&5 |
9081 | echo "${ECHO_T}$TBL" >&6 |
4909 | echo "${ECHO_T}$TIC" >&6 |
9082 | else |
4910 | else |
9083 | echo "$as_me:$LINENO: result: no" >&5 |
4911 | echo "$as_me:$LINENO: result: no" >&5 |
9084 | echo "${ECHO_T}no" >&6 |
4912 | echo "${ECHO_T}no" >&6 |
9085 | fi |
4913 | fi |
9086 | |
4914 | |
9087 | |
4915 | |
|
|
4916 | |
|
|
4917 | |
|
|
4918 | ac_ext=cc |
|
|
4919 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
4920 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
4921 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
4922 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
|
4923 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
|
|
4924 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 |
|
|
4925 | if test -z "$CXXCPP"; then |
|
|
4926 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
|
|
4927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
4928 | else |
|
|
4929 | # Double quotes because CXXCPP needs to be expanded |
|
|
4930 | for CXXCPP in "$CXX -E" "/lib/cpp" |
|
|
4931 | do |
|
|
4932 | ac_preproc_ok=false |
|
|
4933 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
4934 | do |
|
|
4935 | # Use a header file that comes with gcc, so configuring glibc |
|
|
4936 | # with a fresh cross-compiler works. |
|
|
4937 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
4938 | # <limits.h> exists even on freestanding compilers. |
|
|
4939 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
4940 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
4941 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4942 | /* confdefs.h. */ |
|
|
4943 | _ACEOF |
|
|
4944 | cat confdefs.h >>conftest.$ac_ext |
|
|
4945 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4946 | /* end confdefs.h. */ |
|
|
4947 | #ifdef __STDC__ |
|
|
4948 | # include <limits.h> |
|
|
4949 | #else |
|
|
4950 | # include <assert.h> |
|
|
4951 | #endif |
|
|
4952 | Syntax error |
|
|
4953 | _ACEOF |
|
|
4954 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4955 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4956 | ac_status=$? |
|
|
4957 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4958 | rm -f conftest.er1 |
|
|
4959 | cat conftest.err >&5 |
|
|
4960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4961 | (exit $ac_status); } >/dev/null; then |
|
|
4962 | if test -s conftest.err; then |
|
|
4963 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
4964 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
4965 | else |
|
|
4966 | ac_cpp_err= |
|
|
4967 | fi |
|
|
4968 | else |
|
|
4969 | ac_cpp_err=yes |
|
|
4970 | fi |
|
|
4971 | if test -z "$ac_cpp_err"; then |
|
|
4972 | : |
|
|
4973 | else |
|
|
4974 | echo "$as_me: failed program was:" >&5 |
|
|
4975 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
4976 | |
|
|
4977 | # Broken: fails on valid input. |
|
|
4978 | continue |
|
|
4979 | fi |
|
|
4980 | rm -f conftest.err conftest.$ac_ext |
|
|
4981 | |
|
|
4982 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
4983 | # can be detected and how. |
|
|
4984 | cat >conftest.$ac_ext <<_ACEOF |
|
|
4985 | /* confdefs.h. */ |
|
|
4986 | _ACEOF |
|
|
4987 | cat confdefs.h >>conftest.$ac_ext |
|
|
4988 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
4989 | /* end confdefs.h. */ |
|
|
4990 | #include <ac_nonexistent.h> |
|
|
4991 | _ACEOF |
|
|
4992 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
4993 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
4994 | ac_status=$? |
|
|
4995 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
4996 | rm -f conftest.er1 |
|
|
4997 | cat conftest.err >&5 |
|
|
4998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
4999 | (exit $ac_status); } >/dev/null; then |
|
|
5000 | if test -s conftest.err; then |
|
|
5001 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5002 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5003 | else |
|
|
5004 | ac_cpp_err= |
|
|
5005 | fi |
|
|
5006 | else |
|
|
5007 | ac_cpp_err=yes |
|
|
5008 | fi |
|
|
5009 | if test -z "$ac_cpp_err"; then |
|
|
5010 | # Broken: success on invalid input. |
|
|
5011 | continue |
|
|
5012 | else |
|
|
5013 | echo "$as_me: failed program was:" >&5 |
|
|
5014 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5015 | |
|
|
5016 | # Passes both tests. |
|
|
5017 | ac_preproc_ok=: |
|
|
5018 | break |
|
|
5019 | fi |
|
|
5020 | rm -f conftest.err conftest.$ac_ext |
|
|
5021 | |
|
|
5022 | done |
|
|
5023 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5024 | rm -f conftest.err conftest.$ac_ext |
|
|
5025 | if $ac_preproc_ok; then |
|
|
5026 | break |
|
|
5027 | fi |
|
|
5028 | |
|
|
5029 | done |
|
|
5030 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5031 | |
|
|
5032 | fi |
|
|
5033 | CXXCPP=$ac_cv_prog_CXXCPP |
|
|
5034 | else |
|
|
5035 | ac_cv_prog_CXXCPP=$CXXCPP |
|
|
5036 | fi |
|
|
5037 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
|
|
5038 | echo "${ECHO_T}$CXXCPP" >&6 |
|
|
5039 | ac_preproc_ok=false |
|
|
5040 | for ac_cxx_preproc_warn_flag in '' yes |
|
|
5041 | do |
|
|
5042 | # Use a header file that comes with gcc, so configuring glibc |
|
|
5043 | # with a fresh cross-compiler works. |
|
|
5044 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
5045 | # <limits.h> exists even on freestanding compilers. |
|
|
5046 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
5047 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
5048 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5049 | /* confdefs.h. */ |
|
|
5050 | _ACEOF |
|
|
5051 | cat confdefs.h >>conftest.$ac_ext |
|
|
5052 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5053 | /* end confdefs.h. */ |
|
|
5054 | #ifdef __STDC__ |
|
|
5055 | # include <limits.h> |
|
|
5056 | #else |
|
|
5057 | # include <assert.h> |
|
|
5058 | #endif |
|
|
5059 | Syntax error |
|
|
5060 | _ACEOF |
|
|
5061 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5062 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5063 | ac_status=$? |
|
|
5064 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5065 | rm -f conftest.er1 |
|
|
5066 | cat conftest.err >&5 |
|
|
5067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5068 | (exit $ac_status); } >/dev/null; then |
|
|
5069 | if test -s conftest.err; then |
|
|
5070 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5071 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5072 | else |
|
|
5073 | ac_cpp_err= |
|
|
5074 | fi |
|
|
5075 | else |
|
|
5076 | ac_cpp_err=yes |
|
|
5077 | fi |
|
|
5078 | if test -z "$ac_cpp_err"; then |
|
|
5079 | : |
|
|
5080 | else |
|
|
5081 | echo "$as_me: failed program was:" >&5 |
|
|
5082 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5083 | |
|
|
5084 | # Broken: fails on valid input. |
|
|
5085 | continue |
|
|
5086 | fi |
|
|
5087 | rm -f conftest.err conftest.$ac_ext |
|
|
5088 | |
|
|
5089 | # OK, works on sane cases. Now check whether non-existent headers |
|
|
5090 | # can be detected and how. |
|
|
5091 | cat >conftest.$ac_ext <<_ACEOF |
|
|
5092 | /* confdefs.h. */ |
|
|
5093 | _ACEOF |
|
|
5094 | cat confdefs.h >>conftest.$ac_ext |
|
|
5095 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
5096 | /* end confdefs.h. */ |
|
|
5097 | #include <ac_nonexistent.h> |
|
|
5098 | _ACEOF |
|
|
5099 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
|
|
5100 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
|
|
5101 | ac_status=$? |
|
|
5102 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
5103 | rm -f conftest.er1 |
|
|
5104 | cat conftest.err >&5 |
|
|
5105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
5106 | (exit $ac_status); } >/dev/null; then |
|
|
5107 | if test -s conftest.err; then |
|
|
5108 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
|
|
5109 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
|
|
5110 | else |
|
|
5111 | ac_cpp_err= |
|
|
5112 | fi |
|
|
5113 | else |
|
|
5114 | ac_cpp_err=yes |
|
|
5115 | fi |
|
|
5116 | if test -z "$ac_cpp_err"; then |
|
|
5117 | # Broken: success on invalid input. |
|
|
5118 | continue |
|
|
5119 | else |
|
|
5120 | echo "$as_me: failed program was:" >&5 |
|
|
5121 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
5122 | |
|
|
5123 | # Passes both tests. |
|
|
5124 | ac_preproc_ok=: |
|
|
5125 | break |
|
|
5126 | fi |
|
|
5127 | rm -f conftest.err conftest.$ac_ext |
|
|
5128 | |
|
|
5129 | done |
|
|
5130 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
5131 | rm -f conftest.err conftest.$ac_ext |
|
|
5132 | if $ac_preproc_ok; then |
|
|
5133 | : |
|
|
5134 | else |
|
|
5135 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5136 | See \`config.log' for more details." >&5 |
|
|
5137 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
|
|
5138 | See \`config.log' for more details." >&2;} |
|
|
5139 | { (exit 1); exit 1; }; } |
|
|
5140 | fi |
|
|
5141 | |
|
|
5142 | ac_ext=cc |
|
|
5143 | ac_cpp='$CXXCPP $CPPFLAGS' |
|
|
5144 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
5145 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
5146 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
9088 | |
5147 | |
9089 | |
5148 | |
9090 | |
5149 | |
9091 | if test "x$ac_path_x_has_been_run" != xyes; then |
5150 | if test "x$ac_path_x_has_been_run" != xyes; then |
9092 | echo "$as_me:$LINENO: checking for X" >&5 |
5151 | echo "$as_me:$LINENO: checking for X" >&5 |
… | |
… | |
9191 | /* confdefs.h. */ |
5250 | /* confdefs.h. */ |
9192 | _ACEOF |
5251 | _ACEOF |
9193 | cat confdefs.h >>conftest.$ac_ext |
5252 | cat confdefs.h >>conftest.$ac_ext |
9194 | cat >>conftest.$ac_ext <<_ACEOF |
5253 | cat >>conftest.$ac_ext <<_ACEOF |
9195 | /* end confdefs.h. */ |
5254 | /* end confdefs.h. */ |
9196 | #include <X11/Intrinsic.h> |
5255 | #include <X11/Xlib.h> |
9197 | _ACEOF |
5256 | _ACEOF |
9198 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5257 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9199 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5258 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
9200 | ac_status=$? |
5259 | ac_status=$? |
9201 | grep -v '^ *+' conftest.er1 >conftest.err |
5260 | grep -v '^ *+' conftest.er1 >conftest.err |
… | |
… | |
9218 | else |
5277 | else |
9219 | echo "$as_me: failed program was:" >&5 |
5278 | echo "$as_me: failed program was:" >&5 |
9220 | sed 's/^/| /' conftest.$ac_ext >&5 |
5279 | sed 's/^/| /' conftest.$ac_ext >&5 |
9221 | |
5280 | |
9222 | for ac_dir in $ac_x_header_dirs; do |
5281 | for ac_dir in $ac_x_header_dirs; do |
9223 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
5282 | if test -r "$ac_dir/X11/Xlib.h"; then |
9224 | ac_x_includes=$ac_dir |
5283 | ac_x_includes=$ac_dir |
9225 | break |
5284 | break |
9226 | fi |
5285 | fi |
9227 | done |
5286 | done |
9228 | fi |
5287 | fi |
… | |
… | |
9232 | if test "$ac_x_libraries" = no; then |
5291 | if test "$ac_x_libraries" = no; then |
9233 | # Check for the libraries. |
5292 | # Check for the libraries. |
9234 | # See if we find them without any special options. |
5293 | # See if we find them without any special options. |
9235 | # Don't add to $LIBS permanently. |
5294 | # Don't add to $LIBS permanently. |
9236 | ac_save_LIBS=$LIBS |
5295 | ac_save_LIBS=$LIBS |
9237 | LIBS="-lXt $LIBS" |
5296 | LIBS="-lX11 $LIBS" |
9238 | cat >conftest.$ac_ext <<_ACEOF |
5297 | cat >conftest.$ac_ext <<_ACEOF |
9239 | /* confdefs.h. */ |
5298 | /* confdefs.h. */ |
9240 | _ACEOF |
5299 | _ACEOF |
9241 | cat confdefs.h >>conftest.$ac_ext |
5300 | cat confdefs.h >>conftest.$ac_ext |
9242 | cat >>conftest.$ac_ext <<_ACEOF |
5301 | cat >>conftest.$ac_ext <<_ACEOF |
9243 | /* end confdefs.h. */ |
5302 | /* end confdefs.h. */ |
9244 | #include <X11/Intrinsic.h> |
5303 | #include <X11/Xlib.h> |
9245 | int |
5304 | int |
9246 | main () |
5305 | main () |
9247 | { |
5306 | { |
9248 | XtMalloc (0) |
5307 | XrmInitialize () |
9249 | ; |
5308 | ; |
9250 | return 0; |
5309 | return 0; |
9251 | } |
5310 | } |
9252 | _ACEOF |
5311 | _ACEOF |
9253 | rm -f conftest.$ac_objext conftest$ac_exeext |
5312 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
9281 | LIBS=$ac_save_LIBS |
5340 | LIBS=$ac_save_LIBS |
9282 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
5341 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
9283 | do |
5342 | do |
9284 | # Don't even attempt the hair of trying to link an X program! |
5343 | # Don't even attempt the hair of trying to link an X program! |
9285 | for ac_extension in a so sl; do |
5344 | for ac_extension in a so sl; do |
9286 | if test -r $ac_dir/libXt.$ac_extension; then |
5345 | if test -r $ac_dir/libX11.$ac_extension; then |
9287 | ac_x_libraries=$ac_dir |
5346 | ac_x_libraries=$ac_dir |
9288 | break 2 |
5347 | break 2 |
9289 | fi |
5348 | fi |
9290 | done |
5349 | done |
9291 | done |
5350 | done |
… | |
… | |
10893 | #define HAVE_SYS_WAIT_H 1 |
6952 | #define HAVE_SYS_WAIT_H 1 |
10894 | _ACEOF |
6953 | _ACEOF |
10895 | |
6954 | |
10896 | fi |
6955 | fi |
10897 | |
6956 | |
|
|
6957 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
|
|
6958 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
|
|
6959 | if test "${ac_cv_header_stdc+set}" = set; then |
|
|
6960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
6961 | else |
|
|
6962 | cat >conftest.$ac_ext <<_ACEOF |
|
|
6963 | /* confdefs.h. */ |
|
|
6964 | _ACEOF |
|
|
6965 | cat confdefs.h >>conftest.$ac_ext |
|
|
6966 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
6967 | /* end confdefs.h. */ |
|
|
6968 | #include <stdlib.h> |
|
|
6969 | #include <stdarg.h> |
|
|
6970 | #include <string.h> |
|
|
6971 | #include <float.h> |
|
|
6972 | |
|
|
6973 | int |
|
|
6974 | main () |
|
|
6975 | { |
|
|
6976 | |
|
|
6977 | ; |
|
|
6978 | return 0; |
|
|
6979 | } |
|
|
6980 | _ACEOF |
|
|
6981 | rm -f conftest.$ac_objext |
|
|
6982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
6983 | (eval $ac_compile) 2>conftest.er1 |
|
|
6984 | ac_status=$? |
|
|
6985 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
6986 | rm -f conftest.er1 |
|
|
6987 | cat conftest.err >&5 |
|
|
6988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6989 | (exit $ac_status); } && |
|
|
6990 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
6991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6992 | (eval $ac_try) 2>&5 |
|
|
6993 | ac_status=$? |
|
|
6994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
6995 | (exit $ac_status); }; } && |
|
|
6996 | { ac_try='test -s conftest.$ac_objext' |
|
|
6997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
6998 | (eval $ac_try) 2>&5 |
|
|
6999 | ac_status=$? |
|
|
7000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7001 | (exit $ac_status); }; }; then |
|
|
7002 | ac_cv_header_stdc=yes |
|
|
7003 | else |
|
|
7004 | echo "$as_me: failed program was:" >&5 |
|
|
7005 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7006 | |
|
|
7007 | ac_cv_header_stdc=no |
|
|
7008 | fi |
|
|
7009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7010 | |
|
|
7011 | if test $ac_cv_header_stdc = yes; then |
|
|
7012 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
|
7013 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7014 | /* confdefs.h. */ |
|
|
7015 | _ACEOF |
|
|
7016 | cat confdefs.h >>conftest.$ac_ext |
|
|
7017 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7018 | /* end confdefs.h. */ |
|
|
7019 | #include <string.h> |
|
|
7020 | |
|
|
7021 | _ACEOF |
|
|
7022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7023 | $EGREP "memchr" >/dev/null 2>&1; then |
|
|
7024 | : |
|
|
7025 | else |
|
|
7026 | ac_cv_header_stdc=no |
|
|
7027 | fi |
|
|
7028 | rm -f conftest* |
|
|
7029 | |
|
|
7030 | fi |
|
|
7031 | |
|
|
7032 | if test $ac_cv_header_stdc = yes; then |
|
|
7033 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
7034 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7035 | /* confdefs.h. */ |
|
|
7036 | _ACEOF |
|
|
7037 | cat confdefs.h >>conftest.$ac_ext |
|
|
7038 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7039 | /* end confdefs.h. */ |
|
|
7040 | #include <stdlib.h> |
|
|
7041 | |
|
|
7042 | _ACEOF |
|
|
7043 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
7044 | $EGREP "free" >/dev/null 2>&1; then |
|
|
7045 | : |
|
|
7046 | else |
|
|
7047 | ac_cv_header_stdc=no |
|
|
7048 | fi |
|
|
7049 | rm -f conftest* |
|
|
7050 | |
|
|
7051 | fi |
|
|
7052 | |
|
|
7053 | if test $ac_cv_header_stdc = yes; then |
|
|
7054 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
7055 | if test "$cross_compiling" = yes; then |
|
|
7056 | : |
|
|
7057 | else |
|
|
7058 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7059 | /* confdefs.h. */ |
|
|
7060 | _ACEOF |
|
|
7061 | cat confdefs.h >>conftest.$ac_ext |
|
|
7062 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7063 | /* end confdefs.h. */ |
|
|
7064 | #include <ctype.h> |
|
|
7065 | #if ((' ' & 0x0FF) == 0x020) |
|
|
7066 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
7067 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
7068 | #else |
|
|
7069 | # define ISLOWER(c) \ |
|
|
7070 | (('a' <= (c) && (c) <= 'i') \ |
|
|
7071 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
7072 | || ('s' <= (c) && (c) <= 'z')) |
|
|
7073 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
7074 | #endif |
|
|
7075 | |
|
|
7076 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
7077 | int |
|
|
7078 | main () |
|
|
7079 | { |
|
|
7080 | int i; |
|
|
7081 | for (i = 0; i < 256; i++) |
|
|
7082 | if (XOR (islower (i), ISLOWER (i)) |
|
|
7083 | || toupper (i) != TOUPPER (i)) |
|
|
7084 | exit(2); |
|
|
7085 | exit (0); |
|
|
7086 | } |
|
|
7087 | _ACEOF |
|
|
7088 | rm -f conftest$ac_exeext |
|
|
7089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
7090 | (eval $ac_link) 2>&5 |
|
|
7091 | ac_status=$? |
|
|
7092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7093 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
7094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7095 | (eval $ac_try) 2>&5 |
|
|
7096 | ac_status=$? |
|
|
7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7098 | (exit $ac_status); }; }; then |
|
|
7099 | : |
|
|
7100 | else |
|
|
7101 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
7102 | echo "$as_me: failed program was:" >&5 |
|
|
7103 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7104 | |
|
|
7105 | ( exit $ac_status ) |
|
|
7106 | ac_cv_header_stdc=no |
|
|
7107 | fi |
|
|
7108 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
7109 | fi |
|
|
7110 | fi |
|
|
7111 | fi |
|
|
7112 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
|
|
7113 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
|
|
7114 | if test $ac_cv_header_stdc = yes; then |
|
|
7115 | |
|
|
7116 | cat >>confdefs.h <<\_ACEOF |
|
|
7117 | #define STDC_HEADERS 1 |
|
|
7118 | _ACEOF |
|
|
7119 | |
|
|
7120 | fi |
|
|
7121 | |
|
|
7122 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
7123 | |
|
|
7124 | |
|
|
7125 | |
|
|
7126 | |
|
|
7127 | |
|
|
7128 | |
|
|
7129 | |
|
|
7130 | |
|
|
7131 | |
|
|
7132 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
7133 | inttypes.h stdint.h unistd.h |
|
|
7134 | do |
|
|
7135 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
7136 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
|
|
7137 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
|
|
7138 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
|
|
7139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
7140 | else |
|
|
7141 | cat >conftest.$ac_ext <<_ACEOF |
|
|
7142 | /* confdefs.h. */ |
|
|
7143 | _ACEOF |
|
|
7144 | cat confdefs.h >>conftest.$ac_ext |
|
|
7145 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
7146 | /* end confdefs.h. */ |
|
|
7147 | $ac_includes_default |
|
|
7148 | |
|
|
7149 | #include <$ac_header> |
|
|
7150 | _ACEOF |
|
|
7151 | rm -f conftest.$ac_objext |
|
|
7152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
7153 | (eval $ac_compile) 2>conftest.er1 |
|
|
7154 | ac_status=$? |
|
|
7155 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
7156 | rm -f conftest.er1 |
|
|
7157 | cat conftest.err >&5 |
|
|
7158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7159 | (exit $ac_status); } && |
|
|
7160 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
7161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7162 | (eval $ac_try) 2>&5 |
|
|
7163 | ac_status=$? |
|
|
7164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7165 | (exit $ac_status); }; } && |
|
|
7166 | { ac_try='test -s conftest.$ac_objext' |
|
|
7167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
7168 | (eval $ac_try) 2>&5 |
|
|
7169 | ac_status=$? |
|
|
7170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
7171 | (exit $ac_status); }; }; then |
|
|
7172 | eval "$as_ac_Header=yes" |
|
|
7173 | else |
|
|
7174 | echo "$as_me: failed program was:" >&5 |
|
|
7175 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
7176 | |
|
|
7177 | eval "$as_ac_Header=no" |
|
|
7178 | fi |
|
|
7179 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
7180 | fi |
|
|
7181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
|
|
7182 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
|
|
7183 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
|
|
7184 | cat >>confdefs.h <<_ACEOF |
|
|
7185 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
7186 | _ACEOF |
|
|
7187 | |
|
|
7188 | fi |
|
|
7189 | |
|
|
7190 | done |
|
|
7191 | |
|
|
7192 | |
|
|
7193 | |
|
|
7194 | |
|
|
7195 | |
|
|
7196 | |
|
|
7197 | |
|
|
7198 | |
10898 | |
7199 | |
10899 | |
7200 | |
10900 | |
7201 | |
10901 | |
7202 | |
10902 | |
7203 | |
… | |
… | |
10934 | sys/stropts.h \ |
7235 | sys/stropts.h \ |
10935 | sys/time.h \ |
7236 | sys/time.h \ |
10936 | utmp.h \ |
7237 | utmp.h \ |
10937 | utmpx.h \ |
7238 | utmpx.h \ |
10938 | stdint.h \ |
7239 | stdint.h \ |
|
|
7240 | pty.h \ |
|
|
7241 | util.h \ |
|
|
7242 | libutil.h \ |
|
|
7243 | wchar.h \ |
|
|
7244 | cwchar \ |
|
|
7245 | clocale \ |
10939 | |
7246 | |
10940 | do |
7247 | do |
10941 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7248 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
… | |
… | |
11727 | _ACEOF |
8034 | _ACEOF |
11728 | |
8035 | |
11729 | fi |
8036 | fi |
11730 | |
8037 | |
11731 | |
8038 | |
11732 | |
|
|
11733 | echo "$as_me:$LINENO: checking for char" >&5 |
|
|
11734 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
|
|
11735 | if test "${ac_cv_type_char+set}" = set; then |
|
|
11736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11737 | else |
|
|
11738 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11739 | /* confdefs.h. */ |
|
|
11740 | _ACEOF |
|
|
11741 | cat confdefs.h >>conftest.$ac_ext |
|
|
11742 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11743 | /* end confdefs.h. */ |
|
|
11744 | $ac_includes_default |
|
|
11745 | int |
|
|
11746 | main () |
|
|
11747 | { |
|
|
11748 | if ((char *) 0) |
|
|
11749 | return 0; |
|
|
11750 | if (sizeof (char)) |
|
|
11751 | return 0; |
|
|
11752 | ; |
|
|
11753 | return 0; |
|
|
11754 | } |
|
|
11755 | _ACEOF |
|
|
11756 | rm -f conftest.$ac_objext |
|
|
11757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11758 | (eval $ac_compile) 2>conftest.er1 |
|
|
11759 | ac_status=$? |
|
|
11760 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11761 | rm -f conftest.er1 |
|
|
11762 | cat conftest.err >&5 |
|
|
11763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11764 | (exit $ac_status); } && |
|
|
11765 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11767 | (eval $ac_try) 2>&5 |
|
|
11768 | ac_status=$? |
|
|
11769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11770 | (exit $ac_status); }; } && |
|
|
11771 | { ac_try='test -s conftest.$ac_objext' |
|
|
11772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11773 | (eval $ac_try) 2>&5 |
|
|
11774 | ac_status=$? |
|
|
11775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11776 | (exit $ac_status); }; }; then |
|
|
11777 | ac_cv_type_char=yes |
|
|
11778 | else |
|
|
11779 | echo "$as_me: failed program was:" >&5 |
|
|
11780 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11781 | |
|
|
11782 | ac_cv_type_char=no |
|
|
11783 | fi |
|
|
11784 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11785 | fi |
|
|
11786 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
|
|
11787 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
|
|
11788 | |
|
|
11789 | echo "$as_me:$LINENO: checking size of char" >&5 |
|
|
11790 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
|
|
11791 | if test "${ac_cv_sizeof_char+set}" = set; then |
|
|
11792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11793 | else |
|
|
11794 | if test "$ac_cv_type_char" = yes; then |
|
|
11795 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
11796 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
11797 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
11798 | # This bug is HP SR number 8606223364. |
|
|
11799 | if test "$cross_compiling" = yes; then |
|
|
11800 | # Depending upon the size, compute the lo and hi bounds. |
|
|
11801 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11802 | /* confdefs.h. */ |
|
|
11803 | _ACEOF |
|
|
11804 | cat confdefs.h >>conftest.$ac_ext |
|
|
11805 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11806 | /* end confdefs.h. */ |
|
|
11807 | $ac_includes_default |
|
|
11808 | int |
|
|
11809 | main () |
|
|
11810 | { |
|
|
11811 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
|
|
11812 | test_array [0] = 0 |
|
|
11813 | |
|
|
11814 | ; |
|
|
11815 | return 0; |
|
|
11816 | } |
|
|
11817 | _ACEOF |
|
|
11818 | rm -f conftest.$ac_objext |
|
|
11819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11820 | (eval $ac_compile) 2>conftest.er1 |
|
|
11821 | ac_status=$? |
|
|
11822 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11823 | rm -f conftest.er1 |
|
|
11824 | cat conftest.err >&5 |
|
|
11825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11826 | (exit $ac_status); } && |
|
|
11827 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11829 | (eval $ac_try) 2>&5 |
|
|
11830 | ac_status=$? |
|
|
11831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11832 | (exit $ac_status); }; } && |
|
|
11833 | { ac_try='test -s conftest.$ac_objext' |
|
|
11834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11835 | (eval $ac_try) 2>&5 |
|
|
11836 | ac_status=$? |
|
|
11837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11838 | (exit $ac_status); }; }; then |
|
|
11839 | ac_lo=0 ac_mid=0 |
|
|
11840 | while :; do |
|
|
11841 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11842 | /* confdefs.h. */ |
|
|
11843 | _ACEOF |
|
|
11844 | cat confdefs.h >>conftest.$ac_ext |
|
|
11845 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11846 | /* end confdefs.h. */ |
|
|
11847 | $ac_includes_default |
|
|
11848 | int |
|
|
11849 | main () |
|
|
11850 | { |
|
|
11851 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
11852 | test_array [0] = 0 |
|
|
11853 | |
|
|
11854 | ; |
|
|
11855 | return 0; |
|
|
11856 | } |
|
|
11857 | _ACEOF |
|
|
11858 | rm -f conftest.$ac_objext |
|
|
11859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11860 | (eval $ac_compile) 2>conftest.er1 |
|
|
11861 | ac_status=$? |
|
|
11862 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11863 | rm -f conftest.er1 |
|
|
11864 | cat conftest.err >&5 |
|
|
11865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11866 | (exit $ac_status); } && |
|
|
11867 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11869 | (eval $ac_try) 2>&5 |
|
|
11870 | ac_status=$? |
|
|
11871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11872 | (exit $ac_status); }; } && |
|
|
11873 | { ac_try='test -s conftest.$ac_objext' |
|
|
11874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11875 | (eval $ac_try) 2>&5 |
|
|
11876 | ac_status=$? |
|
|
11877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11878 | (exit $ac_status); }; }; then |
|
|
11879 | ac_hi=$ac_mid; break |
|
|
11880 | else |
|
|
11881 | echo "$as_me: failed program was:" >&5 |
|
|
11882 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11883 | |
|
|
11884 | ac_lo=`expr $ac_mid + 1` |
|
|
11885 | if test $ac_lo -le $ac_mid; then |
|
|
11886 | ac_lo= ac_hi= |
|
|
11887 | break |
|
|
11888 | fi |
|
|
11889 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
11890 | fi |
|
|
11891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11892 | done |
|
|
11893 | else |
|
|
11894 | echo "$as_me: failed program was:" >&5 |
|
|
11895 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11896 | |
|
|
11897 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11898 | /* confdefs.h. */ |
|
|
11899 | _ACEOF |
|
|
11900 | cat confdefs.h >>conftest.$ac_ext |
|
|
11901 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11902 | /* end confdefs.h. */ |
|
|
11903 | $ac_includes_default |
|
|
11904 | int |
|
|
11905 | main () |
|
|
11906 | { |
|
|
11907 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
|
|
11908 | test_array [0] = 0 |
|
|
11909 | |
|
|
11910 | ; |
|
|
11911 | return 0; |
|
|
11912 | } |
|
|
11913 | _ACEOF |
|
|
11914 | rm -f conftest.$ac_objext |
|
|
11915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11916 | (eval $ac_compile) 2>conftest.er1 |
|
|
11917 | ac_status=$? |
|
|
11918 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11919 | rm -f conftest.er1 |
|
|
11920 | cat conftest.err >&5 |
|
|
11921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11922 | (exit $ac_status); } && |
|
|
11923 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11925 | (eval $ac_try) 2>&5 |
|
|
11926 | ac_status=$? |
|
|
11927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11928 | (exit $ac_status); }; } && |
|
|
11929 | { ac_try='test -s conftest.$ac_objext' |
|
|
11930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11931 | (eval $ac_try) 2>&5 |
|
|
11932 | ac_status=$? |
|
|
11933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11934 | (exit $ac_status); }; }; then |
|
|
11935 | ac_hi=-1 ac_mid=-1 |
|
|
11936 | while :; do |
|
|
11937 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11938 | /* confdefs.h. */ |
|
|
11939 | _ACEOF |
|
|
11940 | cat confdefs.h >>conftest.$ac_ext |
|
|
11941 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11942 | /* end confdefs.h. */ |
|
|
11943 | $ac_includes_default |
|
|
11944 | int |
|
|
11945 | main () |
|
|
11946 | { |
|
|
11947 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
|
|
11948 | test_array [0] = 0 |
|
|
11949 | |
|
|
11950 | ; |
|
|
11951 | return 0; |
|
|
11952 | } |
|
|
11953 | _ACEOF |
|
|
11954 | rm -f conftest.$ac_objext |
|
|
11955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
11956 | (eval $ac_compile) 2>conftest.er1 |
|
|
11957 | ac_status=$? |
|
|
11958 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11959 | rm -f conftest.er1 |
|
|
11960 | cat conftest.err >&5 |
|
|
11961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11962 | (exit $ac_status); } && |
|
|
11963 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11965 | (eval $ac_try) 2>&5 |
|
|
11966 | ac_status=$? |
|
|
11967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11968 | (exit $ac_status); }; } && |
|
|
11969 | { ac_try='test -s conftest.$ac_objext' |
|
|
11970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11971 | (eval $ac_try) 2>&5 |
|
|
11972 | ac_status=$? |
|
|
11973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11974 | (exit $ac_status); }; }; then |
|
|
11975 | ac_lo=$ac_mid; break |
|
|
11976 | else |
|
|
11977 | echo "$as_me: failed program was:" >&5 |
|
|
11978 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11979 | |
|
|
11980 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
11981 | if test $ac_mid -le $ac_hi; then |
|
|
11982 | ac_lo= ac_hi= |
|
|
11983 | break |
|
|
11984 | fi |
|
|
11985 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
11986 | fi |
|
|
11987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11988 | done |
|
|
11989 | else |
|
|
11990 | echo "$as_me: failed program was:" >&5 |
|
|
11991 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11992 | |
|
|
11993 | ac_lo= ac_hi= |
|
|
11994 | fi |
|
|
11995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11996 | fi |
|
|
11997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
11998 | # Binary search between lo and hi bounds. |
|
|
11999 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
12000 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
12001 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12002 | /* confdefs.h. */ |
|
|
12003 | _ACEOF |
|
|
12004 | cat confdefs.h >>conftest.$ac_ext |
|
|
12005 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12006 | /* end confdefs.h. */ |
|
|
12007 | $ac_includes_default |
|
|
12008 | int |
|
|
12009 | main () |
|
|
12010 | { |
|
|
12011 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
|
|
12012 | test_array [0] = 0 |
|
|
12013 | |
|
|
12014 | ; |
|
|
12015 | return 0; |
|
|
12016 | } |
|
|
12017 | _ACEOF |
|
|
12018 | rm -f conftest.$ac_objext |
|
|
12019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12020 | (eval $ac_compile) 2>conftest.er1 |
|
|
12021 | ac_status=$? |
|
|
12022 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12023 | rm -f conftest.er1 |
|
|
12024 | cat conftest.err >&5 |
|
|
12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12026 | (exit $ac_status); } && |
|
|
12027 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12029 | (eval $ac_try) 2>&5 |
|
|
12030 | ac_status=$? |
|
|
12031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12032 | (exit $ac_status); }; } && |
|
|
12033 | { ac_try='test -s conftest.$ac_objext' |
|
|
12034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12035 | (eval $ac_try) 2>&5 |
|
|
12036 | ac_status=$? |
|
|
12037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12038 | (exit $ac_status); }; }; then |
|
|
12039 | ac_hi=$ac_mid |
|
|
12040 | else |
|
|
12041 | echo "$as_me: failed program was:" >&5 |
|
|
12042 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12043 | |
|
|
12044 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
12045 | fi |
|
|
12046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
12047 | done |
|
|
12048 | case $ac_lo in |
|
|
12049 | ?*) ac_cv_sizeof_char=$ac_lo;; |
|
|
12050 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
12051 | See \`config.log' for more details." >&5 |
|
|
12052 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
12053 | See \`config.log' for more details." >&2;} |
|
|
12054 | { (exit 1); exit 1; }; } ;; |
|
|
12055 | esac |
|
|
12056 | else |
|
|
12057 | if test "$cross_compiling" = yes; then |
|
|
12058 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
12059 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
12060 | { (exit 1); exit 1; }; } |
|
|
12061 | else |
|
|
12062 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12063 | /* confdefs.h. */ |
|
|
12064 | _ACEOF |
|
|
12065 | cat confdefs.h >>conftest.$ac_ext |
|
|
12066 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12067 | /* end confdefs.h. */ |
|
|
12068 | $ac_includes_default |
|
|
12069 | long longval () { return (long) (sizeof (char)); } |
|
|
12070 | unsigned long ulongval () { return (long) (sizeof (char)); } |
|
|
12071 | #include <stdio.h> |
|
|
12072 | #include <stdlib.h> |
|
|
12073 | int |
|
|
12074 | main () |
|
|
12075 | { |
|
|
12076 | |
|
|
12077 | FILE *f = fopen ("conftest.val", "w"); |
|
|
12078 | if (! f) |
|
|
12079 | exit (1); |
|
|
12080 | if (((long) (sizeof (char))) < 0) |
|
|
12081 | { |
|
|
12082 | long i = longval (); |
|
|
12083 | if (i != ((long) (sizeof (char)))) |
|
|
12084 | exit (1); |
|
|
12085 | fprintf (f, "%ld\n", i); |
|
|
12086 | } |
|
|
12087 | else |
|
|
12088 | { |
|
|
12089 | unsigned long i = ulongval (); |
|
|
12090 | if (i != ((long) (sizeof (char)))) |
|
|
12091 | exit (1); |
|
|
12092 | fprintf (f, "%lu\n", i); |
|
|
12093 | } |
|
|
12094 | exit (ferror (f) || fclose (f) != 0); |
|
|
12095 | |
|
|
12096 | ; |
|
|
12097 | return 0; |
|
|
12098 | } |
|
|
12099 | _ACEOF |
|
|
12100 | rm -f conftest$ac_exeext |
|
|
12101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12102 | (eval $ac_link) 2>&5 |
|
|
12103 | ac_status=$? |
|
|
12104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
12106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12107 | (eval $ac_try) 2>&5 |
|
|
12108 | ac_status=$? |
|
|
12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12110 | (exit $ac_status); }; }; then |
|
|
12111 | ac_cv_sizeof_char=`cat conftest.val` |
|
|
12112 | else |
|
|
12113 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
12114 | echo "$as_me: failed program was:" >&5 |
|
|
12115 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12116 | |
|
|
12117 | ( exit $ac_status ) |
|
|
12118 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
|
|
12119 | See \`config.log' for more details." >&5 |
|
|
12120 | echo "$as_me: error: cannot compute sizeof (char), 77 |
|
|
12121 | See \`config.log' for more details." >&2;} |
|
|
12122 | { (exit 1); exit 1; }; } |
|
|
12123 | fi |
|
|
12124 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
12125 | fi |
|
|
12126 | fi |
|
|
12127 | rm -f conftest.val |
|
|
12128 | else |
|
|
12129 | ac_cv_sizeof_char=0 |
|
|
12130 | fi |
|
|
12131 | fi |
|
|
12132 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
|
|
12133 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
|
|
12134 | cat >>confdefs.h <<_ACEOF |
|
|
12135 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
|
|
12136 | _ACEOF |
|
|
12137 | |
|
|
12138 | |
|
|
12139 | echo "$as_me:$LINENO: checking for short" >&5 |
8039 | echo "$as_me:$LINENO: checking for short" >&5 |
12140 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
8040 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
12141 | if test "${ac_cv_type_short+set}" = set; then |
8041 | if test "${ac_cv_type_short+set}" = set; then |
12142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12143 | else |
8043 | else |
… | |
… | |
12946 | cat >>confdefs.h <<_ACEOF |
8846 | cat >>confdefs.h <<_ACEOF |
12947 | #define SIZEOF_INT $ac_cv_sizeof_int |
8847 | #define SIZEOF_INT $ac_cv_sizeof_int |
12948 | _ACEOF |
8848 | _ACEOF |
12949 | |
8849 | |
12950 | |
8850 | |
12951 | echo "$as_me:$LINENO: checking for long" >&5 |
|
|
12952 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
|
|
12953 | if test "${ac_cv_type_long+set}" = set; then |
|
|
12954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12955 | else |
|
|
12956 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12957 | /* confdefs.h. */ |
|
|
12958 | _ACEOF |
|
|
12959 | cat confdefs.h >>conftest.$ac_ext |
|
|
12960 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12961 | /* end confdefs.h. */ |
|
|
12962 | $ac_includes_default |
|
|
12963 | int |
|
|
12964 | main () |
|
|
12965 | { |
|
|
12966 | if ((long *) 0) |
|
|
12967 | return 0; |
|
|
12968 | if (sizeof (long)) |
|
|
12969 | return 0; |
|
|
12970 | ; |
|
|
12971 | return 0; |
|
|
12972 | } |
|
|
12973 | _ACEOF |
|
|
12974 | rm -f conftest.$ac_objext |
|
|
12975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
12976 | (eval $ac_compile) 2>conftest.er1 |
|
|
12977 | ac_status=$? |
|
|
12978 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12979 | rm -f conftest.er1 |
|
|
12980 | cat conftest.err >&5 |
|
|
12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12982 | (exit $ac_status); } && |
|
|
12983 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12985 | (eval $ac_try) 2>&5 |
|
|
12986 | ac_status=$? |
|
|
12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12988 | (exit $ac_status); }; } && |
|
|
12989 | { ac_try='test -s conftest.$ac_objext' |
|
|
12990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12991 | (eval $ac_try) 2>&5 |
|
|
12992 | ac_status=$? |
|
|
12993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12994 | (exit $ac_status); }; }; then |
|
|
12995 | ac_cv_type_long=yes |
|
|
12996 | else |
|
|
12997 | echo "$as_me: failed program was:" >&5 |
|
|
12998 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12999 | |
|
|
13000 | ac_cv_type_long=no |
|
|
13001 | fi |
|
|
13002 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13003 | fi |
|
|
13004 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
|
|
13005 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
|
|
13006 | |
|
|
13007 | echo "$as_me:$LINENO: checking size of long" >&5 |
|
|
13008 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
|
|
13009 | if test "${ac_cv_sizeof_long+set}" = set; then |
|
|
13010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
13011 | else |
|
|
13012 | if test "$ac_cv_type_long" = yes; then |
|
|
13013 | # The cast to unsigned long works around a bug in the HP C Compiler |
|
|
13014 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
|
|
13015 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
|
|
13016 | # This bug is HP SR number 8606223364. |
|
|
13017 | if test "$cross_compiling" = yes; then |
|
|
13018 | # Depending upon the size, compute the lo and hi bounds. |
|
|
13019 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13020 | /* confdefs.h. */ |
|
|
13021 | _ACEOF |
|
|
13022 | cat confdefs.h >>conftest.$ac_ext |
|
|
13023 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13024 | /* end confdefs.h. */ |
|
|
13025 | $ac_includes_default |
|
|
13026 | int |
|
|
13027 | main () |
|
|
13028 | { |
|
|
13029 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
|
|
13030 | test_array [0] = 0 |
|
|
13031 | |
|
|
13032 | ; |
|
|
13033 | return 0; |
|
|
13034 | } |
|
|
13035 | _ACEOF |
|
|
13036 | rm -f conftest.$ac_objext |
|
|
13037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13038 | (eval $ac_compile) 2>conftest.er1 |
|
|
13039 | ac_status=$? |
|
|
13040 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13041 | rm -f conftest.er1 |
|
|
13042 | cat conftest.err >&5 |
|
|
13043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13044 | (exit $ac_status); } && |
|
|
13045 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13047 | (eval $ac_try) 2>&5 |
|
|
13048 | ac_status=$? |
|
|
13049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13050 | (exit $ac_status); }; } && |
|
|
13051 | { ac_try='test -s conftest.$ac_objext' |
|
|
13052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13053 | (eval $ac_try) 2>&5 |
|
|
13054 | ac_status=$? |
|
|
13055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13056 | (exit $ac_status); }; }; then |
|
|
13057 | ac_lo=0 ac_mid=0 |
|
|
13058 | while :; do |
|
|
13059 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13060 | /* confdefs.h. */ |
|
|
13061 | _ACEOF |
|
|
13062 | cat confdefs.h >>conftest.$ac_ext |
|
|
13063 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13064 | /* end confdefs.h. */ |
|
|
13065 | $ac_includes_default |
|
|
13066 | int |
|
|
13067 | main () |
|
|
13068 | { |
|
|
13069 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
13070 | test_array [0] = 0 |
|
|
13071 | |
|
|
13072 | ; |
|
|
13073 | return 0; |
|
|
13074 | } |
|
|
13075 | _ACEOF |
|
|
13076 | rm -f conftest.$ac_objext |
|
|
13077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13078 | (eval $ac_compile) 2>conftest.er1 |
|
|
13079 | ac_status=$? |
|
|
13080 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13081 | rm -f conftest.er1 |
|
|
13082 | cat conftest.err >&5 |
|
|
13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13084 | (exit $ac_status); } && |
|
|
13085 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13087 | (eval $ac_try) 2>&5 |
|
|
13088 | ac_status=$? |
|
|
13089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13090 | (exit $ac_status); }; } && |
|
|
13091 | { ac_try='test -s conftest.$ac_objext' |
|
|
13092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13093 | (eval $ac_try) 2>&5 |
|
|
13094 | ac_status=$? |
|
|
13095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13096 | (exit $ac_status); }; }; then |
|
|
13097 | ac_hi=$ac_mid; break |
|
|
13098 | else |
|
|
13099 | echo "$as_me: failed program was:" >&5 |
|
|
13100 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13101 | |
|
|
13102 | ac_lo=`expr $ac_mid + 1` |
|
|
13103 | if test $ac_lo -le $ac_mid; then |
|
|
13104 | ac_lo= ac_hi= |
|
|
13105 | break |
|
|
13106 | fi |
|
|
13107 | ac_mid=`expr 2 '*' $ac_mid + 1` |
|
|
13108 | fi |
|
|
13109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13110 | done |
|
|
13111 | else |
|
|
13112 | echo "$as_me: failed program was:" >&5 |
|
|
13113 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13114 | |
|
|
13115 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13116 | /* confdefs.h. */ |
|
|
13117 | _ACEOF |
|
|
13118 | cat confdefs.h >>conftest.$ac_ext |
|
|
13119 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13120 | /* end confdefs.h. */ |
|
|
13121 | $ac_includes_default |
|
|
13122 | int |
|
|
13123 | main () |
|
|
13124 | { |
|
|
13125 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
|
|
13126 | test_array [0] = 0 |
|
|
13127 | |
|
|
13128 | ; |
|
|
13129 | return 0; |
|
|
13130 | } |
|
|
13131 | _ACEOF |
|
|
13132 | rm -f conftest.$ac_objext |
|
|
13133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13134 | (eval $ac_compile) 2>conftest.er1 |
|
|
13135 | ac_status=$? |
|
|
13136 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13137 | rm -f conftest.er1 |
|
|
13138 | cat conftest.err >&5 |
|
|
13139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13140 | (exit $ac_status); } && |
|
|
13141 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13143 | (eval $ac_try) 2>&5 |
|
|
13144 | ac_status=$? |
|
|
13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13146 | (exit $ac_status); }; } && |
|
|
13147 | { ac_try='test -s conftest.$ac_objext' |
|
|
13148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13149 | (eval $ac_try) 2>&5 |
|
|
13150 | ac_status=$? |
|
|
13151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13152 | (exit $ac_status); }; }; then |
|
|
13153 | ac_hi=-1 ac_mid=-1 |
|
|
13154 | while :; do |
|
|
13155 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13156 | /* confdefs.h. */ |
|
|
13157 | _ACEOF |
|
|
13158 | cat confdefs.h >>conftest.$ac_ext |
|
|
13159 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13160 | /* end confdefs.h. */ |
|
|
13161 | $ac_includes_default |
|
|
13162 | int |
|
|
13163 | main () |
|
|
13164 | { |
|
|
13165 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
|
|
13166 | test_array [0] = 0 |
|
|
13167 | |
|
|
13168 | ; |
|
|
13169 | return 0; |
|
|
13170 | } |
|
|
13171 | _ACEOF |
|
|
13172 | rm -f conftest.$ac_objext |
|
|
13173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13174 | (eval $ac_compile) 2>conftest.er1 |
|
|
13175 | ac_status=$? |
|
|
13176 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13177 | rm -f conftest.er1 |
|
|
13178 | cat conftest.err >&5 |
|
|
13179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13180 | (exit $ac_status); } && |
|
|
13181 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13183 | (eval $ac_try) 2>&5 |
|
|
13184 | ac_status=$? |
|
|
13185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13186 | (exit $ac_status); }; } && |
|
|
13187 | { ac_try='test -s conftest.$ac_objext' |
|
|
13188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13189 | (eval $ac_try) 2>&5 |
|
|
13190 | ac_status=$? |
|
|
13191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13192 | (exit $ac_status); }; }; then |
|
|
13193 | ac_lo=$ac_mid; break |
|
|
13194 | else |
|
|
13195 | echo "$as_me: failed program was:" >&5 |
|
|
13196 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13197 | |
|
|
13198 | ac_hi=`expr '(' $ac_mid ')' - 1` |
|
|
13199 | if test $ac_mid -le $ac_hi; then |
|
|
13200 | ac_lo= ac_hi= |
|
|
13201 | break |
|
|
13202 | fi |
|
|
13203 | ac_mid=`expr 2 '*' $ac_mid` |
|
|
13204 | fi |
|
|
13205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13206 | done |
|
|
13207 | else |
|
|
13208 | echo "$as_me: failed program was:" >&5 |
|
|
13209 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13210 | |
|
|
13211 | ac_lo= ac_hi= |
|
|
13212 | fi |
|
|
13213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13214 | fi |
|
|
13215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13216 | # Binary search between lo and hi bounds. |
|
|
13217 | while test "x$ac_lo" != "x$ac_hi"; do |
|
|
13218 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
|
|
13219 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13220 | /* confdefs.h. */ |
|
|
13221 | _ACEOF |
|
|
13222 | cat confdefs.h >>conftest.$ac_ext |
|
|
13223 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13224 | /* end confdefs.h. */ |
|
|
13225 | $ac_includes_default |
|
|
13226 | int |
|
|
13227 | main () |
|
|
13228 | { |
|
|
13229 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
|
|
13230 | test_array [0] = 0 |
|
|
13231 | |
|
|
13232 | ; |
|
|
13233 | return 0; |
|
|
13234 | } |
|
|
13235 | _ACEOF |
|
|
13236 | rm -f conftest.$ac_objext |
|
|
13237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
13238 | (eval $ac_compile) 2>conftest.er1 |
|
|
13239 | ac_status=$? |
|
|
13240 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
13241 | rm -f conftest.er1 |
|
|
13242 | cat conftest.err >&5 |
|
|
13243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13244 | (exit $ac_status); } && |
|
|
13245 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
13246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13247 | (eval $ac_try) 2>&5 |
|
|
13248 | ac_status=$? |
|
|
13249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13250 | (exit $ac_status); }; } && |
|
|
13251 | { ac_try='test -s conftest.$ac_objext' |
|
|
13252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13253 | (eval $ac_try) 2>&5 |
|
|
13254 | ac_status=$? |
|
|
13255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13256 | (exit $ac_status); }; }; then |
|
|
13257 | ac_hi=$ac_mid |
|
|
13258 | else |
|
|
13259 | echo "$as_me: failed program was:" >&5 |
|
|
13260 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13261 | |
|
|
13262 | ac_lo=`expr '(' $ac_mid ')' + 1` |
|
|
13263 | fi |
|
|
13264 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
13265 | done |
|
|
13266 | case $ac_lo in |
|
|
13267 | ?*) ac_cv_sizeof_long=$ac_lo;; |
|
|
13268 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
13269 | See \`config.log' for more details." >&5 |
|
|
13270 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
13271 | See \`config.log' for more details." >&2;} |
|
|
13272 | { (exit 1); exit 1; }; } ;; |
|
|
13273 | esac |
|
|
13274 | else |
|
|
13275 | if test "$cross_compiling" = yes; then |
|
|
13276 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
|
|
13277 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
|
|
13278 | { (exit 1); exit 1; }; } |
|
|
13279 | else |
|
|
13280 | cat >conftest.$ac_ext <<_ACEOF |
|
|
13281 | /* confdefs.h. */ |
|
|
13282 | _ACEOF |
|
|
13283 | cat confdefs.h >>conftest.$ac_ext |
|
|
13284 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
13285 | /* end confdefs.h. */ |
|
|
13286 | $ac_includes_default |
|
|
13287 | long longval () { return (long) (sizeof (long)); } |
|
|
13288 | unsigned long ulongval () { return (long) (sizeof (long)); } |
|
|
13289 | #include <stdio.h> |
|
|
13290 | #include <stdlib.h> |
|
|
13291 | int |
|
|
13292 | main () |
|
|
13293 | { |
|
|
13294 | |
|
|
13295 | FILE *f = fopen ("conftest.val", "w"); |
|
|
13296 | if (! f) |
|
|
13297 | exit (1); |
|
|
13298 | if (((long) (sizeof (long))) < 0) |
|
|
13299 | { |
|
|
13300 | long i = longval (); |
|
|
13301 | if (i != ((long) (sizeof (long)))) |
|
|
13302 | exit (1); |
|
|
13303 | fprintf (f, "%ld\n", i); |
|
|
13304 | } |
|
|
13305 | else |
|
|
13306 | { |
|
|
13307 | unsigned long i = ulongval (); |
|
|
13308 | if (i != ((long) (sizeof (long)))) |
|
|
13309 | exit (1); |
|
|
13310 | fprintf (f, "%lu\n", i); |
|
|
13311 | } |
|
|
13312 | exit (ferror (f) || fclose (f) != 0); |
|
|
13313 | |
|
|
13314 | ; |
|
|
13315 | return 0; |
|
|
13316 | } |
|
|
13317 | _ACEOF |
|
|
13318 | rm -f conftest$ac_exeext |
|
|
13319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
13320 | (eval $ac_link) 2>&5 |
|
|
13321 | ac_status=$? |
|
|
13322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13323 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
|
|
13324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
13325 | (eval $ac_try) 2>&5 |
|
|
13326 | ac_status=$? |
|
|
13327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
13328 | (exit $ac_status); }; }; then |
|
|
13329 | ac_cv_sizeof_long=`cat conftest.val` |
|
|
13330 | else |
|
|
13331 | echo "$as_me: program exited with status $ac_status" >&5 |
|
|
13332 | echo "$as_me: failed program was:" >&5 |
|
|
13333 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
13334 | |
|
|
13335 | ( exit $ac_status ) |
|
|
13336 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
|
|
13337 | See \`config.log' for more details." >&5 |
|
|
13338 | echo "$as_me: error: cannot compute sizeof (long), 77 |
|
|
13339 | See \`config.log' for more details." >&2;} |
|
|
13340 | { (exit 1); exit 1; }; } |
|
|
13341 | fi |
|
|
13342 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
|
|
13343 | fi |
|
|
13344 | fi |
|
|
13345 | rm -f conftest.val |
|
|
13346 | else |
|
|
13347 | ac_cv_sizeof_long=0 |
|
|
13348 | fi |
|
|
13349 | fi |
|
|
13350 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
|
|
13351 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
|
|
13352 | cat >>confdefs.h <<_ACEOF |
|
|
13353 | #define SIZEOF_LONG $ac_cv_sizeof_long |
|
|
13354 | _ACEOF |
|
|
13355 | |
|
|
13356 | |
|
|
13357 | echo "$as_me:$LINENO: checking for long long" >&5 |
8851 | echo "$as_me:$LINENO: checking for long long" >&5 |
13358 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
8852 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
13359 | if test "${ac_cv_type_long_long+set}" = set; then |
8853 | if test "${ac_cv_type_long_long+set}" = set; then |
13360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13361 | else |
8855 | else |
… | |
… | |
14212 | rxvt_cv_int16_t=yes |
9706 | rxvt_cv_int16_t=yes |
14213 | else |
9707 | else |
14214 | echo "$as_me: failed program was:" >&5 |
9708 | echo "$as_me: failed program was:" >&5 |
14215 | sed 's/^/| /' conftest.$ac_ext >&5 |
9709 | sed 's/^/| /' conftest.$ac_ext >&5 |
14216 | |
9710 | |
14217 | if test $ac_cv_sizeof_char -ge 2; then |
9711 | if test "$ac_cv_sizeof_char" -ge 2; then |
14218 | rxvt_cv_int16_t=" char" |
9712 | rxvt_cv_int16_t=" char" |
14219 | else |
9713 | else |
14220 | if test $ac_cv_sizeof_short -ge 2; then |
9714 | if test "$ac_cv_sizeof_short" -ge 2; then |
14221 | rxvt_cv_int16_t=" short" |
9715 | rxvt_cv_int16_t=" short" |
14222 | else |
9716 | else |
14223 | if test $ac_cv_sizeof_int -ge 2; then |
9717 | if test "$ac_cv_sizeof_int" -ge 2; then |
14224 | rxvt_cv_int16_t=" int" |
9718 | rxvt_cv_int16_t=" int" |
14225 | else |
9719 | else |
14226 | if test $ac_cv_sizeof_long -ge 2; then |
9720 | if test "$ac_cv_sizeof_long" -ge 2; then |
14227 | rxvt_cv_int16_t=" long" |
9721 | rxvt_cv_int16_t=" long" |
14228 | else |
9722 | else |
14229 | if test $ac_cv_sizeof_long_long -ge 2; then |
9723 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
14230 | rxvt_cv_int16_t=" long long" |
9724 | rxvt_cv_int16_t=" long long" |
14231 | else |
9725 | else |
14232 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
9726 | rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default |
14233 | fi |
9727 | fi |
14234 | fi |
9728 | fi |
… | |
… | |
14294 | rxvt_cv_uint16_t=yes |
9788 | rxvt_cv_uint16_t=yes |
14295 | else |
9789 | else |
14296 | echo "$as_me: failed program was:" >&5 |
9790 | echo "$as_me: failed program was:" >&5 |
14297 | sed 's/^/| /' conftest.$ac_ext >&5 |
9791 | sed 's/^/| /' conftest.$ac_ext >&5 |
14298 | |
9792 | |
14299 | if test $ac_cv_sizeof_char -ge 2; then |
9793 | if test "$ac_cv_sizeof_char" -ge 2; then |
14300 | rxvt_cv_uint16_t="unsigned char" |
9794 | rxvt_cv_uint16_t="unsigned char" |
14301 | else |
9795 | else |
14302 | if test $ac_cv_sizeof_short -ge 2; then |
9796 | if test "$ac_cv_sizeof_short" -ge 2; then |
14303 | rxvt_cv_uint16_t="unsigned short" |
9797 | rxvt_cv_uint16_t="unsigned short" |
14304 | else |
9798 | else |
14305 | if test $ac_cv_sizeof_int -ge 2; then |
9799 | if test "$ac_cv_sizeof_int" -ge 2; then |
14306 | rxvt_cv_uint16_t="unsigned int" |
9800 | rxvt_cv_uint16_t="unsigned int" |
14307 | else |
9801 | else |
14308 | if test $ac_cv_sizeof_long -ge 2; then |
9802 | if test "$ac_cv_sizeof_long" -ge 2; then |
14309 | rxvt_cv_uint16_t="unsigned long" |
9803 | rxvt_cv_uint16_t="unsigned long" |
14310 | else |
9804 | else |
14311 | if test $ac_cv_sizeof_long_long -ge 2; then |
9805 | if test "$ac_cv_sizeof_long_long" -ge 2; then |
14312 | rxvt_cv_uint16_t="unsigned long long" |
9806 | rxvt_cv_uint16_t="unsigned long long" |
14313 | else |
9807 | else |
14314 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
9808 | rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default |
14315 | fi |
9809 | fi |
14316 | fi |
9810 | fi |
… | |
… | |
14376 | rxvt_cv_int32_t=yes |
9870 | rxvt_cv_int32_t=yes |
14377 | else |
9871 | else |
14378 | echo "$as_me: failed program was:" >&5 |
9872 | echo "$as_me: failed program was:" >&5 |
14379 | sed 's/^/| /' conftest.$ac_ext >&5 |
9873 | sed 's/^/| /' conftest.$ac_ext >&5 |
14380 | |
9874 | |
14381 | if test $ac_cv_sizeof_char -ge 4; then |
9875 | if test "$ac_cv_sizeof_char" -ge 4; then |
14382 | rxvt_cv_int32_t=" char" |
9876 | rxvt_cv_int32_t=" char" |
14383 | else |
9877 | else |
14384 | if test $ac_cv_sizeof_short -ge 4; then |
9878 | if test "$ac_cv_sizeof_short" -ge 4; then |
14385 | rxvt_cv_int32_t=" short" |
9879 | rxvt_cv_int32_t=" short" |
14386 | else |
9880 | else |
14387 | if test $ac_cv_sizeof_int -ge 4; then |
9881 | if test "$ac_cv_sizeof_int" -ge 4; then |
14388 | rxvt_cv_int32_t=" int" |
9882 | rxvt_cv_int32_t=" int" |
14389 | else |
9883 | else |
14390 | if test $ac_cv_sizeof_long -ge 4; then |
9884 | if test "$ac_cv_sizeof_long" -ge 4; then |
14391 | rxvt_cv_int32_t=" long" |
9885 | rxvt_cv_int32_t=" long" |
14392 | else |
9886 | else |
14393 | if test $ac_cv_sizeof_long_long -ge 4; then |
9887 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
14394 | rxvt_cv_int32_t=" long long" |
9888 | rxvt_cv_int32_t=" long long" |
14395 | else |
9889 | else |
14396 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
9890 | rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default |
14397 | fi |
9891 | fi |
14398 | fi |
9892 | fi |
… | |
… | |
14458 | rxvt_cv_uint32_t=yes |
9952 | rxvt_cv_uint32_t=yes |
14459 | else |
9953 | else |
14460 | echo "$as_me: failed program was:" >&5 |
9954 | echo "$as_me: failed program was:" >&5 |
14461 | sed 's/^/| /' conftest.$ac_ext >&5 |
9955 | sed 's/^/| /' conftest.$ac_ext >&5 |
14462 | |
9956 | |
14463 | if test $ac_cv_sizeof_char -ge 4; then |
9957 | if test "$ac_cv_sizeof_char" -ge 4; then |
14464 | rxvt_cv_uint32_t="unsigned char" |
9958 | rxvt_cv_uint32_t="unsigned char" |
14465 | else |
9959 | else |
14466 | if test $ac_cv_sizeof_short -ge 4; then |
9960 | if test "$ac_cv_sizeof_short" -ge 4; then |
14467 | rxvt_cv_uint32_t="unsigned short" |
9961 | rxvt_cv_uint32_t="unsigned short" |
14468 | else |
9962 | else |
14469 | if test $ac_cv_sizeof_int -ge 4; then |
9963 | if test "$ac_cv_sizeof_int" -ge 4; then |
14470 | rxvt_cv_uint32_t="unsigned int" |
9964 | rxvt_cv_uint32_t="unsigned int" |
14471 | else |
9965 | else |
14472 | if test $ac_cv_sizeof_long -ge 4; then |
9966 | if test "$ac_cv_sizeof_long" -ge 4; then |
14473 | rxvt_cv_uint32_t="unsigned long" |
9967 | rxvt_cv_uint32_t="unsigned long" |
14474 | else |
9968 | else |
14475 | if test $ac_cv_sizeof_long_long -ge 4; then |
9969 | if test "$ac_cv_sizeof_long_long" -ge 4; then |
14476 | rxvt_cv_uint32_t="unsigned long long" |
9970 | rxvt_cv_uint32_t="unsigned long long" |
14477 | else |
9971 | else |
14478 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
9972 | rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default |
14479 | fi |
9973 | fi |
14480 | fi |
9974 | fi |
… | |
… | |
14494 | else |
9988 | else |
14495 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
9989 | rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */" |
14496 | fi |
9990 | fi |
14497 | fi |
9991 | fi |
14498 | |
9992 | |
14499 | if test $ac_cv_sizeof_int_p -eq 8; then |
9993 | if test "$ac_cv_sizeof_int_p" -eq 8; then |
14500 | rxvt_intp_define="#define intp_t int64_t" |
9994 | rxvt_intp_define="#define intp_t int64_t" |
14501 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
9995 | rxvt_u_intp_define="#define u_intp_t u_int64_t" |
14502 | else |
9996 | else |
14503 | if test $ac_cv_sizeof_int_p -eq 4; then |
9997 | if test "$ac_cv_sizeof_int_p" -eq 4; then |
14504 | rxvt_intp_define="#define intp_t int32_t" |
9998 | rxvt_intp_define="#define intp_t int32_t" |
14505 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
9999 | rxvt_u_intp_define="#define u_intp_t u_int32_t" |
14506 | else |
10000 | else |
14507 | if test $ac_cv_sizeof_int_p -eq 2; then |
10001 | if test "$ac_cv_sizeof_int_p" -eq 2; then |
14508 | rxvt_intp_define="#define intp_t int16_t" |
10002 | rxvt_intp_define="#define intp_t int16_t" |
14509 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
10003 | rxvt_u_intp_define="#define u_intp_t u_int16_t" |
14510 | else |
10004 | else |
14511 | rxvt_intp_define="#error set intp_t" |
10005 | rxvt_intp_define="#error set intp_t" |
14512 | rxvt_u_intp_define="#error set u_intp_t" |
10006 | rxvt_u_intp_define="#error set u_intp_t" |
… | |
… | |
14583 | #define RETSIGTYPE $ac_cv_type_signal |
10077 | #define RETSIGTYPE $ac_cv_type_signal |
14584 | _ACEOF |
10078 | _ACEOF |
14585 | |
10079 | |
14586 | |
10080 | |
14587 | |
10081 | |
14588 | case "$host_alias" in |
|
|
14589 | *ultrix) ac_cv_func_setsid='no' ;; |
|
|
14590 | *) break;; |
|
|
14591 | esac |
|
|
14592 | |
|
|
14593 | |
|
|
14594 | |
10082 | |
14595 | |
10083 | |
14596 | |
10084 | |
14597 | |
10085 | |
14598 | |
10086 | |
… | |
… | |
14607 | |
10095 | |
14608 | |
10096 | |
14609 | |
10097 | |
14610 | |
10098 | |
14611 | for ac_func in \ |
10099 | for ac_func in \ |
14612 | atexit \ |
|
|
14613 | revoke \ |
10100 | revoke \ |
14614 | unsetenv \ |
10101 | unsetenv \ |
14615 | setutent \ |
10102 | setutent \ |
14616 | seteuid \ |
10103 | seteuid \ |
|
|
10104 | setresuid \ |
14617 | setreuid \ |
10105 | setreuid \ |
14618 | setsid \ |
|
|
14619 | setpgrp \ |
|
|
14620 | setpgid \ |
|
|
14621 | openpty \ |
|
|
14622 | _getpty \ |
10106 | _getpty \ |
|
|
10107 | getpt \ |
|
|
10108 | posix_openpt \ |
14623 | grantpt \ |
10109 | grantpt \ |
14624 | unlockpt \ |
10110 | unlockpt \ |
14625 | isastream \ |
10111 | isastream \ |
14626 | on_exit \ |
10112 | on_exit \ |
14627 | nanosleep \ |
10113 | nanosleep \ |
14628 | updwtmp \ |
10114 | updwtmp \ |
|
|
10115 | updwtmpx \ |
14629 | ttyslot \ |
10116 | ttyslot \ |
14630 | |
10117 | |
14631 | do |
10118 | do |
14632 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10119 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14633 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10120 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
… | |
… | |
14876 | _ACEOF |
10363 | _ACEOF |
14877 | cat confdefs.h >>conftest.$ac_ext |
10364 | cat confdefs.h >>conftest.$ac_ext |
14878 | cat >>conftest.$ac_ext <<_ACEOF |
10365 | cat >>conftest.$ac_ext <<_ACEOF |
14879 | /* end confdefs.h. */ |
10366 | /* end confdefs.h. */ |
14880 | #include <sys/types.h> |
10367 | #include <sys/types.h> |
14881 | #include <stdint.h> |
|
|
14882 | #include <utmp.h> |
10368 | #include <utmp.h> |
14883 | int |
10369 | int |
14884 | main () |
10370 | main () |
14885 | { |
10371 | { |
14886 | struct utmp ut; |
10372 | struct utmp ut; |
… | |
… | |
15313 | #define HAVE_UTMPX_HOST 1 |
10799 | #define HAVE_UTMPX_HOST 1 |
15314 | _ACEOF |
10800 | _ACEOF |
15315 | |
10801 | |
15316 | fi |
10802 | fi |
15317 | |
10803 | |
15318 | fi |
10804 | echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 |
|
|
10805 | echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6 |
|
|
10806 | if test "${rxvt_cv_struct_utmpx_session+set}" = set; then |
|
|
10807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
10808 | else |
|
|
10809 | cat >conftest.$ac_ext <<_ACEOF |
|
|
10810 | /* confdefs.h. */ |
|
|
10811 | _ACEOF |
|
|
10812 | cat confdefs.h >>conftest.$ac_ext |
|
|
10813 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
10814 | /* end confdefs.h. */ |
|
|
10815 | #include <sys/types.h> |
|
|
10816 | #include <utmpx.h> |
|
|
10817 | int |
|
|
10818 | main () |
|
|
10819 | { |
|
|
10820 | struct utmpx utx; utx.ut_session; |
|
|
10821 | ; |
|
|
10822 | return 0; |
|
|
10823 | } |
|
|
10824 | _ACEOF |
|
|
10825 | rm -f conftest.$ac_objext |
|
|
10826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
|
|
10827 | (eval $ac_compile) 2>conftest.er1 |
|
|
10828 | ac_status=$? |
|
|
10829 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
10830 | rm -f conftest.er1 |
|
|
10831 | cat conftest.err >&5 |
|
|
10832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10833 | (exit $ac_status); } && |
|
|
10834 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
10835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10836 | (eval $ac_try) 2>&5 |
|
|
10837 | ac_status=$? |
|
|
10838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10839 | (exit $ac_status); }; } && |
|
|
10840 | { ac_try='test -s conftest.$ac_objext' |
|
|
10841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
10842 | (eval $ac_try) 2>&5 |
|
|
10843 | ac_status=$? |
|
|
10844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
10845 | (exit $ac_status); }; }; then |
|
|
10846 | rxvt_cv_struct_utmpx_session=yes |
|
|
10847 | else |
|
|
10848 | echo "$as_me: failed program was:" >&5 |
|
|
10849 | sed 's/^/| /' conftest.$ac_ext >&5 |
15319 | |
10850 | |
|
|
10851 | rxvt_cv_struct_utmpx_session=no |
|
|
10852 | fi |
|
|
10853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
10854 | fi |
|
|
10855 | echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5 |
|
|
10856 | echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6 |
|
|
10857 | if test x$rxvt_cv_struct_utmpx_session = xyes; then |
|
|
10858 | |
|
|
10859 | cat >>confdefs.h <<\_ACEOF |
|
|
10860 | #define HAVE_UTMPX_SESSION 1 |
|
|
10861 | _ACEOF |
|
|
10862 | |
|
|
10863 | fi |
|
|
10864 | |
|
|
10865 | fi |
15320 | |
10866 | |
15321 | |
10867 | |
15322 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
10868 | echo "$as_me:$LINENO: checking for struct lastlog" >&5 |
15323 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
10869 | echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6 |
15324 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
10870 | if test "${rxvt_cv_struct_lastlog+set}" = set; then |
… | |
… | |
16201 | #define HAVE_NL_LANGINFO 1 |
11747 | #define HAVE_NL_LANGINFO 1 |
16202 | _ACEOF |
11748 | _ACEOF |
16203 | |
11749 | |
16204 | fi |
11750 | fi |
16205 | |
11751 | |
|
|
11752 | echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 |
|
|
11753 | echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 |
|
|
11754 | if test "${rxvt_can_pass_fds+set}" = set; then |
|
|
11755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11756 | else |
|
|
11757 | cat >conftest.$ac_ext <<_ACEOF |
|
|
11758 | /* confdefs.h. */ |
|
|
11759 | _ACEOF |
|
|
11760 | cat confdefs.h >>conftest.$ac_ext |
|
|
11761 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
11762 | /* end confdefs.h. */ |
|
|
11763 | |
|
|
11764 | #include <sys/types.h> |
|
|
11765 | #include <sys/socket.h> |
|
|
11766 | |
|
|
11767 | int |
|
|
11768 | main () |
|
|
11769 | { |
|
|
11770 | |
|
|
11771 | { |
|
|
11772 | msghdr msg; |
|
|
11773 | iovec iov; |
|
|
11774 | char buf [100]; |
|
|
11775 | char data = 0; |
|
|
11776 | |
|
|
11777 | iov.iov_base = &data; |
|
|
11778 | iov.iov_len = 1; |
|
|
11779 | |
|
|
11780 | msg.msg_iov = &iov; |
|
|
11781 | msg.msg_iovlen = 1; |
|
|
11782 | msg.msg_control = buf; |
|
|
11783 | msg.msg_controllen = sizeof buf; |
|
|
11784 | |
|
|
11785 | cmsghdr *cmsg = CMSG_FIRSTHDR (&msg); |
|
|
11786 | cmsg->cmsg_level = SOL_SOCKET; |
|
|
11787 | cmsg->cmsg_type = SCM_RIGHTS; |
|
|
11788 | cmsg->cmsg_len = 100; |
|
|
11789 | |
|
|
11790 | *(int *)CMSG_DATA (cmsg) = 5; |
|
|
11791 | |
|
|
11792 | return sendmsg (3, &msg, 0); |
|
|
11793 | } |
|
|
11794 | |
|
|
11795 | ; |
|
|
11796 | return 0; |
|
|
11797 | } |
|
|
11798 | _ACEOF |
|
|
11799 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
11800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
11801 | (eval $ac_link) 2>conftest.er1 |
|
|
11802 | ac_status=$? |
|
|
11803 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
11804 | rm -f conftest.er1 |
|
|
11805 | cat conftest.err >&5 |
|
|
11806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11807 | (exit $ac_status); } && |
|
|
11808 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
11809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11810 | (eval $ac_try) 2>&5 |
|
|
11811 | ac_status=$? |
|
|
11812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11813 | (exit $ac_status); }; } && |
|
|
11814 | { ac_try='test -s conftest$ac_exeext' |
|
|
11815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
11816 | (eval $ac_try) 2>&5 |
|
|
11817 | ac_status=$? |
|
|
11818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
11819 | (exit $ac_status); }; }; then |
|
|
11820 | rxvt_can_pass_fds=yes |
|
|
11821 | else |
|
|
11822 | echo "$as_me: failed program was:" >&5 |
|
|
11823 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
11824 | |
|
|
11825 | rxvt_can_pass_fds=no |
|
|
11826 | fi |
|
|
11827 | rm -f conftest.err conftest.$ac_objext \ |
|
|
11828 | conftest$ac_exeext conftest.$ac_ext |
|
|
11829 | fi |
|
|
11830 | echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 |
|
|
11831 | echo "${ECHO_T}$rxvt_can_pass_fds" >&6 |
|
|
11832 | if test x$rxvt_can_pass_fds = xyes; then |
|
|
11833 | |
|
|
11834 | cat >>confdefs.h <<\_ACEOF |
|
|
11835 | #define HAVE_UNIX_FDPASS 1 |
|
|
11836 | _ACEOF |
|
|
11837 | |
|
|
11838 | else |
|
|
11839 | { { echo "$as_me:$LINENO: error: urxvt requires unix-compliant filehandle passing ability" >&5 |
|
|
11840 | echo "$as_me: error: urxvt requires unix-compliant filehandle passing ability" >&2;} |
|
|
11841 | { (exit 1); exit 1; }; } |
|
|
11842 | fi |
|
|
11843 | |
16206 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
11844 | echo "$as_me:$LINENO: checking for broken XIM callback" >&5 |
16207 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
11845 | echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6 |
16208 | if test "${rxvt_broken_ximcb+set}" = set; then |
11846 | if test "${rxvt_broken_ximcb+set}" = set; then |
16209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16210 | else |
11848 | else |
… | |
… | |
16259 | #define XIMCB_PROTO_BROKEN 1 |
11897 | #define XIMCB_PROTO_BROKEN 1 |
16260 | _ACEOF |
11898 | _ACEOF |
16261 | |
11899 | |
16262 | fi |
11900 | fi |
16263 | |
11901 | |
|
|
11902 | if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then |
16264 | echo "$as_me:$LINENO: checking for getpt" >&5 |
11903 | echo "$as_me:$LINENO: checking for openpty" >&5 |
16265 | echo $ECHO_N "checking for getpt... $ECHO_C" >&6 |
11904 | echo $ECHO_N "checking for openpty... $ECHO_C" >&6 |
16266 | if test "${rxvt_cv_func_getpt+set}" = set; then |
11905 | if test "${ac_cv_func_openpty+set}" = set; then |
16267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16268 | else |
11907 | else |
16269 | cat >conftest.$ac_ext <<_ACEOF |
11908 | cat >conftest.$ac_ext <<_ACEOF |
16270 | /* confdefs.h. */ |
11909 | /* confdefs.h. */ |
16271 | _ACEOF |
11910 | _ACEOF |
16272 | cat confdefs.h >>conftest.$ac_ext |
11911 | cat confdefs.h >>conftest.$ac_ext |
16273 | cat >>conftest.$ac_ext <<_ACEOF |
11912 | cat >>conftest.$ac_ext <<_ACEOF |
16274 | /* end confdefs.h. */ |
11913 | /* end confdefs.h. */ |
16275 | #define _GNU_SOURCE |
11914 | /* Define openpty to an innocuous variant, in case <limits.h> declares openpty. |
16276 | #ifdef HAVE_STDLIB_H |
11915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
16277 | # include <cstdlib> |
11916 | #define openpty innocuous_openpty |
|
|
11917 | |
|
|
11918 | /* System header to define __stub macros and hopefully few prototypes, |
|
|
11919 | which can conflict with char openpty (); below. |
|
|
11920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
11921 | <limits.h> exists even on freestanding compilers. */ |
|
|
11922 | |
|
|
11923 | #ifdef __STDC__ |
|
|
11924 | # include <limits.h> |
|
|
11925 | #else |
|
|
11926 | # include <assert.h> |
16278 | #endif |
11927 | #endif |
|
|
11928 | |
|
|
11929 | #undef openpty |
|
|
11930 | |
|
|
11931 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
11932 | #ifdef __cplusplus |
|
|
11933 | extern "C" |
|
|
11934 | { |
|
|
11935 | #endif |
|
|
11936 | /* We use char because int might match the return type of a gcc2 |
|
|
11937 | builtin and then its argument prototype would still apply. */ |
|
|
11938 | char openpty (); |
|
|
11939 | /* The GNU C library defines this for functions which it implements |
|
|
11940 | to always fail with ENOSYS. Some functions are actually named |
|
|
11941 | something starting with __ and the normal name is an alias. */ |
|
|
11942 | #if defined (__stub_openpty) || defined (__stub___openpty) |
|
|
11943 | choke me |
|
|
11944 | #else |
|
|
11945 | char (*f) () = openpty; |
|
|
11946 | #endif |
|
|
11947 | #ifdef __cplusplus |
|
|
11948 | } |
|
|
11949 | #endif |
|
|
11950 | |
16279 | int |
11951 | int |
16280 | main () |
11952 | main () |
16281 | { |
11953 | { |
16282 | (void)getpt(); |
11954 | return f != openpty; |
16283 | ; |
11955 | ; |
16284 | return 0; |
11956 | return 0; |
16285 | } |
11957 | } |
16286 | _ACEOF |
11958 | _ACEOF |
16287 | rm -f conftest.$ac_objext conftest$ac_exeext |
11959 | rm -f conftest.$ac_objext conftest$ac_exeext |
… | |
… | |
16303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16304 | (eval $ac_try) 2>&5 |
11976 | (eval $ac_try) 2>&5 |
16305 | ac_status=$? |
11977 | ac_status=$? |
16306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16307 | (exit $ac_status); }; }; then |
11979 | (exit $ac_status); }; }; then |
16308 | rxvt_cv_func_getpt=yes |
11980 | ac_cv_func_openpty=yes |
16309 | else |
11981 | else |
16310 | echo "$as_me: failed program was:" >&5 |
11982 | echo "$as_me: failed program was:" >&5 |
16311 | sed 's/^/| /' conftest.$ac_ext >&5 |
11983 | sed 's/^/| /' conftest.$ac_ext >&5 |
16312 | |
11984 | |
16313 | rxvt_cv_func_getpt=no |
11985 | ac_cv_func_openpty=no |
16314 | fi |
11986 | fi |
16315 | rm -f conftest.err conftest.$ac_objext \ |
11987 | rm -f conftest.err conftest.$ac_objext \ |
16316 | conftest$ac_exeext conftest.$ac_ext |
11988 | conftest$ac_exeext conftest.$ac_ext |
16317 | fi |
11989 | fi |
16318 | echo "$as_me:$LINENO: result: $rxvt_cv_func_getpt" >&5 |
11990 | echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 |
16319 | echo "${ECHO_T}$rxvt_cv_func_getpt" >&6 |
11991 | echo "${ECHO_T}$ac_cv_func_openpty" >&6 |
16320 | if test x$rxvt_cv_func_getpt = xyes; then |
11992 | if test $ac_cv_func_openpty = yes; then |
16321 | |
11993 | : |
|
|
11994 | else |
|
|
11995 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
|
|
11996 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
|
|
11997 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
|
|
11998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
11999 | else |
|
|
12000 | ac_check_lib_save_LIBS=$LIBS |
|
|
12001 | LIBS="-lutil $LIBS" |
|
|
12002 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12003 | /* confdefs.h. */ |
|
|
12004 | _ACEOF |
|
|
12005 | cat confdefs.h >>conftest.$ac_ext |
16322 | cat >>confdefs.h <<\_ACEOF |
12006 | cat >>conftest.$ac_ext <<_ACEOF |
16323 | #define HAVE_GETPT 1 |
12007 | /* end confdefs.h. */ |
|
|
12008 | |
|
|
12009 | /* Override any gcc2 internal prototype to avoid an error. */ |
|
|
12010 | #ifdef __cplusplus |
|
|
12011 | extern "C" |
|
|
12012 | #endif |
|
|
12013 | /* We use char because int might match the return type of a gcc2 |
|
|
12014 | builtin and then its argument prototype would still apply. */ |
|
|
12015 | char openpty (); |
|
|
12016 | int |
|
|
12017 | main () |
|
|
12018 | { |
|
|
12019 | openpty (); |
|
|
12020 | ; |
|
|
12021 | return 0; |
|
|
12022 | } |
16324 | _ACEOF |
12023 | _ACEOF |
|
|
12024 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12026 | (eval $ac_link) 2>conftest.er1 |
|
|
12027 | ac_status=$? |
|
|
12028 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12029 | rm -f conftest.er1 |
|
|
12030 | cat conftest.err >&5 |
|
|
12031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12032 | (exit $ac_status); } && |
|
|
12033 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12035 | (eval $ac_try) 2>&5 |
|
|
12036 | ac_status=$? |
|
|
12037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12038 | (exit $ac_status); }; } && |
|
|
12039 | { ac_try='test -s conftest$ac_exeext' |
|
|
12040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12041 | (eval $ac_try) 2>&5 |
|
|
12042 | ac_status=$? |
|
|
12043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12044 | (exit $ac_status); }; }; then |
|
|
12045 | ac_cv_lib_util_openpty=yes |
|
|
12046 | else |
|
|
12047 | echo "$as_me: failed program was:" >&5 |
|
|
12048 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12049 | |
|
|
12050 | ac_cv_lib_util_openpty=no |
|
|
12051 | fi |
|
|
12052 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12053 | conftest$ac_exeext conftest.$ac_ext |
|
|
12054 | LIBS=$ac_check_lib_save_LIBS |
|
|
12055 | fi |
|
|
12056 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
|
|
12057 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
|
|
12058 | if test $ac_cv_lib_util_openpty = yes; then |
|
|
12059 | LIBS="$LIBS -lutil" |
|
|
12060 | fi |
|
|
12061 | |
|
|
12062 | fi |
16325 | |
12063 | |
16326 | fi |
12064 | fi |
16327 | |
12065 | |
16328 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
12066 | echo "$as_me:$LINENO: checking for pty/tty type" >&5 |
16329 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
12067 | echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 |
16330 | if test "${rxvt_cv_ptys+set}" = set; then |
12068 | if test "${rxvt_cv_ptys+set}" = set; then |
16331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16332 | else |
12070 | else |
16333 | if test x$ac_cv_func_openpty = xyes; then |
12071 | if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then |
16334 | rxvt_cv_ptys=OPENPTY |
12072 | rxvt_cv_ptys=OPENPTY |
|
|
12073 | else if test x$ac_cv_func_getpt = xyes; then |
|
|
12074 | rxvt_cv_ptys=GLIBC |
|
|
12075 | else if test x$ac_cv_func_posix_openpt = xyes; then |
|
|
12076 | rxvt_cv_ptys=POSIX |
16335 | else if test x$ac_cv_func__getpty = xyes; then |
12077 | else if test x$ac_cv_func__getpty = xyes; then |
16336 | rxvt_cv_ptys=SGI4 |
12078 | rxvt_cv_ptys=SGI4 |
16337 | else if test -c /dev/ttyp20; then |
12079 | else if test -c /dev/ttyp20; then |
16338 | rxvt_cv_ptys=SCO |
12080 | rxvt_cv_ptys=SCO |
16339 | else if test -c /dev/ptym/clone; then |
12081 | else if test -c /dev/ptym/clone; then |
16340 | rxvt_cv_ptys=HPUX |
12082 | rxvt_cv_ptys=HPUX |
16341 | else if test x$rxvt_cv_func_getpt = xyes; then |
|
|
16342 | rxvt_cv_ptys=GLIBC |
|
|
16343 | else if test -c /dev/ptc -a -c /dev/pts; then |
12083 | else if test -c /dev/ptc -a -c /dev/pts; then |
16344 | rxvt_cv_ptys=PTC |
12084 | rxvt_cv_ptys=PTC |
16345 | else if test -c /dev/ptc -a -d /dev/pts; then |
12085 | else if test -c /dev/ptc -a -d /dev/pts; then |
16346 | rxvt_cv_ptys=PTC |
12086 | rxvt_cv_ptys=PTC |
16347 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
12087 | else if test -c /dev/ptmx -a -c /dev/pts/0; then |
… | |
… | |
16357 | fi |
12097 | fi |
16358 | fi |
12098 | fi |
16359 | fi |
12099 | fi |
16360 | fi |
12100 | fi |
16361 | fi |
12101 | fi |
|
|
12102 | fi |
16362 | |
12103 | |
16363 | fi |
12104 | fi |
16364 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
12105 | echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5 |
16365 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
12106 | echo "${ECHO_T}$rxvt_cv_ptys" >&6 |
16366 | |
12107 | |
|
|
12108 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
12109 | |
|
|
12110 | cat >>confdefs.h <<\_ACEOF |
|
|
12111 | #define PTYS_ARE_GETPT 1 |
|
|
12112 | _ACEOF |
|
|
12113 | |
|
|
12114 | fi |
|
|
12115 | if test x$rxvt_cv_ptys = xPOSIX; then |
|
|
12116 | |
|
|
12117 | cat >>confdefs.h <<\_ACEOF |
|
|
12118 | #define PTYS_ARE_POSIX 1 |
|
|
12119 | _ACEOF |
|
|
12120 | |
|
|
12121 | fi |
16367 | if test x$rxvt_cv_ptys = xOPENPTY; then |
12122 | if test x$rxvt_cv_ptys = xOPENPTY; then |
16368 | |
12123 | |
16369 | cat >>confdefs.h <<\_ACEOF |
12124 | cat >>confdefs.h <<\_ACEOF |
16370 | #define PTYS_ARE_OPENPTY 1 |
12125 | #define PTYS_ARE_OPENPTY 1 |
16371 | _ACEOF |
12126 | _ACEOF |
… | |
… | |
16397 | cat >>confdefs.h <<\_ACEOF |
12152 | cat >>confdefs.h <<\_ACEOF |
16398 | #define PTYS_ARE__GETPTY 1 |
12153 | #define PTYS_ARE__GETPTY 1 |
16399 | _ACEOF |
12154 | _ACEOF |
16400 | |
12155 | |
16401 | fi |
12156 | fi |
16402 | if test x$rxvt_cv_ptys = xCONVEX; then |
|
|
16403 | |
|
|
16404 | cat >>confdefs.h <<\_ACEOF |
|
|
16405 | #define PTYS_ARE_GETPTY 1 |
|
|
16406 | _ACEOF |
|
|
16407 | |
|
|
16408 | fi |
|
|
16409 | if test x$rxvt_cv_ptys = xGLIBC; then |
|
|
16410 | |
|
|
16411 | cat >>confdefs.h <<\_ACEOF |
|
|
16412 | #define PTYS_ARE_GETPT 1 |
|
|
16413 | _ACEOF |
|
|
16414 | |
|
|
16415 | fi |
|
|
16416 | if test x$rxvt_cv_ptys = xHPUX; then |
12157 | if test x$rxvt_cv_ptys = xHPUX; then |
16417 | |
12158 | |
16418 | cat >>confdefs.h <<\_ACEOF |
12159 | cat >>confdefs.h <<\_ACEOF |
16419 | #define PTYS_ARE_CLONE 1 |
12160 | #define PTYS_ARE_CLONE 1 |
16420 | _ACEOF |
12161 | _ACEOF |
16421 | |
12162 | |
16422 | fi |
12163 | fi |
16423 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xGLIBC; then |
12164 | if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then |
16424 | |
12165 | |
16425 | cat >>confdefs.h <<\_ACEOF |
12166 | cat >>confdefs.h <<\_ACEOF |
16426 | #define PTYS_ARE_SEARCHED 1 |
12167 | #define PTYS_ARE_SEARCHED 1 |
16427 | _ACEOF |
12168 | _ACEOF |
16428 | |
12169 | |
… | |
… | |
16447 | #define PTYCHAR2 "$pch2" |
12188 | #define PTYCHAR2 "$pch2" |
16448 | _ACEOF |
12189 | _ACEOF |
16449 | |
12190 | |
16450 | fi |
12191 | fi |
16451 | |
12192 | |
16452 | if test x$support_8bitctrls = xyes; then |
|
|
16453 | |
|
|
16454 | cat >>confdefs.h <<\_ACEOF |
|
|
16455 | #define EIGHT_BIT_CONTROLS 1 |
|
|
16456 | _ACEOF |
|
|
16457 | |
|
|
16458 | fi |
|
|
16459 | if test x$support_fading = xyes; then |
|
|
16460 | |
|
|
16461 | cat >>confdefs.h <<\_ACEOF |
|
|
16462 | #define OFF_FOCUS_FADING 1 |
|
|
16463 | _ACEOF |
|
|
16464 | |
|
|
16465 | fi |
|
|
16466 | if test x$support_tinting = xyes; then |
|
|
16467 | |
|
|
16468 | cat >>confdefs.h <<\_ACEOF |
|
|
16469 | #define TINTING 1 |
|
|
16470 | _ACEOF |
|
|
16471 | |
|
|
16472 | fi |
|
|
16473 | if test x$support_inheritpixmap = xyes; then |
|
|
16474 | |
|
|
16475 | cat >>confdefs.h <<\_ACEOF |
|
|
16476 | #define TRANSPARENT 1 |
|
|
16477 | _ACEOF |
|
|
16478 | |
|
|
16479 | fi |
|
|
16480 | if test x$support_keepscrolling = xno; then |
|
|
16481 | |
|
|
16482 | cat >>confdefs.h <<\_ACEOF |
|
|
16483 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
|
|
16484 | _ACEOF |
|
|
16485 | |
|
|
16486 | fi |
|
|
16487 | if test x$support_selectionscrolling = xyes; then |
|
|
16488 | |
|
|
16489 | cat >>confdefs.h <<\_ACEOF |
|
|
16490 | #define SELECTION_SCROLLING 1 |
|
|
16491 | _ACEOF |
|
|
16492 | |
|
|
16493 | fi |
|
|
16494 | if test x$support_menubar = xyes; then |
|
|
16495 | |
|
|
16496 | cat >>confdefs.h <<\_ACEOF |
|
|
16497 | #define MENUBAR 1 |
|
|
16498 | _ACEOF |
|
|
16499 | |
|
|
16500 | fi |
|
|
16501 | if test x$support_frills = xno; then |
|
|
16502 | |
|
|
16503 | cat >>confdefs.h <<\_ACEOF |
|
|
16504 | #define NO_FRILLS 1 |
|
|
16505 | _ACEOF |
|
|
16506 | |
|
|
16507 | fi |
|
|
16508 | if test x$support_linespace = xno; then |
|
|
16509 | |
|
|
16510 | cat >>confdefs.h <<\_ACEOF |
|
|
16511 | #define NO_LINESPACE 1 |
|
|
16512 | _ACEOF |
|
|
16513 | |
|
|
16514 | fi |
|
|
16515 | if test x$support_24bit = xyes; then |
|
|
16516 | |
|
|
16517 | cat >>confdefs.h <<\_ACEOF |
|
|
16518 | #define PREFER_24BIT 1 |
|
|
16519 | _ACEOF |
|
|
16520 | |
|
|
16521 | fi |
|
|
16522 | if test x$support_mousewheel = xyes; then |
|
|
16523 | |
|
|
16524 | cat >>confdefs.h <<\_ACEOF |
|
|
16525 | #define MOUSE_WHEEL 1 |
|
|
16526 | _ACEOF |
|
|
16527 | |
|
|
16528 | fi |
|
|
16529 | if test x$support_mouseslipwheel = xyes; then |
|
|
16530 | |
|
|
16531 | cat >>confdefs.h <<\_ACEOF |
|
|
16532 | #define MOUSE_SLIP_WHEELING 1 |
|
|
16533 | _ACEOF |
|
|
16534 | |
|
|
16535 | fi |
|
|
16536 | if test x$support_utmp = xyes; then |
|
|
16537 | |
|
|
16538 | cat >>confdefs.h <<\_ACEOF |
|
|
16539 | #define UTMP_SUPPORT 1 |
|
|
16540 | _ACEOF |
|
|
16541 | |
|
|
16542 | fi |
|
|
16543 | if test x$support_wtmp = xyes; then |
|
|
16544 | |
|
|
16545 | cat >>confdefs.h <<\_ACEOF |
|
|
16546 | #define WTMP_SUPPORT 1 |
|
|
16547 | _ACEOF |
|
|
16548 | |
|
|
16549 | fi |
|
|
16550 | if test x$support_lastlog = xyes; then |
|
|
16551 | |
|
|
16552 | cat >>confdefs.h <<\_ACEOF |
|
|
16553 | #define LASTLOG_SUPPORT 1 |
|
|
16554 | _ACEOF |
|
|
16555 | |
|
|
16556 | fi |
|
|
16557 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
16558 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
16559 | |
|
|
16560 | cat >>confdefs.h <<\_ACEOF |
|
|
16561 | #define USE_XIM 1 |
|
|
16562 | _ACEOF |
|
|
16563 | |
|
|
16564 | fi |
|
|
16565 | fi |
|
|
16566 | if test x$support_xpm = xyes; then |
|
|
16567 | |
|
|
16568 | cat >>confdefs.h <<\_ACEOF |
|
|
16569 | #define XPM_BACKGROUND 1 |
|
|
16570 | _ACEOF |
|
|
16571 | |
|
|
16572 | fi |
|
|
16573 | if test x$support_scroll_rxvt = xyes; then |
|
|
16574 | |
|
|
16575 | cat >>confdefs.h <<\_ACEOF |
|
|
16576 | #define RXVT_SCROLLBAR 1 |
|
|
16577 | _ACEOF |
|
|
16578 | |
|
|
16579 | scrolltypes="rxvt" |
|
|
16580 | fi |
|
|
16581 | if test x$support_scroll_next = xyes; then |
|
|
16582 | |
|
|
16583 | cat >>confdefs.h <<\_ACEOF |
|
|
16584 | #define NEXT_SCROLLBAR 1 |
|
|
16585 | _ACEOF |
|
|
16586 | |
|
|
16587 | scrolltypes="$scrolltypes next" |
|
|
16588 | fi |
|
|
16589 | if test x$support_scroll_xterm = xyes; then |
|
|
16590 | |
|
|
16591 | cat >>confdefs.h <<\_ACEOF |
|
|
16592 | #define XTERM_SCROLLBAR 1 |
|
|
16593 | _ACEOF |
|
|
16594 | |
|
|
16595 | scrolltypes="$scrolltypes xterm" |
|
|
16596 | fi |
|
|
16597 | if test x$support_scroll_plain = xyes; then |
|
|
16598 | |
|
|
16599 | cat >>confdefs.h <<\_ACEOF |
|
|
16600 | #define PLAIN_SCROLLBAR 1 |
|
|
16601 | _ACEOF |
|
|
16602 | |
|
|
16603 | scrolltypes="$scrolltypes plain" |
|
|
16604 | fi |
|
|
16605 | if test x$support_pointer_blank = xyes; then |
|
|
16606 | |
|
|
16607 | cat >>confdefs.h <<\_ACEOF |
|
|
16608 | #define POINTER_BLANK 1 |
|
|
16609 | _ACEOF |
|
|
16610 | |
|
|
16611 | fi |
|
|
16612 | if test x$support_cursor_blink = xyes; then |
|
|
16613 | |
|
|
16614 | cat >>confdefs.h <<\_ACEOF |
|
|
16615 | #define CURSOR_BLINK 1 |
|
|
16616 | _ACEOF |
|
|
16617 | |
|
|
16618 | fi |
|
|
16619 | if test x$support_text_blink = xyes; then |
|
|
16620 | |
|
|
16621 | cat >>confdefs.h <<\_ACEOF |
|
|
16622 | #define TEXT_BLINK 1 |
|
|
16623 | _ACEOF |
|
|
16624 | |
|
|
16625 | fi |
|
|
16626 | if test x$support_unicode3 = xyes; then |
|
|
16627 | |
|
|
16628 | cat >>confdefs.h <<\_ACEOF |
|
|
16629 | #define UNICODE_3 1 |
|
|
16630 | _ACEOF |
|
|
16631 | |
|
|
16632 | fi |
|
|
16633 | if test x$support_combining = xyes; then |
|
|
16634 | |
|
|
16635 | cat >>confdefs.h <<\_ACEOF |
|
|
16636 | #define ENABLE_COMBINING 1 |
|
|
16637 | _ACEOF |
|
|
16638 | |
|
|
16639 | fi |
|
|
16640 | if test x$codesets = xall; then |
|
|
16641 | codesets=jp,jp-ext,kr,cn,cn-ext |
|
|
16642 | fi |
|
|
16643 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
|
|
16644 | |
|
|
16645 | cat >>confdefs.h <<\_ACEOF |
|
|
16646 | #define ENCODING_EU 1 |
|
|
16647 | _ACEOF |
|
|
16648 | |
|
|
16649 | |
|
|
16650 | cat >>confdefs.h <<\_ACEOF |
|
|
16651 | #define ENCODING_VN 1 |
|
|
16652 | _ACEOF |
|
|
16653 | |
|
|
16654 | case "$codeset" in |
|
|
16655 | JP ) |
|
|
16656 | cat >>confdefs.h <<\_ACEOF |
|
|
16657 | #define ENCODING_JP 1 |
|
|
16658 | _ACEOF |
|
|
16659 | ;; |
|
|
16660 | JP_EXT ) |
|
|
16661 | cat >>confdefs.h <<\_ACEOF |
|
|
16662 | #define ENCODING_JP_EXT 1 |
|
|
16663 | _ACEOF |
|
|
16664 | ;; |
|
|
16665 | KR ) |
|
|
16666 | cat >>confdefs.h <<\_ACEOF |
|
|
16667 | #define ENCODING_KR 1 |
|
|
16668 | _ACEOF |
|
|
16669 | ;; |
|
|
16670 | CN ) |
|
|
16671 | cat >>confdefs.h <<\_ACEOF |
|
|
16672 | #define ENCODING_CN 1 |
|
|
16673 | _ACEOF |
|
|
16674 | ;; |
|
|
16675 | CN_EXT ) |
|
|
16676 | cat >>confdefs.h <<\_ACEOF |
|
|
16677 | #define ENCODING_CN_EXT 1 |
|
|
16678 | _ACEOF |
|
|
16679 | ;; |
|
|
16680 | esac |
|
|
16681 | done |
|
|
16682 | |
|
|
16683 | |
|
|
16684 | CFLAGS=${CFLAGS--O} |
|
|
16685 | LDFLAGS=${LDFLAGS--O} |
|
|
16686 | |
|
|
16687 | CPPFLAGS="$CPPFLAGS" |
|
|
16688 | |
|
|
16689 | |
|
|
16690 | |
|
|
16691 | |
|
|
16692 | |
|
|
16693 | |
|
|
16694 | |
|
|
16695 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
16696 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
16697 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
16698 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
16699 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
16700 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
16701 | fi |
|
|
16702 | |
|
|
16703 | |
|
|
16704 | |
|
|
16705 | |
|
|
16706 | |
|
|
16707 | if test x$support_addstrings = xno; then |
|
|
16708 | |
|
|
16709 | cat >>confdefs.h <<\_ACEOF |
|
|
16710 | #define NO_STRINGS 1 |
|
|
16711 | _ACEOF |
|
|
16712 | |
|
|
16713 | fi |
|
|
16714 | |
|
|
16715 | MCOMMON=./autoconf/Make.common |
|
|
16716 | |
|
|
16717 | |
|
|
16718 | test "$program_prefix" != NONE && |
|
|
16719 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
|
16720 | # Use a double $ so make ignores it. |
|
|
16721 | test "$program_suffix" != NONE && |
|
|
16722 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
|
16723 | # Double any \ or $. echo might interpret backslashes. |
|
|
16724 | # By default was `s,x,x', remove it if useless. |
|
|
16725 | cat <<\_ACEOF >conftest.sed |
|
|
16726 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
16727 | _ACEOF |
|
|
16728 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
16729 | rm conftest.sed |
|
|
16730 | |
|
|
16731 | |
|
|
16732 | |
|
|
16733 | |
|
|
16734 | |
|
|
16735 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16736 | include_stdint_h="#include <stdint.h>" |
|
|
16737 | else |
|
|
16738 | include_stdint_h="/* #include <stdint.h> */" |
|
|
16739 | fi |
|
|
16740 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16741 | include_stdarg_h="#include <cstdarg>" |
|
|
16742 | else |
|
|
16743 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
16744 | fi |
|
|
16745 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16746 | include_stdlib_h="#include <cstdlib>" |
|
|
16747 | else |
|
|
16748 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
16749 | fi |
|
|
16750 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16751 | include_unistd_h="#include <unistd.h>" |
|
|
16752 | else |
|
|
16753 | include_unistd_h="/* #include <unistd.h> */" |
|
|
16754 | fi |
|
|
16755 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16756 | include_string_h="#include <cstring>" |
|
|
16757 | else |
|
|
16758 | include_string_h="/* #include <cstring> */" |
|
|
16759 | fi |
|
|
16760 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16761 | include_fcntl_h="#include <fcntl.h>" |
|
|
16762 | else |
|
|
16763 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
16764 | fi |
|
|
16765 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16766 | include_util_h="#include <util.h>" |
|
|
16767 | else |
|
|
16768 | include_util_h="/* #include <util.h> */" |
|
|
16769 | fi |
|
|
16770 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16771 | include_assert_h="#include <assert.h>" |
|
|
16772 | else |
|
|
16773 | include_assert_h="/* #include <assert.h> */" |
|
|
16774 | fi |
|
|
16775 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16776 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
16777 | else |
|
|
16778 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
16779 | fi |
|
|
16780 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16781 | include_sys_select_h="#include <sys/select.h>" |
|
|
16782 | else |
|
|
16783 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
16784 | fi |
|
|
16785 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16786 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
16787 | else |
|
|
16788 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
16789 | fi |
|
|
16790 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
16791 | include_sys_time_h="#include <sys/time.h>" |
|
|
16792 | else |
|
|
16793 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
16794 | fi |
|
|
16795 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
16796 | include_time_h="#include <time.h>" |
|
|
16797 | else |
|
|
16798 | include_time_h="/* #include <time.h> */" |
|
|
16799 | fi |
|
|
16800 | |
|
|
16801 | if test x$support_xft = xyes; then |
12193 | if test x$support_xft = xyes; then |
16802 | LIBS="$LIBS `pkg-config xft --libs`" |
12194 | LIBS="$LIBS `pkg-config xft --libs`" |
16803 | CFLAGS="$CFLAGS `pkg-config xft --cflags`" |
|
|
16804 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
12195 | CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`" |
16805 | |
12196 | |
16806 | |
12197 | |
16807 | for ac_header in X11/Xft/Xft.h |
12198 | for ac_header in X11/Xft/Xft.h |
16808 | do |
12199 | do |
… | |
… | |
17036 | #define XFT 1 |
12427 | #define XFT 1 |
17037 | _ACEOF |
12428 | _ACEOF |
17038 | |
12429 | |
17039 | fi |
12430 | fi |
17040 | fi |
12431 | fi |
|
|
12432 | if test x$support_styles = xyes; then |
17041 | |
12433 | |
|
|
12434 | cat >>confdefs.h <<\_ACEOF |
|
|
12435 | #define ENABLE_STYLES 1 |
|
|
12436 | _ACEOF |
|
|
12437 | |
|
|
12438 | fi |
|
|
12439 | if test x$support_iso14755 = xyes; then |
|
|
12440 | |
|
|
12441 | cat >>confdefs.h <<\_ACEOF |
|
|
12442 | #define ISO_14755 1 |
|
|
12443 | _ACEOF |
|
|
12444 | |
|
|
12445 | fi |
|
|
12446 | if test x$support_8bitctrls = xyes; then |
|
|
12447 | |
|
|
12448 | cat >>confdefs.h <<\_ACEOF |
|
|
12449 | #define EIGHT_BIT_CONTROLS 1 |
|
|
12450 | _ACEOF |
|
|
12451 | |
|
|
12452 | fi |
|
|
12453 | if test x$support_fading = xyes; then |
|
|
12454 | |
|
|
12455 | cat >>confdefs.h <<\_ACEOF |
|
|
12456 | #define OFF_FOCUS_FADING 1 |
|
|
12457 | _ACEOF |
|
|
12458 | |
|
|
12459 | fi |
|
|
12460 | if test x$support_tinting = xyes; then |
|
|
12461 | |
|
|
12462 | cat >>confdefs.h <<\_ACEOF |
|
|
12463 | #define TINTING 1 |
|
|
12464 | _ACEOF |
|
|
12465 | |
|
|
12466 | fi |
|
|
12467 | if test x$support_inheritpixmap = xyes; then |
|
|
12468 | |
|
|
12469 | cat >>confdefs.h <<\_ACEOF |
|
|
12470 | #define TRANSPARENT 1 |
|
|
12471 | _ACEOF |
|
|
12472 | |
|
|
12473 | fi |
|
|
12474 | if test x$support_keepscrolling = xno; then |
|
|
12475 | |
|
|
12476 | cat >>confdefs.h <<\_ACEOF |
|
|
12477 | #define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 |
|
|
12478 | _ACEOF |
|
|
12479 | |
|
|
12480 | fi |
|
|
12481 | if test x$support_selectionscrolling = xyes; then |
|
|
12482 | |
|
|
12483 | cat >>confdefs.h <<\_ACEOF |
|
|
12484 | #define SELECTION_SCROLLING 1 |
|
|
12485 | _ACEOF |
|
|
12486 | |
|
|
12487 | fi |
|
|
12488 | if test x$support_frills = xyes; then |
|
|
12489 | |
|
|
12490 | cat >>confdefs.h <<\_ACEOF |
|
|
12491 | #define ENABLE_FRILLS 1 |
|
|
12492 | _ACEOF |
|
|
12493 | |
|
|
12494 | fi |
|
|
12495 | if test x$support_24bit = xyes; then |
|
|
12496 | |
|
|
12497 | cat >>confdefs.h <<\_ACEOF |
|
|
12498 | #define PREFER_24BIT 1 |
|
|
12499 | _ACEOF |
|
|
12500 | |
|
|
12501 | fi |
|
|
12502 | if test x$support_mousewheel = xyes; then |
|
|
12503 | |
|
|
12504 | cat >>confdefs.h <<\_ACEOF |
|
|
12505 | #define MOUSE_WHEEL 1 |
|
|
12506 | _ACEOF |
|
|
12507 | |
|
|
12508 | fi |
|
|
12509 | if test x$support_mouseslipwheel = xyes; then |
|
|
12510 | |
|
|
12511 | cat >>confdefs.h <<\_ACEOF |
|
|
12512 | #define MOUSE_SLIP_WHEELING 1 |
|
|
12513 | _ACEOF |
|
|
12514 | |
|
|
12515 | fi |
|
|
12516 | if test x$support_utmp = xyes; then |
|
|
12517 | |
|
|
12518 | cat >>confdefs.h <<\_ACEOF |
|
|
12519 | #define UTMP_SUPPORT 1 |
|
|
12520 | _ACEOF |
|
|
12521 | |
|
|
12522 | fi |
|
|
12523 | if test x$support_wtmp = xyes; then |
|
|
12524 | |
|
|
12525 | cat >>confdefs.h <<\_ACEOF |
|
|
12526 | #define WTMP_SUPPORT 1 |
|
|
12527 | _ACEOF |
|
|
12528 | |
|
|
12529 | fi |
|
|
12530 | if test x$support_lastlog = xyes; then |
|
|
12531 | |
|
|
12532 | cat >>confdefs.h <<\_ACEOF |
|
|
12533 | #define LASTLOG_SUPPORT 1 |
|
|
12534 | _ACEOF |
|
|
12535 | |
|
|
12536 | fi |
|
|
12537 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
12538 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
12539 | |
|
|
12540 | cat >>confdefs.h <<\_ACEOF |
|
|
12541 | #define USE_XIM 1 |
|
|
12542 | _ACEOF |
|
|
12543 | |
|
|
12544 | fi |
|
|
12545 | fi |
|
|
12546 | if test x$support_xpm = xyes; then |
|
|
12547 | |
|
|
12548 | cat >>confdefs.h <<\_ACEOF |
|
|
12549 | #define XPM_BACKGROUND 1 |
|
|
12550 | _ACEOF |
|
|
12551 | |
|
|
12552 | fi |
|
|
12553 | if test x$support_scroll_rxvt = xyes; then |
|
|
12554 | |
|
|
12555 | cat >>confdefs.h <<\_ACEOF |
|
|
12556 | #define RXVT_SCROLLBAR 1 |
|
|
12557 | _ACEOF |
|
|
12558 | |
|
|
12559 | scrolltypes="rxvt" |
|
|
12560 | fi |
|
|
12561 | if test x$support_scroll_next = xyes; then |
|
|
12562 | |
|
|
12563 | cat >>confdefs.h <<\_ACEOF |
|
|
12564 | #define NEXT_SCROLLBAR 1 |
|
|
12565 | _ACEOF |
|
|
12566 | |
|
|
12567 | scrolltypes="$scrolltypes next" |
|
|
12568 | fi |
|
|
12569 | if test x$support_scroll_xterm = xyes; then |
|
|
12570 | |
|
|
12571 | cat >>confdefs.h <<\_ACEOF |
|
|
12572 | #define XTERM_SCROLLBAR 1 |
|
|
12573 | _ACEOF |
|
|
12574 | |
|
|
12575 | scrolltypes="$scrolltypes xterm" |
|
|
12576 | fi |
|
|
12577 | if test x$support_scroll_plain = xyes; then |
|
|
12578 | |
|
|
12579 | cat >>confdefs.h <<\_ACEOF |
|
|
12580 | #define PLAIN_SCROLLBAR 1 |
|
|
12581 | _ACEOF |
|
|
12582 | |
|
|
12583 | scrolltypes="$scrolltypes plain" |
|
|
12584 | fi |
|
|
12585 | if test x$support_pointer_blank = xyes; then |
|
|
12586 | |
|
|
12587 | cat >>confdefs.h <<\_ACEOF |
|
|
12588 | #define POINTER_BLANK 1 |
|
|
12589 | _ACEOF |
|
|
12590 | |
|
|
12591 | fi |
|
|
12592 | if test x$support_text_blink = xyes; then |
|
|
12593 | |
|
|
12594 | cat >>confdefs.h <<\_ACEOF |
|
|
12595 | #define TEXT_BLINK 1 |
|
|
12596 | _ACEOF |
|
|
12597 | |
|
|
12598 | fi |
|
|
12599 | if test x$support_unicode3 = xyes; then |
|
|
12600 | |
|
|
12601 | cat >>confdefs.h <<\_ACEOF |
|
|
12602 | #define UNICODE_3 1 |
|
|
12603 | _ACEOF |
|
|
12604 | |
|
|
12605 | fi |
|
|
12606 | if test x$support_combining = xyes; then |
|
|
12607 | |
|
|
12608 | cat >>confdefs.h <<\_ACEOF |
|
|
12609 | #define ENABLE_COMBINING 1 |
|
|
12610 | _ACEOF |
|
|
12611 | |
|
|
12612 | fi |
|
|
12613 | if test x$codesets = xall; then |
|
|
12614 | codesets=jp,jp-ext,kr,zh,zh-ext |
|
|
12615 | fi |
|
|
12616 | |
|
|
12617 | cat >>confdefs.h <<\_ACEOF |
|
|
12618 | #define ENCODING_EU 1 |
|
|
12619 | _ACEOF |
|
|
12620 | |
|
|
12621 | |
|
|
12622 | cat >>confdefs.h <<\_ACEOF |
|
|
12623 | #define ENCODING_VN 1 |
|
|
12624 | _ACEOF |
|
|
12625 | |
|
|
12626 | for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do |
|
|
12627 | case "$codeset" in |
|
|
12628 | JP ) |
|
|
12629 | cat >>confdefs.h <<\_ACEOF |
|
|
12630 | #define ENCODING_JP 1 |
|
|
12631 | _ACEOF |
|
|
12632 | ;; |
|
|
12633 | JP_EXT ) |
|
|
12634 | cat >>confdefs.h <<\_ACEOF |
|
|
12635 | #define ENCODING_JP_EXT 1 |
|
|
12636 | _ACEOF |
|
|
12637 | ;; |
|
|
12638 | KR ) |
|
|
12639 | cat >>confdefs.h <<\_ACEOF |
|
|
12640 | #define ENCODING_KR 1 |
|
|
12641 | _ACEOF |
|
|
12642 | ;; |
|
|
12643 | ZH ) |
|
|
12644 | cat >>confdefs.h <<\_ACEOF |
|
|
12645 | #define ENCODING_ZH 1 |
|
|
12646 | _ACEOF |
|
|
12647 | ;; |
|
|
12648 | ZH_EXT ) |
|
|
12649 | cat >>confdefs.h <<\_ACEOF |
|
|
12650 | #define ENCODING_ZH_EXT 1 |
|
|
12651 | _ACEOF |
|
|
12652 | ;; |
|
|
12653 | esac |
|
|
12654 | done |
|
|
12655 | |
|
|
12656 | IF_PERL=\# |
|
|
12657 | if test x$support_perl = xyes; then |
|
|
12658 | # Extract the first word of "perl5", so it can be a program name with args. |
|
|
12659 | set dummy perl5; ac_word=$2 |
|
|
12660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12662 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
12663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12664 | else |
|
|
12665 | case $PERL in |
|
|
12666 | [\\/]* | ?:[\\/]*) |
|
|
12667 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
12668 | ;; |
|
|
12669 | *) |
|
|
12670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12671 | for as_dir in $PATH |
|
|
12672 | do |
|
|
12673 | IFS=$as_save_IFS |
|
|
12674 | test -z "$as_dir" && as_dir=. |
|
|
12675 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12676 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12677 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
12678 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12679 | break 2 |
|
|
12680 | fi |
|
|
12681 | done |
|
|
12682 | done |
|
|
12683 | |
|
|
12684 | ;; |
|
|
12685 | esac |
|
|
12686 | fi |
|
|
12687 | PERL=$ac_cv_path_PERL |
|
|
12688 | |
|
|
12689 | if test -n "$PERL"; then |
|
|
12690 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
12691 | echo "${ECHO_T}$PERL" >&6 |
|
|
12692 | else |
|
|
12693 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12694 | echo "${ECHO_T}no" >&6 |
|
|
12695 | fi |
|
|
12696 | |
|
|
12697 | # Extract the first word of "perl", so it can be a program name with args. |
|
|
12698 | set dummy perl; ac_word=$2 |
|
|
12699 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
|
|
12700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
|
|
12701 | if test "${ac_cv_path_PERL+set}" = set; then |
|
|
12702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
12703 | else |
|
|
12704 | case $PERL in |
|
|
12705 | [\\/]* | ?:[\\/]*) |
|
|
12706 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
|
|
12707 | ;; |
|
|
12708 | *) |
|
|
12709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
12710 | for as_dir in $PATH |
|
|
12711 | do |
|
|
12712 | IFS=$as_save_IFS |
|
|
12713 | test -z "$as_dir" && as_dir=. |
|
|
12714 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
12715 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
|
12716 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
|
|
12717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
|
12718 | break 2 |
|
|
12719 | fi |
|
|
12720 | done |
|
|
12721 | done |
|
|
12722 | |
|
|
12723 | ;; |
|
|
12724 | esac |
|
|
12725 | fi |
|
|
12726 | PERL=$ac_cv_path_PERL |
|
|
12727 | |
|
|
12728 | if test -n "$PERL"; then |
|
|
12729 | echo "$as_me:$LINENO: result: $PERL" >&5 |
|
|
12730 | echo "${ECHO_T}$PERL" >&6 |
|
|
12731 | else |
|
|
12732 | echo "$as_me:$LINENO: result: no" >&5 |
|
|
12733 | echo "${ECHO_T}no" >&6 |
|
|
12734 | fi |
|
|
12735 | |
|
|
12736 | |
|
|
12737 | echo "$as_me:$LINENO: checking for $PERL suitability" >&5 |
|
|
12738 | echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 |
|
|
12739 | if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then |
|
|
12740 | |
|
|
12741 | save_CXXFLAGS="$CXXFLAGS" |
|
|
12742 | save_LIBS="$LIBS" |
|
|
12743 | CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" |
|
|
12744 | LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" |
|
|
12745 | cat >conftest.$ac_ext <<_ACEOF |
|
|
12746 | /* confdefs.h. */ |
|
|
12747 | _ACEOF |
|
|
12748 | cat confdefs.h >>conftest.$ac_ext |
|
|
12749 | cat >>conftest.$ac_ext <<_ACEOF |
|
|
12750 | /* end confdefs.h. */ |
|
|
12751 | |
|
|
12752 | #include <EXTERN.h> |
|
|
12753 | #include <perl.h> |
|
|
12754 | #include <XSUB.h> |
|
|
12755 | |
|
|
12756 | int |
|
|
12757 | main () |
|
|
12758 | { |
|
|
12759 | |
|
|
12760 | PerlInterpreter *perl = perl_alloc (); |
|
|
12761 | |
|
|
12762 | ; |
|
|
12763 | return 0; |
|
|
12764 | } |
|
|
12765 | _ACEOF |
|
|
12766 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
12767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
|
|
12768 | (eval $ac_link) 2>conftest.er1 |
|
|
12769 | ac_status=$? |
|
|
12770 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
12771 | rm -f conftest.er1 |
|
|
12772 | cat conftest.err >&5 |
|
|
12773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12774 | (exit $ac_status); } && |
|
|
12775 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
|
|
12776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12777 | (eval $ac_try) 2>&5 |
|
|
12778 | ac_status=$? |
|
|
12779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12780 | (exit $ac_status); }; } && |
|
|
12781 | { ac_try='test -s conftest$ac_exeext' |
|
|
12782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
|
|
12783 | (eval $ac_try) 2>&5 |
|
|
12784 | ac_status=$? |
|
|
12785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
12786 | (exit $ac_status); }; }; then |
|
|
12787 | rxvt_perl_link=yes |
|
|
12788 | else |
|
|
12789 | echo "$as_me: failed program was:" >&5 |
|
|
12790 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
12791 | |
|
|
12792 | rxvt_perl_link=no |
|
|
12793 | fi |
|
|
12794 | rm -f conftest.err conftest.$ac_objext \ |
|
|
12795 | conftest$ac_exeext conftest.$ac_ext |
|
|
12796 | CXXFLAGS="$save_CXXFLAGS" |
|
|
12797 | LIBS="$save_LIBS" |
|
|
12798 | |
|
|
12799 | if test x$rxvt_perl_link = xyes; then |
|
|
12800 | echo "$as_me:$LINENO: result: ok" >&5 |
|
|
12801 | echo "${ECHO_T}ok" >&6 |
|
|
12802 | |
|
|
12803 | cat >>confdefs.h <<\_ACEOF |
|
|
12804 | #define ENABLE_PERL 1 |
|
|
12805 | _ACEOF |
|
|
12806 | |
|
|
12807 | IF_PERL= |
|
|
12808 | PERL_O=rxvtperl.o |
|
|
12809 | PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" |
|
|
12810 | PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" |
|
|
12811 | PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" |
|
|
12812 | else |
|
|
12813 | { { echo "$as_me:$LINENO: error: no, unable to link" >&5 |
|
|
12814 | echo "$as_me: error: no, unable to link" >&2;} |
|
|
12815 | { (exit 1); exit 1; }; } |
|
|
12816 | fi |
|
|
12817 | else |
|
|
12818 | { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 |
|
|
12819 | echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;} |
|
|
12820 | { (exit 1); exit 1; }; } |
|
|
12821 | fi |
|
|
12822 | fi |
|
|
12823 | |
|
|
12824 | |
|
|
12825 | |
|
|
12826 | |
|
|
12827 | |
|
|
12828 | |
|
|
12829 | |
|
|
12830 | if test x$support_perl = xyes; then |
|
|
12831 | support_frills=yes |
|
|
12832 | fi |
|
|
12833 | |
|
|
12834 | |
|
|
12835 | CFLAGS=${CFLAGS--O} |
|
|
12836 | LDFLAGS=${LDFLAGS--O} |
|
|
12837 | |
|
|
12838 | CPPFLAGS="$CPPFLAGS" |
|
|
12839 | |
|
|
12840 | |
|
|
12841 | |
|
|
12842 | |
|
|
12843 | |
|
|
12844 | |
|
|
12845 | |
|
|
12846 | if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then |
|
|
12847 | DLIB=`echo $DLIB | sed "$R_TRANSLATE"` |
|
|
12848 | LIBS=`echo $LIBS | sed "$R_TRANSLATE"` |
|
|
12849 | X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"` |
|
|
12850 | X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"` |
|
|
12851 | XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"` |
|
|
12852 | fi |
|
|
12853 | |
|
|
12854 | |
|
|
12855 | |
|
|
12856 | |
|
|
12857 | |
|
|
12858 | test "$program_prefix" != NONE && |
|
|
12859 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
|
|
12860 | # Use a double $ so make ignores it. |
|
|
12861 | test "$program_suffix" != NONE && |
|
|
12862 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
|
|
12863 | # Double any \ or $. echo might interpret backslashes. |
|
|
12864 | # By default was `s,x,x', remove it if useless. |
|
|
12865 | cat <<\_ACEOF >conftest.sed |
|
|
12866 | s/[\\$]/&&/g;s/;s,x,x,$// |
|
|
12867 | _ACEOF |
|
|
12868 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
|
|
12869 | rm conftest.sed |
|
|
12870 | |
|
|
12871 | |
|
|
12872 | |
|
|
12873 | |
|
|
12874 | |
|
|
12875 | if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12876 | include_stdint_h="#include <stdint.h>" |
|
|
12877 | else |
|
|
12878 | include_stdint_h="/* #include <stdint.h> */" |
|
|
12879 | fi |
|
|
12880 | if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12881 | include_stdarg_h="#include <cstdarg>" |
|
|
12882 | else |
|
|
12883 | include_stdarg_h="/* #include <cstdarg> */" |
|
|
12884 | fi |
|
|
12885 | if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12886 | include_stdlib_h="#include <cstdlib>" |
|
|
12887 | else |
|
|
12888 | include_stdlib_h="/* #include <cstdlib> */" |
|
|
12889 | fi |
|
|
12890 | if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12891 | include_unistd_h="#include <unistd.h>" |
|
|
12892 | else |
|
|
12893 | include_unistd_h="/* #include <unistd.h> */" |
|
|
12894 | fi |
|
|
12895 | if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12896 | include_string_h="#include <cstring>" |
|
|
12897 | else |
|
|
12898 | include_string_h="/* #include <cstring> */" |
|
|
12899 | fi |
|
|
12900 | if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12901 | include_fcntl_h="#include <fcntl.h>" |
|
|
12902 | else |
|
|
12903 | include_fcntl_h="/* #include <fcntl.h> */" |
|
|
12904 | fi |
|
|
12905 | if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12906 | include_util_h="#include <util.h>" |
|
|
12907 | else |
|
|
12908 | include_util_h="/* #include <util.h> */" |
|
|
12909 | fi |
|
|
12910 | if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12911 | include_assert_h="#include <assert.h>" |
|
|
12912 | else |
|
|
12913 | include_assert_h="/* #include <assert.h> */" |
|
|
12914 | fi |
|
|
12915 | if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12916 | include_sys_ioctl_h="#include <sys/ioctl.h>" |
|
|
12917 | else |
|
|
12918 | include_sys_ioctl_h="/* #include <sys/ioctl.h> */" |
|
|
12919 | fi |
|
|
12920 | if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12921 | include_sys_select_h="#include <sys/select.h>" |
|
|
12922 | else |
|
|
12923 | include_sys_select_h="/* #include <sys/select.h> */" |
|
|
12924 | fi |
|
|
12925 | if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12926 | include_sys_strredir_h="#include <sys/strredir.h>" |
|
|
12927 | else |
|
|
12928 | include_sys_strredir_h="/* #include <sys/strredir.h> */" |
|
|
12929 | fi |
|
|
12930 | if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then |
|
|
12931 | include_sys_time_h="#include <sys/time.h>" |
|
|
12932 | else |
|
|
12933 | include_sys_time_h="/* #include <sys/time.h> */" |
|
|
12934 | fi |
|
|
12935 | if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then |
|
|
12936 | include_time_h="#include <time.h>" |
|
|
12937 | else |
|
|
12938 | include_time_h="/* #include <time.h> */" |
|
|
12939 | fi |
|
|
12940 | |
17042 | ac_config_files="$ac_config_files autoconf/Make.common Makefile doc/Makefile src/Makefile src/test/Makefile src/rxvtlib.h W11/Makefile" |
12941 | ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" |
17043 | |
12942 | |
17044 | cat >confcache <<\_ACEOF |
12943 | cat >confcache <<\_ACEOF |
17045 | # This file is a shell script that caches the results of configure |
12944 | # This file is a shell script that caches the results of configure |
17046 | # tests run on this system so they can be shared between configure |
12945 | # tests run on this system so they can be shared between configure |
17047 | # scripts and configure runs, see configure's option --config-cache. |
12946 | # scripts and configure runs, see configure's option --config-cache. |
… | |
… | |
17564 | cat >>$CONFIG_STATUS <<\_ACEOF |
13463 | cat >>$CONFIG_STATUS <<\_ACEOF |
17565 | for ac_config_target in $ac_config_targets |
13464 | for ac_config_target in $ac_config_targets |
17566 | do |
13465 | do |
17567 | case "$ac_config_target" in |
13466 | case "$ac_config_target" in |
17568 | # Handling of arguments. |
13467 | # Handling of arguments. |
17569 | "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;; |
|
|
17570 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
13468 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
17571 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
13469 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
17572 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
13470 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
17573 | "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;; |
|
|
17574 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
13471 | "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; |
17575 | "W11/Makefile" ) CONFIG_FILES="$CONFIG_FILES W11/Makefile" ;; |
|
|
17576 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; |
13472 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;; |
17577 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
13473 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
17578 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13474 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
17579 | { (exit 1); exit 1; }; };; |
13475 | { (exit 1); exit 1; }; };; |
17580 | esac |
13476 | esac |
17581 | done |
13477 | done |
… | |
… | |
17656 | s,@DEFS@,$DEFS,;t t |
13552 | s,@DEFS@,$DEFS,;t t |
17657 | s,@ECHO_C@,$ECHO_C,;t t |
13553 | s,@ECHO_C@,$ECHO_C,;t t |
17658 | s,@ECHO_N@,$ECHO_N,;t t |
13554 | s,@ECHO_N@,$ECHO_N,;t t |
17659 | s,@ECHO_T@,$ECHO_T,;t t |
13555 | s,@ECHO_T@,$ECHO_T,;t t |
17660 | s,@LIBS@,$LIBS,;t t |
13556 | s,@LIBS@,$LIBS,;t t |
|
|
13557 | s,@build@,$build,;t t |
|
|
13558 | s,@build_cpu@,$build_cpu,;t t |
|
|
13559 | s,@build_vendor@,$build_vendor,;t t |
|
|
13560 | s,@build_os@,$build_os,;t t |
|
|
13561 | s,@host@,$host,;t t |
|
|
13562 | s,@host_cpu@,$host_cpu,;t t |
|
|
13563 | s,@host_vendor@,$host_vendor,;t t |
|
|
13564 | s,@host_os@,$host_os,;t t |
17661 | s,@VERSION@,$VERSION,;t t |
13565 | s,@VERSION@,$VERSION,;t t |
17662 | s,@DATE@,$DATE,;t t |
13566 | s,@DATE@,$DATE,;t t |
17663 | s,@LSMDATE@,$LSMDATE,;t t |
13567 | s,@LSMDATE@,$LSMDATE,;t t |
17664 | s,@LIBVERSION@,$LIBVERSION,;t t |
13568 | s,@LIBVERSION@,$LIBVERSION,;t t |
17665 | s,@CC@,$CC,;t t |
13569 | s,@CC@,$CC,;t t |
… | |
… | |
17674 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
13578 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t |
17675 | s,@CPP@,$CPP,;t t |
13579 | s,@CPP@,$CPP,;t t |
17676 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
13580 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
17677 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
13581 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
17678 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
13582 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
17679 | s,@AWK@,$AWK,;t t |
13583 | s,@EGREP@,$EGREP,;t t |
17680 | s,@LINKER@,$LINKER,;t t |
13584 | s,@LINKER@,$LINKER,;t t |
17681 | s,@CXXCPP@,$CXXCPP,;t t |
|
|
17682 | s,@EGREP@,$EGREP,;t t |
|
|
17683 | s,@build@,$build,;t t |
|
|
17684 | s,@build_cpu@,$build_cpu,;t t |
|
|
17685 | s,@build_vendor@,$build_vendor,;t t |
|
|
17686 | s,@build_os@,$build_os,;t t |
|
|
17687 | s,@host@,$host,;t t |
|
|
17688 | s,@host_cpu@,$host_cpu,;t t |
|
|
17689 | s,@host_vendor@,$host_vendor,;t t |
|
|
17690 | s,@host_os@,$host_os,;t t |
|
|
17691 | s,@LN_S@,$LN_S,;t t |
|
|
17692 | s,@ECHO@,$ECHO,;t t |
|
|
17693 | s,@RANLIB@,$RANLIB,;t t |
|
|
17694 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
|
|
17695 | s,@STRIP@,$STRIP,;t t |
|
|
17696 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
|
|
17697 | s,@LIBTOOL@,$LIBTOOL,;t t |
|
|
17698 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
13585 | s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t |
17699 | s,@RXVTNAME@,$RXVTNAME,;t t |
13586 | s,@RXVTNAME@,$RXVTNAME,;t t |
17700 | s,@MV@,$MV,;t t |
13587 | s,@MV@,$MV,;t t |
17701 | s,@RM@,$RM,;t t |
13588 | s,@RM@,$RM,;t t |
17702 | s,@CP@,$CP,;t t |
13589 | s,@CP@,$CP,;t t |
17703 | s,@LN@,$LN,;t t |
13590 | s,@LN@,$LN,;t t |
17704 | s,@SED@,$SED,;t t |
13591 | s,@SED@,$SED,;t t |
|
|
13592 | s,@ECHO@,$ECHO,;t t |
17705 | s,@CMP@,$CMP,;t t |
13593 | s,@CMP@,$CMP,;t t |
17706 | s,@TBL@,$TBL,;t t |
13594 | s,@TIC@,$TIC,;t t |
|
|
13595 | s,@CXXCPP@,$CXXCPP,;t t |
17707 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
13596 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
17708 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
13597 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t |
17709 | s,@X_LIBS@,$X_LIBS,;t t |
13598 | s,@X_LIBS@,$X_LIBS,;t t |
17710 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
13599 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t |
17711 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
13600 | s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t |
… | |
… | |
17715 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
13604 | s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t |
17716 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
13605 | s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t |
17717 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
13606 | s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t |
17718 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
13607 | s,@rxvt_intp_define@,$rxvt_intp_define,;t t |
17719 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
13608 | s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t |
|
|
13609 | s,@PERL@,$PERL,;t t |
|
|
13610 | s,@PERLLIB@,$PERLLIB,;t t |
|
|
13611 | s,@PERLFLAGS@,$PERLFLAGS,;t t |
|
|
13612 | s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t |
|
|
13613 | s,@IF_PERL@,$IF_PERL,;t t |
|
|
13614 | s,@PERL_O@,$PERL_O,;t t |
17720 | s,@DEBUG@,$DEBUG,;t t |
13615 | s,@DEBUG@,$DEBUG,;t t |
17721 | s,@DINCLUDE@,$DINCLUDE,;t t |
13616 | s,@DINCLUDE@,$DINCLUDE,;t t |
17722 | s,@DLIB@,$DLIB,;t t |
13617 | s,@DLIB@,$DLIB,;t t |
17723 | s,@include_stdint_h@,$include_stdint_h,;t t |
13618 | s,@include_stdint_h@,$include_stdint_h,;t t |
17724 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
13619 | s,@include_stdarg_h@,$include_stdarg_h,;t t |
… | |
… | |
17733 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
13628 | s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t |
17734 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
13629 | s,@include_sys_time_h@,$include_sys_time_h,;t t |
17735 | s,@include_time_h@,$include_time_h,;t t |
13630 | s,@include_time_h@,$include_time_h,;t t |
17736 | s,@LIBOBJS@,$LIBOBJS,;t t |
13631 | s,@LIBOBJS@,$LIBOBJS,;t t |
17737 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
13632 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
17738 | /@MCOMMON@/r $MCOMMON |
|
|
17739 | s,@MCOMMON@,,;t t |
|
|
17740 | CEOF |
13633 | CEOF |
17741 | |
13634 | |
17742 | _ACEOF |
13635 | _ACEOF |
17743 | |
13636 | |
17744 | cat >>$CONFIG_STATUS <<\_ACEOF |
13637 | cat >>$CONFIG_STATUS <<\_ACEOF |
… | |
… | |
18265 | utmp file: $rxvt_cv_path_utmp |
14158 | utmp file: $rxvt_cv_path_utmp |
18266 | utmpx file: $rxvt_cv_path_utmpx |
14159 | utmpx file: $rxvt_cv_path_utmpx |
18267 | wtmp file: $rxvt_cv_path_wtmp |
14160 | wtmp file: $rxvt_cv_path_wtmp |
18268 | wtmpx file: $rxvt_cv_path_wtmpx |
14161 | wtmpx file: $rxvt_cv_path_wtmpx |
18269 | lastlog file: $rxvt_cv_path_lastlog |
14162 | lastlog file: $rxvt_cv_path_lastlog |
18270 | ttys/ttytab file: $rxvt_cv_path_ttytab" |
14163 | ttys/ttytab file: $rxvt_cv_path_ttytab |
|
|
14164 | embedded perl: $support_perl" |
18271 | echo |
14165 | echo |
18272 | fi |
14166 | fi |
18273 | if test x$term != x; then |
14167 | if test x$term != x; then |
18274 | echo " set TERM to: $term" |
14168 | echo " set TERM to: $term" |
18275 | fi |
14169 | fi |
… | |
… | |
18304 | echo ". functions could not be found. ." |
14198 | echo ". functions could not be found. ." |
18305 | echo ". XIM is now being DISABLED! ." |
14199 | echo ". XIM is now being DISABLED! ." |
18306 | echo ".----------------------------------------------------------------." |
14200 | echo ".----------------------------------------------------------------." |
18307 | fi |
14201 | fi |
18308 | |
14202 | |
18309 | echo " *** Please check src/feature.h for further options ***" |
14203 | echo " *** Optionally check src/feature.h for further options ***" |
18310 | echo |
14204 | echo |
18311 | |
14205 | |
18312 | echo ".----------------------------------------------------------------." |
14206 | echo ".----------------------------------------------------------------." |
18313 | echo ". NOTE: most features are disabled by default, try ." |
14207 | echo ". NOTE: some features are disabled by default, try ." |
18314 | echo ". configure --help to get an idea of the optional features ." |
14208 | echo ". configure --help to get an idea of the optional features, ." |
|
|
14209 | echo ". or read ./README.configure ." |
|
|
14210 | echo ". ." |
|
|
14211 | echo ". The script ./reconf gives a reasonable baseline, try it if ." |
|
|
14212 | echo ". you do not want to read documentation and still want some ." |
|
|
14213 | echo ". useful features. ." |
18315 | echo ".----------------------------------------------------------------." |
14214 | echo ".----------------------------------------------------------------." |
18316 | echo |
14215 | echo |
18317 | |
14216 | |