Changeset 4875 for pjproject/trunk/aconfigure.ac
- Timestamp:
- Jul 14, 2014 2:37:06 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r4846 r4875 1161 1161 ]) 1162 1162 1163 dnl # libyuv alt prefix 1164 AC_ARG_WITH(libyuv, 1165 AC_HELP_STRING([--with-libyuv=DIR], 1166 [Specify alternate libyuv prefix]), 1167 [], 1168 [with_libyuv=no] 1169 ) 1170 1171 dnl # Do not use default libyuv installation if we are cross-compiling 1172 if test "x$ac_cross_compile" != "x" -a "x$with_libyuv" = "xno"; then 1173 enable_libyuv=no 1174 fi 1175 1176 dnl # Include libyuv 1177 AC_SUBST(ac_libyuv_cflags) 1178 AC_SUBST(ac_libyuv_ldflags) 1179 AC_ARG_ENABLE(libyuv, 1180 AC_HELP_STRING([--disable-libyuv], 1181 [Exclude libyuv in the build]), 1182 [if test "$enable_libyuv" = "no"; then 1183 AC_MSG_RESULT([Checking if libyuv is disabled...yes]) 1184 fi], 1185 [ 1186 if test "x$with_libyuv" != "xno" -a "x$with_libyuv" != "x"; then 1187 LIBYUV_PREFIX=$with_libyuv 1188 LIBYUV_CFLAGS="-I$LIBYUV_PREFIX/include" 1189 1190 case $target in 1191 arm-apple-darwin*) 1192 LIBYUV_LDFLAGS="-L$LIBYUV_PREFIX/out_ios/Release-iphoneos" 1193 case $ARCH in 1194 *armv7*) 1195 LIBYUV_LIBS="-lyuv_neon" 1196 ;; 1197 *) 1198 ;; 1199 esac 1200 ;; 1201 *mingw* | *cygw* | *win32* | *w32* | *darwin* | *linux* | *android*) 1202 LIBYUV_LDFLAGS="-L$LIBYUV_PREFIX/out/Release" 1203 ;; 1204 *) 1205 LIBYUV_CFLAGS="" 1206 LIBYUV_LDFLAGS="" 1207 ;; 1208 esac 1209 1210 AC_MSG_RESULT([Using libyuv prefix... $with_libyuv]) 1211 else 1212 LIBYUV_CFLAGS="" 1213 LIBYUV_LDFLAGS="" 1214 fi 1215 1216 LIBYUV_LIBS="$LIBYUV_LIBS -lyuv" 1217 1218 SAVED_LIBS="$LIBS" 1219 SAVED_LDFLAGS="$LDFLAGS" 1220 SAVED_CFLAGS="$CFLAGS" 1221 1222 LIBS="$LIBYUV_LIBS $LIBS" 1223 LDFLAGS="$LIBYUV_LDFLAGS $LDFLAGS" 1224 CFLAGS="$LIBYUV_CFLAGS $CFLAGS" 1225 1226 AC_CHECK_LIB(yuv, 1227 I420Scale, 1228 [ ac_libyuv_cflags="-DPJMEDIA_HAS_LIBYUV=1 $LIBYUV_CFLAGS" 1229 ac_libyuv_ldflags="$LIBYUV_LDFLAGS $LIBYUV_LIBS" 1230 ], 1231 [ LIBS="$SAVED_LIBS" 1232 LDFLAGS="$SAVED_LDFLAGS" 1233 CFLAGS="$SAVED_CFLAGS" 1234 ], 1235 [] 1236 ) 1237 ]) 1163 1238 1164 1239
Note: See TracChangeset
for help on using the changeset viewer.