comparison configure.in @ 731:faaa676b20ef

*** empty log message ***
author Sam Lantinga <slouken@libsdl.org>
date Mon, 06 Oct 2003 09:03:02 +0000
parents 6b3dfe0198bb
children 22dbf364c017
comparison
equal deleted inserted replaced
730:0f4f974d0201 731:faaa676b20ef
333 [ --enable-esd-shared dynamically load ESD audio support [default=yes]], 333 [ --enable-esd-shared dynamically load ESD audio support [default=yes]],
334 , enable_esd_shared=yes) 334 , enable_esd_shared=yes)
335 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'` 335 esd_lib_spec=`echo $ESD_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libesd.so.*/'`
336 esd_lib=`ls $esd_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` 336 esd_lib=`ls $esd_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
337 echo "-- $esd_lib_spec -> $esd_lib" 337 echo "-- $esd_lib_spec -> $esd_lib"
338 if test x$enable_dlopen != xyes && \ 338 if test x$use_dlopen != xyes && \
339 test x$enable_esd_shared = xyes; then 339 test x$enable_esd_shared = xyes; then
340 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option]) 340 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])
341 fi 341 fi
342 if test x$enable_dlopen = xyes && \ 342 if test x$use_dlopen = xyes && \
343 test x$enable_esd_shared = xyes && test x$esd_lib != x; then 343 test x$enable_esd_shared = xyes && test x$esd_lib != x; then
344 CFLAGS="$CFLAGS -DESD_SUPPORT -DESD_DYNAMIC=\$(esd_lib) $ESD_CFLAGS" 344 CFLAGS="$CFLAGS -DESD_SUPPORT -DESD_DYNAMIC=\$(esd_lib) $ESD_CFLAGS"
345 AC_SUBST(esd_lib) 345 AC_SUBST(esd_lib)
346 else 346 else
347 CFLAGS="$CFLAGS -DESD_SUPPORT $ESD_CFLAGS" 347 CFLAGS="$CFLAGS -DESD_SUPPORT $ESD_CFLAGS"
383 [ --enable-arts-shared dynamically load aRts audio support [default=yes]], 383 [ --enable-arts-shared dynamically load aRts audio support [default=yes]],
384 , enable_arts_shared=yes) 384 , enable_arts_shared=yes)
385 arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libartsc.so.*/'` 385 arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libartsc.so.*/'`
386 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'` 386 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
387 echo "-- $arts_lib_spec -> $arts_lib" 387 echo "-- $arts_lib_spec -> $arts_lib"
388 if test x$enable_dlopen != xyes && \ 388 if test x$use_dlopen != xyes && \
389 test x$enable_arts_shared = xyes; then 389 test x$enable_arts_shared = xyes; then
390 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option]) 390 AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])
391 fi 391 fi
392 if test x$enable_dlopen = xyes && \ 392 if test x$use_dlopen = xyes && \
393 test x$enable_arts_shared = xyes && test x$arts_lib != x; then 393 test x$enable_arts_shared = xyes && test x$arts_lib != x; then
394 CFLAGS="$CFLAGS -DARTSC_SUPPORT -DARTSC_DYNAMIC=\$(arts_lib) $ARTSC_CFLAGS" 394 CFLAGS="$CFLAGS -DARTSC_SUPPORT -DARTSC_DYNAMIC=\$(arts_lib) $ARTSC_CFLAGS"
395 AC_SUBST(arts_lib) 395 AC_SUBST(arts_lib)
396 else 396 else
397 CFLAGS="$CFLAGS -DARTSC_SUPPORT $ARTSC_CFLAGS" 397 CFLAGS="$CFLAGS -DARTSC_SUPPORT $ARTSC_CFLAGS"
1554 } 1554 }
1555 1555
1556 dnl Check for the dlfcn.h interface for dynamically loading objects 1556 dnl Check for the dlfcn.h interface for dynamically loading objects
1557 CheckDLOPEN() 1557 CheckDLOPEN()
1558 { 1558 {
1559 AC_ARG_ENABLE(dlopen, 1559 AC_ARG_ENABLE(sdl-dlopen,
1560 [ --enable-dlopen use dlopen for shared object loading [default=no]], 1560 [ --enable-sdl-dlopen use dlopen for shared object loading [default=yes]],
1561 , enable_dlopen=yes) 1561 , enable_sdl_dlopen=yes)
1562 if test x$enable_dlopen = xyes; then 1562 if test x$enable_sdl_dlopen = xyes; then
1563 AC_MSG_CHECKING(for dlopen) 1563 AC_MSG_CHECKING(for dlopen)
1564 use_dlopen=no 1564 use_dlopen=no
1565 AC_TRY_COMPILE([ 1565 AC_TRY_COMPILE([
1566 #include <dlfcn.h> 1566 #include <dlfcn.h>
1567 ],[ 1567 ],[