GCC with patches for OS216
Revision | 904972fa160d5225c8f14382a1129daf71f453b5 (tree) |
---|---|
Zeit | 1999-08-03 12:16:40 |
Autor | Tom Tromey <tromey@cygn...> |
Commiter | Tom Tromey |
* aclocal.m4, configure: Rebuilt for new libtool.
From-SVN: r28437
@@ -1,3 +1,7 @@ | ||
1 | +1999-08-02 Tom Tromey <tromey@cygnus.com> | |
2 | + | |
3 | + * aclocal.m4, configure: Rebuilt for new libtool. | |
4 | + | |
1 | 5 | 1999-08-01 Tom Tromey <tromey@cygnus.com> |
2 | 6 | |
3 | 7 | * configure: Rebuilt. |
@@ -87,6 +87,7 @@ LIBTOOL = @LIBTOOL@ | ||
87 | 87 | LN_S = @LN_S@ |
88 | 88 | MAINT = @MAINT@ |
89 | 89 | MAKEINFO = @MAKEINFO@ |
90 | +OBJDUMP = @OBJDUMP@ | |
90 | 91 | PACKAGE = @PACKAGE@ |
91 | 92 | PERL = @PERL@ |
92 | 93 | RANLIB = @RANLIB@ |
@@ -96,7 +97,6 @@ THREADINCS = @THREADINCS@ | ||
96 | 97 | THREADLIBS = @THREADLIBS@ |
97 | 98 | THREADOBJS = @THREADOBJS@ |
98 | 99 | THREADSPEC = @THREADSPEC@ |
99 | -USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@ | |
100 | 100 | VERSION = @VERSION@ |
101 | 101 | ZDEPS = @ZDEPS@ |
102 | 102 | ZINCS = @ZINCS@ |
@@ -318,7 +318,7 @@ done<<>>dnl>>) | ||
318 | 318 | changequote([,]))]) |
319 | 319 | |
320 | 320 | |
321 | -# serial 35 AC_PROG_LIBTOOL | |
321 | +# serial 40 AC_PROG_LIBTOOL | |
322 | 322 | AC_DEFUN(AC_PROG_LIBTOOL, |
323 | 323 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
324 | 324 |
@@ -327,8 +327,9 @@ AC_CACHE_SAVE | ||
327 | 327 | |
328 | 328 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
329 | 329 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
330 | -LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ | |
331 | -DLLTOOL="$DLLTOOL" AS="$AS" \ | |
330 | +LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
331 | +LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ | |
332 | +DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ | |
332 | 333 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
333 | 334 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
334 | 335 | || AC_MSG_ERROR([libtool configure failed]) |
@@ -359,8 +360,6 @@ AC_REQUIRE([AC_PROG_RANLIB])dnl | ||
359 | 360 | AC_REQUIRE([AC_PROG_CC])dnl |
360 | 361 | AC_REQUIRE([AC_PROG_LD])dnl |
361 | 362 | AC_REQUIRE([AC_PROG_NM])dnl |
362 | -AC_REQUIRE([AC_SYS_NM_PARSE])dnl | |
363 | -AC_REQUIRE([AC_SYS_SYMBOL_UNDERSCORE])dnl | |
364 | 363 | AC_REQUIRE([AC_PROG_LN_S])dnl |
365 | 364 | dnl |
366 | 365 |
@@ -369,10 +368,16 @@ libtool_flags="--cache-file=$cache_file" | ||
369 | 368 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
370 | 369 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
371 | 370 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
372 | -test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen" | |
373 | -test "$silent" = yes && libtool_flags="$libtool_flags --silent" | |
374 | 371 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
375 | 372 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
373 | +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], | |
374 | +[libtool_flags="$libtool_flags --enable-dlopen"]) | |
375 | +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], | |
376 | +[libtool_flags="$libtool_flags --enable-win32-dll"]) | |
377 | +AC_ARG_ENABLE(libtool-lock, | |
378 | + [ --disable-libtool-lock avoid locking (might break parallel builds)]) | |
379 | +test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
380 | +test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
376 | 381 | |
377 | 382 | # Some flags need to be propagated to the compiler or linker for good |
378 | 383 | # libtool support. |
@@ -408,33 +413,28 @@ case "$host" in | ||
408 | 413 | fi |
409 | 414 | ;; |
410 | 415 | |
411 | -*-*-cygwin*) | |
412 | - AC_SYS_LIBTOOL_CYGWIN | |
416 | +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], | |
417 | +[*-*-cygwin* | *-*-mingw*) | |
418 | + AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
419 | + AC_CHECK_TOOL(AS, as, false) | |
420 | + AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
413 | 421 | ;; |
414 | - | |
422 | +]) | |
415 | 423 | esac |
416 | - | |
417 | -# enable the --disable-libtool-lock switch | |
418 | - | |
419 | -AC_ARG_ENABLE(libtool-lock, | |
420 | -[ --disable-libtool-lock force libtool not to do file locking], | |
421 | -need_locks=$enableval, | |
422 | -need_locks=yes) | |
423 | - | |
424 | -if test x"$need_locks" = xno; then | |
425 | - libtool_flags="$libtool_flags --disable-lock" | |
426 | -fi | |
427 | 424 | ]) |
428 | 425 | |
429 | -# AC_LIBTOOL_DLOPEN - check for dlopen support | |
430 | -AC_DEFUN(AC_LIBTOOL_DLOPEN, [lt_dlopen=yes]) | |
426 | +# AC_LIBTOOL_DLOPEN - enable checks for dlopen support | |
427 | +AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) | |
428 | + | |
429 | +# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's | |
430 | +AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) | |
431 | 431 | |
432 | 432 | # AC_ENABLE_SHARED - implement the --enable-shared flag |
433 | 433 | # Usage: AC_ENABLE_SHARED[(DEFAULT)] |
434 | 434 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
435 | 435 | # `yes'. |
436 | -AC_DEFUN(AC_ENABLE_SHARED, | |
437 | -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | |
436 | +AC_DEFUN(AC_ENABLE_SHARED, [dnl | |
437 | +define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | |
438 | 438 | AC_ARG_ENABLE(shared, |
439 | 439 | changequote(<<, >>)dnl |
440 | 440 | << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], |
@@ -459,15 +459,15 @@ enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl | ||
459 | 459 | ]) |
460 | 460 | |
461 | 461 | # AC_DISABLE_SHARED - set the default shared flag to --disable-shared |
462 | -AC_DEFUN(AC_DISABLE_SHARED, | |
463 | -[AC_ENABLE_SHARED(no)]) | |
462 | +AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
463 | +AC_ENABLE_SHARED(no)]) | |
464 | 464 | |
465 | 465 | # AC_ENABLE_STATIC - implement the --enable-static flag |
466 | 466 | # Usage: AC_ENABLE_STATIC[(DEFAULT)] |
467 | 467 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
468 | 468 | # `yes'. |
469 | -AC_DEFUN(AC_ENABLE_STATIC, | |
470 | -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | |
469 | +AC_DEFUN(AC_ENABLE_STATIC, [dnl | |
470 | +define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | |
471 | 471 | AC_ARG_ENABLE(static, |
472 | 472 | changequote(<<, >>)dnl |
473 | 473 | << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], |
@@ -492,16 +492,16 @@ enable_static=AC_ENABLE_STATIC_DEFAULT)dnl | ||
492 | 492 | ]) |
493 | 493 | |
494 | 494 | # AC_DISABLE_STATIC - set the default static flag to --disable-static |
495 | -AC_DEFUN(AC_DISABLE_STATIC, | |
496 | -[AC_ENABLE_STATIC(no)]) | |
495 | +AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
496 | +AC_ENABLE_STATIC(no)]) | |
497 | 497 | |
498 | 498 | |
499 | 499 | # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag |
500 | 500 | # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] |
501 | 501 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
502 | 502 | # `yes'. |
503 | -AC_DEFUN(AC_ENABLE_FAST_INSTALL, | |
504 | -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | |
503 | +AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl | |
504 | +define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | |
505 | 505 | AC_ARG_ENABLE(fast-install, |
506 | 506 | changequote(<<, >>)dnl |
507 | 507 | << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], |
@@ -526,9 +526,8 @@ enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl | ||
526 | 526 | ]) |
527 | 527 | |
528 | 528 | # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install |
529 | -AC_DEFUN(AC_DISABLE_FAST_INSTALL, | |
530 | -[AC_ENABLE_FAST_INSTALL(no)]) | |
531 | - | |
529 | +AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
530 | +AC_ENABLE_FAST_INSTALL(no)]) | |
532 | 531 | |
533 | 532 | # AC_PROG_LD - find the path to the GNU or non-GNU linker |
534 | 533 | AC_DEFUN(AC_PROG_LD, |
@@ -546,7 +545,7 @@ if test "$ac_cv_prog_gcc" = yes; then | ||
546 | 545 | case "$ac_prog" in |
547 | 546 | # Accept absolute paths. |
548 | 547 | changequote(,)dnl |
549 | - /* | [A-Za-z]:[\\/]*) | |
548 | + [\\/]* | [A-Za-z]:[\\/]*) | |
550 | 549 | re_direlt='/[^/][^/]*/\.\./' |
551 | 550 | changequote([,])dnl |
552 | 551 | # Canonicalize the path of ld |
@@ -572,10 +571,10 @@ else | ||
572 | 571 | fi |
573 | 572 | AC_CACHE_VAL(ac_cv_path_LD, |
574 | 573 | [if test -z "$LD"; then |
575 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
574 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
576 | 575 | for ac_dir in $PATH; do |
577 | 576 | test -z "$ac_dir" && ac_dir=. |
578 | - if test -f "$ac_dir/$ac_prog"; then | |
577 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
579 | 578 | ac_cv_path_LD="$ac_dir/$ac_prog" |
580 | 579 | # Check to see if the program is GNU ld. I'd rather use --version, |
581 | 580 | # but apparently some GNU ld's only accept -v. |
@@ -620,10 +619,10 @@ AC_CACHE_VAL(ac_cv_path_NM, | ||
620 | 619 | # Let the user override the test. |
621 | 620 | ac_cv_path_NM="$NM" |
622 | 621 | else |
623 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
622 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
624 | 623 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
625 | 624 | test -z "$ac_dir" && ac_dir=. |
626 | - if test -f $ac_dir/nm; then | |
625 | + if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then | |
627 | 626 | # Check to see if the nm accepts a BSD-compat flag. |
628 | 627 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
629 | 628 | # nm: unknown option "B" ignored |
@@ -647,227 +646,22 @@ AC_MSG_RESULT([$NM]) | ||
647 | 646 | AC_SUBST(NM) |
648 | 647 | ]) |
649 | 648 | |
650 | -# AC_SYS_NM_PARSE - Check for command to grab the raw symbol name followed | |
651 | -# by C symbol name from nm. | |
652 | -AC_DEFUN(AC_SYS_NM_PARSE, | |
649 | +# AC_CHECK_LIBM - check for math library | |
650 | +AC_DEFUN(AC_CHECK_LIBM, | |
653 | 651 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
654 | -AC_REQUIRE([AC_PROG_NM])dnl | |
655 | -# Check for command to grab the raw symbol name followed by C symbol from nm. | |
656 | -AC_MSG_CHECKING([command to parse $NM output]) | |
657 | -AC_CACHE_VAL(ac_cv_sys_global_symbol_pipe, | |
658 | -[# These are sane defaults that work on at least a few old systems. | |
659 | -# {They come from Ultrix. What could be older than Ultrix?!! ;)} | |
660 | - | |
661 | -changequote(,)dnl | |
662 | -# Character class describing NM global symbol codes. | |
663 | -ac_symcode='[BCDEGRST]' | |
664 | - | |
665 | -# Regexp to match symbols that can be accessed directly from C. | |
666 | -ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
667 | - | |
668 | -# Transform the above into a raw symbol and a C symbol. | |
669 | -ac_symxfrm='\1 \2\3 \3' | |
670 | - | |
671 | -# Transform an extracted symbol line into a proper C declaration | |
672 | -ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
673 | - | |
674 | -# Define system-specific variables. | |
675 | -case "$host_os" in | |
676 | -aix*) | |
677 | - ac_symcode='[BCDT]' | |
678 | - ;; | |
679 | -cygwin* | mingw*) | |
680 | - ac_symcode='[ABCDGISTW]' | |
681 | - ;; | |
682 | -hpux*) | |
683 | - ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
652 | +LIBM= | |
653 | +case "$host" in | |
654 | +*-*-beos* | *-*-cygwin*) | |
655 | + # These system don't have libm | |
684 | 656 | ;; |
685 | -irix*) | |
686 | - ac_symcode='[BCDEGRST]' | |
657 | +*-ncr-sysv4.3*) | |
658 | + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | |
659 | + AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") | |
687 | 660 | ;; |
688 | -solaris*) | |
689 | - ac_symcode='[BDT]' | |
661 | +*) | |
662 | + AC_CHECK_LIB(m, main, LIBM="-lm") | |
690 | 663 | ;; |
691 | 664 | esac |
692 | - | |
693 | -# If we're using GNU nm, then use its standard symbol codes. | |
694 | -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
695 | - ac_symcode='[ABCDGISTW]' | |
696 | -fi | |
697 | -changequote([,])dnl | |
698 | - | |
699 | -# Try without a prefix undercore, then with it. | |
700 | -for ac_symprfx in "" "_"; do | |
701 | - | |
702 | - ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($ac_symcode\)[ ][ ]*\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'" | |
703 | - | |
704 | - # Check to see that the pipe works correctly. | |
705 | - ac_pipe_works=no | |
706 | - rm -f conftest.$ac_ext | |
707 | - cat > conftest.$ac_ext <<EOF | |
708 | -#ifdef __cplusplus | |
709 | -extern "C" { | |
710 | -#endif | |
711 | -char nm_test_var; | |
712 | -void nm_test_func(){} | |
713 | -#ifdef __cplusplus | |
714 | -} | |
715 | -#endif | |
716 | -int main(){nm_test_var='a';nm_test_func;return 0;} | |
717 | -EOF | |
718 | - | |
719 | - if AC_TRY_EVAL(ac_compile); then | |
720 | - # Now try to grab the symbols. | |
721 | - ac_nlist=conftest.nm | |
722 | - | |
723 | - if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then | |
724 | - | |
725 | - # Try sorting and uniquifying the output. | |
726 | - if sort "$ac_nlist" | uniq > "$ac_nlist"T; then | |
727 | - mv -f "$ac_nlist"T "$ac_nlist" | |
728 | - else | |
729 | - rm -f "$ac_nlist"T | |
730 | - fi | |
731 | - | |
732 | - # Make sure that we snagged all the symbols we need. | |
733 | - if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then | |
734 | - if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then | |
735 | - cat <<EOF > conftest.c | |
736 | -#ifdef __cplusplus | |
737 | -extern "C" { | |
738 | -#endif | |
739 | - | |
740 | -EOF | |
741 | - # Now generate the symbol file. | |
742 | - eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c' | |
743 | - | |
744 | - cat <<EOF >> conftest.c | |
745 | -#if defined (__STDC__) && __STDC__ | |
746 | -# define lt_ptr_t void * | |
747 | -#else | |
748 | -# define lt_ptr_t char * | |
749 | -# define const | |
750 | -#endif | |
751 | - | |
752 | -/* The mapping between symbol names and symbols. */ | |
753 | -const struct { | |
754 | - const char *name; | |
755 | - lt_ptr_t address; | |
756 | -} | |
757 | -changequote(,)dnl | |
758 | -lt_preloaded_symbols[] = | |
759 | -changequote([,])dnl | |
760 | -{ | |
761 | -EOF | |
762 | - sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c | |
763 | - cat <<\EOF >> conftest.c | |
764 | - {0, (lt_ptr_t) 0} | |
765 | -}; | |
766 | - | |
767 | -#ifdef __cplusplus | |
768 | -} | |
769 | -#endif | |
770 | -EOF | |
771 | - # Now try linking the two files. | |
772 | - mv conftest.$ac_objext conftestm.$ac_objext | |
773 | - ac_save_LIBS="$LIBS" | |
774 | - ac_save_CFLAGS="$CFLAGS" | |
775 | - LIBS="conftestm.$ac_objext" | |
776 | - CFLAGS="$CFLAGS$no_builtin_flag" | |
777 | - if AC_TRY_EVAL(ac_link) && test -s conftest; then | |
778 | - ac_pipe_works=yes | |
779 | - else | |
780 | - echo "configure: failed program was:" >&AC_FD_CC | |
781 | - cat conftest.c >&AC_FD_CC | |
782 | - fi | |
783 | - LIBS="$ac_save_LIBS" | |
784 | - CFLAGS="$ac_save_CFLAGS" | |
785 | - else | |
786 | - echo "cannot find nm_test_func in $ac_nlist" >&AC_FD_CC | |
787 | - fi | |
788 | - else | |
789 | - echo "cannot find nm_test_var in $ac_nlist" >&AC_FD_CC | |
790 | - fi | |
791 | - else | |
792 | - echo "cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC | |
793 | - fi | |
794 | - else | |
795 | - echo "$progname: failed program was:" >&AC_FD_CC | |
796 | - cat conftest.c >&AC_FD_CC | |
797 | - fi | |
798 | - rm -rf conftest* | |
799 | - | |
800 | - # Do not use the global_symbol_pipe unless it works. | |
801 | - if test "$ac_pipe_works" = yes; then | |
802 | - if test x"$ac_symprfx" = x"_"; then | |
803 | - ac_cv_sys_symbol_underscore=yes | |
804 | - else | |
805 | - ac_cv_sys_symbol_underscore=no | |
806 | - fi | |
807 | - break | |
808 | - else | |
809 | - ac_cv_sys_global_symbol_pipe= | |
810 | - fi | |
811 | -done | |
812 | -]) | |
813 | - | |
814 | -ac_result=yes | |
815 | -if test -z "$ac_cv_sys_global_symbol_pipe"; then | |
816 | - ac_result=no | |
817 | -fi | |
818 | -AC_MSG_RESULT($ac_result) | |
819 | -]) | |
820 | - | |
821 | -# AC_SYS_LIBTOOL_CYGWIN - find tools needed on cygwin | |
822 | -AC_DEFUN(AC_SYS_LIBTOOL_CYGWIN, | |
823 | -[AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
824 | -AC_CHECK_TOOL(AS, as, false) | |
825 | -]) | |
826 | - | |
827 | -# AC_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols | |
828 | -# with an underscore? | |
829 | -AC_DEFUN(AC_SYS_SYMBOL_UNDERSCORE, | |
830 | -[AC_REQUIRE([AC_PROG_NM])dnl | |
831 | -AC_REQUIRE([AC_SYS_NM_PARSE])dnl | |
832 | -AC_MSG_CHECKING([for _ prefix in compiled symbols]) | |
833 | -AC_CACHE_VAL(ac_cv_sys_symbol_underscore, | |
834 | -[ac_cv_sys_symbol_underscore=no | |
835 | -cat > conftest.$ac_ext <<EOF | |
836 | -void nm_test_func(){} | |
837 | -int main(){nm_test_func;return 0;} | |
838 | -EOF | |
839 | -if AC_TRY_EVAL(ac_compile); then | |
840 | - # Now try to grab the symbols. | |
841 | - ac_nlist=conftest.nm | |
842 | - if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then | |
843 | - # See whether the symbols have a leading underscore. | |
844 | - if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
845 | - ac_cv_sys_symbol_underscore=yes | |
846 | - else | |
847 | - if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
848 | - : | |
849 | - else | |
850 | - echo "configure: cannot find nm_test_func in $ac_nlist" >&AC_FD_CC | |
851 | - fi | |
852 | - fi | |
853 | - else | |
854 | - echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC | |
855 | - fi | |
856 | -else | |
857 | - echo "configure: failed program was:" >&AC_FD_CC | |
858 | - cat conftest.c >&AC_FD_CC | |
859 | -fi | |
860 | -rm -rf conftest* | |
861 | -]) | |
862 | -AC_MSG_RESULT($ac_cv_sys_symbol_underscore) | |
863 | -USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no} | |
864 | -AC_SUBST(USE_SYMBOL_UNDERSCORE)dnl | |
865 | -]) | |
866 | - | |
867 | -# AC_CHECK_LIBM - check for math library | |
868 | -AC_DEFUN(AC_CHECK_LIBM, [ | |
869 | -AC_CHECK_LIB(mw, _mwvalidcheckl) | |
870 | -AC_CHECK_LIB(m, cos) | |
871 | 665 | ]) |
872 | 666 | |
873 | 667 | # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for |
@@ -878,13 +672,14 @@ AC_CHECK_LIB(m, cos) | ||
878 | 672 | # '${top_builddir}/' (note the single quotes!) if your package is not |
879 | 673 | # flat, and, if you're not using automake, define top_builddir as |
880 | 674 | # appropriate in the Makefiles. |
881 | -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [ | |
675 | +AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
882 | 676 | case "$enable_ltdl_convenience" in |
883 | 677 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
884 | 678 | "") enable_ltdl_convenience=yes |
885 | 679 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
886 | 680 | esac |
887 | 681 | LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la |
682 | + INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) | |
888 | 683 | ]) |
889 | 684 | |
890 | 685 | # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for |
@@ -896,16 +691,23 @@ AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [ | ||
896 | 691 | # flat, and, if you're not using automake, define top_builddir as |
897 | 692 | # appropriate in the Makefiles. |
898 | 693 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
899 | -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [ | |
900 | - AC_CHECK_LIB(ltdl, main, LIBLTDL="-lltdl", [ | |
901 | - case "$enable_ltdl_install" in | |
902 | - no) AC_MSG_WARN([libltdl not installed, but installation disabled]) ;; | |
903 | - "") enable_ltdl_install=yes | |
904 | - ac_configure_args="$ac_configure_args --enable-ltdl-install" ;; | |
905 | - esac | |
694 | +AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
695 | + AC_CHECK_LIB(ltdl, main, | |
696 | + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | |
697 | + [if test x"$enable_ltdl_install" = xno; then | |
698 | + AC_MSG_WARN([libltdl not installed, but installation disabled]) | |
699 | + else | |
700 | + enable_ltdl_install=yes | |
701 | + fi | |
906 | 702 | ]) |
907 | - if test x"$enable_ltdl_install" != x"no"; then | |
703 | + if test x"$enable_ltdl_install" = x"yes"; then | |
704 | + ac_configure_args="$ac_configure_args --enable-ltdl-install" | |
908 | 705 | LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la |
706 | + INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) | |
707 | + else | |
708 | + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | |
709 | + LIBLTDL="-lltdl" | |
710 | + INCLTDL= | |
909 | 711 | fi |
910 | 712 | ]) |
911 | 713 |
@@ -917,7 +719,7 @@ AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl | ||
917 | 719 | AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl |
918 | 720 | AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl |
919 | 721 | AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl |
920 | -AC_DEFUN(AM_SYS_NM_PARSE, [indir([AC_SYS_NM_PARSE])])dnl | |
921 | -AC_DEFUN(AM_SYS_SYMBOL_UNDERSCORE, [indir([AC_SYS_SYMBOL_UNDERSCORE])])dnl | |
922 | -AC_DEFUN(AM_SYS_LIBTOOL_CYGWIN, [indir([AC_SYS_LIBTOOL_CYGWIN])])dnl | |
722 | + | |
723 | +dnl This is just to silence aclocal about the macro not being used | |
724 | +ifelse([AC_DISABLE_FAST_INSTALL])dnl | |
923 | 725 |
@@ -29,7 +29,7 @@ ac_help="$ac_help | ||
29 | 29 | ac_help="$ac_help |
30 | 30 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
31 | 31 | ac_help="$ac_help |
32 | - --disable-libtool-lock force libtool not to do file locking" | |
32 | + --disable-libtool-lock avoid locking (might break parallel builds)" | |
33 | 33 | ac_help="$ac_help |
34 | 34 | --enable-fast-character Prefer speed over size for Character" |
35 | 35 | ac_help="$ac_help |
@@ -1919,7 +1919,7 @@ echo "configure:1919: checking for ld used by GCC" >&5 | ||
1919 | 1919 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1920 | 1920 | case "$ac_prog" in |
1921 | 1921 | # Accept absolute paths. |
1922 | - /* | [A-Za-z]:[\\/]*) | |
1922 | + [\\/]* | [A-Za-z]:[\\/]*) | |
1923 | 1923 | re_direlt='/[^/][^/]*/\.\./' |
1924 | 1924 | # Canonicalize the path of ld |
1925 | 1925 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
@@ -1948,10 +1948,10 @@ if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then | ||
1948 | 1948 | echo $ac_n "(cached) $ac_c" 1>&6 |
1949 | 1949 | else |
1950 | 1950 | if test -z "$LD"; then |
1951 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1951 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
1952 | 1952 | for ac_dir in $PATH; do |
1953 | 1953 | test -z "$ac_dir" && ac_dir=. |
1954 | - if test -f "$ac_dir/$ac_prog"; then | |
1954 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
1955 | 1955 | ac_cv_path_LD="$ac_dir/$ac_prog" |
1956 | 1956 | # Check to see if the program is GNU ld. I'd rather use --version, |
1957 | 1957 | # but apparently some GNU ld's only accept -v. |
@@ -2002,10 +2002,10 @@ else | ||
2002 | 2002 | # Let the user override the test. |
2003 | 2003 | ac_cv_path_NM="$NM" |
2004 | 2004 | else |
2005 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
2005 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
2006 | 2006 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
2007 | 2007 | test -z "$ac_dir" && ac_dir=. |
2008 | - if test -f $ac_dir/nm; then | |
2008 | + if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then | |
2009 | 2009 | # Check to see if the nm accepts a BSD-compat flag. |
2010 | 2010 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
2011 | 2011 | # nm: unknown option "B" ignored |
@@ -2030,212 +2030,8 @@ NM="$ac_cv_path_NM" | ||
2030 | 2030 | echo "$ac_t""$NM" 1>&6 |
2031 | 2031 | |
2032 | 2032 | |
2033 | -# Check for command to grab the raw symbol name followed by C symbol from nm. | |
2034 | -echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 | |
2035 | -echo "configure:2036: checking command to parse $NM output" >&5 | |
2036 | -if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then | |
2037 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2038 | -else | |
2039 | - # These are sane defaults that work on at least a few old systems. | |
2040 | -# {They come from Ultrix. What could be older than Ultrix?!! ;)} | |
2041 | - | |
2042 | -# Character class describing NM global symbol codes. | |
2043 | -ac_symcode='[BCDEGRST]' | |
2044 | - | |
2045 | -# Regexp to match symbols that can be accessed directly from C. | |
2046 | -ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
2047 | - | |
2048 | -# Transform the above into a raw symbol and a C symbol. | |
2049 | -ac_symxfrm='\1 \2\3 \3' | |
2050 | - | |
2051 | -# Transform an extracted symbol line into a proper C declaration | |
2052 | -ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
2053 | - | |
2054 | -# Define system-specific variables. | |
2055 | -case "$host_os" in | |
2056 | -aix*) | |
2057 | - ac_symcode='[BCDT]' | |
2058 | - ;; | |
2059 | -cygwin* | mingw*) | |
2060 | - ac_symcode='[ABCDGISTW]' | |
2061 | - ;; | |
2062 | -hpux*) | |
2063 | - ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
2064 | - ;; | |
2065 | -irix*) | |
2066 | - ac_symcode='[BCDEGRST]' | |
2067 | - ;; | |
2068 | -solaris*) | |
2069 | - ac_symcode='[BDT]' | |
2070 | - ;; | |
2071 | -esac | |
2072 | - | |
2073 | -# If we're using GNU nm, then use its standard symbol codes. | |
2074 | -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
2075 | - ac_symcode='[ABCDGISTW]' | |
2076 | -fi | |
2077 | - | |
2078 | -# Try without a prefix undercore, then with it. | |
2079 | -for ac_symprfx in "" "_"; do | |
2080 | - | |
2081 | - ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'" | |
2082 | - | |
2083 | - # Check to see that the pipe works correctly. | |
2084 | - ac_pipe_works=no | |
2085 | - rm -f conftest.$ac_ext | |
2086 | - cat > conftest.$ac_ext <<EOF | |
2087 | -#ifdef __cplusplus | |
2088 | -extern "C" { | |
2089 | -#endif | |
2090 | -char nm_test_var; | |
2091 | -void nm_test_func(){} | |
2092 | -#ifdef __cplusplus | |
2093 | -} | |
2094 | -#endif | |
2095 | -int main(){nm_test_var='a';nm_test_func;return 0;} | |
2096 | -EOF | |
2097 | - | |
2098 | - if { (eval echo configure:2099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2099 | - # Now try to grab the symbols. | |
2100 | - ac_nlist=conftest.nm | |
2101 | - | |
2102 | - if { (eval echo configure:2103: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then | |
2103 | - | |
2104 | - # Try sorting and uniquifying the output. | |
2105 | - if sort "$ac_nlist" | uniq > "$ac_nlist"T; then | |
2106 | - mv -f "$ac_nlist"T "$ac_nlist" | |
2107 | - else | |
2108 | - rm -f "$ac_nlist"T | |
2109 | - fi | |
2110 | - | |
2111 | - # Make sure that we snagged all the symbols we need. | |
2112 | - if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then | |
2113 | - if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then | |
2114 | - cat <<EOF > conftest.c | |
2115 | -#ifdef __cplusplus | |
2116 | -extern "C" { | |
2117 | -#endif | |
2118 | - | |
2119 | -EOF | |
2120 | - # Now generate the symbol file. | |
2121 | - eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c' | |
2122 | - | |
2123 | - cat <<EOF >> conftest.c | |
2124 | -#if defined (__STDC__) && __STDC__ | |
2125 | -# define lt_ptr_t void * | |
2126 | -#else | |
2127 | -# define lt_ptr_t char * | |
2128 | -# define const | |
2129 | -#endif | |
2130 | - | |
2131 | -/* The mapping between symbol names and symbols. */ | |
2132 | -const struct { | |
2133 | - const char *name; | |
2134 | - lt_ptr_t address; | |
2135 | -} | |
2136 | -lt_preloaded_symbols[] = | |
2137 | -{ | |
2138 | -EOF | |
2139 | - sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c | |
2140 | - cat <<\EOF >> conftest.c | |
2141 | - {0, (lt_ptr_t) 0} | |
2142 | -}; | |
2143 | - | |
2144 | -#ifdef __cplusplus | |
2145 | -} | |
2146 | -#endif | |
2147 | -EOF | |
2148 | - # Now try linking the two files. | |
2149 | - mv conftest.$ac_objext conftestm.$ac_objext | |
2150 | - ac_save_LIBS="$LIBS" | |
2151 | - ac_save_CFLAGS="$CFLAGS" | |
2152 | - LIBS="conftestm.$ac_objext" | |
2153 | - CFLAGS="$CFLAGS$no_builtin_flag" | |
2154 | - if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
2155 | - ac_pipe_works=yes | |
2156 | - else | |
2157 | - echo "configure: failed program was:" >&5 | |
2158 | - cat conftest.c >&5 | |
2159 | - fi | |
2160 | - LIBS="$ac_save_LIBS" | |
2161 | - CFLAGS="$ac_save_CFLAGS" | |
2162 | - else | |
2163 | - echo "cannot find nm_test_func in $ac_nlist" >&5 | |
2164 | - fi | |
2165 | - else | |
2166 | - echo "cannot find nm_test_var in $ac_nlist" >&5 | |
2167 | - fi | |
2168 | - else | |
2169 | - echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5 | |
2170 | - fi | |
2171 | - else | |
2172 | - echo "$progname: failed program was:" >&5 | |
2173 | - cat conftest.c >&5 | |
2174 | - fi | |
2175 | - rm -rf conftest* | |
2176 | - | |
2177 | - # Do not use the global_symbol_pipe unless it works. | |
2178 | - if test "$ac_pipe_works" = yes; then | |
2179 | - if test x"$ac_symprfx" = x"_"; then | |
2180 | - ac_cv_sys_symbol_underscore=yes | |
2181 | - else | |
2182 | - ac_cv_sys_symbol_underscore=no | |
2183 | - fi | |
2184 | - break | |
2185 | - else | |
2186 | - ac_cv_sys_global_symbol_pipe= | |
2187 | - fi | |
2188 | -done | |
2189 | - | |
2190 | -fi | |
2191 | - | |
2192 | - | |
2193 | -ac_result=yes | |
2194 | -if test -z "$ac_cv_sys_global_symbol_pipe"; then | |
2195 | - ac_result=no | |
2196 | -fi | |
2197 | -echo "$ac_t""$ac_result" 1>&6 | |
2198 | - | |
2199 | -echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6 | |
2200 | -echo "configure:2201: checking for _ prefix in compiled symbols" >&5 | |
2201 | -if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then | |
2202 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2203 | -else | |
2204 | - ac_cv_sys_symbol_underscore=no | |
2205 | -cat > conftest.$ac_ext <<EOF | |
2206 | -void nm_test_func(){} | |
2207 | -int main(){nm_test_func;return 0;} | |
2208 | -EOF | |
2209 | -if { (eval echo configure:2210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2210 | - # Now try to grab the symbols. | |
2211 | - ac_nlist=conftest.nm | |
2212 | - if { (eval echo configure:2213: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then | |
2213 | - # See whether the symbols have a leading underscore. | |
2214 | - if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
2215 | - ac_cv_sys_symbol_underscore=yes | |
2216 | - else | |
2217 | - if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
2218 | - : | |
2219 | - else | |
2220 | - echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
2221 | - fi | |
2222 | - fi | |
2223 | - else | |
2224 | - echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5 | |
2225 | - fi | |
2226 | -else | |
2227 | - echo "configure: failed program was:" >&5 | |
2228 | - cat conftest.c >&5 | |
2229 | -fi | |
2230 | -rm -rf conftest* | |
2231 | - | |
2232 | -fi | |
2233 | - | |
2234 | -echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6 | |
2235 | -USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no} | |
2236 | - | |
2237 | 2033 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
2238 | -echo "configure:2239: checking whether ln -s works" >&5 | |
2034 | +echo "configure:2035: checking whether ln -s works" >&5 | |
2239 | 2035 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
2240 | 2036 | echo $ac_n "(cached) $ac_c" 1>&6 |
2241 | 2037 | else |
@@ -2261,18 +2057,26 @@ libtool_flags="--cache-file=$cache_file" | ||
2261 | 2057 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
2262 | 2058 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
2263 | 2059 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
2264 | -test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen" | |
2265 | -test "$silent" = yes && libtool_flags="$libtool_flags --silent" | |
2266 | 2060 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
2267 | 2061 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
2268 | 2062 | |
2063 | + | |
2064 | +# Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2065 | +if test "${enable_libtool_lock+set}" = set; then | |
2066 | + enableval="$enable_libtool_lock" | |
2067 | + : | |
2068 | +fi | |
2069 | + | |
2070 | +test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
2071 | +test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
2072 | + | |
2269 | 2073 | # Some flags need to be propagated to the compiler or linker for good |
2270 | 2074 | # libtool support. |
2271 | 2075 | case "$host" in |
2272 | 2076 | *-*-irix6*) |
2273 | 2077 | # Find out which ABI we are using. |
2274 | - echo '#line 2275 "configure"' > conftest.$ac_ext | |
2275 | - if { (eval echo configure:2276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2078 | + echo '#line 2079 "configure"' > conftest.$ac_ext | |
2079 | + if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
2276 | 2080 | case "`/usr/bin/file conftest.o`" in |
2277 | 2081 | *32-bit*) |
2278 | 2082 | LD="${LD-ld} -32" |
@@ -2293,19 +2097,19 @@ case "$host" in | ||
2293 | 2097 | SAVE_CFLAGS="$CFLAGS" |
2294 | 2098 | CFLAGS="$CFLAGS -belf" |
2295 | 2099 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
2296 | -echo "configure:2297: checking whether the C compiler needs -belf" >&5 | |
2100 | +echo "configure:2101: checking whether the C compiler needs -belf" >&5 | |
2297 | 2101 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
2298 | 2102 | echo $ac_n "(cached) $ac_c" 1>&6 |
2299 | 2103 | else |
2300 | 2104 | cat > conftest.$ac_ext <<EOF |
2301 | -#line 2302 "configure" | |
2105 | +#line 2106 "configure" | |
2302 | 2106 | #include "confdefs.h" |
2303 | 2107 | |
2304 | 2108 | int main() { |
2305 | 2109 | |
2306 | 2110 | ; return 0; } |
2307 | 2111 | EOF |
2308 | -if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2112 | +if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2309 | 2113 | rm -rf conftest* |
2310 | 2114 | lt_cv_cc_needs_belf=yes |
2311 | 2115 | else |
@@ -2324,161 +2128,9 @@ echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | ||
2324 | 2128 | fi |
2325 | 2129 | ;; |
2326 | 2130 | |
2327 | -*-*-cygwin*) | |
2328 | - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
2329 | -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
2330 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2331 | -echo "configure:2332: checking for $ac_word" >&5 | |
2332 | -if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then | |
2333 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2334 | -else | |
2335 | - if test -n "$DLLTOOL"; then | |
2336 | - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
2337 | -else | |
2338 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2339 | - ac_dummy="$PATH" | |
2340 | - for ac_dir in $ac_dummy; do | |
2341 | - test -z "$ac_dir" && ac_dir=. | |
2342 | - if test -f $ac_dir/$ac_word; then | |
2343 | - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
2344 | - break | |
2345 | - fi | |
2346 | - done | |
2347 | - IFS="$ac_save_ifs" | |
2348 | -fi | |
2349 | -fi | |
2350 | -DLLTOOL="$ac_cv_prog_DLLTOOL" | |
2351 | -if test -n "$DLLTOOL"; then | |
2352 | - echo "$ac_t""$DLLTOOL" 1>&6 | |
2353 | -else | |
2354 | - echo "$ac_t""no" 1>&6 | |
2355 | -fi | |
2356 | - | |
2357 | - | |
2358 | -if test -z "$ac_cv_prog_DLLTOOL"; then | |
2359 | -if test -n "$ac_tool_prefix"; then | |
2360 | - # Extract the first word of "dlltool", so it can be a program name with args. | |
2361 | -set dummy dlltool; ac_word=$2 | |
2362 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2363 | -echo "configure:2364: checking for $ac_word" >&5 | |
2364 | -if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then | |
2365 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2366 | -else | |
2367 | - if test -n "$DLLTOOL"; then | |
2368 | - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
2369 | -else | |
2370 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2371 | - ac_dummy="$PATH" | |
2372 | - for ac_dir in $ac_dummy; do | |
2373 | - test -z "$ac_dir" && ac_dir=. | |
2374 | - if test -f $ac_dir/$ac_word; then | |
2375 | - ac_cv_prog_DLLTOOL="dlltool" | |
2376 | - break | |
2377 | - fi | |
2378 | - done | |
2379 | - IFS="$ac_save_ifs" | |
2380 | - test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false" | |
2381 | -fi | |
2382 | -fi | |
2383 | -DLLTOOL="$ac_cv_prog_DLLTOOL" | |
2384 | -if test -n "$DLLTOOL"; then | |
2385 | - echo "$ac_t""$DLLTOOL" 1>&6 | |
2386 | -else | |
2387 | - echo "$ac_t""no" 1>&6 | |
2388 | -fi | |
2389 | - | |
2390 | -else | |
2391 | - DLLTOOL="false" | |
2392 | -fi | |
2393 | -fi | |
2394 | - | |
2395 | -# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
2396 | -set dummy ${ac_tool_prefix}as; ac_word=$2 | |
2397 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2398 | -echo "configure:2399: checking for $ac_word" >&5 | |
2399 | -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then | |
2400 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2401 | -else | |
2402 | - if test -n "$AS"; then | |
2403 | - ac_cv_prog_AS="$AS" # Let the user override the test. | |
2404 | -else | |
2405 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2406 | - ac_dummy="$PATH" | |
2407 | - for ac_dir in $ac_dummy; do | |
2408 | - test -z "$ac_dir" && ac_dir=. | |
2409 | - if test -f $ac_dir/$ac_word; then | |
2410 | - ac_cv_prog_AS="${ac_tool_prefix}as" | |
2411 | - break | |
2412 | - fi | |
2413 | - done | |
2414 | - IFS="$ac_save_ifs" | |
2415 | -fi | |
2416 | -fi | |
2417 | -AS="$ac_cv_prog_AS" | |
2418 | -if test -n "$AS"; then | |
2419 | - echo "$ac_t""$AS" 1>&6 | |
2420 | -else | |
2421 | - echo "$ac_t""no" 1>&6 | |
2422 | -fi | |
2423 | - | |
2424 | - | |
2425 | -if test -z "$ac_cv_prog_AS"; then | |
2426 | -if test -n "$ac_tool_prefix"; then | |
2427 | - # Extract the first word of "as", so it can be a program name with args. | |
2428 | -set dummy as; ac_word=$2 | |
2429 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2430 | -echo "configure:2431: checking for $ac_word" >&5 | |
2431 | -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then | |
2432 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2433 | -else | |
2434 | - if test -n "$AS"; then | |
2435 | - ac_cv_prog_AS="$AS" # Let the user override the test. | |
2436 | -else | |
2437 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2438 | - ac_dummy="$PATH" | |
2439 | - for ac_dir in $ac_dummy; do | |
2440 | - test -z "$ac_dir" && ac_dir=. | |
2441 | - if test -f $ac_dir/$ac_word; then | |
2442 | - ac_cv_prog_AS="as" | |
2443 | - break | |
2444 | - fi | |
2445 | - done | |
2446 | - IFS="$ac_save_ifs" | |
2447 | - test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false" | |
2448 | -fi | |
2449 | -fi | |
2450 | -AS="$ac_cv_prog_AS" | |
2451 | -if test -n "$AS"; then | |
2452 | - echo "$ac_t""$AS" 1>&6 | |
2453 | -else | |
2454 | - echo "$ac_t""no" 1>&6 | |
2455 | -fi | |
2456 | - | |
2457 | -else | |
2458 | - AS="false" | |
2459 | -fi | |
2460 | -fi | |
2461 | - | |
2462 | - | |
2463 | - ;; | |
2464 | 2131 | |
2465 | 2132 | esac |
2466 | 2133 | |
2467 | -# enable the --disable-libtool-lock switch | |
2468 | - | |
2469 | -# Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2470 | -if test "${enable_libtool_lock+set}" = set; then | |
2471 | - enableval="$enable_libtool_lock" | |
2472 | - need_locks=$enableval | |
2473 | -else | |
2474 | - need_locks=yes | |
2475 | -fi | |
2476 | - | |
2477 | - | |
2478 | -if test x"$need_locks" = xno; then | |
2479 | - libtool_flags="$libtool_flags --disable-lock" | |
2480 | -fi | |
2481 | - | |
2482 | 2134 | |
2483 | 2135 | # Save cache, so that ltconfig can load it |
2484 | 2136 | cat > confcache <<\EOF |
@@ -2531,8 +2183,9 @@ rm -f confcache | ||
2531 | 2183 | |
2532 | 2184 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
2533 | 2185 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
2534 | -LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ | |
2535 | -DLLTOOL="$DLLTOOL" AS="$AS" \ | |
2186 | +LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
2187 | +LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ | |
2188 | +DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ | |
2536 | 2189 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
2537 | 2190 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
2538 | 2191 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
@@ -2625,7 +2278,7 @@ EOF | ||
2625 | 2278 | esac |
2626 | 2279 | |
2627 | 2280 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
2628 | -echo "configure:2629: checking how to run the C preprocessor" >&5 | |
2281 | +echo "configure:2282: checking how to run the C preprocessor" >&5 | |
2629 | 2282 | # On Suns, sometimes $CPP names a directory. |
2630 | 2283 | if test -n "$CPP" && test -d "$CPP"; then |
2631 | 2284 | CPP= |
@@ -2640,13 +2293,13 @@ else | ||
2640 | 2293 | # On the NeXT, cc -E runs the code through the compiler's parser, |
2641 | 2294 | # not just through cpp. |
2642 | 2295 | cat > conftest.$ac_ext <<EOF |
2643 | -#line 2644 "configure" | |
2296 | +#line 2297 "configure" | |
2644 | 2297 | #include "confdefs.h" |
2645 | 2298 | #include <assert.h> |
2646 | 2299 | Syntax Error |
2647 | 2300 | EOF |
2648 | 2301 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2649 | -{ (eval echo configure:2650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2302 | +{ (eval echo configure:2303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2650 | 2303 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2651 | 2304 | if test -z "$ac_err"; then |
2652 | 2305 | : |
@@ -2657,13 +2310,13 @@ else | ||
2657 | 2310 | rm -rf conftest* |
2658 | 2311 | CPP="${CC-cc} -E -traditional-cpp" |
2659 | 2312 | cat > conftest.$ac_ext <<EOF |
2660 | -#line 2661 "configure" | |
2313 | +#line 2314 "configure" | |
2661 | 2314 | #include "confdefs.h" |
2662 | 2315 | #include <assert.h> |
2663 | 2316 | Syntax Error |
2664 | 2317 | EOF |
2665 | 2318 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2666 | -{ (eval echo configure:2667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2319 | +{ (eval echo configure:2320: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2667 | 2320 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2668 | 2321 | if test -z "$ac_err"; then |
2669 | 2322 | : |
@@ -2674,13 +2327,13 @@ else | ||
2674 | 2327 | rm -rf conftest* |
2675 | 2328 | CPP="${CC-cc} -nologo -E" |
2676 | 2329 | cat > conftest.$ac_ext <<EOF |
2677 | -#line 2678 "configure" | |
2330 | +#line 2331 "configure" | |
2678 | 2331 | #include "confdefs.h" |
2679 | 2332 | #include <assert.h> |
2680 | 2333 | Syntax Error |
2681 | 2334 | EOF |
2682 | 2335 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2683 | -{ (eval echo configure:2684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2336 | +{ (eval echo configure:2337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2684 | 2337 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2685 | 2338 | if test -z "$ac_err"; then |
2686 | 2339 | : |
@@ -2705,7 +2358,7 @@ fi | ||
2705 | 2358 | echo "$ac_t""$CPP" 1>&6 |
2706 | 2359 | |
2707 | 2360 | cat > conftest.$ac_ext <<EOF |
2708 | -#line 2709 "configure" | |
2361 | +#line 2362 "configure" | |
2709 | 2362 | #include "confdefs.h" |
2710 | 2363 | #include <stdint.h> |
2711 | 2364 | EOF |
@@ -2720,7 +2373,7 @@ fi | ||
2720 | 2373 | rm -f conftest* |
2721 | 2374 | |
2722 | 2375 | cat > conftest.$ac_ext <<EOF |
2723 | -#line 2724 "configure" | |
2376 | +#line 2377 "configure" | |
2724 | 2377 | #include "confdefs.h" |
2725 | 2378 | #include <inttypes.h> |
2726 | 2379 | EOF |
@@ -2735,7 +2388,7 @@ fi | ||
2735 | 2388 | rm -f conftest* |
2736 | 2389 | |
2737 | 2390 | cat > conftest.$ac_ext <<EOF |
2738 | -#line 2739 "configure" | |
2391 | +#line 2392 "configure" | |
2739 | 2392 | #include "confdefs.h" |
2740 | 2393 | #include <sys/types.h> |
2741 | 2394 | EOF |
@@ -2750,7 +2403,7 @@ fi | ||
2750 | 2403 | rm -f conftest* |
2751 | 2404 | |
2752 | 2405 | cat > conftest.$ac_ext <<EOF |
2753 | -#line 2754 "configure" | |
2406 | +#line 2407 "configure" | |
2754 | 2407 | #include "confdefs.h" |
2755 | 2408 | #include <sys/config.h> |
2756 | 2409 | EOF |
@@ -2767,7 +2420,7 @@ rm -f conftest* | ||
2767 | 2420 | |
2768 | 2421 | |
2769 | 2422 | cat > conftest.$ac_ext <<EOF |
2770 | -#line 2771 "configure" | |
2423 | +#line 2424 "configure" | |
2771 | 2424 | #include "confdefs.h" |
2772 | 2425 | #include <time.h> |
2773 | 2426 | EOF |
@@ -2782,7 +2435,7 @@ fi | ||
2782 | 2435 | rm -f conftest* |
2783 | 2436 | |
2784 | 2437 | cat > conftest.$ac_ext <<EOF |
2785 | -#line 2786 "configure" | |
2438 | +#line 2439 "configure" | |
2786 | 2439 | #include "confdefs.h" |
2787 | 2440 | #include <time.h> |
2788 | 2441 | EOF |
@@ -2820,7 +2473,7 @@ ZLIBSPEC= | ||
2820 | 2473 | libsubdir=.libs |
2821 | 2474 | |
2822 | 2475 | echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6 |
2823 | -echo "configure:2824: checking for garbage collector to use" >&5 | |
2476 | +echo "configure:2477: checking for garbage collector to use" >&5 | |
2824 | 2477 | # Check whether --enable-java-gc or --disable-java-gc was given. |
2825 | 2478 | if test "${enable_java_gc+set}" = set; then |
2826 | 2479 | enableval="$enable_java_gc" |
@@ -2870,7 +2523,7 @@ esac | ||
2870 | 2523 | |
2871 | 2524 | |
2872 | 2525 | echo $ac_n "checking for threads package to use""... $ac_c" 1>&6 |
2873 | -echo "configure:2874: checking for threads package to use" >&5 | |
2526 | +echo "configure:2527: checking for threads package to use" >&5 | |
2874 | 2527 | # Check whether --enable-threads or --disable-threads was given. |
2875 | 2528 | if test "${enable_threads+set}" = set; then |
2876 | 2529 | enableval="$enable_threads" |
@@ -3062,12 +2715,12 @@ else | ||
3062 | 2715 | for ac_func in strerror ioctl select open fsync sleep |
3063 | 2716 | do |
3064 | 2717 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3065 | -echo "configure:3066: checking for $ac_func" >&5 | |
2718 | +echo "configure:2719: checking for $ac_func" >&5 | |
3066 | 2719 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3067 | 2720 | echo $ac_n "(cached) $ac_c" 1>&6 |
3068 | 2721 | else |
3069 | 2722 | cat > conftest.$ac_ext <<EOF |
3070 | -#line 3071 "configure" | |
2723 | +#line 2724 "configure" | |
3071 | 2724 | #include "confdefs.h" |
3072 | 2725 | /* System header to define __stub macros and hopefully few prototypes, |
3073 | 2726 | which can conflict with char $ac_func(); below. */ |
@@ -3090,7 +2743,7 @@ $ac_func(); | ||
3090 | 2743 | |
3091 | 2744 | ; return 0; } |
3092 | 2745 | EOF |
3093 | -if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2746 | +if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3094 | 2747 | rm -rf conftest* |
3095 | 2748 | eval "ac_cv_func_$ac_func=yes" |
3096 | 2749 | else |
@@ -3117,12 +2770,12 @@ done | ||
3117 | 2770 | for ac_func in ctime_r ctime |
3118 | 2771 | do |
3119 | 2772 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3120 | -echo "configure:3121: checking for $ac_func" >&5 | |
2773 | +echo "configure:2774: checking for $ac_func" >&5 | |
3121 | 2774 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3122 | 2775 | echo $ac_n "(cached) $ac_c" 1>&6 |
3123 | 2776 | else |
3124 | 2777 | cat > conftest.$ac_ext <<EOF |
3125 | -#line 3126 "configure" | |
2778 | +#line 2779 "configure" | |
3126 | 2779 | #include "confdefs.h" |
3127 | 2780 | /* System header to define __stub macros and hopefully few prototypes, |
3128 | 2781 | which can conflict with char $ac_func(); below. */ |
@@ -3145,7 +2798,7 @@ $ac_func(); | ||
3145 | 2798 | |
3146 | 2799 | ; return 0; } |
3147 | 2800 | EOF |
3148 | -if { (eval echo configure:3149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2801 | +if { (eval echo configure:2802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3149 | 2802 | rm -rf conftest* |
3150 | 2803 | eval "ac_cv_func_$ac_func=yes" |
3151 | 2804 | else |
@@ -3172,12 +2825,12 @@ done | ||
3172 | 2825 | for ac_func in gmtime_r localtime_r readdir_r getpwuid_r |
3173 | 2826 | do |
3174 | 2827 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3175 | -echo "configure:3176: checking for $ac_func" >&5 | |
2828 | +echo "configure:2829: checking for $ac_func" >&5 | |
3176 | 2829 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3177 | 2830 | echo $ac_n "(cached) $ac_c" 1>&6 |
3178 | 2831 | else |
3179 | 2832 | cat > conftest.$ac_ext <<EOF |
3180 | -#line 3181 "configure" | |
2833 | +#line 2834 "configure" | |
3181 | 2834 | #include "confdefs.h" |
3182 | 2835 | /* System header to define __stub macros and hopefully few prototypes, |
3183 | 2836 | which can conflict with char $ac_func(); below. */ |
@@ -3200,7 +2853,7 @@ $ac_func(); | ||
3200 | 2853 | |
3201 | 2854 | ; return 0; } |
3202 | 2855 | EOF |
3203 | -if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2856 | +if { (eval echo configure:2857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3204 | 2857 | rm -rf conftest* |
3205 | 2858 | eval "ac_cv_func_$ac_func=yes" |
3206 | 2859 | else |
@@ -3227,12 +2880,12 @@ done | ||
3227 | 2880 | for ac_func in access stat mkdir rename rmdir unlink realpath |
3228 | 2881 | do |
3229 | 2882 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3230 | -echo "configure:3231: checking for $ac_func" >&5 | |
2883 | +echo "configure:2884: checking for $ac_func" >&5 | |
3231 | 2884 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3232 | 2885 | echo $ac_n "(cached) $ac_c" 1>&6 |
3233 | 2886 | else |
3234 | 2887 | cat > conftest.$ac_ext <<EOF |
3235 | -#line 3236 "configure" | |
2888 | +#line 2889 "configure" | |
3236 | 2889 | #include "confdefs.h" |
3237 | 2890 | /* System header to define __stub macros and hopefully few prototypes, |
3238 | 2891 | which can conflict with char $ac_func(); below. */ |
@@ -3255,7 +2908,7 @@ $ac_func(); | ||
3255 | 2908 | |
3256 | 2909 | ; return 0; } |
3257 | 2910 | EOF |
3258 | -if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2911 | +if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3259 | 2912 | rm -rf conftest* |
3260 | 2913 | eval "ac_cv_func_$ac_func=yes" |
3261 | 2914 | else |
@@ -3282,12 +2935,12 @@ done | ||
3282 | 2935 | for ac_func in inet_aton inet_addr |
3283 | 2936 | do |
3284 | 2937 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3285 | -echo "configure:3286: checking for $ac_func" >&5 | |
2938 | +echo "configure:2939: checking for $ac_func" >&5 | |
3286 | 2939 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3287 | 2940 | echo $ac_n "(cached) $ac_c" 1>&6 |
3288 | 2941 | else |
3289 | 2942 | cat > conftest.$ac_ext <<EOF |
3290 | -#line 3291 "configure" | |
2943 | +#line 2944 "configure" | |
3291 | 2944 | #include "confdefs.h" |
3292 | 2945 | /* System header to define __stub macros and hopefully few prototypes, |
3293 | 2946 | which can conflict with char $ac_func(); below. */ |
@@ -3310,7 +2963,7 @@ $ac_func(); | ||
3310 | 2963 | |
3311 | 2964 | ; return 0; } |
3312 | 2965 | EOF |
3313 | -if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2966 | +if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3314 | 2967 | rm -rf conftest* |
3315 | 2968 | eval "ac_cv_func_$ac_func=yes" |
3316 | 2969 | else |
@@ -3337,12 +2990,12 @@ done | ||
3337 | 2990 | for ac_func in inet_pton uname |
3338 | 2991 | do |
3339 | 2992 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3340 | -echo "configure:3341: checking for $ac_func" >&5 | |
2993 | +echo "configure:2994: checking for $ac_func" >&5 | |
3341 | 2994 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3342 | 2995 | echo $ac_n "(cached) $ac_c" 1>&6 |
3343 | 2996 | else |
3344 | 2997 | cat > conftest.$ac_ext <<EOF |
3345 | -#line 3346 "configure" | |
2998 | +#line 2999 "configure" | |
3346 | 2999 | #include "confdefs.h" |
3347 | 3000 | /* System header to define __stub macros and hopefully few prototypes, |
3348 | 3001 | which can conflict with char $ac_func(); below. */ |
@@ -3365,7 +3018,7 @@ $ac_func(); | ||
3365 | 3018 | |
3366 | 3019 | ; return 0; } |
3367 | 3020 | EOF |
3368 | -if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3021 | +if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3369 | 3022 | rm -rf conftest* |
3370 | 3023 | eval "ac_cv_func_$ac_func=yes" |
3371 | 3024 | else |
@@ -3393,12 +3046,12 @@ done | ||
3393 | 3046 | for ac_func in gethostbyname_r |
3394 | 3047 | do |
3395 | 3048 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3396 | -echo "configure:3397: checking for $ac_func" >&5 | |
3049 | +echo "configure:3050: checking for $ac_func" >&5 | |
3397 | 3050 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3398 | 3051 | echo $ac_n "(cached) $ac_c" 1>&6 |
3399 | 3052 | else |
3400 | 3053 | cat > conftest.$ac_ext <<EOF |
3401 | -#line 3402 "configure" | |
3054 | +#line 3055 "configure" | |
3402 | 3055 | #include "confdefs.h" |
3403 | 3056 | /* System header to define __stub macros and hopefully few prototypes, |
3404 | 3057 | which can conflict with char $ac_func(); below. */ |
@@ -3421,7 +3074,7 @@ $ac_func(); | ||
3421 | 3074 | |
3422 | 3075 | ; return 0; } |
3423 | 3076 | EOF |
3424 | -if { (eval echo configure:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3077 | +if { (eval echo configure:3078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3425 | 3078 | rm -rf conftest* |
3426 | 3079 | eval "ac_cv_func_$ac_func=yes" |
3427 | 3080 | else |
@@ -3448,7 +3101,7 @@ EOF | ||
3448 | 3101 | # We look for the one that returns `int'. |
3449 | 3102 | # Hopefully this check is robust enough. |
3450 | 3103 | cat > conftest.$ac_ext <<EOF |
3451 | -#line 3452 "configure" | |
3104 | +#line 3105 "configure" | |
3452 | 3105 | #include "confdefs.h" |
3453 | 3106 | #include <netdb.h> |
3454 | 3107 | EOF |
@@ -3468,7 +3121,7 @@ rm -f conftest* | ||
3468 | 3121 | *" -D_REENTRANT "*) ;; |
3469 | 3122 | *) |
3470 | 3123 | echo $ac_n "checking whether gethostbyname_r declaration requires -D_REENTRANT""... $ac_c" 1>&6 |
3471 | -echo "configure:3472: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5 | |
3124 | +echo "configure:3125: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5 | |
3472 | 3125 | if eval "test \"`echo '$''{'libjava_cv_gethostbyname_r_needs_reentrant'+set}'`\" = set"; then |
3473 | 3126 | echo $ac_n "(cached) $ac_c" 1>&6 |
3474 | 3127 | else |
@@ -3481,14 +3134,14 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes | ||
3481 | 3134 | cross_compiling=$ac_cv_prog_cxx_cross |
3482 | 3135 | |
3483 | 3136 | cat > conftest.$ac_ext <<EOF |
3484 | -#line 3485 "configure" | |
3137 | +#line 3138 "configure" | |
3485 | 3138 | #include "confdefs.h" |
3486 | 3139 | #include <netdb.h> |
3487 | 3140 | int main() { |
3488 | 3141 | gethostbyname_r("", 0, 0); |
3489 | 3142 | ; return 0; } |
3490 | 3143 | EOF |
3491 | -if { (eval echo configure:3492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3144 | +if { (eval echo configure:3145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3492 | 3145 | rm -rf conftest* |
3493 | 3146 | libjava_cv_gethostbyname_r_needs_reentrant=no |
3494 | 3147 | else |
@@ -3498,14 +3151,14 @@ else | ||
3498 | 3151 | CPPFLAGS_SAVE="$CPPFLAGS" |
3499 | 3152 | CPPFLAGS="$CPPFLAGS -D_REENTRANT" |
3500 | 3153 | cat > conftest.$ac_ext <<EOF |
3501 | -#line 3502 "configure" | |
3154 | +#line 3155 "configure" | |
3502 | 3155 | #include "confdefs.h" |
3503 | 3156 | #include <netdb.h> |
3504 | 3157 | int main() { |
3505 | 3158 | gethostbyname_r("", 0, 0); |
3506 | 3159 | ; return 0; } |
3507 | 3160 | EOF |
3508 | -if { (eval echo configure:3509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3161 | +if { (eval echo configure:3162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3509 | 3162 | rm -rf conftest* |
3510 | 3163 | libjava_cv_gethostbyname_r_needs_reentrant=yes |
3511 | 3164 | else |
@@ -3540,12 +3193,12 @@ EOF | ||
3540 | 3193 | esac |
3541 | 3194 | |
3542 | 3195 | echo $ac_n "checking for struct hostent_data""... $ac_c" 1>&6 |
3543 | -echo "configure:3544: checking for struct hostent_data" >&5 | |
3196 | +echo "configure:3197: checking for struct hostent_data" >&5 | |
3544 | 3197 | if eval "test \"`echo '$''{'libjava_cv_struct_hostent_data'+set}'`\" = set"; then |
3545 | 3198 | echo $ac_n "(cached) $ac_c" 1>&6 |
3546 | 3199 | else |
3547 | 3200 | cat > conftest.$ac_ext <<EOF |
3548 | -#line 3549 "configure" | |
3201 | +#line 3202 "configure" | |
3549 | 3202 | #include "confdefs.h" |
3550 | 3203 | |
3551 | 3204 | #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT) |
@@ -3556,7 +3209,7 @@ int main() { | ||
3556 | 3209 | struct hostent_data data; |
3557 | 3210 | ; return 0; } |
3558 | 3211 | EOF |
3559 | -if { (eval echo configure:3560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3212 | +if { (eval echo configure:3213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
3560 | 3213 | rm -rf conftest* |
3561 | 3214 | libjava_cv_struct_hostent_data=yes |
3562 | 3215 | else |
@@ -3585,12 +3238,12 @@ done | ||
3585 | 3238 | for ac_func in gethostbyaddr_r |
3586 | 3239 | do |
3587 | 3240 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3588 | -echo "configure:3589: checking for $ac_func" >&5 | |
3241 | +echo "configure:3242: checking for $ac_func" >&5 | |
3589 | 3242 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3590 | 3243 | echo $ac_n "(cached) $ac_c" 1>&6 |
3591 | 3244 | else |
3592 | 3245 | cat > conftest.$ac_ext <<EOF |
3593 | -#line 3594 "configure" | |
3246 | +#line 3247 "configure" | |
3594 | 3247 | #include "confdefs.h" |
3595 | 3248 | /* System header to define __stub macros and hopefully few prototypes, |
3596 | 3249 | which can conflict with char $ac_func(); below. */ |
@@ -3613,7 +3266,7 @@ $ac_func(); | ||
3613 | 3266 | |
3614 | 3267 | ; return 0; } |
3615 | 3268 | EOF |
3616 | -if { (eval echo configure:3617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3269 | +if { (eval echo configure:3270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3617 | 3270 | rm -rf conftest* |
3618 | 3271 | eval "ac_cv_func_$ac_func=yes" |
3619 | 3272 | else |
@@ -3640,7 +3293,7 @@ EOF | ||
3640 | 3293 | # We look for the one that returns `int'. |
3641 | 3294 | # Hopefully this check is robust enough. |
3642 | 3295 | cat > conftest.$ac_ext <<EOF |
3643 | -#line 3644 "configure" | |
3296 | +#line 3297 "configure" | |
3644 | 3297 | #include "confdefs.h" |
3645 | 3298 | #include <netdb.h> |
3646 | 3299 | EOF |
@@ -3664,12 +3317,12 @@ done | ||
3664 | 3317 | for ac_func in gethostname |
3665 | 3318 | do |
3666 | 3319 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3667 | -echo "configure:3668: checking for $ac_func" >&5 | |
3320 | +echo "configure:3321: checking for $ac_func" >&5 | |
3668 | 3321 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3669 | 3322 | echo $ac_n "(cached) $ac_c" 1>&6 |
3670 | 3323 | else |
3671 | 3324 | cat > conftest.$ac_ext <<EOF |
3672 | -#line 3673 "configure" | |
3325 | +#line 3326 "configure" | |
3673 | 3326 | #include "confdefs.h" |
3674 | 3327 | /* System header to define __stub macros and hopefully few prototypes, |
3675 | 3328 | which can conflict with char $ac_func(); below. */ |
@@ -3692,7 +3345,7 @@ $ac_func(); | ||
3692 | 3345 | |
3693 | 3346 | ; return 0; } |
3694 | 3347 | EOF |
3695 | -if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3348 | +if { (eval echo configure:3349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3696 | 3349 | rm -rf conftest* |
3697 | 3350 | eval "ac_cv_func_$ac_func=yes" |
3698 | 3351 | else |
@@ -3716,7 +3369,7 @@ EOF | ||
3716 | 3369 | EOF |
3717 | 3370 | |
3718 | 3371 | cat > conftest.$ac_ext <<EOF |
3719 | -#line 3720 "configure" | |
3372 | +#line 3373 "configure" | |
3720 | 3373 | #include "confdefs.h" |
3721 | 3374 | #include <unistd.h> |
3722 | 3375 | EOF |
@@ -3743,12 +3396,12 @@ done | ||
3743 | 3396 | for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np sched_yield |
3744 | 3397 | do |
3745 | 3398 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3746 | -echo "configure:3747: checking for $ac_func" >&5 | |
3399 | +echo "configure:3400: checking for $ac_func" >&5 | |
3747 | 3400 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3748 | 3401 | echo $ac_n "(cached) $ac_c" 1>&6 |
3749 | 3402 | else |
3750 | 3403 | cat > conftest.$ac_ext <<EOF |
3751 | -#line 3752 "configure" | |
3404 | +#line 3405 "configure" | |
3752 | 3405 | #include "confdefs.h" |
3753 | 3406 | /* System header to define __stub macros and hopefully few prototypes, |
3754 | 3407 | which can conflict with char $ac_func(); below. */ |
@@ -3771,7 +3424,7 @@ $ac_func(); | ||
3771 | 3424 | |
3772 | 3425 | ; return 0; } |
3773 | 3426 | EOF |
3774 | -if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3427 | +if { (eval echo configure:3428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3775 | 3428 | rm -rf conftest* |
3776 | 3429 | eval "ac_cv_func_$ac_func=yes" |
3777 | 3430 | else |
@@ -3799,12 +3452,12 @@ done | ||
3799 | 3452 | for ac_func in sched_yield |
3800 | 3453 | do |
3801 | 3454 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3802 | -echo "configure:3803: checking for $ac_func" >&5 | |
3455 | +echo "configure:3456: checking for $ac_func" >&5 | |
3803 | 3456 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3804 | 3457 | echo $ac_n "(cached) $ac_c" 1>&6 |
3805 | 3458 | else |
3806 | 3459 | cat > conftest.$ac_ext <<EOF |
3807 | -#line 3808 "configure" | |
3460 | +#line 3461 "configure" | |
3808 | 3461 | #include "confdefs.h" |
3809 | 3462 | /* System header to define __stub macros and hopefully few prototypes, |
3810 | 3463 | which can conflict with char $ac_func(); below. */ |
@@ -3827,7 +3480,7 @@ $ac_func(); | ||
3827 | 3480 | |
3828 | 3481 | ; return 0; } |
3829 | 3482 | EOF |
3830 | -if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3483 | +if { (eval echo configure:3484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3831 | 3484 | rm -rf conftest* |
3832 | 3485 | eval "ac_cv_func_$ac_func=yes" |
3833 | 3486 | else |
@@ -3849,7 +3502,7 @@ EOF | ||
3849 | 3502 | else |
3850 | 3503 | echo "$ac_t""no" 1>&6 |
3851 | 3504 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
3852 | -echo "configure:3853: checking for sched_yield in -lposix4" >&5 | |
3505 | +echo "configure:3506: checking for sched_yield in -lposix4" >&5 | |
3853 | 3506 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
3854 | 3507 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
3855 | 3508 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -3857,7 +3510,7 @@ else | ||
3857 | 3510 | ac_save_LIBS="$LIBS" |
3858 | 3511 | LIBS="-lposix4 $LIBS" |
3859 | 3512 | cat > conftest.$ac_ext <<EOF |
3860 | -#line 3861 "configure" | |
3513 | +#line 3514 "configure" | |
3861 | 3514 | #include "confdefs.h" |
3862 | 3515 | /* Override any gcc2 internal prototype to avoid an error. */ |
3863 | 3516 | /* We use char because int might match the return type of a gcc2 |
@@ -3868,7 +3521,7 @@ int main() { | ||
3868 | 3521 | sched_yield() |
3869 | 3522 | ; return 0; } |
3870 | 3523 | EOF |
3871 | -if { (eval echo configure:3872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3524 | +if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3872 | 3525 | rm -rf conftest* |
3873 | 3526 | eval "ac_cv_lib_$ac_lib_var=yes" |
3874 | 3527 | else |
@@ -3903,12 +3556,12 @@ done | ||
3903 | 3556 | for ac_func in gettimeofday time ftime |
3904 | 3557 | do |
3905 | 3558 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3906 | -echo "configure:3907: checking for $ac_func" >&5 | |
3559 | +echo "configure:3560: checking for $ac_func" >&5 | |
3907 | 3560 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3908 | 3561 | echo $ac_n "(cached) $ac_c" 1>&6 |
3909 | 3562 | else |
3910 | 3563 | cat > conftest.$ac_ext <<EOF |
3911 | -#line 3912 "configure" | |
3564 | +#line 3565 "configure" | |
3912 | 3565 | #include "confdefs.h" |
3913 | 3566 | /* System header to define __stub macros and hopefully few prototypes, |
3914 | 3567 | which can conflict with char $ac_func(); below. */ |
@@ -3931,7 +3584,7 @@ $ac_func(); | ||
3931 | 3584 | |
3932 | 3585 | ; return 0; } |
3933 | 3586 | EOF |
3934 | -if { (eval echo configure:3935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3587 | +if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3935 | 3588 | rm -rf conftest* |
3936 | 3589 | eval "ac_cv_func_$ac_func=yes" |
3937 | 3590 | else |
@@ -3962,12 +3615,12 @@ done | ||
3962 | 3615 | for ac_func in memmove |
3963 | 3616 | do |
3964 | 3617 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
3965 | -echo "configure:3966: checking for $ac_func" >&5 | |
3618 | +echo "configure:3619: checking for $ac_func" >&5 | |
3966 | 3619 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3967 | 3620 | echo $ac_n "(cached) $ac_c" 1>&6 |
3968 | 3621 | else |
3969 | 3622 | cat > conftest.$ac_ext <<EOF |
3970 | -#line 3971 "configure" | |
3623 | +#line 3624 "configure" | |
3971 | 3624 | #include "confdefs.h" |
3972 | 3625 | /* System header to define __stub macros and hopefully few prototypes, |
3973 | 3626 | which can conflict with char $ac_func(); below. */ |
@@ -3990,7 +3643,7 @@ $ac_func(); | ||
3990 | 3643 | |
3991 | 3644 | ; return 0; } |
3992 | 3645 | EOF |
3993 | -if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3646 | +if { (eval echo configure:3647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3994 | 3647 | rm -rf conftest* |
3995 | 3648 | eval "ac_cv_func_$ac_func=yes" |
3996 | 3649 | else |
@@ -4020,12 +3673,12 @@ done | ||
4020 | 3673 | for ac_func in memcpy |
4021 | 3674 | do |
4022 | 3675 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4023 | -echo "configure:4024: checking for $ac_func" >&5 | |
3676 | +echo "configure:3677: checking for $ac_func" >&5 | |
4024 | 3677 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4025 | 3678 | echo $ac_n "(cached) $ac_c" 1>&6 |
4026 | 3679 | else |
4027 | 3680 | cat > conftest.$ac_ext <<EOF |
4028 | -#line 4029 "configure" | |
3681 | +#line 3682 "configure" | |
4029 | 3682 | #include "confdefs.h" |
4030 | 3683 | /* System header to define __stub macros and hopefully few prototypes, |
4031 | 3684 | which can conflict with char $ac_func(); below. */ |
@@ -4048,7 +3701,7 @@ $ac_func(); | ||
4048 | 3701 | |
4049 | 3702 | ; return 0; } |
4050 | 3703 | EOF |
4051 | -if { (eval echo configure:4052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3704 | +if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4052 | 3705 | rm -rf conftest* |
4053 | 3706 | eval "ac_cv_func_$ac_func=yes" |
4054 | 3707 | else |
@@ -4096,7 +3749,7 @@ done | ||
4096 | 3749 | #-------------------------------------------------------------------- |
4097 | 3750 | |
4098 | 3751 | echo $ac_n "checking for socket libraries""... $ac_c" 1>&6 |
4099 | -echo "configure:4100: checking for socket libraries" >&5 | |
3752 | +echo "configure:3753: checking for socket libraries" >&5 | |
4100 | 3753 | if eval "test \"`echo '$''{'gcj_cv_lib_sockets'+set}'`\" = set"; then |
4101 | 3754 | echo $ac_n "(cached) $ac_c" 1>&6 |
4102 | 3755 | else |
@@ -4104,12 +3757,12 @@ else | ||
4104 | 3757 | gcj_checkBoth=0 |
4105 | 3758 | unset ac_cv_func_connect |
4106 | 3759 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
4107 | -echo "configure:4108: checking for connect" >&5 | |
3760 | +echo "configure:3761: checking for connect" >&5 | |
4108 | 3761 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
4109 | 3762 | echo $ac_n "(cached) $ac_c" 1>&6 |
4110 | 3763 | else |
4111 | 3764 | cat > conftest.$ac_ext <<EOF |
4112 | -#line 4113 "configure" | |
3765 | +#line 3766 "configure" | |
4113 | 3766 | #include "confdefs.h" |
4114 | 3767 | /* System header to define __stub macros and hopefully few prototypes, |
4115 | 3768 | which can conflict with char connect(); below. */ |
@@ -4132,7 +3785,7 @@ connect(); | ||
4132 | 3785 | |
4133 | 3786 | ; return 0; } |
4134 | 3787 | EOF |
4135 | -if { (eval echo configure:4136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3788 | +if { (eval echo configure:3789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4136 | 3789 | rm -rf conftest* |
4137 | 3790 | eval "ac_cv_func_connect=yes" |
4138 | 3791 | else |
@@ -4155,7 +3808,7 @@ fi | ||
4155 | 3808 | if test "$gcj_checkSocket" = 1; then |
4156 | 3809 | unset ac_cv_func_connect |
4157 | 3810 | echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 |
4158 | -echo "configure:4159: checking for main in -lsocket" >&5 | |
3811 | +echo "configure:3812: checking for main in -lsocket" >&5 | |
4159 | 3812 | ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` |
4160 | 3813 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4161 | 3814 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -4163,14 +3816,14 @@ else | ||
4163 | 3816 | ac_save_LIBS="$LIBS" |
4164 | 3817 | LIBS="-lsocket $LIBS" |
4165 | 3818 | cat > conftest.$ac_ext <<EOF |
4166 | -#line 4167 "configure" | |
3819 | +#line 3820 "configure" | |
4167 | 3820 | #include "confdefs.h" |
4168 | 3821 | |
4169 | 3822 | int main() { |
4170 | 3823 | main() |
4171 | 3824 | ; return 0; } |
4172 | 3825 | EOF |
4173 | -if { (eval echo configure:4174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3826 | +if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4174 | 3827 | rm -rf conftest* |
4175 | 3828 | eval "ac_cv_lib_$ac_lib_var=yes" |
4176 | 3829 | else |
@@ -4197,12 +3850,12 @@ fi | ||
4197 | 3850 | LIBS="$LIBS -lsocket -lnsl" |
4198 | 3851 | unset ac_cv_func_accept |
4199 | 3852 | echo $ac_n "checking for accept""... $ac_c" 1>&6 |
4200 | -echo "configure:4201: checking for accept" >&5 | |
3853 | +echo "configure:3854: checking for accept" >&5 | |
4201 | 3854 | if eval "test \"`echo '$''{'ac_cv_func_accept'+set}'`\" = set"; then |
4202 | 3855 | echo $ac_n "(cached) $ac_c" 1>&6 |
4203 | 3856 | else |
4204 | 3857 | cat > conftest.$ac_ext <<EOF |
4205 | -#line 4206 "configure" | |
3858 | +#line 3859 "configure" | |
4206 | 3859 | #include "confdefs.h" |
4207 | 3860 | /* System header to define __stub macros and hopefully few prototypes, |
4208 | 3861 | which can conflict with char accept(); below. */ |
@@ -4225,7 +3878,7 @@ accept(); | ||
4225 | 3878 | |
4226 | 3879 | ; return 0; } |
4227 | 3880 | EOF |
4228 | -if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3881 | +if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4229 | 3882 | rm -rf conftest* |
4230 | 3883 | eval "ac_cv_func_accept=yes" |
4231 | 3884 | else |
@@ -4252,12 +3905,12 @@ fi | ||
4252 | 3905 | gcj_oldLibs=$LIBS |
4253 | 3906 | LIBS="$LIBS $gcj_cv_lib_sockets" |
4254 | 3907 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
4255 | -echo "configure:4256: checking for gethostbyname" >&5 | |
3908 | +echo "configure:3909: checking for gethostbyname" >&5 | |
4256 | 3909 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
4257 | 3910 | echo $ac_n "(cached) $ac_c" 1>&6 |
4258 | 3911 | else |
4259 | 3912 | cat > conftest.$ac_ext <<EOF |
4260 | -#line 4261 "configure" | |
3913 | +#line 3914 "configure" | |
4261 | 3914 | #include "confdefs.h" |
4262 | 3915 | /* System header to define __stub macros and hopefully few prototypes, |
4263 | 3916 | which can conflict with char gethostbyname(); below. */ |
@@ -4280,7 +3933,7 @@ gethostbyname(); | ||
4280 | 3933 | |
4281 | 3934 | ; return 0; } |
4282 | 3935 | EOF |
4283 | -if { (eval echo configure:4284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3936 | +if { (eval echo configure:3937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4284 | 3937 | rm -rf conftest* |
4285 | 3938 | eval "ac_cv_func_gethostbyname=yes" |
4286 | 3939 | else |
@@ -4298,7 +3951,7 @@ if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | ||
4298 | 3951 | else |
4299 | 3952 | echo "$ac_t""no" 1>&6 |
4300 | 3953 | echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 |
4301 | -echo "configure:4302: checking for main in -lnsl" >&5 | |
3954 | +echo "configure:3955: checking for main in -lnsl" >&5 | |
4302 | 3955 | ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` |
4303 | 3956 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4304 | 3957 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -4306,14 +3959,14 @@ else | ||
4306 | 3959 | ac_save_LIBS="$LIBS" |
4307 | 3960 | LIBS="-lnsl $LIBS" |
4308 | 3961 | cat > conftest.$ac_ext <<EOF |
4309 | -#line 4310 "configure" | |
3962 | +#line 3963 "configure" | |
4310 | 3963 | #include "confdefs.h" |
4311 | 3964 | |
4312 | 3965 | int main() { |
4313 | 3966 | main() |
4314 | 3967 | ; return 0; } |
4315 | 3968 | EOF |
4316 | -if { (eval echo configure:4317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
3969 | +if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4317 | 3970 | rm -rf conftest* |
4318 | 3971 | eval "ac_cv_lib_$ac_lib_var=yes" |
4319 | 3972 | else |
@@ -4345,7 +3998,7 @@ echo "$ac_t""$gcj_cv_lib_sockets" 1>&6 | ||
4345 | 3998 | |
4346 | 3999 | if test "$with_system_zlib" = yes; then |
4347 | 4000 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
4348 | -echo "configure:4349: checking for deflate in -lz" >&5 | |
4001 | +echo "configure:4002: checking for deflate in -lz" >&5 | |
4349 | 4002 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
4350 | 4003 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4351 | 4004 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -4353,7 +4006,7 @@ else | ||
4353 | 4006 | ac_save_LIBS="$LIBS" |
4354 | 4007 | LIBS="-lz $LIBS" |
4355 | 4008 | cat > conftest.$ac_ext <<EOF |
4356 | -#line 4357 "configure" | |
4009 | +#line 4010 "configure" | |
4357 | 4010 | #include "confdefs.h" |
4358 | 4011 | /* Override any gcc2 internal prototype to avoid an error. */ |
4359 | 4012 | /* We use char because int might match the return type of a gcc2 |
@@ -4364,7 +4017,7 @@ int main() { | ||
4364 | 4017 | deflate() |
4365 | 4018 | ; return 0; } |
4366 | 4019 | EOF |
4367 | -if { (eval echo configure:4368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4020 | +if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4368 | 4021 | rm -rf conftest* |
4369 | 4022 | eval "ac_cv_lib_$ac_lib_var=yes" |
4370 | 4023 | else |
@@ -4393,7 +4046,7 @@ fi | ||
4393 | 4046 | # requires -ldl. |
4394 | 4047 | if test "$GC" = boehm; then |
4395 | 4048 | echo $ac_n "checking for main in -ldl""... $ac_c" 1>&6 |
4396 | -echo "configure:4397: checking for main in -ldl" >&5 | |
4049 | +echo "configure:4050: checking for main in -ldl" >&5 | |
4397 | 4050 | ac_lib_var=`echo dl'_'main | sed 'y%./+-%__p_%'` |
4398 | 4051 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4399 | 4052 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -4401,14 +4054,14 @@ else | ||
4401 | 4054 | ac_save_LIBS="$LIBS" |
4402 | 4055 | LIBS="-ldl $LIBS" |
4403 | 4056 | cat > conftest.$ac_ext <<EOF |
4404 | -#line 4405 "configure" | |
4057 | +#line 4058 "configure" | |
4405 | 4058 | #include "confdefs.h" |
4406 | 4059 | |
4407 | 4060 | int main() { |
4408 | 4061 | main() |
4409 | 4062 | ; return 0; } |
4410 | 4063 | EOF |
4411 | -if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4064 | +if { (eval echo configure:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4412 | 4065 | rm -rf conftest* |
4413 | 4066 | eval "ac_cv_lib_$ac_lib_var=yes" |
4414 | 4067 | else |
@@ -4517,17 +4170,17 @@ for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/ | ||
4517 | 4170 | do |
4518 | 4171 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4519 | 4172 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4520 | -echo "configure:4521: checking for $ac_hdr" >&5 | |
4173 | +echo "configure:4174: checking for $ac_hdr" >&5 | |
4521 | 4174 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4522 | 4175 | echo $ac_n "(cached) $ac_c" 1>&6 |
4523 | 4176 | else |
4524 | 4177 | cat > conftest.$ac_ext <<EOF |
4525 | -#line 4526 "configure" | |
4178 | +#line 4179 "configure" | |
4526 | 4179 | #include "confdefs.h" |
4527 | 4180 | #include <$ac_hdr> |
4528 | 4181 | EOF |
4529 | 4182 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4530 | -{ (eval echo configure:4531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
4183 | +{ (eval echo configure:4184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
4531 | 4184 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4532 | 4185 | if test -z "$ac_err"; then |
4533 | 4186 | rm -rf conftest* |
@@ -4557,17 +4210,17 @@ for ac_hdr in dirent.h | ||
4557 | 4210 | do |
4558 | 4211 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
4559 | 4212 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
4560 | -echo "configure:4561: checking for $ac_hdr" >&5 | |
4213 | +echo "configure:4214: checking for $ac_hdr" >&5 | |
4561 | 4214 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4562 | 4215 | echo $ac_n "(cached) $ac_c" 1>&6 |
4563 | 4216 | else |
4564 | 4217 | cat > conftest.$ac_ext <<EOF |
4565 | -#line 4566 "configure" | |
4218 | +#line 4219 "configure" | |
4566 | 4219 | #include "confdefs.h" |
4567 | 4220 | #include <$ac_hdr> |
4568 | 4221 | EOF |
4569 | 4222 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4570 | -{ (eval echo configure:4571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
4223 | +{ (eval echo configure:4224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
4571 | 4224 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4572 | 4225 | if test -z "$ac_err"; then |
4573 | 4226 | rm -rf conftest* |
@@ -4595,16 +4248,16 @@ done | ||
4595 | 4248 | |
4596 | 4249 | |
4597 | 4250 | echo $ac_n "checking whether struct sockaddr_in6 is in netinet/in.h""... $ac_c" 1>&6 |
4598 | -echo "configure:4599: checking whether struct sockaddr_in6 is in netinet/in.h" >&5 | |
4251 | +echo "configure:4252: checking whether struct sockaddr_in6 is in netinet/in.h" >&5 | |
4599 | 4252 | cat > conftest.$ac_ext <<EOF |
4600 | -#line 4601 "configure" | |
4253 | +#line 4254 "configure" | |
4601 | 4254 | #include "confdefs.h" |
4602 | 4255 | #include <netinet/in.h> |
4603 | 4256 | int main() { |
4604 | 4257 | struct sockaddr_in6 addr6; |
4605 | 4258 | ; return 0; } |
4606 | 4259 | EOF |
4607 | -if { (eval echo configure:4608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4260 | +if { (eval echo configure:4261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4608 | 4261 | rm -rf conftest* |
4609 | 4262 | cat >> confdefs.h <<\EOF |
4610 | 4263 | #define HAVE_INET6 1 |
@@ -4620,16 +4273,16 @@ fi | ||
4620 | 4273 | rm -f conftest* |
4621 | 4274 | |
4622 | 4275 | echo $ac_n "checking for socklen_t in sys/socket.h""... $ac_c" 1>&6 |
4623 | -echo "configure:4624: checking for socklen_t in sys/socket.h" >&5 | |
4276 | +echo "configure:4277: checking for socklen_t in sys/socket.h" >&5 | |
4624 | 4277 | cat > conftest.$ac_ext <<EOF |
4625 | -#line 4626 "configure" | |
4278 | +#line 4279 "configure" | |
4626 | 4279 | #include "confdefs.h" |
4627 | 4280 | #include <sys/socket.h> |
4628 | 4281 | int main() { |
4629 | 4282 | socklen_t x = 5; |
4630 | 4283 | ; return 0; } |
4631 | 4284 | EOF |
4632 | -if { (eval echo configure:4633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4285 | +if { (eval echo configure:4286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4633 | 4286 | rm -rf conftest* |
4634 | 4287 | cat >> confdefs.h <<\EOF |
4635 | 4288 | #define HAVE_SOCKLEN_T 1 |
@@ -4645,16 +4298,16 @@ fi | ||
4645 | 4298 | rm -f conftest* |
4646 | 4299 | |
4647 | 4300 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
4648 | -echo "configure:4649: checking for tm_gmtoff in struct tm" >&5 | |
4301 | +echo "configure:4302: checking for tm_gmtoff in struct tm" >&5 | |
4649 | 4302 | cat > conftest.$ac_ext <<EOF |
4650 | -#line 4651 "configure" | |
4303 | +#line 4304 "configure" | |
4651 | 4304 | #include "confdefs.h" |
4652 | 4305 | #include <time.h> |
4653 | 4306 | int main() { |
4654 | 4307 | struct tm tim; tim.tm_gmtoff = 0; |
4655 | 4308 | ; return 0; } |
4656 | 4309 | EOF |
4657 | -if { (eval echo configure:4658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4310 | +if { (eval echo configure:4311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4658 | 4311 | rm -rf conftest* |
4659 | 4312 | cat >> confdefs.h <<\EOF |
4660 | 4313 | #define STRUCT_TM_HAS_GMTOFF 1 |
@@ -4667,16 +4320,16 @@ else | ||
4667 | 4320 | rm -rf conftest* |
4668 | 4321 | echo "$ac_t""no" 1>&6 |
4669 | 4322 | echo $ac_n "checking for global timezone variable""... $ac_c" 1>&6 |
4670 | -echo "configure:4671: checking for global timezone variable" >&5 | |
4323 | +echo "configure:4324: checking for global timezone variable" >&5 | |
4671 | 4324 | cat > conftest.$ac_ext <<EOF |
4672 | -#line 4673 "configure" | |
4325 | +#line 4326 "configure" | |
4673 | 4326 | #include "confdefs.h" |
4674 | 4327 | #include <time.h> |
4675 | 4328 | int main() { |
4676 | 4329 | long z2 = timezone; |
4677 | 4330 | ; return 0; } |
4678 | 4331 | EOF |
4679 | -if { (eval echo configure:4680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4332 | +if { (eval echo configure:4333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4680 | 4333 | rm -rf conftest* |
4681 | 4334 | cat >> confdefs.h <<\EOF |
4682 | 4335 | #define HAVE_TIMEZONE 1 |
@@ -4696,19 +4349,19 @@ rm -f conftest* | ||
4696 | 4349 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
4697 | 4350 | # for constant arguments. Useless! |
4698 | 4351 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
4699 | -echo "configure:4700: checking for working alloca.h" >&5 | |
4352 | +echo "configure:4353: checking for working alloca.h" >&5 | |
4700 | 4353 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
4701 | 4354 | echo $ac_n "(cached) $ac_c" 1>&6 |
4702 | 4355 | else |
4703 | 4356 | cat > conftest.$ac_ext <<EOF |
4704 | -#line 4705 "configure" | |
4357 | +#line 4358 "configure" | |
4705 | 4358 | #include "confdefs.h" |
4706 | 4359 | #include <alloca.h> |
4707 | 4360 | int main() { |
4708 | 4361 | char *p = alloca(2 * sizeof(int)); |
4709 | 4362 | ; return 0; } |
4710 | 4363 | EOF |
4711 | -if { (eval echo configure:4712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4364 | +if { (eval echo configure:4365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4712 | 4365 | rm -rf conftest* |
4713 | 4366 | ac_cv_header_alloca_h=yes |
4714 | 4367 | else |
@@ -4729,12 +4382,12 @@ EOF | ||
4729 | 4382 | fi |
4730 | 4383 | |
4731 | 4384 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
4732 | -echo "configure:4733: checking for alloca" >&5 | |
4385 | +echo "configure:4386: checking for alloca" >&5 | |
4733 | 4386 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
4734 | 4387 | echo $ac_n "(cached) $ac_c" 1>&6 |
4735 | 4388 | else |
4736 | 4389 | cat > conftest.$ac_ext <<EOF |
4737 | -#line 4738 "configure" | |
4390 | +#line 4391 "configure" | |
4738 | 4391 | #include "confdefs.h" |
4739 | 4392 | |
4740 | 4393 | #ifdef __GNUC__ |
@@ -4762,7 +4415,7 @@ int main() { | ||
4762 | 4415 | char *p = (char *) alloca(1); |
4763 | 4416 | ; return 0; } |
4764 | 4417 | EOF |
4765 | -if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4418 | +if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4766 | 4419 | rm -rf conftest* |
4767 | 4420 | ac_cv_func_alloca_works=yes |
4768 | 4421 | else |
@@ -4794,12 +4447,12 @@ EOF | ||
4794 | 4447 | |
4795 | 4448 | |
4796 | 4449 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
4797 | -echo "configure:4798: checking whether alloca needs Cray hooks" >&5 | |
4450 | +echo "configure:4451: checking whether alloca needs Cray hooks" >&5 | |
4798 | 4451 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
4799 | 4452 | echo $ac_n "(cached) $ac_c" 1>&6 |
4800 | 4453 | else |
4801 | 4454 | cat > conftest.$ac_ext <<EOF |
4802 | -#line 4803 "configure" | |
4455 | +#line 4456 "configure" | |
4803 | 4456 | #include "confdefs.h" |
4804 | 4457 | #if defined(CRAY) && ! defined(CRAY2) |
4805 | 4458 | webecray |
@@ -4824,12 +4477,12 @@ echo "$ac_t""$ac_cv_os_cray" 1>&6 | ||
4824 | 4477 | if test $ac_cv_os_cray = yes; then |
4825 | 4478 | for ac_func in _getb67 GETB67 getb67; do |
4826 | 4479 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4827 | -echo "configure:4828: checking for $ac_func" >&5 | |
4480 | +echo "configure:4481: checking for $ac_func" >&5 | |
4828 | 4481 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4829 | 4482 | echo $ac_n "(cached) $ac_c" 1>&6 |
4830 | 4483 | else |
4831 | 4484 | cat > conftest.$ac_ext <<EOF |
4832 | -#line 4833 "configure" | |
4485 | +#line 4486 "configure" | |
4833 | 4486 | #include "confdefs.h" |
4834 | 4487 | /* System header to define __stub macros and hopefully few prototypes, |
4835 | 4488 | which can conflict with char $ac_func(); below. */ |
@@ -4852,7 +4505,7 @@ $ac_func(); | ||
4852 | 4505 | |
4853 | 4506 | ; return 0; } |
4854 | 4507 | EOF |
4855 | -if { (eval echo configure:4856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4508 | +if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4856 | 4509 | rm -rf conftest* |
4857 | 4510 | eval "ac_cv_func_$ac_func=yes" |
4858 | 4511 | else |
@@ -4879,7 +4532,7 @@ done | ||
4879 | 4532 | fi |
4880 | 4533 | |
4881 | 4534 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
4882 | -echo "configure:4883: checking stack direction for C alloca" >&5 | |
4535 | +echo "configure:4536: checking stack direction for C alloca" >&5 | |
4883 | 4536 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
4884 | 4537 | echo $ac_n "(cached) $ac_c" 1>&6 |
4885 | 4538 | else |
@@ -4887,7 +4540,7 @@ else | ||
4887 | 4540 | ac_cv_c_stack_direction=0 |
4888 | 4541 | else |
4889 | 4542 | cat > conftest.$ac_ext <<EOF |
4890 | -#line 4891 "configure" | |
4543 | +#line 4544 "configure" | |
4891 | 4544 | #include "confdefs.h" |
4892 | 4545 | find_stack_direction () |
4893 | 4546 | { |
@@ -4906,7 +4559,7 @@ main () | ||
4906 | 4559 | exit (find_stack_direction() < 0); |
4907 | 4560 | } |
4908 | 4561 | EOF |
4909 | -if { (eval echo configure:4910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
4562 | +if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
4910 | 4563 | then |
4911 | 4564 | ac_cv_c_stack_direction=1 |
4912 | 4565 | else |
@@ -4929,7 +4582,7 @@ fi | ||
4929 | 4582 | |
4930 | 4583 | |
4931 | 4584 | echo $ac_n "checking for g++ -g jboolean bug""... $ac_c" 1>&6 |
4932 | -echo "configure:4933: checking for g++ -g jboolean bug" >&5 | |
4585 | +echo "configure:4586: checking for g++ -g jboolean bug" >&5 | |
4933 | 4586 | if eval "test \"`echo '$''{'libjava_cv_gxx_debug_jboolean_bug'+set}'`\" = set"; then |
4934 | 4587 | echo $ac_n "(cached) $ac_c" 1>&6 |
4935 | 4588 | else |
@@ -4942,14 +4595,14 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes | ||
4942 | 4595 | cross_compiling=$ac_cv_prog_cxx_cross |
4943 | 4596 | |
4944 | 4597 | cat > conftest.$ac_ext <<EOF |
4945 | -#line 4946 "configure" | |
4598 | +#line 4599 "configure" | |
4946 | 4599 | #include "confdefs.h" |
4947 | 4600 | typedef __java_boolean jboolean; |
4948 | 4601 | int main() { |
4949 | 4602 | |
4950 | 4603 | ; return 0; } |
4951 | 4604 | EOF |
4952 | -if { (eval echo configure:4953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4605 | +if { (eval echo configure:4606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
4953 | 4606 | rm -rf conftest* |
4954 | 4607 | libjava_cv_gxx_debug_jboolean_bug=no |
4955 | 4608 | else |
@@ -4983,7 +4636,7 @@ do | ||
4983 | 4636 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4984 | 4637 | set dummy $ac_prog; ac_word=$2 |
4985 | 4638 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
4986 | -echo "configure:4987: checking for $ac_word" >&5 | |
4639 | +echo "configure:4640: checking for $ac_word" >&5 | |
4987 | 4640 | if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then |
4988 | 4641 | echo $ac_n "(cached) $ac_c" 1>&6 |
4989 | 4642 | else |
@@ -5211,9 +4864,7 @@ s%@LIBGCJ_CXXFLAGS@%$LIBGCJ_CXXFLAGS%g | ||
5211 | 4864 | s%@LIBGCJ_JAVAFLAGS@%$LIBGCJ_JAVAFLAGS%g |
5212 | 4865 | s%@LD@%$LD%g |
5213 | 4866 | s%@NM@%$NM%g |
5214 | -s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g | |
5215 | 4867 | s%@LN_S@%$LN_S%g |
5216 | -s%@DLLTOOL@%$DLLTOOL%g | |
5217 | 4868 | s%@LIBTOOL@%$LIBTOOL%g |
5218 | 4869 | s%@COMPPATH@%$COMPPATH%g |
5219 | 4870 | s%@TESTSUBDIR_TRUE@%$TESTSUBDIR_TRUE%g |
@@ -89,6 +89,7 @@ LN_S = @LN_S@ | ||
89 | 89 | MAINT = @MAINT@ |
90 | 90 | MAKEINFO = @MAKEINFO@ |
91 | 91 | NM = @NM@ |
92 | +OBJDUMP = @OBJDUMP@ | |
92 | 93 | PACKAGE = @PACKAGE@ |
93 | 94 | PERL = @PERL@ |
94 | 95 | RANLIB = @RANLIB@ |
@@ -98,7 +99,6 @@ THREADINCS = @THREADINCS@ | ||
98 | 99 | THREADLIBS = @THREADLIBS@ |
99 | 100 | THREADOBJS = @THREADOBJS@ |
100 | 101 | THREADSPEC = @THREADSPEC@ |
101 | -USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@ | |
102 | 102 | VERSION = @VERSION@ |
103 | 103 | ZDEPS = @ZDEPS@ |
104 | 104 | ZINCS = @ZINCS@ |
@@ -1,3 +1,7 @@ | ||
1 | +1999-08-02 Tom Tromey <tromey@cygnus.com> | |
2 | + | |
3 | + * aclocal.m4, configure: Rebuilt for new libtool. | |
4 | + | |
1 | 5 | 1999-07-19 Alexandre Oliva <oliva@dcc.unicamp.br> |
2 | 6 | |
3 | 7 | * Makefile.am (*-recursive, *-am, *-multi): Automake does not |
@@ -75,9 +75,9 @@ LN_S = @LN_S@ | ||
75 | 75 | MAINT = @MAINT@ |
76 | 76 | MAKEINFO = @MAKEINFO@ |
77 | 77 | NM = @NM@ |
78 | +OBJDUMP = @OBJDUMP@ | |
78 | 79 | PACKAGE = @PACKAGE@ |
79 | 80 | RANLIB = @RANLIB@ |
80 | -USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@ | |
81 | 81 | VERSION = @VERSION@ |
82 | 82 | target_all = @target_all@ |
83 | 83 | zlib_basedir = @zlib_basedir@ |
@@ -174,7 +174,7 @@ else | ||
174 | 174 | fi]) |
175 | 175 | |
176 | 176 | |
177 | -# serial 35 AC_PROG_LIBTOOL | |
177 | +# serial 40 AC_PROG_LIBTOOL | |
178 | 178 | AC_DEFUN(AC_PROG_LIBTOOL, |
179 | 179 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
180 | 180 |
@@ -183,8 +183,9 @@ AC_CACHE_SAVE | ||
183 | 183 | |
184 | 184 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
185 | 185 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
186 | -LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ | |
187 | -DLLTOOL="$DLLTOOL" AS="$AS" \ | |
186 | +LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
187 | +LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ | |
188 | +DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ | |
188 | 189 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
189 | 190 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
190 | 191 | || AC_MSG_ERROR([libtool configure failed]) |
@@ -215,8 +216,6 @@ AC_REQUIRE([AC_PROG_RANLIB])dnl | ||
215 | 216 | AC_REQUIRE([AC_PROG_CC])dnl |
216 | 217 | AC_REQUIRE([AC_PROG_LD])dnl |
217 | 218 | AC_REQUIRE([AC_PROG_NM])dnl |
218 | -AC_REQUIRE([AC_SYS_NM_PARSE])dnl | |
219 | -AC_REQUIRE([AC_SYS_SYMBOL_UNDERSCORE])dnl | |
220 | 219 | AC_REQUIRE([AC_PROG_LN_S])dnl |
221 | 220 | dnl |
222 | 221 |
@@ -225,10 +224,16 @@ libtool_flags="--cache-file=$cache_file" | ||
225 | 224 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
226 | 225 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
227 | 226 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
228 | -test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen" | |
229 | -test "$silent" = yes && libtool_flags="$libtool_flags --silent" | |
230 | 227 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
231 | 228 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
229 | +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], | |
230 | +[libtool_flags="$libtool_flags --enable-dlopen"]) | |
231 | +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], | |
232 | +[libtool_flags="$libtool_flags --enable-win32-dll"]) | |
233 | +AC_ARG_ENABLE(libtool-lock, | |
234 | + [ --disable-libtool-lock avoid locking (might break parallel builds)]) | |
235 | +test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
236 | +test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
232 | 237 | |
233 | 238 | # Some flags need to be propagated to the compiler or linker for good |
234 | 239 | # libtool support. |
@@ -264,33 +269,28 @@ case "$host" in | ||
264 | 269 | fi |
265 | 270 | ;; |
266 | 271 | |
267 | -*-*-cygwin*) | |
268 | - AC_SYS_LIBTOOL_CYGWIN | |
272 | +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], | |
273 | +[*-*-cygwin* | *-*-mingw*) | |
274 | + AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
275 | + AC_CHECK_TOOL(AS, as, false) | |
276 | + AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
269 | 277 | ;; |
270 | - | |
278 | +]) | |
271 | 279 | esac |
272 | - | |
273 | -# enable the --disable-libtool-lock switch | |
274 | - | |
275 | -AC_ARG_ENABLE(libtool-lock, | |
276 | -[ --disable-libtool-lock force libtool not to do file locking], | |
277 | -need_locks=$enableval, | |
278 | -need_locks=yes) | |
279 | - | |
280 | -if test x"$need_locks" = xno; then | |
281 | - libtool_flags="$libtool_flags --disable-lock" | |
282 | -fi | |
283 | 280 | ]) |
284 | 281 | |
285 | -# AC_LIBTOOL_DLOPEN - check for dlopen support | |
286 | -AC_DEFUN(AC_LIBTOOL_DLOPEN, [lt_dlopen=yes]) | |
282 | +# AC_LIBTOOL_DLOPEN - enable checks for dlopen support | |
283 | +AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) | |
284 | + | |
285 | +# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's | |
286 | +AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) | |
287 | 287 | |
288 | 288 | # AC_ENABLE_SHARED - implement the --enable-shared flag |
289 | 289 | # Usage: AC_ENABLE_SHARED[(DEFAULT)] |
290 | 290 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
291 | 291 | # `yes'. |
292 | -AC_DEFUN(AC_ENABLE_SHARED, | |
293 | -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | |
292 | +AC_DEFUN(AC_ENABLE_SHARED, [dnl | |
293 | +define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | |
294 | 294 | AC_ARG_ENABLE(shared, |
295 | 295 | changequote(<<, >>)dnl |
296 | 296 | << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], |
@@ -315,15 +315,15 @@ enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl | ||
315 | 315 | ]) |
316 | 316 | |
317 | 317 | # AC_DISABLE_SHARED - set the default shared flag to --disable-shared |
318 | -AC_DEFUN(AC_DISABLE_SHARED, | |
319 | -[AC_ENABLE_SHARED(no)]) | |
318 | +AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
319 | +AC_ENABLE_SHARED(no)]) | |
320 | 320 | |
321 | 321 | # AC_ENABLE_STATIC - implement the --enable-static flag |
322 | 322 | # Usage: AC_ENABLE_STATIC[(DEFAULT)] |
323 | 323 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
324 | 324 | # `yes'. |
325 | -AC_DEFUN(AC_ENABLE_STATIC, | |
326 | -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | |
325 | +AC_DEFUN(AC_ENABLE_STATIC, [dnl | |
326 | +define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | |
327 | 327 | AC_ARG_ENABLE(static, |
328 | 328 | changequote(<<, >>)dnl |
329 | 329 | << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], |
@@ -348,16 +348,16 @@ enable_static=AC_ENABLE_STATIC_DEFAULT)dnl | ||
348 | 348 | ]) |
349 | 349 | |
350 | 350 | # AC_DISABLE_STATIC - set the default static flag to --disable-static |
351 | -AC_DEFUN(AC_DISABLE_STATIC, | |
352 | -[AC_ENABLE_STATIC(no)]) | |
351 | +AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
352 | +AC_ENABLE_STATIC(no)]) | |
353 | 353 | |
354 | 354 | |
355 | 355 | # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag |
356 | 356 | # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] |
357 | 357 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to |
358 | 358 | # `yes'. |
359 | -AC_DEFUN(AC_ENABLE_FAST_INSTALL, | |
360 | -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | |
359 | +AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl | |
360 | +define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | |
361 | 361 | AC_ARG_ENABLE(fast-install, |
362 | 362 | changequote(<<, >>)dnl |
363 | 363 | << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], |
@@ -382,9 +382,8 @@ enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl | ||
382 | 382 | ]) |
383 | 383 | |
384 | 384 | # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install |
385 | -AC_DEFUN(AC_DISABLE_FAST_INSTALL, | |
386 | -[AC_ENABLE_FAST_INSTALL(no)]) | |
387 | - | |
385 | +AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
386 | +AC_ENABLE_FAST_INSTALL(no)]) | |
388 | 387 | |
389 | 388 | # AC_PROG_LD - find the path to the GNU or non-GNU linker |
390 | 389 | AC_DEFUN(AC_PROG_LD, |
@@ -402,7 +401,7 @@ if test "$ac_cv_prog_gcc" = yes; then | ||
402 | 401 | case "$ac_prog" in |
403 | 402 | # Accept absolute paths. |
404 | 403 | changequote(,)dnl |
405 | - /* | [A-Za-z]:[\\/]*) | |
404 | + [\\/]* | [A-Za-z]:[\\/]*) | |
406 | 405 | re_direlt='/[^/][^/]*/\.\./' |
407 | 406 | changequote([,])dnl |
408 | 407 | # Canonicalize the path of ld |
@@ -428,10 +427,10 @@ else | ||
428 | 427 | fi |
429 | 428 | AC_CACHE_VAL(ac_cv_path_LD, |
430 | 429 | [if test -z "$LD"; then |
431 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
430 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
432 | 431 | for ac_dir in $PATH; do |
433 | 432 | test -z "$ac_dir" && ac_dir=. |
434 | - if test -f "$ac_dir/$ac_prog"; then | |
433 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
435 | 434 | ac_cv_path_LD="$ac_dir/$ac_prog" |
436 | 435 | # Check to see if the program is GNU ld. I'd rather use --version, |
437 | 436 | # but apparently some GNU ld's only accept -v. |
@@ -476,10 +475,10 @@ AC_CACHE_VAL(ac_cv_path_NM, | ||
476 | 475 | # Let the user override the test. |
477 | 476 | ac_cv_path_NM="$NM" |
478 | 477 | else |
479 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
478 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
480 | 479 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
481 | 480 | test -z "$ac_dir" && ac_dir=. |
482 | - if test -f $ac_dir/nm; then | |
481 | + if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then | |
483 | 482 | # Check to see if the nm accepts a BSD-compat flag. |
484 | 483 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
485 | 484 | # nm: unknown option "B" ignored |
@@ -503,227 +502,22 @@ AC_MSG_RESULT([$NM]) | ||
503 | 502 | AC_SUBST(NM) |
504 | 503 | ]) |
505 | 504 | |
506 | -# AC_SYS_NM_PARSE - Check for command to grab the raw symbol name followed | |
507 | -# by C symbol name from nm. | |
508 | -AC_DEFUN(AC_SYS_NM_PARSE, | |
505 | +# AC_CHECK_LIBM - check for math library | |
506 | +AC_DEFUN(AC_CHECK_LIBM, | |
509 | 507 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
510 | -AC_REQUIRE([AC_PROG_NM])dnl | |
511 | -# Check for command to grab the raw symbol name followed by C symbol from nm. | |
512 | -AC_MSG_CHECKING([command to parse $NM output]) | |
513 | -AC_CACHE_VAL(ac_cv_sys_global_symbol_pipe, | |
514 | -[# These are sane defaults that work on at least a few old systems. | |
515 | -# {They come from Ultrix. What could be older than Ultrix?!! ;)} | |
516 | - | |
517 | -changequote(,)dnl | |
518 | -# Character class describing NM global symbol codes. | |
519 | -ac_symcode='[BCDEGRST]' | |
520 | - | |
521 | -# Regexp to match symbols that can be accessed directly from C. | |
522 | -ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
523 | - | |
524 | -# Transform the above into a raw symbol and a C symbol. | |
525 | -ac_symxfrm='\1 \2\3 \3' | |
526 | - | |
527 | -# Transform an extracted symbol line into a proper C declaration | |
528 | -ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
529 | - | |
530 | -# Define system-specific variables. | |
531 | -case "$host_os" in | |
532 | -aix*) | |
533 | - ac_symcode='[BCDT]' | |
534 | - ;; | |
535 | -cygwin* | mingw*) | |
536 | - ac_symcode='[ABCDGISTW]' | |
537 | - ;; | |
538 | -hpux*) | |
539 | - ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
508 | +LIBM= | |
509 | +case "$host" in | |
510 | +*-*-beos* | *-*-cygwin*) | |
511 | + # These system don't have libm | |
540 | 512 | ;; |
541 | -irix*) | |
542 | - ac_symcode='[BCDEGRST]' | |
513 | +*-ncr-sysv4.3*) | |
514 | + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | |
515 | + AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") | |
543 | 516 | ;; |
544 | -solaris*) | |
545 | - ac_symcode='[BDT]' | |
517 | +*) | |
518 | + AC_CHECK_LIB(m, main, LIBM="-lm") | |
546 | 519 | ;; |
547 | 520 | esac |
548 | - | |
549 | -# If we're using GNU nm, then use its standard symbol codes. | |
550 | -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
551 | - ac_symcode='[ABCDGISTW]' | |
552 | -fi | |
553 | -changequote([,])dnl | |
554 | - | |
555 | -# Try without a prefix undercore, then with it. | |
556 | -for ac_symprfx in "" "_"; do | |
557 | - | |
558 | - ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($ac_symcode\)[ ][ ]*\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'" | |
559 | - | |
560 | - # Check to see that the pipe works correctly. | |
561 | - ac_pipe_works=no | |
562 | - rm -f conftest.$ac_ext | |
563 | - cat > conftest.$ac_ext <<EOF | |
564 | -#ifdef __cplusplus | |
565 | -extern "C" { | |
566 | -#endif | |
567 | -char nm_test_var; | |
568 | -void nm_test_func(){} | |
569 | -#ifdef __cplusplus | |
570 | -} | |
571 | -#endif | |
572 | -int main(){nm_test_var='a';nm_test_func;return 0;} | |
573 | -EOF | |
574 | - | |
575 | - if AC_TRY_EVAL(ac_compile); then | |
576 | - # Now try to grab the symbols. | |
577 | - ac_nlist=conftest.nm | |
578 | - | |
579 | - if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then | |
580 | - | |
581 | - # Try sorting and uniquifying the output. | |
582 | - if sort "$ac_nlist" | uniq > "$ac_nlist"T; then | |
583 | - mv -f "$ac_nlist"T "$ac_nlist" | |
584 | - else | |
585 | - rm -f "$ac_nlist"T | |
586 | - fi | |
587 | - | |
588 | - # Make sure that we snagged all the symbols we need. | |
589 | - if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then | |
590 | - if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then | |
591 | - cat <<EOF > conftest.c | |
592 | -#ifdef __cplusplus | |
593 | -extern "C" { | |
594 | -#endif | |
595 | - | |
596 | -EOF | |
597 | - # Now generate the symbol file. | |
598 | - eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c' | |
599 | - | |
600 | - cat <<EOF >> conftest.c | |
601 | -#if defined (__STDC__) && __STDC__ | |
602 | -# define lt_ptr_t void * | |
603 | -#else | |
604 | -# define lt_ptr_t char * | |
605 | -# define const | |
606 | -#endif | |
607 | - | |
608 | -/* The mapping between symbol names and symbols. */ | |
609 | -const struct { | |
610 | - const char *name; | |
611 | - lt_ptr_t address; | |
612 | -} | |
613 | -changequote(,)dnl | |
614 | -lt_preloaded_symbols[] = | |
615 | -changequote([,])dnl | |
616 | -{ | |
617 | -EOF | |
618 | - sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c | |
619 | - cat <<\EOF >> conftest.c | |
620 | - {0, (lt_ptr_t) 0} | |
621 | -}; | |
622 | - | |
623 | -#ifdef __cplusplus | |
624 | -} | |
625 | -#endif | |
626 | -EOF | |
627 | - # Now try linking the two files. | |
628 | - mv conftest.$ac_objext conftestm.$ac_objext | |
629 | - ac_save_LIBS="$LIBS" | |
630 | - ac_save_CFLAGS="$CFLAGS" | |
631 | - LIBS="conftestm.$ac_objext" | |
632 | - CFLAGS="$CFLAGS$no_builtin_flag" | |
633 | - if AC_TRY_EVAL(ac_link) && test -s conftest; then | |
634 | - ac_pipe_works=yes | |
635 | - else | |
636 | - echo "configure: failed program was:" >&AC_FD_CC | |
637 | - cat conftest.c >&AC_FD_CC | |
638 | - fi | |
639 | - LIBS="$ac_save_LIBS" | |
640 | - CFLAGS="$ac_save_CFLAGS" | |
641 | - else | |
642 | - echo "cannot find nm_test_func in $ac_nlist" >&AC_FD_CC | |
643 | - fi | |
644 | - else | |
645 | - echo "cannot find nm_test_var in $ac_nlist" >&AC_FD_CC | |
646 | - fi | |
647 | - else | |
648 | - echo "cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC | |
649 | - fi | |
650 | - else | |
651 | - echo "$progname: failed program was:" >&AC_FD_CC | |
652 | - cat conftest.c >&AC_FD_CC | |
653 | - fi | |
654 | - rm -rf conftest* | |
655 | - | |
656 | - # Do not use the global_symbol_pipe unless it works. | |
657 | - if test "$ac_pipe_works" = yes; then | |
658 | - if test x"$ac_symprfx" = x"_"; then | |
659 | - ac_cv_sys_symbol_underscore=yes | |
660 | - else | |
661 | - ac_cv_sys_symbol_underscore=no | |
662 | - fi | |
663 | - break | |
664 | - else | |
665 | - ac_cv_sys_global_symbol_pipe= | |
666 | - fi | |
667 | -done | |
668 | -]) | |
669 | - | |
670 | -ac_result=yes | |
671 | -if test -z "$ac_cv_sys_global_symbol_pipe"; then | |
672 | - ac_result=no | |
673 | -fi | |
674 | -AC_MSG_RESULT($ac_result) | |
675 | -]) | |
676 | - | |
677 | -# AC_SYS_LIBTOOL_CYGWIN - find tools needed on cygwin | |
678 | -AC_DEFUN(AC_SYS_LIBTOOL_CYGWIN, | |
679 | -[AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
680 | -AC_CHECK_TOOL(AS, as, false) | |
681 | -]) | |
682 | - | |
683 | -# AC_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols | |
684 | -# with an underscore? | |
685 | -AC_DEFUN(AC_SYS_SYMBOL_UNDERSCORE, | |
686 | -[AC_REQUIRE([AC_PROG_NM])dnl | |
687 | -AC_REQUIRE([AC_SYS_NM_PARSE])dnl | |
688 | -AC_MSG_CHECKING([for _ prefix in compiled symbols]) | |
689 | -AC_CACHE_VAL(ac_cv_sys_symbol_underscore, | |
690 | -[ac_cv_sys_symbol_underscore=no | |
691 | -cat > conftest.$ac_ext <<EOF | |
692 | -void nm_test_func(){} | |
693 | -int main(){nm_test_func;return 0;} | |
694 | -EOF | |
695 | -if AC_TRY_EVAL(ac_compile); then | |
696 | - # Now try to grab the symbols. | |
697 | - ac_nlist=conftest.nm | |
698 | - if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then | |
699 | - # See whether the symbols have a leading underscore. | |
700 | - if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
701 | - ac_cv_sys_symbol_underscore=yes | |
702 | - else | |
703 | - if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
704 | - : | |
705 | - else | |
706 | - echo "configure: cannot find nm_test_func in $ac_nlist" >&AC_FD_CC | |
707 | - fi | |
708 | - fi | |
709 | - else | |
710 | - echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC | |
711 | - fi | |
712 | -else | |
713 | - echo "configure: failed program was:" >&AC_FD_CC | |
714 | - cat conftest.c >&AC_FD_CC | |
715 | -fi | |
716 | -rm -rf conftest* | |
717 | -]) | |
718 | -AC_MSG_RESULT($ac_cv_sys_symbol_underscore) | |
719 | -USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no} | |
720 | -AC_SUBST(USE_SYMBOL_UNDERSCORE)dnl | |
721 | -]) | |
722 | - | |
723 | -# AC_CHECK_LIBM - check for math library | |
724 | -AC_DEFUN(AC_CHECK_LIBM, [ | |
725 | -AC_CHECK_LIB(mw, _mwvalidcheckl) | |
726 | -AC_CHECK_LIB(m, cos) | |
727 | 521 | ]) |
728 | 522 | |
729 | 523 | # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for |
@@ -734,13 +528,14 @@ AC_CHECK_LIB(m, cos) | ||
734 | 528 | # '${top_builddir}/' (note the single quotes!) if your package is not |
735 | 529 | # flat, and, if you're not using automake, define top_builddir as |
736 | 530 | # appropriate in the Makefiles. |
737 | -AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [ | |
531 | +AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
738 | 532 | case "$enable_ltdl_convenience" in |
739 | 533 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
740 | 534 | "") enable_ltdl_convenience=yes |
741 | 535 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
742 | 536 | esac |
743 | 537 | LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la |
538 | + INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) | |
744 | 539 | ]) |
745 | 540 | |
746 | 541 | # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for |
@@ -752,16 +547,23 @@ AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [ | ||
752 | 547 | # flat, and, if you're not using automake, define top_builddir as |
753 | 548 | # appropriate in the Makefiles. |
754 | 549 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
755 | -AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [ | |
756 | - AC_CHECK_LIB(ltdl, main, LIBLTDL="-lltdl", [ | |
757 | - case "$enable_ltdl_install" in | |
758 | - no) AC_MSG_WARN([libltdl not installed, but installation disabled]) ;; | |
759 | - "") enable_ltdl_install=yes | |
760 | - ac_configure_args="$ac_configure_args --enable-ltdl-install" ;; | |
761 | - esac | |
550 | +AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |
551 | + AC_CHECK_LIB(ltdl, main, | |
552 | + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | |
553 | + [if test x"$enable_ltdl_install" = xno; then | |
554 | + AC_MSG_WARN([libltdl not installed, but installation disabled]) | |
555 | + else | |
556 | + enable_ltdl_install=yes | |
557 | + fi | |
762 | 558 | ]) |
763 | - if test x"$enable_ltdl_install" != x"no"; then | |
559 | + if test x"$enable_ltdl_install" = x"yes"; then | |
560 | + ac_configure_args="$ac_configure_args --enable-ltdl-install" | |
764 | 561 | LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la |
562 | + INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) | |
563 | + else | |
564 | + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | |
565 | + LIBLTDL="-lltdl" | |
566 | + INCLTDL= | |
765 | 567 | fi |
766 | 568 | ]) |
767 | 569 |
@@ -773,7 +575,7 @@ AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl | ||
773 | 575 | AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl |
774 | 576 | AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl |
775 | 577 | AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl |
776 | -AC_DEFUN(AM_SYS_NM_PARSE, [indir([AC_SYS_NM_PARSE])])dnl | |
777 | -AC_DEFUN(AM_SYS_SYMBOL_UNDERSCORE, [indir([AC_SYS_SYMBOL_UNDERSCORE])])dnl | |
778 | -AC_DEFUN(AM_SYS_LIBTOOL_CYGWIN, [indir([AC_SYS_LIBTOOL_CYGWIN])])dnl | |
578 | + | |
579 | +dnl This is just to silence aclocal about the macro not being used | |
580 | +ifelse([AC_DISABLE_FAST_INSTALL])dnl | |
779 | 581 |
@@ -31,7 +31,7 @@ ac_help="$ac_help | ||
31 | 31 | ac_help="$ac_help |
32 | 32 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
33 | 33 | ac_help="$ac_help |
34 | - --disable-libtool-lock force libtool not to do file locking" | |
34 | + --disable-libtool-lock avoid locking (might break parallel builds)" | |
35 | 35 | |
36 | 36 | # Initialize some variables set by options. |
37 | 37 | # The variables have the same names as the options, with |
@@ -1537,7 +1537,7 @@ echo "configure:1537: checking for ld used by GCC" >&5 | ||
1537 | 1537 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1538 | 1538 | case "$ac_prog" in |
1539 | 1539 | # Accept absolute paths. |
1540 | - /* | [A-Za-z]:[\\/]*) | |
1540 | + [\\/]* | [A-Za-z]:[\\/]*) | |
1541 | 1541 | re_direlt='/[^/][^/]*/\.\./' |
1542 | 1542 | # Canonicalize the path of ld |
1543 | 1543 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
@@ -1566,10 +1566,10 @@ if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then | ||
1566 | 1566 | echo $ac_n "(cached) $ac_c" 1>&6 |
1567 | 1567 | else |
1568 | 1568 | if test -z "$LD"; then |
1569 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1569 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
1570 | 1570 | for ac_dir in $PATH; do |
1571 | 1571 | test -z "$ac_dir" && ac_dir=. |
1572 | - if test -f "$ac_dir/$ac_prog"; then | |
1572 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
1573 | 1573 | ac_cv_path_LD="$ac_dir/$ac_prog" |
1574 | 1574 | # Check to see if the program is GNU ld. I'd rather use --version, |
1575 | 1575 | # but apparently some GNU ld's only accept -v. |
@@ -1620,10 +1620,10 @@ else | ||
1620 | 1620 | # Let the user override the test. |
1621 | 1621 | ac_cv_path_NM="$NM" |
1622 | 1622 | else |
1623 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1623 | + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
1624 | 1624 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
1625 | 1625 | test -z "$ac_dir" && ac_dir=. |
1626 | - if test -f $ac_dir/nm; then | |
1626 | + if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then | |
1627 | 1627 | # Check to see if the nm accepts a BSD-compat flag. |
1628 | 1628 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
1629 | 1629 | # nm: unknown option "B" ignored |
@@ -1648,212 +1648,8 @@ NM="$ac_cv_path_NM" | ||
1648 | 1648 | echo "$ac_t""$NM" 1>&6 |
1649 | 1649 | |
1650 | 1650 | |
1651 | -# Check for command to grab the raw symbol name followed by C symbol from nm. | |
1652 | -echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 | |
1653 | -echo "configure:1654: checking command to parse $NM output" >&5 | |
1654 | -if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then | |
1655 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1656 | -else | |
1657 | - # These are sane defaults that work on at least a few old systems. | |
1658 | -# {They come from Ultrix. What could be older than Ultrix?!! ;)} | |
1659 | - | |
1660 | -# Character class describing NM global symbol codes. | |
1661 | -ac_symcode='[BCDEGRST]' | |
1662 | - | |
1663 | -# Regexp to match symbols that can be accessed directly from C. | |
1664 | -ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
1665 | - | |
1666 | -# Transform the above into a raw symbol and a C symbol. | |
1667 | -ac_symxfrm='\1 \2\3 \3' | |
1668 | - | |
1669 | -# Transform an extracted symbol line into a proper C declaration | |
1670 | -ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
1671 | - | |
1672 | -# Define system-specific variables. | |
1673 | -case "$host_os" in | |
1674 | -aix*) | |
1675 | - ac_symcode='[BCDT]' | |
1676 | - ;; | |
1677 | -cygwin* | mingw*) | |
1678 | - ac_symcode='[ABCDGISTW]' | |
1679 | - ;; | |
1680 | -hpux*) | |
1681 | - ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
1682 | - ;; | |
1683 | -irix*) | |
1684 | - ac_symcode='[BCDEGRST]' | |
1685 | - ;; | |
1686 | -solaris*) | |
1687 | - ac_symcode='[BDT]' | |
1688 | - ;; | |
1689 | -esac | |
1690 | - | |
1691 | -# If we're using GNU nm, then use its standard symbol codes. | |
1692 | -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
1693 | - ac_symcode='[ABCDGISTW]' | |
1694 | -fi | |
1695 | - | |
1696 | -# Try without a prefix undercore, then with it. | |
1697 | -for ac_symprfx in "" "_"; do | |
1698 | - | |
1699 | - ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'" | |
1700 | - | |
1701 | - # Check to see that the pipe works correctly. | |
1702 | - ac_pipe_works=no | |
1703 | - rm -f conftest.$ac_ext | |
1704 | - cat > conftest.$ac_ext <<EOF | |
1705 | -#ifdef __cplusplus | |
1706 | -extern "C" { | |
1707 | -#endif | |
1708 | -char nm_test_var; | |
1709 | -void nm_test_func(){} | |
1710 | -#ifdef __cplusplus | |
1711 | -} | |
1712 | -#endif | |
1713 | -int main(){nm_test_var='a';nm_test_func;return 0;} | |
1714 | -EOF | |
1715 | - | |
1716 | - if { (eval echo configure:1717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1717 | - # Now try to grab the symbols. | |
1718 | - ac_nlist=conftest.nm | |
1719 | - | |
1720 | - if { (eval echo configure:1721: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then | |
1721 | - | |
1722 | - # Try sorting and uniquifying the output. | |
1723 | - if sort "$ac_nlist" | uniq > "$ac_nlist"T; then | |
1724 | - mv -f "$ac_nlist"T "$ac_nlist" | |
1725 | - else | |
1726 | - rm -f "$ac_nlist"T | |
1727 | - fi | |
1728 | - | |
1729 | - # Make sure that we snagged all the symbols we need. | |
1730 | - if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then | |
1731 | - if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then | |
1732 | - cat <<EOF > conftest.c | |
1733 | -#ifdef __cplusplus | |
1734 | -extern "C" { | |
1735 | -#endif | |
1736 | - | |
1737 | -EOF | |
1738 | - # Now generate the symbol file. | |
1739 | - eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c' | |
1740 | - | |
1741 | - cat <<EOF >> conftest.c | |
1742 | -#if defined (__STDC__) && __STDC__ | |
1743 | -# define lt_ptr_t void * | |
1744 | -#else | |
1745 | -# define lt_ptr_t char * | |
1746 | -# define const | |
1747 | -#endif | |
1748 | - | |
1749 | -/* The mapping between symbol names and symbols. */ | |
1750 | -const struct { | |
1751 | - const char *name; | |
1752 | - lt_ptr_t address; | |
1753 | -} | |
1754 | -lt_preloaded_symbols[] = | |
1755 | -{ | |
1756 | -EOF | |
1757 | - sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c | |
1758 | - cat <<\EOF >> conftest.c | |
1759 | - {0, (lt_ptr_t) 0} | |
1760 | -}; | |
1761 | - | |
1762 | -#ifdef __cplusplus | |
1763 | -} | |
1764 | -#endif | |
1765 | -EOF | |
1766 | - # Now try linking the two files. | |
1767 | - mv conftest.$ac_objext conftestm.$ac_objext | |
1768 | - ac_save_LIBS="$LIBS" | |
1769 | - ac_save_CFLAGS="$CFLAGS" | |
1770 | - LIBS="conftestm.$ac_objext" | |
1771 | - CFLAGS="$CFLAGS$no_builtin_flag" | |
1772 | - if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
1773 | - ac_pipe_works=yes | |
1774 | - else | |
1775 | - echo "configure: failed program was:" >&5 | |
1776 | - cat conftest.c >&5 | |
1777 | - fi | |
1778 | - LIBS="$ac_save_LIBS" | |
1779 | - CFLAGS="$ac_save_CFLAGS" | |
1780 | - else | |
1781 | - echo "cannot find nm_test_func in $ac_nlist" >&5 | |
1782 | - fi | |
1783 | - else | |
1784 | - echo "cannot find nm_test_var in $ac_nlist" >&5 | |
1785 | - fi | |
1786 | - else | |
1787 | - echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5 | |
1788 | - fi | |
1789 | - else | |
1790 | - echo "$progname: failed program was:" >&5 | |
1791 | - cat conftest.c >&5 | |
1792 | - fi | |
1793 | - rm -rf conftest* | |
1794 | - | |
1795 | - # Do not use the global_symbol_pipe unless it works. | |
1796 | - if test "$ac_pipe_works" = yes; then | |
1797 | - if test x"$ac_symprfx" = x"_"; then | |
1798 | - ac_cv_sys_symbol_underscore=yes | |
1799 | - else | |
1800 | - ac_cv_sys_symbol_underscore=no | |
1801 | - fi | |
1802 | - break | |
1803 | - else | |
1804 | - ac_cv_sys_global_symbol_pipe= | |
1805 | - fi | |
1806 | -done | |
1807 | - | |
1808 | -fi | |
1809 | - | |
1810 | - | |
1811 | -ac_result=yes | |
1812 | -if test -z "$ac_cv_sys_global_symbol_pipe"; then | |
1813 | - ac_result=no | |
1814 | -fi | |
1815 | -echo "$ac_t""$ac_result" 1>&6 | |
1816 | - | |
1817 | -echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6 | |
1818 | -echo "configure:1819: checking for _ prefix in compiled symbols" >&5 | |
1819 | -if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then | |
1820 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1821 | -else | |
1822 | - ac_cv_sys_symbol_underscore=no | |
1823 | -cat > conftest.$ac_ext <<EOF | |
1824 | -void nm_test_func(){} | |
1825 | -int main(){nm_test_func;return 0;} | |
1826 | -EOF | |
1827 | -if { (eval echo configure:1828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1828 | - # Now try to grab the symbols. | |
1829 | - ac_nlist=conftest.nm | |
1830 | - if { (eval echo configure:1831: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then | |
1831 | - # See whether the symbols have a leading underscore. | |
1832 | - if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
1833 | - ac_cv_sys_symbol_underscore=yes | |
1834 | - else | |
1835 | - if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
1836 | - : | |
1837 | - else | |
1838 | - echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
1839 | - fi | |
1840 | - fi | |
1841 | - else | |
1842 | - echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5 | |
1843 | - fi | |
1844 | -else | |
1845 | - echo "configure: failed program was:" >&5 | |
1846 | - cat conftest.c >&5 | |
1847 | -fi | |
1848 | -rm -rf conftest* | |
1849 | - | |
1850 | -fi | |
1851 | - | |
1852 | -echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6 | |
1853 | -USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no} | |
1854 | - | |
1855 | 1651 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
1856 | -echo "configure:1857: checking whether ln -s works" >&5 | |
1652 | +echo "configure:1653: checking whether ln -s works" >&5 | |
1857 | 1653 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1858 | 1654 | echo $ac_n "(cached) $ac_c" 1>&6 |
1859 | 1655 | else |
@@ -1873,30 +1669,32 @@ else | ||
1873 | 1669 | echo "$ac_t""no" 1>&6 |
1874 | 1670 | fi |
1875 | 1671 | |
1876 | -if test $host != $build; then | |
1877 | - ac_tool_prefix=${host_alias}- | |
1878 | -else | |
1879 | - ac_tool_prefix= | |
1880 | -fi | |
1881 | - | |
1882 | 1672 | |
1883 | 1673 | # Check for any special flags to pass to ltconfig. |
1884 | 1674 | libtool_flags="--cache-file=$cache_file" |
1885 | 1675 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
1886 | 1676 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
1887 | 1677 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
1888 | -test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen" | |
1889 | -test "$silent" = yes && libtool_flags="$libtool_flags --silent" | |
1890 | 1678 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
1891 | 1679 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
1892 | 1680 | |
1681 | + | |
1682 | +# Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
1683 | +if test "${enable_libtool_lock+set}" = set; then | |
1684 | + enableval="$enable_libtool_lock" | |
1685 | + : | |
1686 | +fi | |
1687 | + | |
1688 | +test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
1689 | +test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
1690 | + | |
1893 | 1691 | # Some flags need to be propagated to the compiler or linker for good |
1894 | 1692 | # libtool support. |
1895 | 1693 | case "$host" in |
1896 | 1694 | *-*-irix6*) |
1897 | 1695 | # Find out which ABI we are using. |
1898 | - echo '#line 1899 "configure"' > conftest.$ac_ext | |
1899 | - if { (eval echo configure:1900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1696 | + echo '#line 1697 "configure"' > conftest.$ac_ext | |
1697 | + if { (eval echo configure:1698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
1900 | 1698 | case "`/usr/bin/file conftest.o`" in |
1901 | 1699 | *32-bit*) |
1902 | 1700 | LD="${LD-ld} -32" |
@@ -1917,19 +1715,19 @@ case "$host" in | ||
1917 | 1715 | SAVE_CFLAGS="$CFLAGS" |
1918 | 1716 | CFLAGS="$CFLAGS -belf" |
1919 | 1717 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
1920 | -echo "configure:1921: checking whether the C compiler needs -belf" >&5 | |
1718 | +echo "configure:1719: checking whether the C compiler needs -belf" >&5 | |
1921 | 1719 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1922 | 1720 | echo $ac_n "(cached) $ac_c" 1>&6 |
1923 | 1721 | else |
1924 | 1722 | cat > conftest.$ac_ext <<EOF |
1925 | -#line 1926 "configure" | |
1723 | +#line 1724 "configure" | |
1926 | 1724 | #include "confdefs.h" |
1927 | 1725 | |
1928 | 1726 | int main() { |
1929 | 1727 | |
1930 | 1728 | ; return 0; } |
1931 | 1729 | EOF |
1932 | -if { (eval echo configure:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1730 | +if { (eval echo configure:1731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
1933 | 1731 | rm -rf conftest* |
1934 | 1732 | lt_cv_cc_needs_belf=yes |
1935 | 1733 | else |
@@ -1948,161 +1746,9 @@ echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | ||
1948 | 1746 | fi |
1949 | 1747 | ;; |
1950 | 1748 | |
1951 | -*-*-cygwin*) | |
1952 | - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
1953 | -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
1954 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1955 | -echo "configure:1956: checking for $ac_word" >&5 | |
1956 | -if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then | |
1957 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1958 | -else | |
1959 | - if test -n "$DLLTOOL"; then | |
1960 | - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
1961 | -else | |
1962 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1963 | - ac_dummy="$PATH" | |
1964 | - for ac_dir in $ac_dummy; do | |
1965 | - test -z "$ac_dir" && ac_dir=. | |
1966 | - if test -f $ac_dir/$ac_word; then | |
1967 | - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
1968 | - break | |
1969 | - fi | |
1970 | - done | |
1971 | - IFS="$ac_save_ifs" | |
1972 | -fi | |
1973 | -fi | |
1974 | -DLLTOOL="$ac_cv_prog_DLLTOOL" | |
1975 | -if test -n "$DLLTOOL"; then | |
1976 | - echo "$ac_t""$DLLTOOL" 1>&6 | |
1977 | -else | |
1978 | - echo "$ac_t""no" 1>&6 | |
1979 | -fi | |
1980 | - | |
1981 | - | |
1982 | -if test -z "$ac_cv_prog_DLLTOOL"; then | |
1983 | -if test -n "$ac_tool_prefix"; then | |
1984 | - # Extract the first word of "dlltool", so it can be a program name with args. | |
1985 | -set dummy dlltool; ac_word=$2 | |
1986 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
1987 | -echo "configure:1988: checking for $ac_word" >&5 | |
1988 | -if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then | |
1989 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
1990 | -else | |
1991 | - if test -n "$DLLTOOL"; then | |
1992 | - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
1993 | -else | |
1994 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1995 | - ac_dummy="$PATH" | |
1996 | - for ac_dir in $ac_dummy; do | |
1997 | - test -z "$ac_dir" && ac_dir=. | |
1998 | - if test -f $ac_dir/$ac_word; then | |
1999 | - ac_cv_prog_DLLTOOL="dlltool" | |
2000 | - break | |
2001 | - fi | |
2002 | - done | |
2003 | - IFS="$ac_save_ifs" | |
2004 | - test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false" | |
2005 | -fi | |
2006 | -fi | |
2007 | -DLLTOOL="$ac_cv_prog_DLLTOOL" | |
2008 | -if test -n "$DLLTOOL"; then | |
2009 | - echo "$ac_t""$DLLTOOL" 1>&6 | |
2010 | -else | |
2011 | - echo "$ac_t""no" 1>&6 | |
2012 | -fi | |
2013 | - | |
2014 | -else | |
2015 | - DLLTOOL="false" | |
2016 | -fi | |
2017 | -fi | |
2018 | - | |
2019 | -# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
2020 | -set dummy ${ac_tool_prefix}as; ac_word=$2 | |
2021 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2022 | -echo "configure:2023: checking for $ac_word" >&5 | |
2023 | -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then | |
2024 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2025 | -else | |
2026 | - if test -n "$AS"; then | |
2027 | - ac_cv_prog_AS="$AS" # Let the user override the test. | |
2028 | -else | |
2029 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2030 | - ac_dummy="$PATH" | |
2031 | - for ac_dir in $ac_dummy; do | |
2032 | - test -z "$ac_dir" && ac_dir=. | |
2033 | - if test -f $ac_dir/$ac_word; then | |
2034 | - ac_cv_prog_AS="${ac_tool_prefix}as" | |
2035 | - break | |
2036 | - fi | |
2037 | - done | |
2038 | - IFS="$ac_save_ifs" | |
2039 | -fi | |
2040 | -fi | |
2041 | -AS="$ac_cv_prog_AS" | |
2042 | -if test -n "$AS"; then | |
2043 | - echo "$ac_t""$AS" 1>&6 | |
2044 | -else | |
2045 | - echo "$ac_t""no" 1>&6 | |
2046 | -fi | |
2047 | - | |
2048 | - | |
2049 | -if test -z "$ac_cv_prog_AS"; then | |
2050 | -if test -n "$ac_tool_prefix"; then | |
2051 | - # Extract the first word of "as", so it can be a program name with args. | |
2052 | -set dummy as; ac_word=$2 | |
2053 | -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2054 | -echo "configure:2055: checking for $ac_word" >&5 | |
2055 | -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then | |
2056 | - echo $ac_n "(cached) $ac_c" 1>&6 | |
2057 | -else | |
2058 | - if test -n "$AS"; then | |
2059 | - ac_cv_prog_AS="$AS" # Let the user override the test. | |
2060 | -else | |
2061 | - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
2062 | - ac_dummy="$PATH" | |
2063 | - for ac_dir in $ac_dummy; do | |
2064 | - test -z "$ac_dir" && ac_dir=. | |
2065 | - if test -f $ac_dir/$ac_word; then | |
2066 | - ac_cv_prog_AS="as" | |
2067 | - break | |
2068 | - fi | |
2069 | - done | |
2070 | - IFS="$ac_save_ifs" | |
2071 | - test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false" | |
2072 | -fi | |
2073 | -fi | |
2074 | -AS="$ac_cv_prog_AS" | |
2075 | -if test -n "$AS"; then | |
2076 | - echo "$ac_t""$AS" 1>&6 | |
2077 | -else | |
2078 | - echo "$ac_t""no" 1>&6 | |
2079 | -fi | |
2080 | - | |
2081 | -else | |
2082 | - AS="false" | |
2083 | -fi | |
2084 | -fi | |
2085 | - | |
2086 | - | |
2087 | - ;; | |
2088 | 1749 | |
2089 | 1750 | esac |
2090 | 1751 | |
2091 | -# enable the --disable-libtool-lock switch | |
2092 | - | |
2093 | -# Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
2094 | -if test "${enable_libtool_lock+set}" = set; then | |
2095 | - enableval="$enable_libtool_lock" | |
2096 | - need_locks=$enableval | |
2097 | -else | |
2098 | - need_locks=yes | |
2099 | -fi | |
2100 | - | |
2101 | - | |
2102 | -if test x"$need_locks" = xno; then | |
2103 | - libtool_flags="$libtool_flags --disable-lock" | |
2104 | -fi | |
2105 | - | |
2106 | 1752 | |
2107 | 1753 | # Save cache, so that ltconfig can load it |
2108 | 1754 | cat > confcache <<\EOF |
@@ -2155,8 +1801,9 @@ rm -f confcache | ||
2155 | 1801 | |
2156 | 1802 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
2157 | 1803 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
2158 | -LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ | |
2159 | -DLLTOOL="$DLLTOOL" AS="$AS" \ | |
1804 | +LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
1805 | +LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ | |
1806 | +DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ | |
2160 | 1807 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
2161 | 1808 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ |
2162 | 1809 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
@@ -2210,7 +1857,7 @@ EOF | ||
2210 | 1857 | target_all=libzgcj.la |
2211 | 1858 | else |
2212 | 1859 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
2213 | -echo "configure:2214: checking how to run the C preprocessor" >&5 | |
1860 | +echo "configure:1861: checking how to run the C preprocessor" >&5 | |
2214 | 1861 | # On Suns, sometimes $CPP names a directory. |
2215 | 1862 | if test -n "$CPP" && test -d "$CPP"; then |
2216 | 1863 | CPP= |
@@ -2225,13 +1872,13 @@ else | ||
2225 | 1872 | # On the NeXT, cc -E runs the code through the compiler's parser, |
2226 | 1873 | # not just through cpp. |
2227 | 1874 | cat > conftest.$ac_ext <<EOF |
2228 | -#line 2229 "configure" | |
1875 | +#line 1876 "configure" | |
2229 | 1876 | #include "confdefs.h" |
2230 | 1877 | #include <assert.h> |
2231 | 1878 | Syntax Error |
2232 | 1879 | EOF |
2233 | 1880 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2234 | -{ (eval echo configure:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1881 | +{ (eval echo configure:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2235 | 1882 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2236 | 1883 | if test -z "$ac_err"; then |
2237 | 1884 | : |
@@ -2242,13 +1889,13 @@ else | ||
2242 | 1889 | rm -rf conftest* |
2243 | 1890 | CPP="${CC-cc} -E -traditional-cpp" |
2244 | 1891 | cat > conftest.$ac_ext <<EOF |
2245 | -#line 2246 "configure" | |
1892 | +#line 1893 "configure" | |
2246 | 1893 | #include "confdefs.h" |
2247 | 1894 | #include <assert.h> |
2248 | 1895 | Syntax Error |
2249 | 1896 | EOF |
2250 | 1897 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2251 | -{ (eval echo configure:2252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1898 | +{ (eval echo configure:1899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2252 | 1899 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2253 | 1900 | if test -z "$ac_err"; then |
2254 | 1901 | : |
@@ -2259,13 +1906,13 @@ else | ||
2259 | 1906 | rm -rf conftest* |
2260 | 1907 | CPP="${CC-cc} -nologo -E" |
2261 | 1908 | cat > conftest.$ac_ext <<EOF |
2262 | -#line 2263 "configure" | |
1909 | +#line 1910 "configure" | |
2263 | 1910 | #include "confdefs.h" |
2264 | 1911 | #include <assert.h> |
2265 | 1912 | Syntax Error |
2266 | 1913 | EOF |
2267 | 1914 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2268 | -{ (eval echo configure:2269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1915 | +{ (eval echo configure:1916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2269 | 1916 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2270 | 1917 | if test -z "$ac_err"; then |
2271 | 1918 | : |
@@ -2293,17 +1940,17 @@ for ac_hdr in unistd.h | ||
2293 | 1940 | do |
2294 | 1941 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2295 | 1942 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2296 | -echo "configure:2297: checking for $ac_hdr" >&5 | |
1943 | +echo "configure:1944: checking for $ac_hdr" >&5 | |
2297 | 1944 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2298 | 1945 | echo $ac_n "(cached) $ac_c" 1>&6 |
2299 | 1946 | else |
2300 | 1947 | cat > conftest.$ac_ext <<EOF |
2301 | -#line 2302 "configure" | |
1948 | +#line 1949 "configure" | |
2302 | 1949 | #include "confdefs.h" |
2303 | 1950 | #include <$ac_hdr> |
2304 | 1951 | EOF |
2305 | 1952 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2306 | -{ (eval echo configure:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
1953 | +{ (eval echo configure:1954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2307 | 1954 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2308 | 1955 | if test -z "$ac_err"; then |
2309 | 1956 | rm -rf conftest* |
@@ -2332,12 +1979,12 @@ done | ||
2332 | 1979 | for ac_func in getpagesize |
2333 | 1980 | do |
2334 | 1981 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2335 | -echo "configure:2336: checking for $ac_func" >&5 | |
1982 | +echo "configure:1983: checking for $ac_func" >&5 | |
2336 | 1983 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2337 | 1984 | echo $ac_n "(cached) $ac_c" 1>&6 |
2338 | 1985 | else |
2339 | 1986 | cat > conftest.$ac_ext <<EOF |
2340 | -#line 2341 "configure" | |
1987 | +#line 1988 "configure" | |
2341 | 1988 | #include "confdefs.h" |
2342 | 1989 | /* System header to define __stub macros and hopefully few prototypes, |
2343 | 1990 | which can conflict with char $ac_func(); below. */ |
@@ -2360,7 +2007,7 @@ $ac_func(); | ||
2360 | 2007 | |
2361 | 2008 | ; return 0; } |
2362 | 2009 | EOF |
2363 | -if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2010 | +if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2364 | 2011 | rm -rf conftest* |
2365 | 2012 | eval "ac_cv_func_$ac_func=yes" |
2366 | 2013 | else |
@@ -2385,7 +2032,7 @@ fi | ||
2385 | 2032 | done |
2386 | 2033 | |
2387 | 2034 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
2388 | -echo "configure:2389: checking for working mmap" >&5 | |
2035 | +echo "configure:2036: checking for working mmap" >&5 | |
2389 | 2036 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
2390 | 2037 | echo $ac_n "(cached) $ac_c" 1>&6 |
2391 | 2038 | else |
@@ -2393,7 +2040,7 @@ else | ||
2393 | 2040 | ac_cv_func_mmap_fixed_mapped=no |
2394 | 2041 | else |
2395 | 2042 | cat > conftest.$ac_ext <<EOF |
2396 | -#line 2397 "configure" | |
2043 | +#line 2044 "configure" | |
2397 | 2044 | #include "confdefs.h" |
2398 | 2045 | |
2399 | 2046 | /* Thanks to Mike Haertel and Jim Avera for this test. |
@@ -2533,7 +2180,7 @@ main() | ||
2533 | 2180 | } |
2534 | 2181 | |
2535 | 2182 | EOF |
2536 | -if { (eval echo configure:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
2183 | +if { (eval echo configure:2184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | |
2537 | 2184 | then |
2538 | 2185 | ac_cv_func_mmap_fixed_mapped=yes |
2539 | 2186 | else |
@@ -2558,12 +2205,12 @@ fi | ||
2558 | 2205 | for ac_func in memcpy strerror |
2559 | 2206 | do |
2560 | 2207 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2561 | -echo "configure:2562: checking for $ac_func" >&5 | |
2208 | +echo "configure:2209: checking for $ac_func" >&5 | |
2562 | 2209 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2563 | 2210 | echo $ac_n "(cached) $ac_c" 1>&6 |
2564 | 2211 | else |
2565 | 2212 | cat > conftest.$ac_ext <<EOF |
2566 | -#line 2567 "configure" | |
2213 | +#line 2214 "configure" | |
2567 | 2214 | #include "confdefs.h" |
2568 | 2215 | /* System header to define __stub macros and hopefully few prototypes, |
2569 | 2216 | which can conflict with char $ac_func(); below. */ |
@@ -2586,7 +2233,7 @@ $ac_func(); | ||
2586 | 2233 | |
2587 | 2234 | ; return 0; } |
2588 | 2235 | EOF |
2589 | -if { (eval echo configure:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2236 | +if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2590 | 2237 | rm -rf conftest* |
2591 | 2238 | eval "ac_cv_func_$ac_func=yes" |
2592 | 2239 | else |
@@ -2613,7 +2260,7 @@ done | ||
2613 | 2260 | |
2614 | 2261 | if test "$with_system_zlib" = yes; then |
2615 | 2262 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 |
2616 | -echo "configure:2617: checking for deflate in -lz" >&5 | |
2263 | +echo "configure:2264: checking for deflate in -lz" >&5 | |
2617 | 2264 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
2618 | 2265 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
2619 | 2266 | echo $ac_n "(cached) $ac_c" 1>&6 |
@@ -2621,7 +2268,7 @@ else | ||
2621 | 2268 | ac_save_LIBS="$LIBS" |
2622 | 2269 | LIBS="-lz $LIBS" |
2623 | 2270 | cat > conftest.$ac_ext <<EOF |
2624 | -#line 2625 "configure" | |
2271 | +#line 2272 "configure" | |
2625 | 2272 | #include "confdefs.h" |
2626 | 2273 | /* Override any gcc2 internal prototype to avoid an error. */ |
2627 | 2274 | /* We use char because int might match the return type of a gcc2 |
@@ -2632,7 +2279,7 @@ int main() { | ||
2632 | 2279 | deflate() |
2633 | 2280 | ; return 0; } |
2634 | 2281 | EOF |
2635 | -if { (eval echo configure:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2282 | +if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
2636 | 2283 | rm -rf conftest* |
2637 | 2284 | eval "ac_cv_lib_$ac_lib_var=yes" |
2638 | 2285 | else |
@@ -2664,17 +2311,17 @@ for ac_hdr in unistd.h | ||
2664 | 2311 | do |
2665 | 2312 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
2666 | 2313 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
2667 | -echo "configure:2668: checking for $ac_hdr" >&5 | |
2314 | +echo "configure:2315: checking for $ac_hdr" >&5 | |
2668 | 2315 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2669 | 2316 | echo $ac_n "(cached) $ac_c" 1>&6 |
2670 | 2317 | else |
2671 | 2318 | cat > conftest.$ac_ext <<EOF |
2672 | -#line 2673 "configure" | |
2319 | +#line 2320 "configure" | |
2673 | 2320 | #include "confdefs.h" |
2674 | 2321 | #include <$ac_hdr> |
2675 | 2322 | EOF |
2676 | 2323 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
2677 | -{ (eval echo configure:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2324 | +{ (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | |
2678 | 2325 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2679 | 2326 | if test -z "$ac_err"; then |
2680 | 2327 | rm -rf conftest* |
@@ -2897,10 +2544,7 @@ s%@CC@%$CC%g | ||
2897 | 2544 | s%@RANLIB@%$RANLIB%g |
2898 | 2545 | s%@LD@%$LD%g |
2899 | 2546 | s%@NM@%$NM%g |
2900 | -s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g | |
2901 | 2547 | s%@LN_S@%$LN_S%g |
2902 | -s%@DLLTOOL@%$DLLTOOL%g | |
2903 | -s%@AS@%$AS%g | |
2904 | 2548 | s%@LIBTOOL@%$LIBTOOL%g |
2905 | 2549 | s%@COMPPATH@%$COMPPATH%g |
2906 | 2550 | s%@CPP@%$CPP%g |