summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-28 15:24:09 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-28 15:24:09 +0000
commit7969b4a90b96b7bf3fdb3e3b386c810b78769763 (patch)
treeb7d3e04951f9df602f0cebb2ccd35049d064ebc4 /configure.ac
parent5341fcbe0e98ecf2161df9d91d67ca513687781c (diff)
efl/configure.ac: tweaks to ecore_audio.
- moved up, closer to wayland, so it's before ecore_evas (which is large and still messy) - pulseaudio and sndfile checks are strict - pulseaudio is enabled by default - sndfile is mandatory SVN revision: 81812
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac183
1 files changed, 93 insertions, 90 deletions
diff --git a/configure.ac b/configure.ac
index 1176d51..e8ed15d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,11 +148,11 @@ requirements_libs_ecore_fb=""
148requirements_libs_ecore_psl1ght="" 148requirements_libs_ecore_psl1ght=""
149requirements_libs_ecore_sdl="" 149requirements_libs_ecore_sdl=""
150requirements_libs_ecore_wayland="" 150requirements_libs_ecore_wayland=""
151requirements_libs_ecore_audio=""
151requirements_libs_ecore_win32="" 152requirements_libs_ecore_win32=""
152requirements_libs_ecore_wince="" 153requirements_libs_ecore_wince=""
153requirements_libs_ecore_x="" 154requirements_libs_ecore_x=""
154requirements_libs_ecore_evas="" 155requirements_libs_ecore_evas=""
155requirements_libs_ecore_audio=""
156requirements_libs_embryo="" 156requirements_libs_embryo=""
157requirements_libs_eio="" 157requirements_libs_eio=""
158#requirements_libs_edje="" 158#requirements_libs_edje=""
@@ -178,11 +178,11 @@ requirements_pc_ecore_fb=""
178requirements_pc_ecore_psl1ght="" 178requirements_pc_ecore_psl1ght=""
179requirements_pc_ecore_sdl="" 179requirements_pc_ecore_sdl=""
180requirements_pc_ecore_wayland="" 180requirements_pc_ecore_wayland=""
181requirements_pc_ecore_audio=""
181requirements_pc_ecore_win32="" 182requirements_pc_ecore_win32=""
182requirements_pc_ecore_wince="" 183requirements_pc_ecore_wince=""
183requirements_pc_ecore_x="" 184requirements_pc_ecore_x=""
184requirements_pc_ecore_evas="" 185requirements_pc_ecore_evas=""
185requirements_pc_ecore_audio=""
186requirements_pc_embryo="" 186requirements_pc_embryo=""
187requirements_pc_eio="" 187requirements_pc_eio=""
188#requirements_pc_edje="" 188#requirements_pc_edje=""
@@ -227,11 +227,11 @@ AC_SUBST([requirements_libs_ecore_fb])
227AC_SUBST([requirements_libs_ecore_psl1ght]) 227AC_SUBST([requirements_libs_ecore_psl1ght])
228AC_SUBST([requirements_libs_ecore_sdl]) 228AC_SUBST([requirements_libs_ecore_sdl])
229AC_SUBST([requirements_libs_ecore_wayland]) 229AC_SUBST([requirements_libs_ecore_wayland])
230AC_SUBST([requirements_libs_ecore_audio])
230AC_SUBST([requirements_libs_ecore_win32]) 231AC_SUBST([requirements_libs_ecore_win32])
231AC_SUBST([requirements_libs_ecore_wince]) 232AC_SUBST([requirements_libs_ecore_wince])
232AC_SUBST([requirements_libs_ecore_x]) 233AC_SUBST([requirements_libs_ecore_x])
233AC_SUBST([requirements_libs_ecore_evas]) 234AC_SUBST([requirements_libs_ecore_evas])
234AC_SUBST([requirements_libs_ecore_audio])
235AC_SUBST([requirements_libs_embryo]) 235AC_SUBST([requirements_libs_embryo])
236AC_SUBST([requirements_libs_eio]) 236AC_SUBST([requirements_libs_eio])
237#AC_SUBST([requirements_libs_edje]) 237#AC_SUBST([requirements_libs_edje])
@@ -257,11 +257,11 @@ AC_SUBST([requirements_pc_ecore_fb])
257AC_SUBST([requirements_pc_ecore_psl1ght]) 257AC_SUBST([requirements_pc_ecore_psl1ght])
258AC_SUBST([requirements_pc_ecore_sdl]) 258AC_SUBST([requirements_pc_ecore_sdl])
259AC_SUBST([requirements_pc_ecore_wayland]) 259AC_SUBST([requirements_pc_ecore_wayland])
260AC_SUBST([requirements_pc_ecore_audio])
260AC_SUBST([requirements_pc_ecore_win32]) 261AC_SUBST([requirements_pc_ecore_win32])
261AC_SUBST([requirements_pc_ecore_wince]) 262AC_SUBST([requirements_pc_ecore_wince])
262AC_SUBST([requirements_pc_ecore_x]) 263AC_SUBST([requirements_pc_ecore_x])
263AC_SUBST([requirements_pc_ecore_evas]) 264AC_SUBST([requirements_pc_ecore_evas])
264AC_SUBST([requirements_pc_ecore_audio])
265AC_SUBST([requirements_pc_embryo]) 265AC_SUBST([requirements_pc_embryo])
266AC_SUBST([requirements_pc_eio]) 266AC_SUBST([requirements_pc_eio])
267#AC_SUBST([requirements_pc_edje]) 267#AC_SUBST([requirements_pc_edje])
@@ -2557,6 +2557,90 @@ AM_CONDITIONAL([HAVE_ECORE_WAYLAND], [test "x${have_wayland}" = "xyes"])
2557#### End of Ecore_Wayland 2557#### End of Ecore_Wayland
2558 2558
2559 2559
2560#### Ecore_Audio
2561
2562AC_ARG_ENABLE([audio],
2563 [AC_HELP_STRING([--disable-audio],
2564 [disable audio support. @<:@default=enabled@:>@])],
2565 [
2566 if test "x${enableval}" = "xyes" ; then
2567 want_audio="yes"
2568 else
2569 want_audio="no"
2570 fi
2571 ],
2572 [want_audio="yes"])
2573
2574if test "${want_audio}" = "yes"; then
2575AC_MSG_NOTICE([Ecore_Audio checks])
2576
2577AC_DEFINE([HAVE_ECORE_AUDIO], [1], [build ecore_audio])
2578
2579### Additional options to configure
2580
2581# ALSA support is still not there, thus no option for it yet.
2582want_alsa="no"
2583
2584# sndfile is mandatory otherwise it won't read from/write to files.
2585# TODO: if confirmed sndfile is mandatory, remove this variable
2586# TODO: and the EFL_OPTIONAL_DEPEND_PKG(), use EFL_DEPEND_PKG()
2587want_sndfile="yes"
2588
2589AC_ARG_ENABLE([pulseaudio],
2590 [AC_HELP_STRING([--disable-pulseaudio],
2591 [disable pulseaudio sound support. @<:@default=enabled@:>@])],
2592 [
2593 if test "x${enableval}" = "xyes" ; then
2594 want_pulseaudio="yes"
2595 else
2596 want_pulseaudio="no"
2597 fi
2598 ],
2599 [want_pulseaudio="yes"])
2600
2601
2602### Default values
2603
2604### Checks for programs
2605
2606### Checks for libraries
2607
2608# Eina, Eo, Eet, Ecore
2609
2610requirements_pc_ecore_audio="ecore >= ${PACKAGE_VERSION} eet >= ${PACKAGE_VERSION} eina >= ${PACKAGE_VERSION} ${requirements_pc_ecore_audio}"
2611
2612EFL_OPTIONAL_DEPEND_PKG([ecore_audio], [${want_alsa}], [ALSA], [alsa])
2613EFL_OPTIONAL_DEPEND_PKG([ecore_audio], [${want_pulseaudio}], [PULSE], [libpulse])
2614EFL_OPTIONAL_DEPEND_PKG([ecore_audio], [${want_sndfile}], [SNDFILE], [sndfile])
2615
2616if test "x${requirements_pc_deps_ecore_audio}" = "x" ; then
2617 ECORE_AUDIO_CFLAGS=""
2618 ECORE_AUDIO_LIBS=""
2619 AC_SUBST([ECORE_AUDIO_CFLAGS])
2620 AC_SUBST([ECORE_AUDIO_LIBS])
2621else
2622 PKG_CHECK_MODULES([ECORE_AUDIO], [${requirements_pc_deps_ecore_audio}])
2623fi
2624
2625ECORE_AUDIO_CFLAGS="${ECORE_AUDIO_CFLAGS}"
2626ECORE_AUDIO_LIBS="${ECORE_AUDIO_LIBS}"
2627requirements_libs_ecore_audio="${requirements_libs_ecore_audio}"
2628
2629### Checks for header files
2630
2631### Checks for types
2632
2633### Checks for structures
2634
2635### Checks for compiler characteristics
2636
2637### Checks for linker characteristics
2638
2639### Checks for library functions
2640
2641fi
2642AM_CONDITIONAL([HAVE_ECORE_AUDIO], [test "${want_audio}" = "yes"])
2643
2560#### Ecore_Win32 2644#### Ecore_Win32
2561 2645
2562if test "x${have_win32}" = "xyes" ; then 2646if test "x${have_win32}" = "xyes" ; then
@@ -3155,83 +3239,6 @@ fi
3155 3239
3156#### End of Ecore_Evas 3240#### End of Ecore_Evas
3157 3241
3158#### Ecore_Audio
3159AC_ARG_ENABLE([audio],
3160 [AC_HELP_STRING([--enable-audio], [enable Ecore_Audio])],
3161 [
3162 if test "x${enableval}" = "xyes" ; then
3163 want_ecore_audio="yes"
3164 else
3165 want_ecore_audio="no"
3166 fi
3167 ],
3168 [want_ecore_audio="no"])
3169
3170if test "x${want_ecore_audio}" = "xyes" ; then
3171AC_DEFINE([HAVE_ECORE_AUDIO], [1], [build ecore_audio])
3172
3173AC_MSG_NOTICE([Ecore_Audio checks])
3174
3175### Additional options to configure
3176
3177### Default values
3178
3179### Checks for programs
3180
3181### Checks for libraries
3182
3183# Eina, Eo, Eet, Ecore
3184
3185requirements_pc_ecore_audio="ecore >= ${PACKAGE_VERSION} eet >= ${PACKAGE_VERSION} eina >= ${PACKAGE_VERSION} ${requirements_pc_ecore_audio}"
3186
3187use_alsa="no"
3188# ALSA support is not really there yet...uncomment if you want to play around with it
3189#PKG_CHECK_EXISTS([ALSA], [alsa], [
3190# use_alsa="yes"
3191# AC_DEFINE([HAVE_ALSA], [1], [Alsa library])
3192# requirements_pc_ecore_audio="alsa ${requirements_pc_ecore_audio}"
3193# requirements_pc_deps_ecore_audio="alsa ${requirements_pc_deps_ecore_audio}"
3194# ], [use_alsa="no"])
3195
3196have_pulse="no"
3197PKG_CHECK_EXISTS([libpulse],
3198 [
3199 use_pulse="yes"
3200 AC_DEFINE([HAVE_PULSE], [1], [Pulseaudio library])
3201 requirements_pc_ecore_audio="libpulse ${requirements_pc_ecore_audio}"
3202 requirements_pc_deps_ecore_audio="libpulse ${requirements_pc_deps_ecore_audio}"
3203 ], [use_pulse="no"])
3204
3205use_sndfile="no"
3206PKG_CHECK_EXISTS([sndfile], [
3207 use_sndfile="yes"
3208 AC_DEFINE([HAVE_SNDFILE], [1], [libsndfile library])
3209 requirements_pc_ecore_audio="sndfile ${requirements_pc_ecore_audio}"
3210 requirements_pc_deps_ecore_audio="sndfile ${requirements_pc_deps_ecore_audio}"
3211 ], [use_sndfile="no"])
3212
3213PKG_CHECK_MODULES([ECORE_AUDIO], [${requirements_pc_deps_ecore_audio}])
3214
3215ECORE_AUDIO_CFLAGS="${ECORE_AUDIO_CFLAGS}"
3216ECORE_AUDIO_LIBS="${ECORE_AUDIO_LIBS}"
3217requirements_libs_ecore_audio="${requirements_libs_ecore_audio}"
3218
3219### Checks for header files
3220
3221### Checks for types
3222
3223### Checks for structures
3224
3225### Checks for compiler characteristics
3226
3227### Checks for linker characteristics
3228
3229### Checks for library functions
3230
3231fi
3232
3233AM_CONDITIONAL([HAVE_ECORE_AUDIO], [test "x${want_ecore_audio}" = "xyes"])
3234
3235#### Eio 3242#### Eio
3236 3243
3237AC_MSG_NOTICE([Eio checks]) 3244AC_MSG_NOTICE([Eio checks])
@@ -3573,6 +3580,11 @@ echo " Ecore_FB...................: $want_fb (tslib=${have_tslib})"
3573echo " Ecore_WinCE................: $have_wince" 3580echo " Ecore_WinCE................: $have_wince"
3574echo " Ecore_PSL1GHT..............: $have_ps3" 3581echo " Ecore_PSL1GHT..............: $have_ps3"
3575echo " Ecore_Wayland..............: $want_wayland" 3582echo " Ecore_Wayland..............: $want_wayland"
3583if test "${want_audio}" = "yes"; then
3584 echo " Ecore_Audio................: yes (alsa=${have_alsa}, pulseaudio=${have_pulse}, sndfile=${have_sndfile})"
3585else
3586 echo " Ecore_Audio................: no"
3587fi
3576 3588
3577echo " Ecore_Evas...................: $have_ecore_evas" 3589echo " Ecore_Evas...................: $have_ecore_evas"
3578#if test "x${have_ecore_evas}" = "xyes" ; then 3590#if test "x${have_ecore_evas}" = "xyes" ; then
@@ -3591,15 +3603,6 @@ echo " Ecore_Evas...................: $have_ecore_evas"
3591 echo " Extn (Plug/socket Extn)....: $have_ecore_evas_extn" 3603 echo " Extn (Plug/socket Extn)....: $have_ecore_evas_extn"
3592#fi 3604#fi
3593echo 3605echo
3594echo "Ecore Sound system:"
3595echo
3596echo " Ecore_Audio..................: $want_ecore_audio"
3597if test "x${want_ecore_audio}" = "xyes" ; then
3598echo " ALSA.......................: $use_alsa"
3599echo " PulseAudio.................: $use_pulse"
3600echo " SndFile....................: $use_sndfile"
3601fi
3602echo
3603echo "Tests..................: ${with_tests}" 3606echo "Tests..................: ${with_tests}"
3604 3607
3605echo "Examples...............: make examples" 3608echo "Examples...............: make examples"