diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-11-30 17:11:47 +0000 |
---|---|---|
committer | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-11-30 17:11:47 +0000 |
commit | adbc05104707bd021189abdfcf3724199bb561b6 (patch) | |
tree | 0d65996ab4ff6da3d64f95907cc6f6cff979251b | |
parent | a1dfc201bd62a35ce740856528cef33ddfc64816 (diff) | |
download | ffmpeg-adbc05104707bd021189abdfcf3724199bb561b6.tar.gz |
Add more tests for the presence of dlfcn.h and dlopen
Originally committed as revision 1291 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rwxr-xr-x | configure | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -65,6 +65,8 @@ extralibs="-lm" simpleidct="yes" bigendian="no" vhook="no" +dlfcn="no" +dlopen="no" mpegaudio_hp="yes" SHFLAGS=-shared netserver="no" @@ -181,14 +183,34 @@ ldl=-ldl if $cc -o $TMPO $TMPC -ldl 2> /dev/null ; then vhook=yes +dlfcn=yes +dlopen=yes fi if $cc -o $TMPO $TMPC 2> /dev/null ; then vhook=yes +dlfcn=yes +dlopen=yes ldl="" 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 #include <X11/Xlib.h> #include <Imlib2.h> int main( void ) { return (int) imlib_load_font("foo"); } @@ -604,6 +626,14 @@ if test "$v4l" = "yes" ; then echo "CONFIG_VIDEO4LINUX=yes" >> config.mak 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 echo "#define CONFIG_AUDIO_OSS 1" >> $TMPH echo "CONFIG_AUDIO_OSS=yes" >> config.mak |