summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-08-16 08:05:39 +0100
committerChris Michael <cp.michael@samsung.com>2013-08-16 08:05:39 +0100
commita62064f221622f2a5ddbfc7eddd01748d2fa9f06 (patch)
tree88c9e7dcd44e8824ffc30aac270d5a83c578c2b5 /configure.ac
parent34c2fdbbba5065515559cd5bff7e41fc82804074 (diff)
Move Eeze detection Above ecore_evas engine detection.
Ecore_Evas_Drm will rely on Eeze for drm device discovery, so we need to check for eeze requirements before ecore_evas. Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac233
1 files changed, 117 insertions, 116 deletions
diff --git a/configure.ac b/configure.ac
index e89a678b63..caae382707 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2978,6 +2978,123 @@ EFL_LIB_END([Ecore_Imf_Evas])
2978#### End of Ecore_Imf_Evas 2978#### End of Ecore_Imf_Evas
2979 2979
2980 2980
2981#### Eeze
2982have_libmount_new="no"
2983have_libmount_old="no"
2984have_eeze_mount="no"
2985
2986EFL_LIB_START_OPTIONAL([Eeze], [test "${have_linux}" = "yes"])
2987
2988### Additional options to configure
2989AC_ARG_WITH([mount],
2990 [AS_HELP_STRING([--with-mount], [specify mount bin @<:@default=detect@:>@])],
2991 [with_eeze_mount=$withval], [with_eeze_mount="detect"])
2992AC_ARG_WITH([umount],
2993 [AS_HELP_STRING([--with-umount], [specify umount bin @<:@default=detect@:>@])],
2994 [with_eeze_umount=$withval], [with_eeze_umount="detect"])
2995AC_ARG_WITH([eject],
2996 [AS_HELP_STRING([--with-eject], [specify eject bin @<:@default=detect@:>@])],
2997 [with_eeze_eject=$withval], [with_eeze_eject="detect"])
2998
2999### Default values
3000
3001### Checks for programs
3002
3003### Checks for libraries
3004EFL_INTERNAL_DEPEND_PKG([EEZE], [eina])
3005EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore])
3006EFL_INTERNAL_DEPEND_PKG([EEZE], [eo])
3007EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-file])
3008EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-con])
3009EFL_INTERNAL_DEPEND_PKG([EEZE], [eet])
3010
3011EFL_DEPEND_PKG([EEZE], [UDEV], [libudev >= 148])
3012
3013AC_ARG_ENABLE([libmount],
3014 [AC_HELP_STRING([--disable-libmount],
3015 [disable libmount support. @<:@default=enabled@:>@])],
3016 [
3017 if test "x${enableval}" = "xyes" ; then
3018 want_libmount="yes"
3019 else
3020 want_libmount="no"
3021 fi
3022 ],
3023 [want_libmount="yes"])
3024
3025EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_libmount}],
3026 [EEZE_MOUNT], [mount >= 2.18.0])
3027EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}])
3028
3029PKG_CHECK_EXISTS([mount < 2.19.0],
3030 [have_libmount_old="yes"],
3031 [have_libmount_old="no"])
3032AC_MSG_CHECKING([Use old libmount API (before 2.19.0)])
3033AC_MSG_RESULT([${have_libmount_old}])
3034
3035PKG_CHECK_EXISTS([mount == 2.19.0],
3036 [have_libmount_219="yes"],
3037 [have_libmount_219="no"])
3038AC_MSG_CHECKING([Use libmount 2.19.0 API])
3039AC_MSG_RESULT([${have_libmount_219}])
3040
3041PKG_CHECK_EXISTS([mount > 2.19.0],
3042 [have_libmount_new="yes"],
3043 [have_libmount_new="no"])
3044AC_MSG_CHECKING([Use new libmount API (older than 2.19.0)])
3045AC_MSG_RESULT([${have_libmount_new}])
3046
3047if test "x${have_libmount_old}" = "xyes"; then
3048 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])
3049fi
3050
3051## modules
3052if test "${want_tizen}" = "yes"; then
3053 PKG_CHECK_MODULES([TIZEN_SENSOR], [capi-system-sensor >= 0.1.17])
3054fi
3055EFL_ADD_FEATURE([EEZE], [tizen])
3056
3057EFL_EVAL_PKGS([EEZE])
3058
3059### Checks for header files
3060
3061### Checks for types
3062
3063### Checks for structures
3064
3065### Checks for compiler characteristics
3066
3067### Checks for linker characteristics
3068
3069### Checks for library functions
3070
3071### Checks for binaries
3072if test "x$with_eeze_mount" = "xdetect"; then
3073 AC_PATH_PROG([with_eeze_mount], [mount], [])
3074fi
3075AC_DEFINE_UNQUOTED([EEZE_MOUNT_BIN], ["$with_eeze_mount"], [mount bin to use])
3076
3077if test "x$with_eeze_umount" = "xdetect";then
3078 AC_PATH_PROG([with_eeze_umount], [umount], [])
3079fi
3080AC_DEFINE_UNQUOTED([EEZE_UNMOUNT_BIN], ["$with_eeze_umount"], [umount bin to use])
3081
3082if test "x$with_eeze_eject" = "xdetect";then
3083 AC_PATH_PROG([with_eeze_eject], [eject], [])
3084fi
3085AC_DEFINE_UNQUOTED([EEZE_EJECT_BIN], ["$with_eeze_eject"], [eject bin to use])
3086
3087EFL_LIB_END_OPTIONAL([Eeze])
3088
3089AM_CONDITIONAL([EEZE_LIBMOUNT_AFTER_219],
3090 [test "x${have_libmount_new}" = "xyes"])
3091AM_CONDITIONAL([EEZE_LIBMOUNT_BEFORE_219],
3092 [test "x${have_libmount_old}" = "xyes"])
3093AM_CONDITIONAL([HAVE_EEZE_MOUNT], [test "x${have_eeze_mount}" = "xyes"])
3094AM_CONDITIONAL([HAVE_EEZE_TIZEN], [test "x${want_tizen}" = "xyes"])
3095#### End of Eeze
3096
3097
2981#### Ecore_Evas 3098#### Ecore_Evas
2982EFL_LIB_START([Ecore_Evas]) 3099EFL_LIB_START([Ecore_Evas])
2983 3100
@@ -3255,122 +3372,6 @@ EFL_INTERNAL_DEPEND_PKG([EFREET], [eina])
3255EFL_LIB_END([Efreet]) 3372EFL_LIB_END([Efreet])
3256#### End of Efreet 3373#### End of Efreet
3257 3374
3258#### Eeze
3259have_libmount_new="no"
3260have_libmount_old="no"
3261have_eeze_mount="no"
3262
3263EFL_LIB_START_OPTIONAL([Eeze], [test "${have_linux}" = "yes"])
3264
3265### Additional options to configure
3266AC_ARG_WITH([mount],
3267 [AS_HELP_STRING([--with-mount], [specify mount bin @<:@default=detect@:>@])],
3268 [with_eeze_mount=$withval], [with_eeze_mount="detect"])
3269AC_ARG_WITH([umount],
3270 [AS_HELP_STRING([--with-umount], [specify umount bin @<:@default=detect@:>@])],
3271 [with_eeze_umount=$withval], [with_eeze_umount="detect"])
3272AC_ARG_WITH([eject],
3273 [AS_HELP_STRING([--with-eject], [specify eject bin @<:@default=detect@:>@])],
3274 [with_eeze_eject=$withval], [with_eeze_eject="detect"])
3275
3276### Default values
3277
3278### Checks for programs
3279
3280### Checks for libraries
3281EFL_INTERNAL_DEPEND_PKG([EEZE], [eina])
3282EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore])
3283EFL_INTERNAL_DEPEND_PKG([EEZE], [eo])
3284EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-file])
3285EFL_INTERNAL_DEPEND_PKG([EEZE], [ecore-con])
3286EFL_INTERNAL_DEPEND_PKG([EEZE], [eet])
3287
3288EFL_DEPEND_PKG([EEZE], [UDEV], [libudev >= 148])
3289
3290AC_ARG_ENABLE([libmount],
3291 [AC_HELP_STRING([--disable-libmount],
3292 [disable libmount support. @<:@default=enabled@:>@])],
3293 [
3294 if test "x${enableval}" = "xyes" ; then
3295 want_libmount="yes"
3296 else
3297 want_libmount="no"
3298 fi
3299 ],
3300 [want_libmount="yes"])
3301
3302EFL_OPTIONAL_DEPEND_PKG([EEZE], [${want_libmount}],
3303 [EEZE_MOUNT], [mount >= 2.18.0])
3304EFL_ADD_FEATURE([EEZE], [libmount], [${have_eeze_mount}])
3305
3306PKG_CHECK_EXISTS([mount < 2.19.0],
3307 [have_libmount_old="yes"],
3308 [have_libmount_old="no"])
3309AC_MSG_CHECKING([Use old libmount API (before 2.19.0)])
3310AC_MSG_RESULT([${have_libmount_old}])
3311
3312PKG_CHECK_EXISTS([mount == 2.19.0],
3313 [have_libmount_219="yes"],
3314 [have_libmount_219="no"])
3315AC_MSG_CHECKING([Use libmount 2.19.0 API])
3316AC_MSG_RESULT([${have_libmount_219}])
3317
3318PKG_CHECK_EXISTS([mount > 2.19.0],
3319 [have_libmount_new="yes"],
3320 [have_libmount_new="no"])
3321AC_MSG_CHECKING([Use new libmount API (older than 2.19.0)])
3322AC_MSG_RESULT([${have_libmount_new}])
3323
3324if test "x${have_libmount_old}" = "xyes"; then
3325 AC_DEFINE_UNQUOTED([OLD_LIBMOUNT], [1], [using first version of libmount])
3326fi
3327
3328## modules
3329if test "${want_tizen}" = "yes"; then
3330 PKG_CHECK_MODULES([TIZEN_SENSOR], [capi-system-sensor >= 0.1.17])
3331fi
3332EFL_ADD_FEATURE([EEZE], [tizen])
3333
3334EFL_EVAL_PKGS([EEZE])
3335
3336### Checks for header files
3337
3338### Checks for types
3339
3340### Checks for structures
3341
3342### Checks for compiler characteristics
3343
3344### Checks for linker characteristics
3345
3346### Checks for library functions
3347
3348### Checks for binaries
3349if test "x$with_eeze_mount" = "xdetect"; then
3350 AC_PATH_PROG([with_eeze_mount], [mount], [])
3351fi
3352AC_DEFINE_UNQUOTED([EEZE_MOUNT_BIN], ["$with_eeze_mount"], [mount bin to use])
3353
3354if test "x$with_eeze_umount" = "xdetect";then
3355 AC_PATH_PROG([with_eeze_umount], [umount], [])
3356fi
3357AC_DEFINE_UNQUOTED([EEZE_UNMOUNT_BIN], ["$with_eeze_umount"], [umount bin to use])
3358
3359if test "x$with_eeze_eject" = "xdetect";then
3360 AC_PATH_PROG([with_eeze_eject], [eject], [])
3361fi
3362AC_DEFINE_UNQUOTED([EEZE_EJECT_BIN], ["$with_eeze_eject"], [eject bin to use])
3363
3364EFL_LIB_END_OPTIONAL([Eeze])
3365
3366AM_CONDITIONAL([EEZE_LIBMOUNT_AFTER_219],
3367 [test "x${have_libmount_new}" = "xyes"])
3368AM_CONDITIONAL([EEZE_LIBMOUNT_BEFORE_219],
3369 [test "x${have_libmount_old}" = "xyes"])
3370AM_CONDITIONAL([HAVE_EEZE_MOUNT], [test "x${have_eeze_mount}" = "xyes"])
3371AM_CONDITIONAL([HAVE_EEZE_TIZEN], [test "x${want_tizen}" = "xyes"])
3372#### End of Eeze
3373
3374 3375
3375#### EPhysics 3376#### EPhysics
3376AC_ARG_ENABLE([physics], 3377AC_ARG_ENABLE([physics],