Changeset 1330

Show
Ignore:
Timestamp:
02/02/08 14:11:55 (7 months ago)
Author:
bjornroche
Message:

Patch to make universal binary optional. (This is not quite patch 5/5 from Peter Grayson referanced here: http://techweb.rfa.org/pipermail/portaudio/2008-January/008180.html, but rather this modicication: http://techweb.rfa.org/pipermail/portaudio/2008-February/008188.html)

Location:
portaudio/branches/v19-devel
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • portaudio/branches/v19-devel/configure

    r1329 r1330  
    14541454  --enable-cxx (default=no) 
    14551455  --enable-mac-debug (default=no) 
     1456  --enable-mac-universal (default=yes) 
    14561457  --enable-shared[=PKGS]  build shared libraries [default=yes] 
    14571458  --enable-static[=PKGS]  build static libraries [default=yes] 
     
    20272028 
    20282029 
     2030# Check whether --enable-mac-universal was given. 
     2031if test "${enable_mac_universal+set}" = set; then 
     2032  enableval=$enable_mac_universal; enable_mac_universal=$enableval 
     2033else 
     2034  enable_mac_universal="yes" 
     2035fi 
     2036 
     2037 
    20292038 
    20302039ac_ext=c 
     
    37763785*-*-irix6*) 
    37773786  # Find out which ABI we are using. 
    3778   echo '#line 3778 "configure"' > conftest.$ac_ext 
     3787  echo '#line 3787 "configure"' > conftest.$ac_ext 
    37793788  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
    37803789  (eval $ac_compile) 2>&5 
     
    67456754   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    67466755   -e 's:$: $lt_compiler_flag:'` 
    6747    (eval echo "\"\$as_me:6747: $lt_compile\"" >&5) 
     6756   (eval echo "\"\$as_me:6756: $lt_compile\"" >&5) 
    67486757   (eval "$lt_compile" 2>conftest.err) 
    67496758   ac_status=$? 
    67506759   cat conftest.err >&5 
    6751    echo "$as_me:6751: \$? = $ac_status" >&5 
     6760   echo "$as_me:6760: \$? = $ac_status" >&5 
    67526761   if (exit $ac_status) && test -s "$ac_outfile"; then 
    67536762     # The compiler can only warn and ignore the option if not recognized 
     
    70137022   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    70147023   -e 's:$: $lt_compiler_flag:'` 
    7015    (eval echo "\"\$as_me:7015: $lt_compile\"" >&5) 
     7024   (eval echo "\"\$as_me:7024: $lt_compile\"" >&5) 
    70167025   (eval "$lt_compile" 2>conftest.err) 
    70177026   ac_status=$? 
    70187027   cat conftest.err >&5 
    7019    echo "$as_me:7019: \$? = $ac_status" >&5 
     7028   echo "$as_me:7028: \$? = $ac_status" >&5 
    70207029   if (exit $ac_status) && test -s "$ac_outfile"; then 
    70217030     # The compiler can only warn and ignore the option if not recognized 
     
    71177126   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    71187127   -e 's:$: $lt_compiler_flag:'` 
    7119    (eval echo "\"\$as_me:7119: $lt_compile\"" >&5) 
     7128   (eval echo "\"\$as_me:7128: $lt_compile\"" >&5) 
    71207129   (eval "$lt_compile" 2>out/conftest.err) 
    71217130   ac_status=$? 
    71227131   cat out/conftest.err >&5 
    7123    echo "$as_me:7123: \$? = $ac_status" >&5 
     7132   echo "$as_me:7132: \$? = $ac_status" >&5 
    71247133   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    71257134   then 
     
    94629471  lt_status=$lt_dlunknown 
    94639472  cat > conftest.$ac_ext <<EOF 
    9464 #line 9464 "configure" 
     9473#line 9473 "configure" 
    94659474#include "confdefs.h" 
    94669475 
     
    95629571  lt_status=$lt_dlunknown 
    95639572  cat > conftest.$ac_ext <<EOF 
    9564 #line 9564 "configure" 
     9573#line 9573 "configure" 
    95659574#include "confdefs.h" 
    95669575 
     
    1189811907   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1189911908   -e 's:$: $lt_compiler_flag:'` 
    11900    (eval echo "\"\$as_me:11900: $lt_compile\"" >&5) 
     11909   (eval echo "\"\$as_me:11909: $lt_compile\"" >&5) 
    1190111910   (eval "$lt_compile" 2>conftest.err) 
    1190211911   ac_status=$? 
    1190311912   cat conftest.err >&5 
    11904    echo "$as_me:11904: \$? = $ac_status" >&5 
     11913   echo "$as_me:11913: \$? = $ac_status" >&5 
    1190511914   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1190611915     # The compiler can only warn and ignore the option if not recognized 
     
    1200212011   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1200312012   -e 's:$: $lt_compiler_flag:'` 
    12004    (eval echo "\"\$as_me:12004: $lt_compile\"" >&5) 
     12013   (eval echo "\"\$as_me:12013: $lt_compile\"" >&5) 
    1200512014   (eval "$lt_compile" 2>out/conftest.err) 
    1200612015   ac_status=$? 
    1200712016   cat out/conftest.err >&5 
    12008    echo "$as_me:12008: \$? = $ac_status" >&5 
     12017   echo "$as_me:12017: \$? = $ac_status" >&5 
    1200912018   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1201012019   then 
     
    1360913618   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1361013619   -e 's:$: $lt_compiler_flag:'` 
    13611    (eval echo "\"\$as_me:13611: $lt_compile\"" >&5) 
     13620   (eval echo "\"\$as_me:13620: $lt_compile\"" >&5) 
    1361213621   (eval "$lt_compile" 2>conftest.err) 
    1361313622   ac_status=$? 
    1361413623   cat conftest.err >&5 
    13615    echo "$as_me:13615: \$? = $ac_status" >&5 
     13624   echo "$as_me:13624: \$? = $ac_status" >&5 
    1361613625   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1361713626     # The compiler can only warn and ignore the option if not recognized 
     
    1371313722   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1371413723   -e 's:$: $lt_compiler_flag:'` 
    13715    (eval echo "\"\$as_me:13715: $lt_compile\"" >&5) 
     13724   (eval echo "\"\$as_me:13724: $lt_compile\"" >&5) 
    1371613725   (eval "$lt_compile" 2>out/conftest.err) 
    1371713726   ac_status=$? 
    1371813727   cat out/conftest.err >&5 
    13719    echo "$as_me:13719: \$? = $ac_status" >&5 
     13728   echo "$as_me:13728: \$? = $ac_status" >&5 
    1372013729   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1372113730   then 
     
    1594815957   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1594915958   -e 's:$: $lt_compiler_flag:'` 
    15950    (eval echo "\"\$as_me:15950: $lt_compile\"" >&5) 
     15959   (eval echo "\"\$as_me:15959: $lt_compile\"" >&5) 
    1595115960   (eval "$lt_compile" 2>conftest.err) 
    1595215961   ac_status=$? 
    1595315962   cat conftest.err >&5 
    15954    echo "$as_me:15954: \$? = $ac_status" >&5 
     15963   echo "$as_me:15963: \$? = $ac_status" >&5 
    1595515964   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1595615965     # The compiler can only warn and ignore the option if not recognized 
     
    1621616225   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1621716226   -e 's:$: $lt_compiler_flag:'` 
    16218    (eval echo "\"\$as_me:16218: $lt_compile\"" >&5) 
     16227   (eval echo "\"\$as_me:16227: $lt_compile\"" >&5) 
    1621916228   (eval "$lt_compile" 2>conftest.err) 
    1622016229   ac_status=$? 
    1622116230   cat conftest.err >&5 
    16222    echo "$as_me:16222: \$? = $ac_status" >&5 
     16231   echo "$as_me:16231: \$? = $ac_status" >&5 
    1622316232   if (exit $ac_status) && test -s "$ac_outfile"; then 
    1622416233     # The compiler can only warn and ignore the option if not recognized 
     
    1632016329   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 
    1632116330   -e 's:$: $lt_compiler_flag:'` 
    16322    (eval echo "\"\$as_me:16322: $lt_compile\"" >&5) 
     16331   (eval echo "\"\$as_me:16331: $lt_compile\"" >&5) 
    1632316332   (eval "$lt_compile" 2>out/conftest.err) 
    1632416333   ac_status=$? 
    1632516334   cat out/conftest.err >&5 
    16326    echo "$as_me:16326: \$? = $ac_status" >&5 
     16335   echo "$as_me:16335: \$? = $ac_status" >&5 
    1632716336   if (exit $ac_status) && test -s out/conftest2.$ac_objext 
    1632816337   then 
     
    2126421273 
    2126521274if ( echo "${host_os}" | grep ^darwin >> /dev/null ) && 
    21266       [ "$enable_mac_debug" != "yes" ] ; then 
     21275      [ "$enable_mac_universal" = "yes" ] && 
     21276       [ "$enable_mac_debug" != "yes" ] ; then 
    2126721277   CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG" 
    2126821278else 
     
    2128721297        LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon" 
    2128821298 
    21289         if [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then 
    21290            mac_arches="-arch i386 -arch ppc -arch x86_64 -arch ppc64" 
    21291            mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk" 
     21299        if test "x$enable_mac_universal" = "xyes" ; then 
     21300           mac_version_min="-mmacosx-version-min=10.3" 
     21301           if [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then 
     21302              mac_arches="-arch i386 -arch ppc -arch x86_64 -arch ppc64" 
     21303              mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk" 
     21304           else 
     21305              mac_arches="-arch i386 -arch ppc" 
     21306              mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" 
     21307           fi 
    2129221308        else 
    21293            mac_arches="-arch i386 -arch ppc" 
    21294            mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" 
     21309           mac_arches="" 
     21310           mac_sysroot="" 
     21311           mac_version="" 
    2129521312        fi 
    21296         SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot -mmacosx-version-min=10.3" 
    21297         CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot -mmacosx-version-min=10.3" 
     21313        SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot $mac_version_min" 
     21314        CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot $mac_version_min" 
    2129821315        OTHER_OBJS="src/os/mac_osx/pa_mac_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/pa_mac_core_blocking.o src/common/pa_ringbuffer.o" 
    2129921316        PADLL="libportaudio.dylib" 
  • portaudio/branches/v19-devel/configure.in

    r1329 r1330  
    6565            [  --enable-mac-debug (default=no)], 
    6666            enable_mac_debug=$enableval, enable_mac_debug="no") 
     67 
     68AC_ARG_ENABLE(mac-universal, 
     69            [  --enable-mac-universal (default=yes)], 
     70            enable_mac_universal=$enableval, enable_mac_universal="yes") 
    6771 
    6872dnl Checks for programs. 
     
    133137dnl -g is optional on darwin 
    134138if ( echo "${host_os}" | grep ^darwin >> /dev/null ) && 
    135       [[ "$enable_mac_debug" != "yes" ]] ; then 
     139      [[ "$enable_mac_universal" = "yes" ] && 
     140       [ "$enable_mac_debug" != "yes" ]] ; then 
    136141   CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG" 
    137142else 
     
    154159        LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon" 
    155160 
    156         if [[ -d /Developer/SDKs/MacOSX10.5.sdk ]] ; then 
    157            mac_arches="-arch i386 -arch ppc -arch x86_64 -arch ppc64" 
    158            mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk" 
     161        if test "x$enable_mac_universal" = "xyes" ; then 
     162           mac_version_min="-mmacosx-version-min=10.3" 
     163           if [[ -d /Developer/SDKs/MacOSX10.5.sdk ]] ; then 
     164              mac_arches="-arch i386 -arch ppc -arch x86_64 -arch ppc64" 
     165              mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk" 
     166           else 
     167              mac_arches="-arch i386 -arch ppc" 
     168              mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" 
     169           fi 
    159170        else 
    160            mac_arches="-arch i386 -arch ppc" 
    161            mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk" 
    162         fi 
    163         SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot -mmacosx-version-min=10.3" 
    164         CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot -mmacosx-version-min=10.3" 
     171           mac_arches="" 
     172           mac_sysroot="" 
     173           mac_version="" 
     174        fi 
     175        SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot $mac_version_min" 
     176        CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot $mac_version_min" 
    165177        OTHER_OBJS="src/os/mac_osx/pa_mac_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/pa_mac_core_blocking.o src/common/pa_ringbuffer.o" 
    166178        PADLL="libportaudio.dylib"