efl/legacy/eeze/configure.ac

124 lines
2.7 KiB
Plaintext
Raw Normal View History

# get rid of that stupid cache mechanism
rm -f config.cache
AC_INIT([eeze], [0.2.0], [enlightenment-devel@lists.sourceforge.net])
release="ver-pre-svn-05"
AC_PREREQ([2.52])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([1.6 dist-bzip2])
AM_CONFIG_HEADER([config.h])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
AC_PROG_LIBTOOL
VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
eeze_release_info="-release $release"
AC_SUBST(version_info)
AC_SUBST(eeze_release_info)
### Needed information
requirement_eeze="ecore libudev"
### Checks for programs
AC_PROG_CC
AM_PROG_CC_C_O
# pkg-config
PKG_PROG_PKG_CONFIG
# Check whether pkg-config supports Requires.private
AS_IF(
[$PKG_CONFIG --atleast-pkgconfig-version 0.22],
[pkgconfig_requires_private="Requires.private"],
[pkgconfig_requires_private="Requires"]
)
AC_SUBST(pkgconfig_requires_private)
# doxygen program for documentation building
EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
### Checks for libraries
PKG_CHECK_MODULES([EEZE], [ecore libudev])
udev_version=$(pkg-config libudev --modversion)
if test $udev_version -lt 148;then
AC_MSG_WARN([Old udev version detected, enabling compat code])
AC_DEFINE([OLD_UDEV_RRRRRRRRRRRRRR],[1],[compat functionality for udev < 148])
fi
### Checks for header files
### Checks for types
### Checks for structures
### Checks for compiler characteristics
AC_HEADER_STDC
if ! test "x${VMIC}" = "x" ; then
EFL_COMPILER_FLAG([-Wall])
EFL_COMPILER_FLAG([-W])
fi
EFL_COMPILER_FLAG([-Wshadow])
AC_SUBST(requirement_eeze)
AC_OUTPUT([
Makefile
doc/eeze.dox
doc/Makefile
src/Makefile
src/lib/Makefile
src/bin/Makefile
eeze.pc
])
#####################################################################
## Info
echo
echo
echo
echo "------------------------------------------------------------------------"
echo "$PACKAGE $VERSION"
echo "------------------------------------------------------------------------"
echo
echo "Configuration Options Summary:"
echo
echo "Documentation..........: ${build_doc}"
echo
echo "Compilation............: make (or gmake)"
echo " CPPFLAGS.............: $CPPFLAGS"
echo " CFLAGS...............: $CFLAGS"
echo " LDFLAGS..............: $LDFLAGS"
echo
echo "Installation...........: make install (as root if needed, with 'su' or 'sudo')"
echo " prefix...............: $prefix"
echo