Tim:
Looks good, I'm going to commit this now as it seems that writing a
test is not quite trivial (to me at least ;).
Robert
Tim Mooney wrote:
>
> In regard to: Re: question about AC_LTDL_SYS_DLOPEN_DEPLIBS, Gary V....:
>
> >On Monday 16 July 2001 4:10 pm, Robert Boehne wrote:
> >> Here is the test case, if someone wants to libtoolize it, we
> >> could add it to the macro.
> >
> >Seconded! I would happily accept a patch to perform the test *instead* of
> >listing values for only hosts triplets that have been researched...
>
> :-) For now, what do you think of the updated patch, below?
>
> Tim
> --
> Tim Mooney [EMAIL PROTECTED]
> Information Technology Services (701) 231-1076 (Voice)
> Room 242-J6, IACC Building (701) 231-8541 (Fax)
> North Dakota State University, Fargo, ND 58105-5164
>
> diff -ur libtool-1.4b.orig/ltdl.m4 libtool-1.4b/ltdl.m4
> --- libtool-1.4b.orig/ltdl.m4 Thu Jul 5 18:10:26 2001
> +++ libtool-1.4b/ltdl.m4 Mon Jul 16 16:06:34 2001
> @@ -70,13 +70,57 @@
> [AC_REQUIRE([AC_CANONICAL_HOST])
> AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
> libltdl_cv_sys_dlopen_deplibs, [dnl
> - # PORTME does your system automatically load deplibs for dlopen()?
> + # PORTME does your system automatically load deplibs for dlopen()
> + # or its logical equivalent (e.g. shl_load for HP-UX < 11)
> + # For now, we just catch OSes we know something about -- in the
> + # future, we'll try test this programmatically.
> libltdl_cv_sys_dlopen_deplibs=unknown
> case "$host_os" in
> + aix3*|aix4.1.*|aix4.2.*)
> + # Unknown whether this is true for these versions of AIX, but
> + # we want this `case' here to explicitly catch those versions.
> + libltdl_cv_sys_dlopen_deplibs=unknown
> + ;;
> + aix4*)
> + # Unknown whether this is true for aix5, but is true for aix >= 4.3.*
> + libltdl_cv_sys_dlopen_deplibs=yes
> + ;;
> + irix[12345]*|irix6.[01234]*)
> + # Catch all versions of IRIX before 6.5, and indicate that we don't
> + # know how it worked for any of those versions.
> + libltdl_cv_sys_dlopen_deplibs=unknown
> + ;;
> + irix*)
> + # The case above catches anything before 6.5, and it's known that
> + # at 6.5 and later dlopen does load deplibs.
> + libltdl_cv_sys_dlopen_deplibs=yes
> + ;;
> linux*)
> libltdl_cv_sys_dlopen_deplibs=yes
> ;;
> netbsd*)
> + libltdl_cv_sys_dlopen_deplibs=yes
> + ;;
> + osf[1234]*)
> + # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
> + # it did *not* use an RPATH in a shared library to find objects the
> + # library depends on, so we explictly say `no'.
> + libltdl_cv_sys_dlopen_deplibs=no
> + ;;
> + osf5.0|osf5.0a|osf5.1)
> + # dlopen *does* load deplibs and with the right loader patch applied
> + # it even uses RPATH in a shared library to search for shared objects
> + # that the library depends on, but there's no easy way to know if that
> + # patch is installed. Since this is the case, all we can really
> + # say is unknown -- it depends on the patch being installed. If
> + # it is, this changes to `yes'. Without it, it would be `no'.
> + libltdl_cv_sys_dlopen_deplibs=unknown
> + ;;
> + osf*)
> + # the two cases above should catch all versions of osf <= 5.1. Read
> + # the comments above for what we know about them.
> + # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
> + # is used to find them so we can finally say `yes'.
> libltdl_cv_sys_dlopen_deplibs=yes
> ;;
> solaris*)
> --- libtool-1.4b.orig/ChangeLog Mon Jul 9 17:02:09 2001
> +++ libtool-1.4b/ChangeLog Mon Jul 16 16:10:41 2001
> @@ -0,0 +1,5 @@
> +2001-07-16 Robert Boehne <[EMAIL PROTECTED]>, Tim Mooney
><[EMAIL PROTECTED]>
> +
> + * ltdl.m4 (AC_LTDL_SYS_DLOPEN_DEPLIBS): add cases and comments for
> + more platforms, including AIX, Digital/Tru64 UNIX and IRIX.
> +
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: [EMAIL PROTECTED]
_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool