mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-03-05 02:27:18 +00:00
Add more tests for the presence of dlfcn.h and dlopen
Originally committed as revision 1291 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a1dfc201bd
commit
adbc051047
30
configure
vendored
30
configure
vendored
@ -65,6 +65,8 @@ extralibs="-lm"
|
|||||||
simpleidct="yes"
|
simpleidct="yes"
|
||||||
bigendian="no"
|
bigendian="no"
|
||||||
vhook="no"
|
vhook="no"
|
||||||
|
dlfcn="no"
|
||||||
|
dlopen="no"
|
||||||
mpegaudio_hp="yes"
|
mpegaudio_hp="yes"
|
||||||
SHFLAGS=-shared
|
SHFLAGS=-shared
|
||||||
netserver="no"
|
netserver="no"
|
||||||
@ -181,13 +183,33 @@ ldl=-ldl
|
|||||||
|
|
||||||
if $cc -o $TMPO $TMPC -ldl 2> /dev/null ; then
|
if $cc -o $TMPO $TMPC -ldl 2> /dev/null ; then
|
||||||
vhook=yes
|
vhook=yes
|
||||||
|
dlfcn=yes
|
||||||
|
dlopen=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $cc -o $TMPO $TMPC 2> /dev/null ; then
|
if $cc -o $TMPO $TMPC 2> /dev/null ; then
|
||||||
vhook=yes
|
vhook=yes
|
||||||
|
dlfcn=yes
|
||||||
|
dlopen=yes
|
||||||
ldl=""
|
ldl=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cat > $TMPC << EOF
|
||||||
|
int main( void ) { return (int) dlopen("foo", 0); }
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if $cc -o $TMPO $TMPC -ldl 2> /dev/null ; then
|
||||||
|
vhook=yes
|
||||||
|
dlopen=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
if $cc -o $TMPO $TMPC 2> /dev/null ; then
|
||||||
|
vhook=yes
|
||||||
|
dlopen=yes
|
||||||
|
ldl=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <Imlib2.h>
|
#include <Imlib2.h>
|
||||||
@ -604,6 +626,14 @@ if test "$v4l" = "yes" ; then
|
|||||||
echo "CONFIG_VIDEO4LINUX=yes" >> config.mak
|
echo "CONFIG_VIDEO4LINUX=yes" >> config.mak
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if test "$dlopen" = "yes" ; then
|
||||||
|
echo "#define CONFIG_HAVE_DLOPEN 1" >> $TMPH
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$dlfcn" = "yes" ; then
|
||||||
|
echo "#define CONFIG_HAVE_DLFCN 1" >> $TMPH
|
||||||
|
fi
|
||||||
|
|
||||||
if test "$audio_oss" = "yes" ; then
|
if test "$audio_oss" = "yes" ; then
|
||||||
echo "#define CONFIG_AUDIO_OSS 1" >> $TMPH
|
echo "#define CONFIG_AUDIO_OSS 1" >> $TMPH
|
||||||
echo "CONFIG_AUDIO_OSS=yes" >> config.mak
|
echo "CONFIG_AUDIO_OSS=yes" >> config.mak
|
||||||
|
Loading…
x
Reference in New Issue
Block a user