Ignore:
Timestamp:
Sep 10, 2006 10:27:40 PM (18 years ago)
Author:
bennylp
Message:

Fixed autoconf in various other systems (IA64, x86_64, BSD/FreeBSD)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r699 r700  
    2828AC_MSG_RESULT([Setting PJ_M_NAME to $target_cpu]) 
    2929AC_DEFINE_UNQUOTED(PJ_M_NAME,["$target_cpu"]) 
     30 
     31dnl 
     32dnl Memory alignment detection 
     33dnl 
     34AC_MSG_CHECKING([memory alignment]) 
     35case $target in 
     36    ia64-* | x86_64-* ) 
     37        AC_DEFINE(PJ_POOL_ALIGNMENT, 8) 
     38        AC_MSG_RESULT([8 bytes]) 
     39        ;; 
     40    * ) 
     41        AC_DEFINE(PJ_POOL_ALIGNMENT, 4) 
     42        AC_MSG_RESULT([4 bytes (default)]) 
     43        ;; 
     44esac 
     45 
    3046 
    3147dnl 
     
    151167dnl # Determine if socklen_t is available 
    152168AC_MSG_CHECKING([if socklen_t is available]) 
    153 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <unistd.h>]], 
     169AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]], 
    154170                                   [socklen_t xxx = 0;])], 
    155171                  [AC_DEFINE(PJ_HAS_SOCKLEN_T,1) 
     
    204220dnl # Sound device backend selection 
    205221AC_SUBST(ac_pjmedia_snd) 
    206 case $target in 
     222AC_ARG_ENABLE(sound, 
     223              AC_HELP_STRING([--disable-sound], 
     224                             [Exclude sound (i.e. use null sound)]), 
     225              [if test "$enable_sound" = "no"; then 
     226                [ac_pjmedia_snd=null] 
     227                AC_MSG_RESULT([Checking if sound is disabled... yes]) 
     228               fi] 
     229              ) 
     230 
     231if test "$enable_sound" = "no"; then 
     232  true; 
     233else 
     234 case $target in 
    207235  *darwin*) 
    208236        ac_pjmedia_snd=pa_darwinos 
     
    227255        AC_MSG_RESULT([Checking sound device backend... unix]) 
    228256        ;; 
    229 esac 
     257 esac 
     258fi 
    230259 
    231260dnl # Include resampling small filter 
Note: See TracChangeset for help on using the changeset viewer.