Changeset 5186 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Oct 6, 2015 5:57:51 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r5150 r5186 1257 1257 1258 1258 1259 dnl # WebRtc alt prefix 1260 AC_ARG_WITH(webrtc, 1261 AC_HELP_STRING([--with-webrtc=DIR], 1262 [Specify alternate WebRtc prefix]), 1263 [], 1264 [with_webrtc=no] 1265 ) 1266 1267 dnl # Do not use default webrtc installation if we are cross-compiling 1268 if test "x$ac_cross_compile" != "x" -a "x$with_webrtc" = "xno"; then 1269 enable_webrtc=no 1270 fi 1271 1272 dnl # WebRtc 1273 AC_SUBST(ac_webrtc_cflags) 1274 AC_SUBST(ac_webrtc_ldflags) 1275 AC_ARG_ENABLE(webrtc, 1276 AC_HELP_STRING([--disable-webrtc], 1277 [Exclude webrtc in the build]), 1278 [if test "$enable_webrtc" = "no"; then 1279 AC_MSG_RESULT([Checking if webrtc is disabled...yes]) 1280 fi], 1281 [ 1282 if test "x$with_webrtc" != "xno" -a "x$with_webrtc" != "x"; then 1283 WEBRTC_PREFIX=$with_webrtc 1284 WEBRTC_CFLAGS="-I$WEBRTC_PREFIX/src" 1285 1286 case $target in 1287 *-apple-darwin_ios*) 1288 case $ARCH in 1289 *arm*) 1290 WEBRTC_CFLAGS="-DPJMEDIA_WEBRTC_AEC_USE_MOBILE=1 $WEBRTC_CFLAGS" 1291 WEBRTC_LDFLAGS="-L$WEBRTC_PREFIX/src/out_ios/Release-iphoneos" 1292 WEBRTC_LIBS="-laudio_processing_neon -lcommon_audio_neon" 1293 ;; 1294 *) 1295 ;; 1296 esac 1297 ;; 1298 *mingw* | *cygw* | *win32* | *w32* | *darwin* | *linux* | *android*) 1299 WEBRTC_LDFLAGS="-L$WEBRTC_PREFIX/src/out/Release" 1300 WEBRTC_LIBS="-laudio_processing_sse2" 1301 ;; 1302 *) 1303 ;; 1304 esac 1305 1306 AC_MSG_RESULT([Using webrtc prefix... $with_webrtc]) 1307 else 1308 WEBRTC_CFLAGS="" 1309 WEBRTC_LDFLAGS="" 1310 fi 1311 1312 WEBRTC_LIBS="$WEBRTC_LIBS -laudio_processing -lcommon_audio -lsystem_wrappers" 1313 1314 SAVED_LIBS="$LIBS" 1315 SAVED_LDFLAGS="$LDFLAGS" 1316 SAVED_CFLAGS="$CFLAGS" 1317 1318 LIBS="$WEBRTC_LIBS $LIBS" 1319 LDFLAGS="$WEBRTC_LDFLAGS $LDFLAGS" 1320 CFLAGS="$WEBRTC_CFLAGS $CFLAGS" 1321 1322 AC_CHECK_LIB(audio_processing, 1323 WebRtcAec_Process, 1324 [ ac_webrtc_cflags="-DPJMEDIA_HAS_WEBRTC_AEC=1 $WEBRTC_CFLAGS" 1325 ac_webrtc_ldflags="$WEBRTC_LDFLAGS $WEBRTC_LIBS" 1326 ], 1327 [ LIBS="$SAVED_LIBS" 1328 LDFLAGS="$SAVED_LDFLAGS" 1329 CFLAGS="$SAVED_CFLAGS" 1330 ], 1331 [] 1332 ) 1333 ]) 1334 1259 1335 dnl ######################################################## 1260 1336 dnl # Intel IPP support
Note: See TracChangeset
for help on using the changeset viewer.