- fixed library path of glib and ecore examples
- optional build --enable-tests --enable-examples - print summary after configure run
This commit is contained in:
parent
2b8cfc887e
commit
7d050f31f6
6 changed files with 53 additions and 7 deletions
43
configure.ac
43
configure.ac
|
@ -35,6 +35,20 @@ AC_ARG_ENABLE(doxygen-docs,
|
|||
[enable_doxygen_docs=no]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(tests,
|
||||
AS_HELP_STRING([--enable-tests],
|
||||
[build tests]),
|
||||
[enable_tests=$enableval],
|
||||
[enable_tests=yes]
|
||||
)
|
||||
|
||||
AC_ARG_ENABLE(examples,
|
||||
AS_HELP_STRING([--enable-examples],
|
||||
[build examples]),
|
||||
[enable_examples=$enableval],
|
||||
[enable_examples=yes]
|
||||
)
|
||||
|
||||
AC_CHECK_FUNCS(clock_gettime, [], [
|
||||
AC_CHECK_LIB(rt, clock_gettime, [
|
||||
AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
|
||||
|
@ -123,6 +137,18 @@ else
|
|||
AM_CONDITIONAL(ENABLE_ECORE, test 0 = 1)
|
||||
fi
|
||||
|
||||
if test "$enable_tests" = "yes" ; then
|
||||
AM_CONDITIONAL(ENABLE_TESTS, test 1 = 1)
|
||||
else
|
||||
AM_CONDITIONAL(ENABLE_TESTS, test 0 = 1)
|
||||
fi
|
||||
|
||||
if test "$enable_examples" = "yes" ; then
|
||||
AM_CONDITIONAL(ENABLE_EXAMPLES, test 1 = 1)
|
||||
else
|
||||
AM_CONDITIONAL(ENABLE_EXAMPLES, test 0 = 1)
|
||||
fi
|
||||
|
||||
AC_CHECK_LIB([expat], XML_ParserCreate_MM,
|
||||
[AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false)],
|
||||
have_expat=false)
|
||||
|
@ -215,3 +241,20 @@ AC_OUTPUT(
|
|||
dbus-c++-glib-1-uninstalled.pc
|
||||
libdbus-c++.spec
|
||||
)
|
||||
|
||||
echo
|
||||
echo "Build configuration:"
|
||||
echo "--------------------"
|
||||
echo
|
||||
echo "Mainloop integration support:"
|
||||
echo "ecore ......................... $enable_ecore"
|
||||
echo "glib........................... $enable_glib"
|
||||
echo
|
||||
echo "Optional build items:"
|
||||
echo "build tests.................... $enable_tests"
|
||||
echo "build examples................. $enable_examples"
|
||||
echo "build doxygen documentation.... $enable_doxygen_docs"
|
||||
echo "Cross Compiling activated...... $cross_compiling"
|
||||
echo "PThread support found.......... $acx_pthread_ok"
|
||||
echo
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue