]> git.pld-linux.org Git - packages/SDL.git/blob - SDL-dlopen-acfix.patch
http://sam.zoy.org/projects/libcaca/patch-libsdl1.2-libcaca0.5.diff
[packages/SDL.git] / SDL-dlopen-acfix.patch
1 --- SDL-1.2.6/configure.in.orig 2003-09-05 20:48:37.000000000 +0200
2 +++ SDL-1.2.6/configure.in      2003-09-05 21:10:36.881227832 +0200
3 @@ -336,11 +336,11 @@
4              esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`
5              esd_lib=`ls $esd_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
6              echo "-- $esd_lib_spec -> $esd_lib"
7 -            if test x$enable_dlopen != xyes && \
8 +            if test x$enable_sdlopen != xyes && \
9                 test x$enable_esd_shared = xyes; then
10 -                AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])
11 +                AC_MSG_ERROR([You must have dlopen() support and use the --enable-sdlopen option])
12              fi
13 -            if test x$enable_dlopen = xyes && \
14 +            if test x$enable_sdlopen = xyes && \
15                 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
16                  CFLAGS="$CFLAGS -DESD_SUPPORT -DESD_DYNAMIC=\$(esd_lib) $ESD_CFLAGS"
17                  AC_SUBST(esd_lib)
18 @@ -386,11 +386,11 @@
19                  arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libartsc.so.*/'`
20                  arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
21                  echo "-- $arts_lib_spec -> $arts_lib"
22 -                if test x$enable_dlopen != xyes && \
23 +                if test x$enable_sdlopen != xyes && \
24                     test x$enable_arts_shared = xyes; then
25 -                    AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])
26 +                    AC_MSG_ERROR([You must have dlopen() support and use the --enable-sdlopen option])
27                  fi
28 -                if test x$enable_dlopen = xyes && \
29 +                if test x$enable_sdlopen = xyes && \
30                     test x$enable_arts_shared = xyes && test x$arts_lib != x; then
31                      CFLAGS="$CFLAGS -DARTSC_SUPPORT -DARTSC_DYNAMIC=\$(arts_lib) $ARTSC_CFLAGS"
32                      AC_SUBST(arts_lib)
33 @@ -1557,10 +1557,10 @@
34  dnl Check for the dlfcn.h interface for dynamically loading objects
35  CheckDLOPEN()
36  {
37 -    AC_ARG_ENABLE(dlopen,
38 -[  --enable-dlopen         use dlopen for shared object loading [default=no]],
39 -                  , enable_dlopen=yes)
40 -    if test x$enable_dlopen = xyes; then
41 +    AC_ARG_ENABLE(sdlopen,
42 +[  --enable-sdlopen         use dlopen for shared object loading [default=no]],
43 +                  , enable_sdlopen=yes)
44 +    if test x$enable_sdlopen = xyes; then
45          AC_MSG_CHECKING(for dlopen)
46          use_dlopen=no
47          AC_TRY_COMPILE([
This page took 0.204736 seconds and 3 git commands to generate.