Changeset 3158 for pjproject/trunk/aconfigure.ac
- Timestamp:
- May 1, 2010 10:05:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure.ac
r3099 r3158 409 409 [ 410 410 if test "x$with_external_gsm" != "xno"; then 411 # Test GSM library installation 412 AC_MSG_CHECKING([if external GSM devkit is installed]) 413 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <gsm/gsm.h> 414 ]], 415 [gsm_create(); ]) 416 ], 417 [AC_MSG_RESULT(yes!!) 418 AC_DEFINE(PJMEDIA_EXTERNAL_GSM_CODEC, 1) 419 ac_external_gsm="1" 420 ], 421 [AC_MSG_ERROR([Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths])]) 411 # Test GSM library installation 412 AC_MSG_CHECKING([if external GSM devkit is installed as gsm/gsm.h]) 413 AC_COMPILE_IFELSE( 414 [AC_LANG_PROGRAM([[#include <gsm/gsm.h> ]], [gsm_create(); ]) ], 415 [AC_MSG_RESULT(yes!!) 416 AC_DEFINE(PJMEDIA_EXTERNAL_GSM_CODEC, 1) 417 AC_DEFINE(PJMEDIA_EXTERNAL_GSM_GSM_H, 1) 418 ac_external_gsm="1" 419 ], 420 [ 421 AC_MSG_RESULT(no) 422 AC_MSG_CHECKING([if external GSM devkit is installed as gsm.h]) 423 AC_COMPILE_IFELSE( 424 [AC_LANG_PROGRAM([[#include <gsm.h> ]], [gsm_create(); ]) ], 425 [AC_MSG_RESULT(yes!!) 426 AC_DEFINE(PJMEDIA_EXTERNAL_GSM_CODEC, 1) 427 AC_DEFINE(PJMEDIA_EXTERNAL_GSM_H, 1) 428 ac_external_gsm="1" 429 ], 430 [AC_MSG_ERROR([Unable to use external GSM library. If GSM development files are not available in the default locations, use CFLAGS and LDFLAGS env var to set the include/lib paths]) 431 ] 432 ) 433 ] 434 ) 422 435 fi 423 436 ]
Note: See TracChangeset
for help on using the changeset viewer.