Ignore:
Timestamp:
May 16, 2007 1:51:26 PM (14 years ago)
Author:
bennylp
Message:

Fixed ticket #278: GUID generation cannot generate more than 216 unique numbers (thanks Igor Sobinov)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/aconfigure.ac

    r1056 r1283  
    4747AC_CHECK_LIB(rt,puts) 
    4848AC_CHECK_LIB(nsl,puts) 
     49AC_CHECK_LIB(uuid,uuid_generate) 
     50AC_CHECK_LIB(uuid,uuid_generate,[ac_has_uuid_lib=1])  
     51 
    4952 
    5053AC_MSG_RESULT([Setting PJ_M_NAME to $target_cpu]) 
     
    150153AC_CHECK_HEADER(winsock.h,[AC_DEFINE(PJ_HAS_WINSOCK_H,1)]) 
    151154AC_CHECK_HEADER(winsock2.h,[AC_DEFINE(PJ_HAS_WINSOCK2_H,1)]) 
     155AC_CHECK_HEADER(uuid/uuid.h,[ac_has_uuid_h=1]) 
     156 
    152157 
    153158AC_MSG_RESULT([Setting PJ_OS_NAME to $target]) 
     
    231236        ;; 
    232237  *) 
    233         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" 
     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  
    234245        ;; 
    235246esac 
Note: See TracChangeset for help on using the changeset viewer.