Changeset 4265 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Sep 25, 2012 2:23:06 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r4159 r4265 1367 1367 ]) 1368 1368 1369 dnl # SILK prefix 1370 AC_ARG_WITH(silk, 1371 AC_HELP_STRING([--with-silk=DIR], 1372 [Specify alternate SILK prefix]), 1373 [], 1374 [with_silk=no] 1375 ) 1376 1377 dnl # Do not use default SILK installation if we are cross-compiling 1378 if test "x$ac_cross_compile" != "x" -a "x$with_silk" = "xno"; then 1379 enable_silk=no 1380 fi 1381 1382 dnl # Include SILK support 1383 AC_SUBST(ac_no_silk) 1384 AC_ARG_ENABLE(silk, 1385 AC_HELP_STRING([--disable-silk], 1386 [Exclude SILK support from the build (default: autodetect)]) 1387 , 1388 [ 1389 if test "$enable_silk" = "no"; then 1390 [ac_no_silk=1] 1391 AC_DEFINE(PJMEDIA_HAS_SILK_CODEC,0) 1392 AC_MSG_RESULT([Checking if SILK support is disabled... yes]) 1393 fi 1394 ], 1395 [ 1396 AC_MSG_RESULT([checking for SILK installations..]) 1397 if test "x$with_silk" != "xno" -a "x$with_silk" != "x"; then 1398 CFLAGS="$CFLAGS -I$with_silk/interface" 1399 LDFLAGS="$LDFLAGS -L$with_silk" 1400 AC_MSG_RESULT([Using SILK prefix... $with_silk]) 1401 fi 1402 AC_SUBST(silk_h_present) 1403 AC_SUBST(silk_present) 1404 AC_CHECK_HEADER(SKP_Silk_SDK_API.h,[silk_h_present=1]) 1405 AC_CHECK_LIB(SKP_SILK_SDK,SKP_Silk_SDK_get_version,[silk_present=1 && LIBS="$LIBS -lSKP_SILK_SDK"]) 1406 if test "x$silk_h_present" = "x1" -a "x$silk_present" = "x1"; then 1407 AC_MSG_RESULT([SILK library found, SILK support enabled]) 1408 AC_DEFINE(PJMEDIA_HAS_SILK_CODEC,1) 1409 else 1410 [ac_no_silk=1] 1411 AC_DEFINE(PJMEDIA_HAS_SILK_CODEC,0) 1412 fi 1413 ]) 1414 1415 1369 1416 dnl ########################################## 1370 1417 dnl #
Note: See TracChangeset
for help on using the changeset viewer.