From: Cedric BAIL Date: Tue, 2 Sep 2014 10:37:34 +0000 (+0200) Subject: autotools: require a less deprecated gettext and move stuff to be in a more coherent... X-Git-Tag: v1.12.0-alpha1~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=766685cb94f7af1a8a3e4ad6c0385bfc4e3b1cbf;p=platform%2Fupstream%2Felementary.git autotools: require a less deprecated gettext and move stuff to be in a more coherent place. --- diff --git a/configure.ac b/configure.ac index b40466c..03c8ad7 100644 --- a/configure.ac +++ b/configure.ac @@ -131,12 +131,29 @@ AM_CONDITIONAL([HAVE_FREEBSD], [test "x${have_freebsd}" = "xyes"]) AC_SUBST([ELM_UNIX_DEF]) AC_SUBST([ELM_WIN32_DEF]) - ### Checks for programs +# compilers +AC_PROG_CC +AC_PROG_CC_STDC +AC_PROG_CXX + +EFL_CXX_COMPILE_STDCXX_11([ext]) + +# pkg-config +PKG_PROG_PKG_CONFIG + +# Check whether pkg-config supports Requires.private +if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then + pkgconfig_requires_private="Requires.private" +else + pkgconfig_requires_private="Requires" +fi +AC_SUBST([pkgconfig_requires_private]) + # gettext m4_ifdef([AM_GNU_GETTEXT_VERSION], [ -AM_GNU_GETTEXT_VERSION([0.17]) +AM_GNU_GETTEXT_VERSION([0.18]) ]) m4_ifdef([AM_GNU_GETTEXT], [ @@ -154,24 +171,6 @@ fi AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"]) -# compilers -AC_PROG_CC -AC_PROG_CC_STDC -AC_PROG_CXX - -EFL_CXX_COMPILE_STDCXX_11([ext]) - -# pkg-config -PKG_PROG_PKG_CONFIG - -# Check whether pkg-config supports Requires.private -if $PKG_CONFIG --atleast-pkgconfig-version 0.22; then - pkgconfig_requires_private="Requires.private" -else - pkgconfig_requires_private="Requires" -fi -AC_SUBST([pkgconfig_requires_private]) - # doxygen EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])