1. embryo shoudl have soname
[framework/uifw/efreet.git] / configure.ac
1 rm -f config.cache
2
3 AC_INIT([efreet], [0.5.0.050], [enlightenment-devel@lists.sourceforge.net])
4 AC_PREREQ([2.52])
5 AC_CONFIG_SRCDIR([configure.ac])
6 AC_CONFIG_MACRO_DIR([m4])
7 AC_CANONICAL_BUILD
8 AC_CANONICAL_HOST
9
10 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
11 AM_CONFIG_HEADER(config.h)
12
13 AC_ISC_POSIX
14 AC_PROG_CC
15 AM_PROG_CC_STDC
16 AC_HEADER_STDC
17 AC_C_CONST
18 AC_C___ATTRIBUTE__
19
20 AC_LIBTOOL_WIN32_DLL
21 define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
22 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
23 AC_PROG_LIBTOOL
24
25 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
26 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
27 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
28 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
29 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
30 release="ver-pre-svn-00"
31 efreet_release_info="-release $release"
32 efreet_mime_release_info="-release $release"
33 efreet_trash_release_info="-release $release"
34 AC_SUBST(version_info)
35 AC_SUBST(efreet_release_info)
36 AC_SUBST(efreet_mime_release_info)
37 AC_SUBST(efreet_trash_release_info)
38
39 PKG_PROG_PKG_CONFIG
40
41 EFL_EFREET_BUILD=""
42 EFL_EFREET_MIME_BUILD=""
43 EFL_EFREET_TRASH_BUILD=""
44 win32_libs=""
45 case "$host_os" in
46    mingw* | cegcc*)
47       PKG_CHECK_MODULES([EVIL], [evil])
48       AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if Evil library is installed])
49       EFL_EFREET_BUILD="-DEFL_EFREET_BUILD"
50       EFL_EFREET_MIME_BUILD="-DEFL_EFREET_MIME_BUILD"
51       EFL_EFREET_TRASH_BUILD="-DEFL_EFREET_TRASH_BUILD"
52       win32_libs="-lws2_32"
53    ;;
54 esac
55 AC_SUBST(EFL_EFREET_BUILD)
56 AC_SUBST(EFL_EFREET_MIME_BUILD)
57 AC_SUBST(EFL_EFREET_TRASH_BUILD)
58 AC_SUBST(win32_libs)
59
60 AC_FUNC_ALLOCA
61
62 AC_CHECK_HEADERS([arpa/inet.h])
63
64 PKG_CHECK_MODULES(EFREET, [eina-0 ecore >= 0.9.9 ecore-file >= 0.9.9])
65 PKG_CHECK_MODULES(EINA, [eina-0])
66
67 requirements="ecore-file ecore eina-0"
68
69 AC_ARG_ENABLE(strict-spec,
70         [AC_HELP_STRING([--enable-strict-spec],[Enable strict spec compliance])],
71         [enable_strict_spec=$enableval], [enable_strict_spec="auto"])
72 if test "x$enable_strict_spec" = "xyes" ; then
73     AC_DEFINE(STRICT_SPEC, 1, [Strict Spec Compliance])
74 fi
75
76 AC_ARG_ENABLE(sloppy-spec,
77         [AC_HELP_STRING([--disable-sloppy-spec],[Enable sloppy spec compliance])],
78         [enable_sloppy_spec=$enableval], [enable_sloppy_spec="yes"])
79 if test "x$enable_sloppy_spec" = "xyes" ; then
80     AC_DEFINE(SLOPPY_SPEC, 1, [Sloppy Spec Compliance])
81 fi
82
83 AC_ARG_ENABLE(hidden-visibility,
84         [AC_HELP_STRING([--enable-hidden-visibility],[Enable hidden visibility])],
85         [enable_hidden_visibility=$enableval], [enable_hidden_visibility="auto"])
86 if test "x$enable_hidden_visibility" = "xyes" ; then
87     CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
88 else
89     AC_DEFINE(DEFAULT_VISIBLITY, 1, [Default visibility])
90 fi
91 AM_CONDITIONAL(DEFAULT_VISIBILITY, test "x$enable_hidden_visibility" != "xyes")
92 EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
93
94 AC_SUBST(requirements)
95 AC_OUTPUT([
96 efreet.spec
97 efreet.pc
98 efreet-mime.pc
99 efreet-trash.pc
100 Makefile
101 doc/Makefile
102 doc/Doxyfile
103 src/Makefile
104 src/lib/Makefile
105 src/bin/Makefile
106 src/bin/data/Makefile
107 src/bin/data/sub/Makefile
108 src/bin/compare/Makefile
109 ], []
110 )