X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac;h=e8f9a868e2898a48f05f5d547ba89f98769208dd;hb=8e18f5c6cdc3d3dba06a3e04d1f460ee694634a4;hp=a47a4b017e0a2e2f31cc0bb6a0f28500d293c4d5;hpb=d4da0d585c7f603889f9655320e6a28127a7666f;p=vlc diff --git a/configure.ac b/configure.ac index a47a4b017e..e8f9a868e2 100644 --- a/configure.ac +++ b/configure.ac @@ -346,6 +346,7 @@ case "${host_os}" in esac AM_CONDITIONAL(HAVE_BEOS, test "${SYS}" = "beos") AM_CONDITIONAL(HAVE_DARWIN, test "${SYS}" = "darwin") +AM_CONDITIONAL(HAVE_LINUX, [test "${SYS}" = "linux"]) AM_CONDITIONAL(HAVE_WIN32, test "${SYS}" = "mingw32") AM_CONDITIONAL(HAVE_WINCE, test "${SYS}" = "mingwce") @@ -464,7 +465,7 @@ dnl Check for system libs needed need_libc=false dnl Check for usual libc functions -AC_CHECK_FUNCS([gettimeofday strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch lstat strlcpy strdup strndup strnlen atof lldiv posix_fadvise posix_madvise]) +AC_CHECK_FUNCS([gettimeofday strtod strtol strtof strtoll strtoull strsep isatty vasprintf asprintf swab sigrelse getpwuid_r memalign posix_memalign if_nametoindex atoll getenv putenv setenv gmtime_r ctime_r localtime_r lrintf daemon scandir fork bsearch lstat strlcpy strdup strndup strnlen atof lldiv posix_fadvise posix_madvise]) AC_CHECK_FUNCS(strcasecmp,,[AC_CHECK_FUNCS(stricmp)]) AC_CHECK_FUNCS(strncasecmp,,[AC_CHECK_FUNCS(strnicmp)]) AC_CHECK_FUNCS(strcasestr,,[AC_CHECK_FUNCS(stristr)]) @@ -637,6 +638,9 @@ AC_CHECK_LIB(m,ceil,[ AC_CHECK_LIB(m,exp,[ VLC_ADD_LIBS([gaussianblur],[-lm]) ]) +AC_CHECK_LIB(m,round,[ + VLC_ADD_LIBS([dbus],[-lm]) +]) AC_CHECK_LIB(mx,sqrtf,[ VLC_ADD_LIBS([x264],[-lmx]) ]) @@ -1914,7 +1918,7 @@ if test "${enable_live555}" != "no"; then ], [ AC_CHECK_LIB(liveMedia, main, [ # We only have -lliveMedia, do builtins - VLC_ADD_BUILTINS([live555]) + VLC_ADD_PLUGIN([live555]) VLC_ADD_LIBS([live555], [-lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment]) ]) ]) @@ -1936,7 +1940,7 @@ if test "${enable_live555}" != "no"; then if test -f "${real_live555_tree}/liveMedia/libliveMedia.a"; then AC_MSG_RESULT(${real_live555_tree}/liveMedia/libliveMedia.a) - VLC_ADD_BUILTINS([live555]) + VLC_ADD_PLUGIN([live555]) if test "${SYS}" = "mingw32"; then # add ws2_32 for closesocket, select, recv @@ -3198,17 +3202,9 @@ dnl Trying with pkg-config CPPFLAGS="${CPPFLAGS} ${POSTPROC_CFLAGS}" CFLAGS="${CFLAGS} ${POSTPROC_CFLAGS}" AC_CHECK_HEADERS(postproc/postprocess.h) - if test "${SYS}" = "darwin"; then - VLC_ADD_BUILTINS([ffmpeg]) - else - VLC_ADD_PLUGIN([ffmpeg]) - fi + VLC_ADD_PLUGIN([ffmpeg]) if test "${enable_sout}" != "no" -a "${enable_switcher}" = "yes"; then - if test "${SYS}" = "darwin"; then - VLC_ADD_BUILTINS([stream_out_switcher]) - else - VLC_ADD_PLUGIN([stream_out_switcher]) - fi + VLC_ADD_PLUGIN([stream_out_switcher]) fi VLC_ADD_CFLAGS([ffmpeg stream_out_switcher],[${FFMPEG_CFLAGS}]) VLC_ADD_LIBS([ffmpeg stream_out_switcher],[${FFMPEG_LIBS}]) @@ -3412,7 +3408,7 @@ then VLC_ADD_BUILTINS([quicktime]) else AC_CHECK_HEADERS(QuickTime/QuickTime.h, - [ VLC_ADD_BUILTINS([quicktime]) + [ VLC_ADD_PLUGIN([quicktime]) VLC_ADD_LDFLAGS([quicktime],[-Wl,-framework,QuickTime,-framework,Carbon]) ], [ AC_MSG_ERROR([cannot find QuickTime headers]) ]) fi @@ -5522,7 +5518,9 @@ then ORIGCFLAGS=$CFLAGS CFLAGS="$CFLAGS -x objective-c" - AC_CHECK_HEADER(QuartzCore/CALayer.h, [VLC_ADD_BUILTINS([opengllayer])]) + AC_CHECK_HEADER(QuartzCore/CALayer.h, + [VLC_ADD_PLUGIN([opengllayer]) + VLC_ADD_OBJCFLAGS([opengllayer], [-isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5])]) CFLAGS=$ORIGCFLAGS fi