summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2017-09-11 03:08:36 +0200
committerCedric BAIL <cedric@osg.samsung.com>2017-09-12 17:03:23 -0700
commitda7876a9b80f6fb96f642612d115345254a617d9 (patch)
tree9f597d1db94da76a1d3d57788437bd7dc93bca95
parent95dd799715e6ba7574dbc1fc1c244b91bf3a4927 (diff)
downloadefl-da7876a9b80f6fb96f642612d115345254a617d9.tar.gz
eina: compilation fixed on OpenIndiana
socket library must be passed as connect() is used in eina_db Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--configure.ac47
1 files changed, 25 insertions, 22 deletions
diff --git a/configure.ac b/configure.ac
index 9bdf7c364c..2d4e048065 100644
--- a/configure.ac
+++ b/configure.ac
@@ -957,9 +957,32 @@ AC_DEFINE_UNQUOTED([EVAS_DICTS_HYPHEN_DIR],["$evas_dicts_hyphen_dir"], [Hunspell
### Checks for programs
### Checks for libraries
+
+# sockets
+
+case "$host_os" in
+ mingw*)
+ have_socket="no"
+ ;;
+ *solaris*)
+ AC_CHECK_LIB([socket], [connect],
+ [
+ have_socket="yes"
+ requirement_socket="-lsocket"
+ ],
+ [have_socket="no"])
+ ;;
+ darwin*)
+ have_socket="yes"
+ ;;
+ *)
+ have_socket="yes"
+ ;;
+esac
+
EFL_PLATFORM_DEPEND([EINA], [all])
-EFL_ADD_LIBS([EINA], [-lm])
+EFL_ADD_LIBS([EINA], [${requirement_socket} -lm])
## Options
@@ -5409,27 +5432,7 @@ esac
### Checks for linker characteristics
-# sockets
-
-case "$host_os" in
- mingw*)
- have_socket="no"
- ;;
- *solaris*)
- AC_CHECK_LIB([socket], [connect],
- [
- have_socket="yes"
- requirements_libs_elm="-lsocket ${requirements_libs_elm}"
- ],
- [have_socket="no"])
- ;;
- darwin*)
- have_socket="yes"
- ;;
- *)
- have_socket="yes"
- ;;
-esac
+requirements_libs_elm="${requirement_socket} ${requirements_libs_elm}"
AC_SUBST([requirements_libs_elm])