Mercurial > sdl-ios-xcode
comparison configure.in @ 1438:1f4f09641645
Date: Sun, 26 Feb 2006 11:25:09 +0900
From: Hayashi Naoyuki
Subject: Re: [SDL] CVS stable again, please update SDL ports
Some problems are caused on Tru64 UNIX.
If applying SDL12-osf1.path, these problems are fixed.
1. configure-script say "recursive mutexes... no" and "pthread
semaphores... no".
checking for pthreads... yes
checking for recursive mutexes... no
checking for pthread semaphores... no
This is because it compiled without pthread_cflags and pthread_lib when
checking recursive mutexes and pthread semaphores.
2. Compiling src/audio/mme/SDL_mmeaudio.c fails.
cc: Severe: ./src/audio/mme/SDL_mmeaudio.c, line 25: Cannot find file
<mme_api.h> specified in #include directive. (noinclfilef)
#include <mme_api.h>
-^
This is because BUILD_CFLAGS is wrong.
3. Compiling src/cdrom/osf/SDL_syscdrom.c fails.
cc: Warning: ./src/cdrom/osf/SDL_syscdrom.c, line 176: Too few actual
parameters in the invocation of the macro "SDL_stack_alloc". (toofewactuals)
cdpath = SDL_stack_alloc(len);
------------------------------------^
cc: Error: ./src/cdrom/osf/SDL_syscdrom.c, line 176: Invalid expression.
(badexpr)
cdpath = SDL_stack_alloc(len);
-----------------^
SDL_stack_alloc is defined in include/SDL_stdinc.h.
#define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*count)
4. Linking fails if running configure with --enable-x11-shared=yes.
/usr/ccs/bin/ld:
Warning: Unresolved:
p_XData32
5. Compiling src/video/x11/SDL_x11dyn.c fails if running configure with
--enable-x11-shared=no.
cc: Error: ./src/video/x11/SDL_x11sym.h, line 149: In this statement,
"_SmtBufferOverflow" is not declared. (undeclared)
SDL_X11_SYM(1,void,_SmtBufferOverflow,(Display *dpy,register smtDisplayPtr))
^
cc: Error: ./src/video/x11/SDL_x11sym.h, line 150: In this statement,
"_SmtBufferOverflow" is not declared. (undeclared)
SDL_X11_SYM(1,void,_SmtBufferOverflow,(Display *dpy,register smtDisplayPtr))
^
cc: Error: ./src/video/x11/SDL_x11sym.h, line 150: In this statement,
"_SmtIpError" is not declared. (undeclared)
SDL_X11_SYM(1,void,_SmtIpError,(Display *dpy,register smtDisplayPtr, int))
^
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 26 Feb 2006 04:54:01 +0000 |
parents | d910939febfa |
children | 0133f0ca5de7 |
comparison
equal
deleted
inserted
replaced
1437:f1781c15934c | 1438:1f4f09641645 |
---|---|
395 have_audio=yes | 395 have_audio=yes |
396 fi | 396 fi |
397 fi | 397 fi |
398 } | 398 } |
399 | 399 |
400 dnl Check whether we want to use Tru64 UNIX native audio or not | |
401 CheckMME() | |
402 { | |
403 dnl Make sure we are running on an Tru64 UNIX | |
404 case $ARCH in | |
405 osf) | |
406 ;; | |
407 *) | |
408 return | |
409 ;; | |
410 esac | |
411 if test x$enable_audio = xyes; then | |
412 AC_MSG_CHECKING(for MME audio support) | |
413 MME_CFLAGS="-I/usr/include/mme" | |
414 MME_LIBS="-lmme" | |
415 have_mme=no | |
416 save_CFLAGS="$CFLAGS" | |
417 CFLAGS="$CFLAGS $MME_CFLAGS" | |
418 AC_TRY_COMPILE([ | |
419 #include <mme_api.h> | |
420 ],[ | |
421 HWAVEOUT sound; | |
422 ],[ | |
423 have_mme=yes | |
424 ]) | |
425 CFLAGS="$save_CFLAGS" | |
426 AC_MSG_RESULT($have_mme) | |
427 # Set up files for the audio library | |
428 if test x$have_mme = xyes; then | |
429 AC_DEFINE(SDL_AUDIO_DRIVER_MMEAUDIO) | |
430 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c" | |
431 BUILD_CFLAGS="$BUILD_CFLAGS $MME_CFLAGS" | |
432 BUILD_LDFLAGS="$BUILD_LDFLAGS $MME_LIBS" | |
433 have_audio=yes | |
434 fi | |
435 fi | |
436 } | |
437 | |
400 dnl Find the ESD includes and libraries | 438 dnl Find the ESD includes and libraries |
401 CheckESD() | 439 CheckESD() |
402 { | 440 { |
403 AC_ARG_ENABLE(esd, | 441 AC_ARG_ENABLE(esd, |
404 AC_HELP_STRING([--enable-esd], [support the Enlightened Sound Daemon [default=yes]]), | 442 AC_HELP_STRING([--enable-esd], [support the Enlightened Sound Daemon [default=yes]]), |
1553 BUILD_CFLAGS="$BUILD_CFLAGS $pthread_cflags" | 1591 BUILD_CFLAGS="$BUILD_CFLAGS $pthread_cflags" |
1554 BUILD_LDFLAGS="$BUILD_LDFLAGS $pthread_lib" | 1592 BUILD_LDFLAGS="$BUILD_LDFLAGS $pthread_lib" |
1555 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags" | 1593 SDL_CFLAGS="$SDL_CFLAGS $pthread_cflags" |
1556 SDL_LIBS="$SDL_LIBS $pthread_lib" | 1594 SDL_LIBS="$SDL_LIBS $pthread_lib" |
1557 | 1595 |
1596 # Save the original compiler flags and libraries | |
1597 ac_save_cflags="$CFLAGS"; ac_save_libs="$LIBS" | |
1598 # Add the pthread compiler flags and libraries | |
1599 CFLAGS="$CFLAGS $pthread_cflags"; LIBS="$LIBS $pthread_lib" | |
1600 | |
1558 # Check to see if recursive mutexes are available | 1601 # Check to see if recursive mutexes are available |
1559 AC_MSG_CHECKING(for recursive mutexes) | 1602 AC_MSG_CHECKING(for recursive mutexes) |
1560 has_recursive_mutexes=no | 1603 has_recursive_mutexes=no |
1561 if test x$has_recursive_mutexes = xno; then | 1604 if test x$has_recursive_mutexes = xno; then |
1562 AC_TRY_COMPILE([ | 1605 AC_TRY_COMPILE([ |
1593 ],[ | 1636 ],[ |
1594 have_pthread_sem=yes | 1637 have_pthread_sem=yes |
1595 ]) | 1638 ]) |
1596 AC_MSG_RESULT($have_pthread_sem) | 1639 AC_MSG_RESULT($have_pthread_sem) |
1597 fi | 1640 fi |
1641 | |
1642 # Restore the compiler flags and libraries | |
1643 CFLAGS="$ac_save_cflags"; LIBS="$ac_save_libs" | |
1598 | 1644 |
1599 # Basic thread creation functions | 1645 # Basic thread creation functions |
1600 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c" | 1646 SOURCES="$SOURCES $srcdir/src/thread/pthread/SDL_systhread.c" |
1601 | 1647 |
1602 # Semaphores | 1648 # Semaphores |
1901 CheckDLOPEN | 1947 CheckDLOPEN |
1902 CheckNASM | 1948 CheckNASM |
1903 CheckAltivec | 1949 CheckAltivec |
1904 CheckOSS | 1950 CheckOSS |
1905 CheckDMEDIA | 1951 CheckDMEDIA |
1952 CheckMME | |
1906 CheckALSA | 1953 CheckALSA |
1907 CheckARTSC | 1954 CheckARTSC |
1908 CheckESD | 1955 CheckESD |
1909 CheckNAS | 1956 CheckNAS |
1910 CheckX11 | 1957 CheckX11 |
1943 aix) | 1990 aix) |
1944 AC_DEFINE(SDL_AUDIO_DRIVER_PAUD) | 1991 AC_DEFINE(SDL_AUDIO_DRIVER_PAUD) |
1945 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c" | 1992 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c" |
1946 have_audio=yes | 1993 have_audio=yes |
1947 ;; | 1994 ;; |
1948 osf) | |
1949 AC_DEFINE(SDL_AUDIO_DRIVER_MMEAUDIO) | |
1950 SOURCES="$SOURCES $srcdir/src/audio/mme/*.c" | |
1951 BUILD_LDFLAGS="$BUILD_LDFLAGS -lmme" | |
1952 have_audio=yes | |
1953 ;; | |
1954 esac | 1995 esac |
1955 fi | 1996 fi |
1956 # Set up files for the joystick library | 1997 # Set up files for the joystick library |
1957 if test x$enable_joystick = xyes; then | 1998 if test x$enable_joystick = xyes; then |
1958 case $ARCH in | 1999 case $ARCH in |