configure.in
branchSDL-1.2
changeset 6909 6cccc0beb880
parent 6405 7b87c1773b3e
child 7291 91ad7b43317a
equal deleted inserted replaced
6908:8b9fcdd925d8 6909:6cccc0beb880
   551             fi
   551             fi
   552             if test x$have_loadso = xyes && \
   552             if test x$have_loadso = xyes && \
   553                test x$enable_pulseaudio_shared = xyes && test x$pulse_lib != x; then
   553                test x$enable_pulseaudio_shared = xyes && test x$pulse_lib != x; then
   554                 echo "-- dynamic libpulse-simple -> $pulse_lib"
   554                 echo "-- dynamic libpulse-simple -> $pulse_lib"
   555                 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSE_DYNAMIC, "$pulse_lib")
   555                 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_PULSE_DYNAMIC, "$pulse_lib")
       
   556 
       
   557                 case "$host" in
       
   558                     # On Solaris, pulseaudio must be linked deferred explicitly
       
   559                     # to prevent undefined symbol failures.
       
   560                     *-*-solaris*)
       
   561                         PULSE_LIBS=`echo $PULSE_LIBS | sed 's/\-l/-Wl,-l/g'`
       
   562                         EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,-zdeferred $PULSE_LIBS -Wl,-znodeferred"
       
   563                 esac
   556             else
   564             else
   557                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS"
   565                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PULSE_LIBS"
   558             fi
   566             fi
   559             have_audio=yes
   567             have_audio=yes
   560         fi
   568         fi
   849             ],[
   857             ],[
   850             have_gcc_altivec=yes
   858             have_gcc_altivec=yes
   851             have_altivec_h_hdr=yes
   859             have_altivec_h_hdr=yes
   852             ])
   860             ])
   853             AC_MSG_RESULT($have_gcc_altivec)
   861             AC_MSG_RESULT($have_gcc_altivec)
   854 	fi
   862         fi
   855 
   863 
   856         if test x$have_gcc_altivec = xno; then
   864         if test x$have_gcc_altivec = xno; then
   857             AC_MSG_CHECKING(for Altivec with GCC -faltivec option)
   865             AC_MSG_CHECKING(for Altivec with GCC -faltivec option)
   858             AC_TRY_COMPILE([
   866             AC_TRY_COMPILE([
   859             vector unsigned int vzero() {
   867             vector unsigned int vzero() {
  1916             ;;
  1924             ;;
  1917         *-*-openbsd*)
  1925         *-*-openbsd*)
  1918             pthread_cflags="-D_REENTRANT"
  1926             pthread_cflags="-D_REENTRANT"
  1919             pthread_lib="-pthread"
  1927             pthread_lib="-pthread"
  1920             ;;
  1928             ;;
       
  1929         *-*-solaris2.9)
       
  1930             # From Solaris 9+, posix4's preferred name is rt.
       
  1931             pthread_cflags="-D_REENTRANT"
       
  1932             pthread_lib="-lpthread -lrt"
       
  1933             ;;
       
  1934         *-*-solaris2.10)
       
  1935             # Solaris 10+ merged pthread into libc.
       
  1936             pthread_cflags="-D_REENTRANT"
       
  1937             pthread_lib="-lrt"
       
  1938             ;;
  1921         *-*-solaris*)
  1939         *-*-solaris*)
       
  1940             # Solaris 11+ merged rt into libc.
  1922             pthread_cflags="-D_REENTRANT"
  1941             pthread_cflags="-D_REENTRANT"
  1923             pthread_lib="-lpthread -lposix4"
  1942             pthread_lib=""
  1924             ;;
  1943             ;;
  1925         *-*-sysv5*)
  1944         *-*-sysv5*)
  1926             pthread_cflags="-D_REENTRANT -Kthread"
  1945             pthread_cflags="-D_REENTRANT -Kthread"
  1927             pthread_lib=""
  1946             pthread_lib=""
  1928             ;;
  1947             ;;