comparison configure.in @ 296:fab1ddc4d7bf

Removed the API changes to preserve SDL 1.2 stability
author Sam Lantinga <slouken@libsdl.org>
date Wed, 06 Mar 2002 11:05:47 +0000
parents 54ad1d2f1325
children 8bdc210ed1de
comparison
equal deleted inserted replaced
295:54ad1d2f1325 296:fab1ddc4d7bf
13 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0. 13 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
14 # 14 #
15 SDL_MAJOR_VERSION=1 15 SDL_MAJOR_VERSION=1
16 SDL_MINOR_VERSION=2 16 SDL_MINOR_VERSION=2
17 SDL_MICRO_VERSION=4 17 SDL_MICRO_VERSION=4
18 SDL_INTERFACE_AGE=0 18 SDL_INTERFACE_AGE=4
19 SDL_BINARY_AGE=4 19 SDL_BINARY_AGE=4
20 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION 20 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
21 21
22 AC_SUBST(SDL_MAJOR_VERSION) 22 AC_SUBST(SDL_MAJOR_VERSION)
23 AC_SUBST(SDL_MINOR_VERSION) 23 AC_SUBST(SDL_MINOR_VERSION)
326 if test x$enable_audio = xyes -a x$enable_esd = xyes; then 326 if test x$enable_audio = xyes -a x$enable_esd = xyes; then
327 use_esd=no 327 use_esd=no
328 AM_PATH_ESD(0.2.8, use_esd=yes) 328 AM_PATH_ESD(0.2.8, use_esd=yes)
329 if test x$use_esd = xyes; then 329 if test x$use_esd = xyes; then
330 AC_ARG_ENABLE(esd-shared, 330 AC_ARG_ENABLE(esd-shared,
331 [ --enable-esd-shared dynamically load ESD support [default=yes]], 331 [ --enable-esd-shared dynamically load ESD audio support [default=no]],
332 , enable_esd_shared=yes) 332 , enable_esd_shared=no)
333 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'` 333 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`
334 esd_lib=`ls $esd_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` 334 esd_lib=`ls $esd_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
335 echo "-- $esd_lib_spec -> $esd_lib" 335 echo "-- $esd_lib_spec -> $esd_lib"
336 if test x$enable_dlopen != xyes && \
337 test x$enable_esd_shared = xyes; then
338 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])
339 fi
336 if test x$enable_dlopen = xyes && \ 340 if test x$enable_dlopen = xyes && \
337 test x$enable_esd_shared = xyes && test x$esd_lib != x; then 341 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
338 CFLAGS="$CFLAGS -DESD_SUPPORT -DESD_DYNAMIC=\$(esd_lib) $ESD_CFLAGS" 342 CFLAGS="$CFLAGS -DESD_SUPPORT -DESD_DYNAMIC=\$(esd_lib) $ESD_CFLAGS"
339 AC_SUBST(esd_lib) 343 AC_SUBST(esd_lib)
340 else 344 else
372 ]) 376 ])
373 CFLAGS="$save_CFLAGS" 377 CFLAGS="$save_CFLAGS"
374 AC_MSG_RESULT($audio_arts) 378 AC_MSG_RESULT($audio_arts)
375 if test x$audio_arts = xyes; then 379 if test x$audio_arts = xyes; then
376 AC_ARG_ENABLE(arts-shared, 380 AC_ARG_ENABLE(arts-shared,
377 [ --enable-arts-shared dynamically load ESD support [default=yes]], 381 [ --enable-arts-shared dynamically load aRts audio support [default=no]],
378 , enable_arts_shared=yes) 382 , enable_arts_shared=no)
379 arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libarts.so.*/'` 383 arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libarts.so.*/'`
380 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` 384 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
381 echo "-- $arts_lib_spec -> $arts_lib" 385 echo "-- $arts_lib_spec -> $arts_lib"
386 if test x$enable_dlopen != xyes && \
387 test x$enable_arts_shared = xyes; then
388 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])
389 fi
382 if test x$enable_dlopen = xyes && \ 390 if test x$enable_dlopen = xyes && \
383 test x$enable_arts_shared = xyes && test x$arts_lib != x; then 391 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
384 CFLAGS="$CFLAGS -DARTSC_SUPPORT -DARTSC_DYNAMIC=\$(arts_lib) $ARTSC_CFLAGS" 392 CFLAGS="$CFLAGS -DARTSC_SUPPORT -DARTSC_DYNAMIC=\$(arts_lib) $ARTSC_CFLAGS"
385 AC_SUBST(arts_lib) 393 AC_SUBST(arts_lib)
386 else 394 else
996 video_opengl=yes 1004 video_opengl=yes
997 ]) 1005 ])
998 AC_MSG_RESULT($video_opengl) 1006 AC_MSG_RESULT($video_opengl)
999 if test x$video_opengl = xyes; then 1007 if test x$video_opengl = xyes; then
1000 CFLAGS="$CFLAGS -DHAVE_OPENGL" 1008 CFLAGS="$CFLAGS -DHAVE_OPENGL"
1001 AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl") 1009 if test x$use_dlopen != xyes; then
1010 AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl")
1011 fi
1002 fi 1012 fi
1003 fi 1013 fi
1004 } 1014 }
1005 1015
1006 dnl Find QNX RtP OpenGL 1016 dnl Find QNX RtP OpenGL
1381 1391
1382 dnl Check for the dlfcn.h interface for dynamically loading objects 1392 dnl Check for the dlfcn.h interface for dynamically loading objects
1383 CheckDLOPEN() 1393 CheckDLOPEN()
1384 { 1394 {
1385 AC_ARG_ENABLE(dlopen, 1395 AC_ARG_ENABLE(dlopen,
1386 [ --enable-dlopen use dlopen for shared object loading [default=yes]], 1396 [ --enable-dlopen use dlopen for shared object loading [default=no]],
1387 , enable_dlopen=yes) 1397 , enable_dlopen=no)
1388 if test x$enable_dlopen = xyes; then 1398 if test x$enable_dlopen = xyes; then
1389 AC_MSG_CHECKING(for dlopen) 1399 AC_MSG_CHECKING(for dlopen)
1390 use_dlopen=no 1400 use_dlopen=no
1391 AC_TRY_COMPILE([ 1401 AC_TRY_COMPILE([
1392 #include <dlfcn.h> 1402 #include <dlfcn.h>
1396 ]) 1406 ])
1397 AC_MSG_RESULT($use_dlopen) 1407 AC_MSG_RESULT($use_dlopen)
1398 1408
1399 if test x$use_dlopen = xyes; then 1409 if test x$use_dlopen = xyes; then
1400 CFLAGS="$CFLAGS -DUSE_DLOPEN" 1410 CFLAGS="$CFLAGS -DUSE_DLOPEN"
1401 SYSTEM_LIBS="$SYSTEM_LIBS -ldl" 1411 AC_CHECK_LIB(dl, dlopen, SYSTEM_LIBS="$SYSTEM_LIBS -ldl")
1402 fi 1412 fi
1403 fi 1413 fi
1404 } 1414 }
1405 1415
1406 case "$target" in 1416 case "$target" in