X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac;h=a1a7a262ca2d8d3665355028d75a7d5d5581f3a1;hb=369ccbef96b6f8420d5efa847ca8c8bfe8ae01f5;hp=e643a358e309b4da2ec31239a0d89b970374d408;hpb=a52270a257f187b05c8faee925d27c443e616b6e;p=vlc diff --git a/configure.ac b/configure.ac index e643a358e3..a1a7a262ca 100644 --- a/configure.ac +++ b/configure.ac @@ -325,7 +325,7 @@ CPPFLAGS_save="${CPPFLAGS_save} -DSYS_`echo ${SYS} | sed -e 's/-.*//' | tr 'abcd dnl Check for system libs needed need_libc=false -AC_CHECK_FUNCS(gettimeofday select strerror 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) +AC_CHECK_FUNCS(gettimeofday select strerror 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) dnl Check for usual libc functions AC_CHECK_FUNCS(strdup strndup atof) @@ -1202,20 +1202,23 @@ else elif test "${target_cpu}" = "powerpc"; then CFLAGS_TUNING="-mtune=750"; fi +fi - dnl NOTE: this can't be cached cleanly - AS_IF([test "${CFLAGS_TUNING}"], - [CFLAGS_save="${CFLAGS}" - CFLAGS="${CFLAGS} ${CFLAGS_TUNING}" +dnl NOTE: this can't be cached cleanly +AS_IF([test "${CFLAGS_TUNING}"], + [CFLAGS_save="${CFLAGS}" + CFLAGS="${CFLAGS} ${CFLAGS_TUNING}" - AC_MSG_CHECKING([whether $CC accepts ${CFLAGS_TUNING}]) - AC_COMPILE_IFELSE([ ], [tuning="yes"], - [CFLAGS_TUNING=""; tuning="no"]) + AC_MSG_CHECKING([whether $CC accepts ${CFLAGS_TUNING}]) + AC_COMPILE_IFELSE([ ], + [tuning="yes"], + [CFLAGS_TUNING=""; tuning="no" + AS_IF([test "${with_tuning}"], + [AC_MSG_ERROR([requested tuning not supported])])]) - AC_MSG_RESULT([$tuning]) - CFLAGS="${CFLAGS_save}" - ]) -fi + AC_MSG_RESULT([$tuning]) + CFLAGS="${CFLAGS_save}" +]) dnl dnl x86 accelerations @@ -2390,6 +2393,15 @@ then fi fi +dnl +dnl Real plugin +dnl +AC_ARG_ENABLE(real, + [ --enable-real Real audio module (default disabled)]) +if test "${enable_real}" = "yes"; then + VLC_ADD_PLUGINS([realaudio]) +fi + dnl dnl MP4 module dnl @@ -4305,6 +4317,8 @@ AS_IF([test "${enable_loader}" = "yes"], VLC_ADD_LDFLAGS([dmo],[../../../loader/libloader.a]) VLC_ADD_CPPFLAGS([quicktime],[-I../../@top_srcdir@/loader]) VLC_ADD_LDFLAGS([quicktime],[../../loader/libloader.a]) + VLC_ADD_CPPFLAGS([realaudio],[-I../../@top_srcdir@/loader]) + VLC_ADD_LDFLAGS([realaudio],[../../loader/libloader.a]) ]) dnl