~ubuntu-branches/ubuntu/karmic/libsdl1.2/karmic

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2008-01-05 14:10:45 UTC
  • mto: (2.1.3 lenny)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20080105141045-mjdg2rp09mamme4a
Tags: upstream-1.2.13
ImportĀ upstreamĀ versionĀ 1.2.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#
17
17
SDL_MAJOR_VERSION=1
18
18
SDL_MINOR_VERSION=2
19
 
SDL_MICRO_VERSION=12
20
 
SDL_INTERFACE_AGE=1
21
 
SDL_BINARY_AGE=12
 
19
SDL_MICRO_VERSION=13
 
20
SDL_INTERFACE_AGE=2
 
21
SDL_BINARY_AGE=13
22
22
SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
23
23
 
24
24
AC_SUBST(SDL_MAJOR_VERSION)
146
146
    if test x$ac_cv_func_strtod = xyes; then
147
147
        AC_DEFINE(HAVE_STRTOD)
148
148
    fi
 
149
    AC_CHECK_FUNC(mprotect,
 
150
        AC_TRY_COMPILE([
 
151
          #include <sys/types.h>
 
152
          #include <sys/mman.h>
 
153
        ],[
 
154
        ],[
 
155
        AC_DEFINE(HAVE_MPROTECT)
 
156
        ]),
 
157
    )
149
158
    AC_CHECK_FUNCS(malloc calloc realloc free getenv putenv unsetenv qsort abs bcopy memset memcpy memmove strlen strlcpy strlcat strdup _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp sscanf snprintf vsnprintf iconv sigaction setjmp nanosleep)
150
159
 
151
160
    AC_CHECK_LIB(iconv, libiconv_open, [EXTRA_LDFLAGS="$EXTRA_LDFLAGS -liconv"])
824
833
 
825
834
    visibility_CFLAGS="-fvisibility=hidden"
826
835
    save_CFLAGS="$CFLAGS"
827
 
    CFLAGS="$save_CFLAGS $visibility_CFLAGS"
 
836
    CFLAGS="$save_CFLAGS $visibility_CFLAGS -Werror"
828
837
    AC_TRY_COMPILE([
829
838
    #if !defined(__GNUC__) || __GNUC__ < 4
830
839
    #error SDL only uses visibility attributes in GCC 4 or newer