On Wed, 23 Mar 2011, Vincent Torri wrote:

>
>
> On Thu, 24 Mar 2011, Brett Nash wrote:
>
>>>> PKG_CHECK_MODULES([ELEMENTARY], elementary)
>>>> +AC_LIBTOOL_DLOPEN
>>>
>>> you will have the terrible libltdl stuff. You really want it ?
>>
>> oh god no.
>>
>> All I really want is for the autoconf to do that really tricky thing I
>> used to do manually in the makefile... you know put -ldl at the end of
>> link line (which only works on every platform known to man).
>>
>> Whats the magic for that?  Just the later line below?
>>
>>      nash
>>      [who misses the old days, when men where men, women where women, small
>> furry creatures from alpha centauri where small furry creatures from
>> alpha centauri and build systems were makefiles]
>>
>>> Vincent
>>>
>>>> +AC_CHECK_LIB([dl], [dlopen], [],AC_ERROR([Usable libdl not found! Apollo 
>>>> port not yet complete.]))
>
> indeed, that call will prepend -ldl to LIBS, so it should be sufficient.
> You can maybe add a check for dlfcn.h too. Anyway, just check that when
> you run 'make'
>
> you can also remove
>
> libensure_la_DEPENDENCIES = $(top_builddir)/config.h

something like that

dl_libs=
have_dl="no"
AC_CHECK_LIB([dl], [dlopen],
    [AC_CHECK_HEADER([dlfcn.h],
        [
         dl_libs="-ldl"
         have_dl="yes"
        ])])
if test "x${have_dl}" = "xno" ; then
    AC_MSG_ERROR([Usable libdl not found! Apollo port not yet complete.])
fi
AC_SUBST(dl_libs)

(not tested) and add @dl_libs@ to *_LIBADD

Vincent

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to