On Thu, Feb 26, 2009 at 7:19 AM, Brian Paul <[email protected]> wrote:
> Benjamin Close wrote:
>> configs/autoconf pulls in configs/defaults.
>> EGL_LIB_DEPS in defauls has -dl which doesn't work on all platforms.
>> Instead when using autoconf we pull in the already tested
>> DLOPEN_LIBS variable and substitute it accordingly. This
>> should make all o/s happy.
>>
>> Signed-off-by: Benjamin Close <[email protected]>
>> ---
>>  configs/autoconf.in |    1 +
>>  configure.ac        |    2 ++
>>  2 files changed, 3 insertions(+), 0 deletions(-)
>>
>> diff --git a/configs/autoconf.in b/configs/autoconf.in
>> index af66d58..b2e6ecf 100644
>> --- a/configs/autoconf.in
>> +++ b/configs/autoconf.in
>> @@ -87,6 +87,7 @@ GLW_SOURCES = @GLW_SOURCES@
>>  MOTIF_CFLAGS = @MOTIF_CFLAGS@
>>
>>  # Library/program dependencies
>> +EGL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 @EGL_LIB_DEPS@
>>  GL_LIB_DEPS = $(EXTRA_LIB_PATH) @GL_LIB_DEPS@
>>  OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @OSMESA_MESA_DEPS@ \
>>       $(EXTRA_LIB_PATH) @OSMESA_LIB_DEPS@
>> diff --git a/configure.ac b/configure.ac
>> index bc233a7..88bb3a8 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -674,6 +674,8 @@ esac
>>  dnl Just default to no EGL for now
>>  USING_EGL=0
>>  AC_SUBST([USING_EGL])
>> +EGL_LIB_DEPS="$DLOPEN_LIBS"
>> +AC_SUBST(EGL_LIB_DEPS)
>>
>>  dnl Set DRI_DIRS, DEFINES and LIB_DEPS
>>  if test "$mesa_driver" = dri; then
>
> Looks like Dan Nicholson's commit
> 53b373451142aeea9111143d7902bf8f5716ef75 does something like this.
> Maybe take a look at his change.

Yeah, it should work exactly the same as libGL under DRI. I meant to
ping Benjamin for that, but forgot.

--
Dan

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to