:
fi
-if test "x$withval" != "x"; then
- TUNING=$withval
+if test "x$with_tuning" != "x"; then
+ TUNING="$with_tuning"
else
if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
else
# Check whether --enable-optimizations or --disable-optimizations was given.
if test "${enable_optimizations+set}" = set; then
enableval="$enable_optimizations"
- if test x$enableval = xno; then OPTIMS=0; fi
+ if test x$enable_optimizations = xno; then OPTIMS=0; fi
else
OPTIMS=1
fi
# Check whether --enable-altivec or --disable-altivec was given.
if test "${enable_altivec+set}" = set; then
enableval="$enable_altivec"
- if test x$enableval = xyes; then ARCH="${ARCH} altivec";
+ if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi
else
if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
# Check whether --enable-debug or --disable-debug was given.
if test "${enable_debug+set}" = set; then
enableval="$enable_debug"
- if test x$enableval = xyes; then DEBUG=1; fi
+ if test x$enable_debug = xyes; then DEBUG=1; fi
fi
# Check whether --enable-release or --disable-release was given.
if test "${enable_release+set}" = set; then
enableval="$enable_release"
- if test x$enableval = xyes; then RELEASE=1; fi
+ if test x$enable_release = xyes; then RELEASE=1; fi
else
VERSION="${VERSION}_`date +%Y-%m-%d`"
fi
:
fi
-if test "x$enableval" != "xno"
+if test "x$enable_dvd" != "xno"
then
# Check whether --with-dvdcss or --without-dvdcss was given.
if test "${with_dvdcss+set}" = set; then
:
fi
- if test "x$withval" = x
+ if test "x$with_dvdread" = x
then
test_LDFLAGS=""
test_CFLAGS=""
else
- test_LDFLAGS="-L${withval}/lib"
- test_CFLAGS="-I${withval}/include"
+ test_LDFLAGS="-L${with_dvdread}/lib"
+ test_CFLAGS="-I${with_dvdread}/include"
fi
CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
for ac_hdr in dvdread/dvd_reader.h
echo "$ac_t""no" 1>&6
if test "x$enable_dvdread" != x
then
- if test "x$withval" != x
+ if test "x$with_dvdread" != x
then
- { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${withval}/include" 1>&2; exit 1; }
+ { echo "configure: error: Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include" 1>&2; exit 1; }
else
{ echo "configure: error: Cannot find dvdread/dvd_reader.h" 1>&2; exit 1; }
fi
:
fi
-if test "x$enable_dvdread" != "xno"
+if test "x$enable_dvbpsi" != "xno"
then
- if test "x$withval" = x
+ if test "x$with_dvbpsi" = x
then
test_LDFLAGS=""
test_CFLAGS=""
else
- test_LDFLAGS="-L${withval}/lib"
- test_CFLAGS="-I${withval}/include"
+ test_LDFLAGS="-L${with_dvbpsi}/lib"
+ test_CFLAGS="-I${with_dvbpsi}/include"
fi
CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
ac_safe=`echo "dvbpsi/dvbpsi.h" | sed 'y%./+-%__p_%'`
# Check whether --with-mad or --without-mad was given.
if test "${with_mad+set}" = set; then
withval="$with_mad"
- if test "x$with_val" != "xno" -a "x$with_val" != "x"
+ if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
then
- mad_CFLAGS="${mad_CFLAGS} -I$with_val/include"
- mad_LDFLAGS="${mad_LDFLAGS} -L$with_val/lib"
+ mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
+ mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
fi
fi
:
fi
-if test "x$enableval" = "xyes"
+if test "x$enable_ffmpeg" = "xyes"
then
# Check whether --with-ffmpeg-tree or --without-ffmpeg-tree was given.
if test "${with_ffmpeg_tree+set}" = set; then
:
fi
-if test "x$enableval" != "xno" -a x$SYS != xmingw32
+if test "x$enable_a52" != "xno" -a x$SYS != xmingw32
then
for ac_hdr in a52dec/a52.h
do
:
fi
-if test "x$enableval" != "xno"
+if test "x$enable_vorbis" != "xno"
then
for ac_hdr in ogg/ogg.h
do
# Check whether --with-sdl-config-path or --without-sdl-config-path was given.
if test "${with_sdl_config_path+set}" = set; then
withval="$with_sdl_config_path"
- if test "x$withval" != "xno"
+ if test "x$with_sdl" != "xno"
then
- SDL_PATH=$withval:$PATH
+ SDL_PATH="$with_sdl:$PATH"
fi
fi
:
fi
-if test "x$enableval" != "xno"
+if test "x$enable_directx" != "xno"
then
if test x$SYS = xmingw32
then
done
else
- echo $ac_n "checking for directX headers in ${withval}""... $ac_c" 1>&6
-echo "configure:6874: checking for directX headers in ${withval}" >&5
- if test -f ${withval}/ddraw.h
+ echo $ac_n "checking for directX headers in ${with_directx}""... $ac_c" 1>&6
+echo "configure:6874: checking for directX headers in ${with_directx}" >&5
+ if test -f ${with_directx}/ddraw.h
then
PLUGINS="${PLUGINS} directx"
- directx_LDFLAGS="${directx_LDFLAGS} -L${withval}/lib -lgdi32"
- directx_CFLAGS="${directx_CFLAGS} -I${withval}"
+ directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
+ directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
echo "$ac_t""yes" 1>&6
else
echo "$ac_t""no" 1>&6
- { echo "configure: error: Cannot find ${withval}/ddraw.h!" 1>&2; exit 1; }
+ { echo "configure: error: Cannot find ${with_directx}/ddraw.h!" 1>&2; exit 1; }
fi
fi
fi
# Check whether --with-ggi or --without-ggi was given.
if test "${with_ggi+set}" = set; then
withval="$with_ggi"
- if test "x$with_val" != "xno" -a "x$with_val" != "x"
+ if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
then
- CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
- ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_val/lib"
+ CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
+ ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
fi
fi
# Check whether --with-glide or --without-glide was given.
if test "${with_glide+set}" = set; then
withval="$with_glide"
- if test "x$with_val" != "xno" -a "x$with_val" != "x"
+ if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
then
- glide_CFLAGS="${glide_CFLAGS} -I$with_val/include"
- glide_LDFLAGS="${glide_LDFLAGS} -L$with_val/lib"
+ glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
+ glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
fi
fi
:
fi
-if test "x$enableval" != "xno" -a x$SYS = xmingw32
+if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
then
PLUGINS="${PLUGINS} waveout"
waveout_LDFLAGS="-lwinmm"
# Check whether --with-gtk-config-path or --without-gtk-config-path was given.
if test "${with_gtk_config_path+set}" = set; then
withval="$with_gtk_config_path"
- if test "x$withval" != "xno"
+ if test "x$with_gtk" != "xno"
then
- GTK_PATH=$withval:$PATH
+ GTK_PATH="$with_gtk:$PATH"
fi
fi
# Check whether --enable-intfwin or --disable-intfwin was given.
if test "${enable_intfwin+set}" = set; then
enableval="$enable_intfwin"
- if test "x$enableval" != "xno"
+ if test "x$enable_intfwin" != "xno"
then
# Check whether --with-bcbuilder or --without-bcbuilder was given.
if test "${with_bcbuilder+set}" = set; then
:
fi
- case "x$withval" in
+ case "x$with_words" in
xbig)
ac_cv_c_bigendian=yes
;;
# Check whether --enable-gprof or --disable-gprof was given.
if test "${enable_gprof+set}" = set; then
enableval="$enable_gprof"
- if test x$enableval = xyes; then GPROF=1; fi
+ if test "x$enable_gprof" = "xyes"; then GPROF=1; fi
fi
# Check whether --enable-cprof or --disable-cprof was given.
if test "${enable_cprof+set}" = set; then
enableval="$enable_cprof"
- if test x$enableval = xyes;
+ if test "x$enable_cprof" = "xyes";
then
LDFLAGS="${LDFLAGS} -lcprof"
CPROF=1
# Check whether --enable-pth or --disable-pth was given.
if test "${enable_pth+set}" = set; then
enableval="$enable_pth"
- if test x$enableval = xyes; then
+ if test "x$enable_pth" = "xyes"; then
echo $ac_n "checking for pth_init in -lpth""... $ac_c" 1>&6
echo "configure:7969: checking for pth_init in -lpth" >&5
ac_lib_var=`echo pth'_'pth_init | sed 'y%./+-%__p_%'`
# Check whether --enable-st or --disable-st was given.
if test "${enable_st+set}" = set; then
enableval="$enable_st"
- if test x$enableval = xyes; then
+ if test "x$enable_st" = "xyes"; then
echo $ac_n "checking for st_init in -lst""... $ac_c" 1>&6
echo "configure:8042: checking for st_init in -lst" >&5
ac_lib_var=`echo st'_'st_init | sed 'y%./+-%__p_%'`
AC_ARG_WITH(tuning,
[ --with-tuning=ARCH enable special tuning for an architecture
(default i686 on IA-32 and 750 on PPC)])
-if test "x$withval" != "x"; then
- TUNING=$withval
+if test "x$with_tuning" != "x"; then
+ TUNING="$with_tuning"
else
if test x${target_cpu} = xi686 -o x${target_cpu} = xi586 -o x${target_cpu} = xi486 -o x${target_cpu} = xi386; then TUNING="pentiumpro"
else
dnl
AC_ARG_ENABLE(optimizations,
[ --disable-optimizations disable compiler optimizations (default enabled)],
-[ if test x$enableval = xno; then OPTIMS=0; fi ],
+[ if test x$enable_optimizations = xno; then OPTIMS=0; fi ],
[ OPTIMS=1 ])
dnl
dnl
AC_ARG_ENABLE(altivec,
[ --disable-altivec disable altivec optimizations (default enabled on PPC)],
-[ if test x$enableval = xyes; then ARCH="${ARCH} altivec";
+[ if test x$enable_altivec = xyes; then ARCH="${ARCH} altivec";
BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi ],
[ if test x${target_cpu} = xpowerpc; then ARCH="${ARCH} altivec";
BUILTINS="${BUILTINS} ${ACCEL_MODULES}"; fi ])
DEBUG=0
AC_ARG_ENABLE(debug,
[ --enable-debug debug mode (default disabled)],
-[ if test x$enableval = xyes; then DEBUG=1; fi ])
+[ if test x$enable_debug = xyes; then DEBUG=1; fi ])
dnl
dnl Enable release-specific flags
RELEASE=0
AC_ARG_ENABLE(release,
[ --enable-release activate extra optimizations (default disabled)],
-[ if test x$enableval = xyes; then RELEASE=1; fi ],
+[ if test x$enable_release = xyes; then RELEASE=1; fi ],
[ VERSION="${VERSION}_`date +%Y-%m-%d`" ])
dnl
dnl
AC_ARG_ENABLE(dvd,
[ --enable-dvd DVD input module (default enabled)])
-if test "x$enableval" != "xno"
+if test "x$enable_dvd" != "xno"
then
AC_ARG_WITH(dvdcss,
[ --with-dvdcss=PATH libdvdcss headers and libraries])
then
AC_ARG_WITH(dvdread,
[ --with-dvdread=PATH libdvdread headers and libraries])
- if test "x$withval" = x
+ if test "x$with_dvdread" = x
then
test_LDFLAGS=""
test_CFLAGS=""
else
- test_LDFLAGS="-L${withval}/lib"
- test_CFLAGS="-I${withval}/include"
+ test_LDFLAGS="-L${with_dvdread}/lib"
+ test_CFLAGS="-I${with_dvdread}/include"
fi
CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
AC_CHECK_HEADERS(dvdread/dvd_reader.h, [
],[
if test "x$enable_dvdread" != x
then
- if test "x$withval" != x
+ if test "x$with_dvdread" != x
then
- AC_MSG_ERROR([Cannot find dvdread/dvd_reader.h in ${withval}/include])
+ AC_MSG_ERROR([Cannot find dvdread/dvd_reader.h in ${with_dvdread}/include])
else
AC_MSG_ERROR([Cannot find dvdread/dvd_reader.h])
fi
dnl
AC_ARG_ENABLE(dvbpsi,
[ --enable-dvbpsi dvbpsi ts demux module (default disabled)])
-if test "x$enable_dvdread" != "xno"
+if test "x$enable_dvbpsi" != "xno"
then
- if test "x$withval" = x
+ if test "x$with_dvbpsi" = x
then
test_LDFLAGS=""
test_CFLAGS=""
else
- test_LDFLAGS="-L${withval}/lib"
- test_CFLAGS="-I${withval}/include"
+ test_LDFLAGS="-L${with_dvbpsi}/lib"
+ test_CFLAGS="-I${with_dvbpsi}/include"
fi
CPPFLAGS="$save_CPPFLAGS $test_CFLAGS"
AC_CHECK_HEADER([dvbpsi/dvbpsi.h],[
mad_LDFLAGS="${mad_LDFLAGS} -lmad"
AC_ARG_WITH(mad,
[ --with-mad=PATH path to libmad],
- [ if test "x$with_val" != "xno" -a "x$with_val" != "x"
+ [ if test "x$with_mad" != "xno" -a "x$with_mad" != "x"
then
- mad_CFLAGS="${mad_CFLAGS} -I$with_val/include"
- mad_LDFLAGS="${mad_LDFLAGS} -L$with_val/lib"
+ mad_CFLAGS="${mad_CFLAGS} -I$with_mad/include"
+ mad_LDFLAGS="${mad_LDFLAGS} -L$with_mad/lib"
fi ])
save_CFLAGS=$CFLAGS
save_LDFLAGS=$LDFLAGS
dnl
AC_ARG_ENABLE(ffmpeg,
[ --enable-ffmpeg ffmpeg codec (default disabled)])
-if test "x$enableval" = "xyes"
+if test "x$enable_ffmpeg" = "xyes"
then
AC_ARG_WITH(ffmpeg-tree,
[ --with-ffmpeg-tree=PATH ffmpeg tree for static linking])
dnl
AC_ARG_ENABLE(a52,
[ --enable-a52 AC3 support with liba52 (default enabled)])
-if test "x$enableval" != "xno" -a x$SYS != xmingw32
+if test "x$enable_a52" != "xno" -a x$SYS != xmingw32
then
AC_CHECK_HEADERS(a52dec/a52.h, [
BUILTINS="${BUILTINS} a52"
dnl
AC_ARG_ENABLE(vorbis,
[ --enable-vorbis Ogg/Vorbis decoder support (default enabled)])
-if test "x$enableval" != "xno"
+if test "x$enable_vorbis" != "xno"
then
AC_CHECK_HEADERS(ogg/ogg.h, [
dnl disabled for the moment
SDL_PATH=$PATH
AC_ARG_WITH(sdl-config-path,
[ --with-sdl-config-path=PATH sdl-config path (default search in \$PATH)],
- [ if test "x$withval" != "xno"
+ [ if test "x$with_sdl" != "xno"
then
- SDL_PATH=$withval:$PATH
+ SDL_PATH="$with_sdl:$PATH"
fi ])
AC_PATH_PROG(SDL12_CONFIG, sdl12-config, no, $SDL_PATH)
SDL_CONFIG=${SDL12_CONFIG}
dnl
AC_ARG_ENABLE(directx,
[ --enable-directx Win32 DirectX support (default enabled on Win32)])
-if test "x$enableval" != "xno"
+if test "x$enable_directx" != "xno"
then
if test x$SYS = xmingw32
then
[ PLUGINS="${PLUGINS} directx"
directx_LDFLAGS="${directx_LDFLAGS} -lgdi32" ])
else
- AC_MSG_CHECKING(for directX headers in ${withval})
- if test -f ${withval}/ddraw.h
+ AC_MSG_CHECKING(for directX headers in ${with_directx})
+ if test -f ${with_directx}/ddraw.h
then
PLUGINS="${PLUGINS} directx"
- directx_LDFLAGS="${directx_LDFLAGS} -L${withval}/lib -lgdi32"
- directx_CFLAGS="${directx_CFLAGS} -I${withval}"
+ directx_LDFLAGS="${directx_LDFLAGS} -L${with_directx}/lib -lgdi32"
+ directx_CFLAGS="${directx_CFLAGS} -I${with_directx}"
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
- AC_MSG_ERROR([Cannot find ${withval}/ddraw.h!])
+ AC_MSG_ERROR([Cannot find ${with_directx}/ddraw.h!])
fi
fi
fi
ggi_LDFLAGS="${ggi_LDFLAGS} -lggi"
AC_ARG_WITH(ggi,
[ --with-ggi=PATH path to libggi],
- [ if test "x$with_val" != "xno" -a "x$with_val" != "x"
+ [ if test "x$with_ggi" != "xno" -a "x$with_ggi" != "x"
then
- CFLAGS_GGI="${CFLAGS_GGI} -I$with_val/include"
- ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_val/lib"
+ CFLAGS_GGI="${CFLAGS_GGI} -I$with_ggi/include"
+ ggi_LDFLAGS="${ggi_LDFLAGS} -L$with_ggi/lib"
fi ])
fi
glide_CFLAGS="${glide_CFLAGS} -I/usr/include/glide"
AC_ARG_WITH(glide,
[ --with-glide=PATH path to libglide],
- [ if test "x$with_val" != "xno" -a "x$with_val" != "x"
+ [ if test "x$with_glide" != "xno" -a "x$with_glide" != "x"
then
- glide_CFLAGS="${glide_CFLAGS} -I$with_val/include"
- glide_LDFLAGS="${glide_LDFLAGS} -L$with_val/lib"
+ glide_CFLAGS="${glide_CFLAGS} -I$with_glide/include"
+ glide_LDFLAGS="${glide_LDFLAGS} -L$with_glide/lib"
fi ])
fi
dnl
AC_ARG_ENABLE(waveout,
[ --enable-waveout Win32 waveOut module (default enabled on Win32)])
-if test "x$enableval" != "xno" -a x$SYS = xmingw32
+if test "x$enable_waveout" != "xno" -a x$SYS = xmingw32
then
PLUGINS="${PLUGINS} waveout"
waveout_LDFLAGS="-lwinmm"
GTK_PATH=$PATH
AC_ARG_WITH(gtk-config-path,
[ --with-gtk-config-path=PATH gtk-config path (default search in \$PATH)],
- [ if test "x$withval" != "xno"
+ [ if test "x$with_gtk" != "xno"
then
- GTK_PATH=$withval:$PATH
+ GTK_PATH="$with_gtk:$PATH"
fi ])
# look for gtk-config
AC_PATH_PROG(GTK12_CONFIG, gtk12-config, no, $GTK_PATH)
dnl
AC_ARG_ENABLE(intfwin,
[ --enable-intfwin Win32 interface support (default disabled)],
-[ if test "x$enableval" != "xno"
+[ if test "x$enable_intfwin" != "xno"
then
AC_ARG_WITH(bcbuilder,
[ --with-bcbuilder=PATH Borland C++ Builder installation path])
dnl
AC_ARG_WITH(words,
[ --with-words=endianness set endianness (big or little)])
- case "x$withval" in
+ case "x$with_words" in
xbig)
ac_cv_c_bigendian=yes
;;
GPROF=0
AC_ARG_ENABLE(gprof,
[ --enable-gprof gprof profiling (default disabled)],
-[ if test x$enableval = xyes; then GPROF=1; fi ])
+[ if test "x$enable_gprof" = "xyes"; then GPROF=1; fi ])
CPROF=0
AC_ARG_ENABLE(cprof,
[ --enable-cprof cprof profiling (default disabled)],
-[ if test x$enableval = xyes;
+[ if test "x$enable_cprof" = "xyes";
then
LDFLAGS="${LDFLAGS} -lcprof"
CPROF=1
dnl
AC_ARG_ENABLE(pth,
[ --enable-pth GNU Pth support (default disabled)],
- [ if test x$enableval = xyes; then
+ [ if test "x$enable_pth" = "xyes"; then
AC_CHECK_LIB(pth,pth_init)
AC_EGREP_HEADER(pth_init,pth.h,[
AC_DEFINE(PTH_INIT_IN_PTH_H, 1,
dnl
AC_ARG_ENABLE(st,
[ --enable-st State Threads (default disabled)],
- [ if test x$enableval = xyes; then
+ [ if test "x$enable_st" = "xyes"; then
AC_CHECK_LIB(st,st_init)
AC_EGREP_HEADER(st_init,st.h,[
AC_DEFINE(ST_INIT_IN_ST_H, 1,