Changeset 6110 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Nov 22, 2019 6:18:55 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r6066 r6110 1298 1298 ]) 1299 1299 1300 dnl # VPX alt prefix 1301 AC_ARG_WITH(vpx, 1302 AS_HELP_STRING([--with-vpx=DIR], 1303 [Specify alternate VPX prefix]), 1304 [], 1305 [with_vpx=no] 1306 ) 1307 1308 dnl # Do not use default VPX installation if we are cross-compiling 1309 if test "x$ac_cross_compile" != "x" -a "x$with_vpx" = "xno"; then 1310 enable_vpx=no 1311 fi 1312 1313 dnl # VPX 1314 AC_SUBST(ac_vpx_cflags) 1315 AC_SUBST(ac_vpx_ldflags) 1316 AC_ARG_ENABLE(vpx, 1317 AS_HELP_STRING([--disable-vpx], 1318 [Disable VPX (default: not disabled)]), 1319 [ 1320 if test "$enable_vpx" = "no"; then 1321 AC_MSG_RESULT([Checking if VPX is disabled... yes]) 1322 fi 1323 ], 1324 [ 1325 if test "x$with_vpx" != "xno" -a "x$with_vpx" != "x"; then 1326 VPX_PREFIX=$with_vpx 1327 VPX_CFLAGS="-I$VPX_PREFIX/include" 1328 VPX_LDFLAGS="-L$VPX_PREFIX/lib" 1329 AC_MSG_RESULT([Using VPX prefix... $with_vpx]) 1330 else 1331 VPX_CFLAGS="" 1332 VPX_LDFLAGS="" 1333 fi 1334 1335 AC_MSG_CHECKING([VPX usability]) 1336 1337 VPX_LIBS="-lvpx" 1338 1339 SAVED_LIBS="$LIBS" 1340 SAVED_LDFLAGS="$LDFLAGS" 1341 SAVED_CFLAGS="$CFLAGS" 1342 1343 LIBS="$VPX_LIBS $LIBS" 1344 LDFLAGS="$VPX_LDFLAGS $LDFLAGS" 1345 CFLAGS="$VPX_CFLAGS $CFLAGS" 1346 1347 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <vpx/vpx_encoder.h> 1348 #include <vpx/vp8cx.h> 1349 ]], 1350 [vpx_codec_iface_t *(*enc_if)() = &vpx_codec_vp8_cx;] 1351 )], 1352 [ ac_vpx_cflags="-DPJMEDIA_HAS_VPX_CODEC=1 $VPX_CFLAGS" 1353 ac_vpx_ldflags="$VPX_LDFLAGS $VPX_LIBS" 1354 AC_MSG_RESULT(ok) 1355 ], 1356 [ 1357 LIBS="$SAVED_LIBS" 1358 LDFLAGS="$SAVED_LDFLAGS" 1359 CFLAGS="$SAVED_CFLAGS" 1360 AC_MSG_RESULT(no) 1361 ]) 1362 1363 ]) 1364 1300 1365 1301 1366 dnl ########################################################
Note: See TracChangeset
for help on using the changeset viewer.