Changeset 1282 for pjproject/trunk
- Timestamp:
- May 16, 2007 1:41:00 PM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/aconfigure
r1279 r1282 3341 3341 3342 3342 3343 echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 3344 echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 3345 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then 3346 echo $ECHO_N "(cached) $ECHO_C" >&6 3347 else 3348 ac_check_lib_save_LIBS=$LIBS 3349 LIBS="-luuid $LIBS" 3350 cat >conftest.$ac_ext <<_ACEOF 3351 /* confdefs.h. */ 3352 _ACEOF 3353 cat confdefs.h >>conftest.$ac_ext 3354 cat >>conftest.$ac_ext <<_ACEOF 3355 /* end confdefs.h. */ 3356 3357 /* Override any gcc2 internal prototype to avoid an error. */ 3358 #ifdef __cplusplus 3359 extern "C" 3360 #endif 3361 /* We use char because int might match the return type of a gcc2 3362 builtin and then its argument prototype would still apply. */ 3363 char uuid_generate (); 3364 int 3365 main () 3366 { 3367 uuid_generate (); 3368 ; 3369 return 0; 3370 } 3371 _ACEOF 3372 rm -f conftest.$ac_objext conftest$ac_exeext 3373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3374 (eval $ac_link) 2>conftest.er1 3375 ac_status=$? 3376 grep -v '^ *+' conftest.er1 >conftest.err 3377 rm -f conftest.er1 3378 cat conftest.err >&5 3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3380 (exit $ac_status); } && 3381 { ac_try='test -z "$ac_c_werror_flag" 3382 || test ! -s conftest.err' 3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3384 (eval $ac_try) 2>&5 3385 ac_status=$? 3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3387 (exit $ac_status); }; } && 3388 { ac_try='test -s conftest$ac_exeext' 3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3390 (eval $ac_try) 2>&5 3391 ac_status=$? 3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3393 (exit $ac_status); }; }; then 3394 ac_cv_lib_uuid_uuid_generate=yes 3395 else 3396 echo "$as_me: failed program was:" >&5 3397 sed 's/^/| /' conftest.$ac_ext >&5 3398 3399 ac_cv_lib_uuid_uuid_generate=no 3400 fi 3401 rm -f conftest.err conftest.$ac_objext \ 3402 conftest$ac_exeext conftest.$ac_ext 3403 LIBS=$ac_check_lib_save_LIBS 3404 fi 3405 echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 3406 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 3407 if test $ac_cv_lib_uuid_uuid_generate = yes; then 3408 cat >>confdefs.h <<_ACEOF 3409 #define HAVE_LIBUUID 1 3410 _ACEOF 3411 3412 LIBS="-luuid $LIBS" 3413 3414 fi 3415 3416 echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5 3417 echo $ECHO_N "checking for uuid_generate in -luuid... $ECHO_C" >&6 3418 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then 3419 echo $ECHO_N "(cached) $ECHO_C" >&6 3420 else 3421 ac_check_lib_save_LIBS=$LIBS 3422 LIBS="-luuid $LIBS" 3423 cat >conftest.$ac_ext <<_ACEOF 3424 /* confdefs.h. */ 3425 _ACEOF 3426 cat confdefs.h >>conftest.$ac_ext 3427 cat >>conftest.$ac_ext <<_ACEOF 3428 /* end confdefs.h. */ 3429 3430 /* Override any gcc2 internal prototype to avoid an error. */ 3431 #ifdef __cplusplus 3432 extern "C" 3433 #endif 3434 /* We use char because int might match the return type of a gcc2 3435 builtin and then its argument prototype would still apply. */ 3436 char uuid_generate (); 3437 int 3438 main () 3439 { 3440 uuid_generate (); 3441 ; 3442 return 0; 3443 } 3444 _ACEOF 3445 rm -f conftest.$ac_objext conftest$ac_exeext 3446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3447 (eval $ac_link) 2>conftest.er1 3448 ac_status=$? 3449 grep -v '^ *+' conftest.er1 >conftest.err 3450 rm -f conftest.er1 3451 cat conftest.err >&5 3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3453 (exit $ac_status); } && 3454 { ac_try='test -z "$ac_c_werror_flag" 3455 || test ! -s conftest.err' 3456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3457 (eval $ac_try) 2>&5 3458 ac_status=$? 3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3460 (exit $ac_status); }; } && 3461 { ac_try='test -s conftest$ac_exeext' 3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3463 (eval $ac_try) 2>&5 3464 ac_status=$? 3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3466 (exit $ac_status); }; }; then 3467 ac_cv_lib_uuid_uuid_generate=yes 3468 else 3469 echo "$as_me: failed program was:" >&5 3470 sed 's/^/| /' conftest.$ac_ext >&5 3471 3472 ac_cv_lib_uuid_uuid_generate=no 3473 fi 3474 rm -f conftest.err conftest.$ac_objext \ 3475 conftest$ac_exeext conftest.$ac_ext 3476 LIBS=$ac_check_lib_save_LIBS 3477 fi 3478 echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5 3479 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_generate" >&6 3480 if test $ac_cv_lib_uuid_uuid_generate = yes; then 3481 ac_has_uuid_lib=1 3482 fi 3483 3484 3343 3485 echo "$as_me:$LINENO: result: Setting PJ_M_NAME to $target_cpu" >&5 3344 3486 echo "${ECHO_T}Setting PJ_M_NAME to $target_cpu" >&6 … … 8014 8156 8015 8157 8158 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 8159 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 8160 echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 8161 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 8162 echo $ECHO_N "(cached) $ECHO_C" >&6 8163 fi 8164 echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 8165 echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 8166 else 8167 # Is the header compilable? 8168 echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5 8169 echo $ECHO_N "checking uuid/uuid.h usability... $ECHO_C" >&6 8170 cat >conftest.$ac_ext <<_ACEOF 8171 /* confdefs.h. */ 8172 _ACEOF 8173 cat confdefs.h >>conftest.$ac_ext 8174 cat >>conftest.$ac_ext <<_ACEOF 8175 /* end confdefs.h. */ 8176 $ac_includes_default 8177 #include <uuid/uuid.h> 8178 _ACEOF 8179 rm -f conftest.$ac_objext 8180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8181 (eval $ac_compile) 2>conftest.er1 8182 ac_status=$? 8183 grep -v '^ *+' conftest.er1 >conftest.err 8184 rm -f conftest.er1 8185 cat conftest.err >&5 8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8187 (exit $ac_status); } && 8188 { ac_try='test -z "$ac_c_werror_flag" 8189 || test ! -s conftest.err' 8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8191 (eval $ac_try) 2>&5 8192 ac_status=$? 8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8194 (exit $ac_status); }; } && 8195 { ac_try='test -s conftest.$ac_objext' 8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8197 (eval $ac_try) 2>&5 8198 ac_status=$? 8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8200 (exit $ac_status); }; }; then 8201 ac_header_compiler=yes 8202 else 8203 echo "$as_me: failed program was:" >&5 8204 sed 's/^/| /' conftest.$ac_ext >&5 8205 8206 ac_header_compiler=no 8207 fi 8208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8209 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 8210 echo "${ECHO_T}$ac_header_compiler" >&6 8211 8212 # Is the header present? 8213 echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5 8214 echo $ECHO_N "checking uuid/uuid.h presence... $ECHO_C" >&6 8215 cat >conftest.$ac_ext <<_ACEOF 8216 /* confdefs.h. */ 8217 _ACEOF 8218 cat confdefs.h >>conftest.$ac_ext 8219 cat >>conftest.$ac_ext <<_ACEOF 8220 /* end confdefs.h. */ 8221 #include <uuid/uuid.h> 8222 _ACEOF 8223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 8224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 8225 ac_status=$? 8226 grep -v '^ *+' conftest.er1 >conftest.err 8227 rm -f conftest.er1 8228 cat conftest.err >&5 8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8230 (exit $ac_status); } >/dev/null; then 8231 if test -s conftest.err; then 8232 ac_cpp_err=$ac_c_preproc_warn_flag 8233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 8234 else 8235 ac_cpp_err= 8236 fi 8237 else 8238 ac_cpp_err=yes 8239 fi 8240 if test -z "$ac_cpp_err"; then 8241 ac_header_preproc=yes 8242 else 8243 echo "$as_me: failed program was:" >&5 8244 sed 's/^/| /' conftest.$ac_ext >&5 8245 8246 ac_header_preproc=no 8247 fi 8248 rm -f conftest.err conftest.$ac_ext 8249 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 8250 echo "${ECHO_T}$ac_header_preproc" >&6 8251 8252 # So? What about this header? 8253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 8254 yes:no: ) 8255 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5 8256 echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 8257 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5 8258 echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;} 8259 ac_header_preproc=yes 8260 ;; 8261 no:yes:* ) 8262 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5 8263 echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;} 8264 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5 8265 echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;} 8266 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5 8267 echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;} 8268 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5 8269 echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;} 8270 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5 8271 echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;} 8272 { echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5 8273 echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;} 8274 ( 8275 cat <<\_ASBOX 8276 ## ------------------------------------ ## 8277 ## Report this to the pjproject lists. ## 8278 ## ------------------------------------ ## 8279 _ASBOX 8280 ) | 8281 sed "s/^/$as_me: WARNING: /" >&2 8282 ;; 8283 esac 8284 echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5 8285 echo $ECHO_N "checking for uuid/uuid.h... $ECHO_C" >&6 8286 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then 8287 echo $ECHO_N "(cached) $ECHO_C" >&6 8288 else 8289 ac_cv_header_uuid_uuid_h=$ac_header_preproc 8290 fi 8291 echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5 8292 echo "${ECHO_T}$ac_cv_header_uuid_uuid_h" >&6 8293 8294 fi 8295 if test $ac_cv_header_uuid_uuid_h = yes; then 8296 ac_has_uuid_h=1 8297 fi 8298 8299 8016 8300 8017 8301 echo "$as_me:$LINENO: result: Setting PJ_OS_NAME to $target" >&5 … … 8356 8640 ;; 8357 8641 *) 8358 ac_os_objs="file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o guid_simple.o ioqueue_select.o" 8642 ac_os_objs="file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o ioqueue_select.o" 8643 # UUID 8644 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then 8645 ac_os_objs="$ac_os_objs guid_uuid.o" 8646 else 8647 ac_os_objs="$ac_os_objs guid_simple.o" 8648 fi 8359 8649 ;; 8360 8650 esac 8651 8361 8652 8362 8653 -
pjproject/trunk/aconfigure.ac
r1279 r1282 49 49 AC_CHECK_LIB(rt,puts) 50 50 AC_CHECK_LIB(nsl,puts) 51 AC_CHECK_LIB(uuid,uuid_generate) 52 AC_CHECK_LIB(uuid,uuid_generate,[ac_has_uuid_lib=1]) 51 53 52 54 AC_MSG_RESULT([Setting PJ_M_NAME to $target_cpu]) … … 152 154 AC_CHECK_HEADER(winsock.h,[AC_DEFINE(PJ_HAS_WINSOCK_H,1)]) 153 155 AC_CHECK_HEADER(winsock2.h,[AC_DEFINE(PJ_HAS_WINSOCK2_H,1)]) 156 AC_CHECK_HEADER(uuid/uuid.h,[ac_has_uuid_h=1]) 154 157 155 158 AC_MSG_RESULT([Setting PJ_OS_NAME to $target]) … … 233 236 ;; 234 237 *) 235 ac_os_objs="file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o guid_simple.o ioqueue_select.o" 236 ;; 237 esac 238 ac_os_objs="file_access_unistd.o file_io_ansi.o os_core_unix.o os_error_unix.o os_time_unix.o os_timestamp_posix.o ioqueue_select.o" 239 # UUID 240 if test "$ac_has_uuid_lib" = "1" -a "$ac_has_uuid_h" = "1"; then 241 ac_os_objs="$ac_os_objs guid_uuid.o" 242 else 243 ac_os_objs="$ac_os_objs guid_simple.o" 244 fi 245 ;; 246 esac 247 238 248 239 249 -
pjproject/trunk/pjlib/include/pj/guid.h
r974 r1282 49 49 * PJ_GUID_STRING_LENGTH specifies length of GUID string. The value is 50 50 * dependent on the algorithm used internally to generate the GUID string. 51 * If real GUID generator is used, then the length will be 128bit or52 * 3 2bytes. If shadow GUID generator is used, then the length51 * If real GUID generator is used, then the length will be between 32 and 52 * 36 bytes. If shadow GUID generator is used, then the length 53 53 * will be 20 bytes. Application should not assume which algorithm will 54 54 * be used by GUID generator. 55 * 56 * Regardless of the actual length of the GUID, it will not exceed 57 * PJ_GUID_MAX_LENGTH characters. 55 58 */ 56 59 extern const unsigned PJ_GUID_STRING_LENGTH; … … 60 63 * regardless of which algorithm to use. 61 64 */ 62 #define PJ_GUID_MAX_LENGTH 3 265 #define PJ_GUID_MAX_LENGTH 36 63 66 64 67 /** -
pjproject/trunk/pjlib/src/pj/config.c
r1279 r1282 22 22 23 23 static const char *id = "config.c"; 24 const char *PJ_VERSION = "0.7.0- rc1";24 const char *PJ_VERSION = "0.7.0-pre-rc2"; 25 25 26 26 PJ_DEF(void) pj_dump_config(void)
Note: See TracChangeset
for help on using the changeset viewer.