[apparmor] [patch 04/10] libapparmor - rename configure.in to configure.ac
Tyler Hicks
tyhicks at canonical.com
Fri Sep 6 18:21:58 UTC 2013
On 2013-09-05 01:36:59, Steve Beattie wrote:
> The oldstyle name configure.in has been deprecated by autotools. This
> patch renames configure.in to the new standard name configure.ac.
> The AC_INIT() entry was adjusted as well to point to configure.ac
> instead of configure.in.
>
> Signed-off-by: Steve Beattie <steve at nxnw.org>
Acked-by: Tyler Hicks <tyhicks at canonical.com>
>
> ---
> libraries/libapparmor/configure.ac | 84 +++++++++++++++++++++++++++++++++++++
> libraries/libapparmor/configure.in | 84 -------------------------------------
> 2 files changed, 84 insertions(+), 84 deletions(-)
>
> Index: b/libraries/libapparmor/configure.ac
> ===================================================================
> --- /dev/null
> +++ b/libraries/libapparmor/configure.ac
> @@ -0,0 +1,84 @@
> +m4_define([__apparmor_version], m4_sinclude(common/Version))
> +m4_ifdef(__apparmor_version, , m4_define([__apparmor_version], m4_sinclude(../../common/Version)))
> +m4_define([__aalen], decr(len(__apparmor_version)))
> +m4_define([apparmor_version], m4_substr(__apparmor_version, 0, __aalen))
> +
> +AC_INIT(configure.ac)
> +
> +AM_INIT_AUTOMAKE(libapparmor1, apparmor_version)
> +
> +AM_PROG_LEX
> +AC_PROG_YACC
> +AC_PROG_SED
> +PKG_PROG_PKG_CONFIG
> +
> +AC_PATH_PROG([SWIG], [swig])
> +
> +sinclude(m4/ac_pod2man.m4)
> +PROG_POD2MAN
> +
> +AC_MSG_CHECKING([whether python bindings are enabled])
> +AC_ARG_WITH(python,
> +[ --with-python enable the python wrapper [[default=no]]],
> +[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
> +if test "$with_python" = "yes"; then
> + test -z "$SWIG" && AC_MSG_ERROR([swig is required when enabling python bindings])
> + AC_PATH_PROG(PYTHON, python)
> + test -z "$PYTHON" && AC_MSG_ERROR([python is required when enabling python bindings])
> + sinclude(m4/ac_python_devel.m4)
> + AC_PYTHON_DEVEL
> + AM_PATH_PYTHON
> +fi
> +
> +AC_MSG_CHECKING([whether perl bindings are enabled])
> +AC_ARG_WITH(perl,
> +[ --with-perl enable the perl wrapper [[default=no]]],
> +[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
> +if test "$with_perl" = "yes"; then
> + test -z "$SWIG" && AC_MSG_ERROR([swig is required when enabling perl bindings])
> + AC_PATH_PROG(PERL, perl)
> + test -z "$PERL" && AC_MSG_ERROR([perl is required when enabling perl bindings])
> + perl_includedir="`$PERL -e 'use Config; print $Config{archlib}'`/CORE"
> + AC_CHECK_FILE($perl_includedir/perl.h, enable_perl=yes, enable_perl=no)
> +fi
> +
> +
> +AC_MSG_CHECKING([whether ruby bindings are enabled])
> +AC_ARG_WITH(ruby,
> +[ --with-ruby enable the ruby wrapper [[default=no]]],
> +[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
> +if test "$with_ruby" = "yes"; then
> + test -z "$SWIG" && AC_MSG_ERROR([swig is required when enabling ruby bindings])
> + AC_PATH_PROG([RUBY], [ruby])
> + test -z "$RUBY" && AC_MSG_ERROR([ruby is required when enabling ruby bindings])
> +fi
> +
> +
> +AM_CONDITIONAL(HAVE_PYTHON, test x$with_python = xyes)
> +AM_CONDITIONAL(HAVE_PERL, test x$with_perl = xyes)
> +AM_CONDITIONAL(HAVE_RUBY, test x$with_ruby = xyes)
> +
> +AC_HEADER_STDC
> +AC_CHECK_HEADERS(unistd.h stdint.h)
> +
> +AC_CHECK_FUNCS(asprintf)
> +
> +AM_PROG_CC_C_O
> +AC_C_CONST
> +AM_PROG_LIBTOOL
> +
> +AC_OUTPUT(
> +Makefile
> +doc/Makefile
> +src/Makefile
> +swig/Makefile
> +swig/perl/Makefile
> +swig/perl/Makefile.PL
> +swig/python/Makefile
> +swig/python/setup.py
> +swig/ruby/Makefile
> +testsuite/Makefile
> +testsuite/config/Makefile
> +testsuite/libaalogparse.test/Makefile
> +testsuite/lib/Makefile
> +)
> Index: b/libraries/libapparmor/configure.in
> ===================================================================
> --- a/libraries/libapparmor/configure.in
> +++ /dev/null
> @@ -1,84 +0,0 @@
> -m4_define([__apparmor_version], m4_sinclude(common/Version))
> -m4_ifdef(__apparmor_version, , m4_define([__apparmor_version], m4_sinclude(../../common/Version)))
> -m4_define([__aalen], decr(len(__apparmor_version)))
> -m4_define([apparmor_version], m4_substr(__apparmor_version, 0, __aalen))
> -
> -AC_INIT(configure.in)
> -
> -AM_INIT_AUTOMAKE(libapparmor1, apparmor_version)
> -
> -AM_PROG_LEX
> -AC_PROG_YACC
> -AC_PROG_SED
> -PKG_PROG_PKG_CONFIG
> -
> -AC_PATH_PROG([SWIG], [swig])
> -
> -sinclude(m4/ac_pod2man.m4)
> -PROG_POD2MAN
> -
> -AC_MSG_CHECKING([whether python bindings are enabled])
> -AC_ARG_WITH(python,
> -[ --with-python enable the python wrapper [[default=no]]],
> -[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
> -if test "$with_python" = "yes"; then
> - test -z "$SWIG" && AC_MSG_ERROR([swig is required when enabling python bindings])
> - AC_PATH_PROG(PYTHON, python)
> - test -z "$PYTHON" && AC_MSG_ERROR([python is required when enabling python bindings])
> - sinclude(m4/ac_python_devel.m4)
> - AC_PYTHON_DEVEL
> - AM_PATH_PYTHON
> -fi
> -
> -AC_MSG_CHECKING([whether perl bindings are enabled])
> -AC_ARG_WITH(perl,
> -[ --with-perl enable the perl wrapper [[default=no]]],
> -[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
> -if test "$with_perl" = "yes"; then
> - test -z "$SWIG" && AC_MSG_ERROR([swig is required when enabling perl bindings])
> - AC_PATH_PROG(PERL, perl)
> - test -z "$PERL" && AC_MSG_ERROR([perl is required when enabling perl bindings])
> - perl_includedir="`$PERL -e 'use Config; print $Config{archlib}'`/CORE"
> - AC_CHECK_FILE($perl_includedir/perl.h, enable_perl=yes, enable_perl=no)
> -fi
> -
> -
> -AC_MSG_CHECKING([whether ruby bindings are enabled])
> -AC_ARG_WITH(ruby,
> -[ --with-ruby enable the ruby wrapper [[default=no]]],
> -[AC_MSG_RESULT($withval)], [AC_MSG_RESULT(no)])
> -if test "$with_ruby" = "yes"; then
> - test -z "$SWIG" && AC_MSG_ERROR([swig is required when enabling ruby bindings])
> - AC_PATH_PROG([RUBY], [ruby])
> - test -z "$RUBY" && AC_MSG_ERROR([ruby is required when enabling ruby bindings])
> -fi
> -
> -
> -AM_CONDITIONAL(HAVE_PYTHON, test x$with_python = xyes)
> -AM_CONDITIONAL(HAVE_PERL, test x$with_perl = xyes)
> -AM_CONDITIONAL(HAVE_RUBY, test x$with_ruby = xyes)
> -
> -AC_HEADER_STDC
> -AC_CHECK_HEADERS(unistd.h stdint.h)
> -
> -AC_CHECK_FUNCS(asprintf)
> -
> -AM_PROG_CC_C_O
> -AC_C_CONST
> -AM_PROG_LIBTOOL
> -
> -AC_OUTPUT(
> -Makefile
> -doc/Makefile
> -src/Makefile
> -swig/Makefile
> -swig/perl/Makefile
> -swig/perl/Makefile.PL
> -swig/python/Makefile
> -swig/python/setup.py
> -swig/ruby/Makefile
> -testsuite/Makefile
> -testsuite/config/Makefile
> -testsuite/libaalogparse.test/Makefile
> -testsuite/lib/Makefile
> -)
>
>
> --
> AppArmor mailing list
> AppArmor at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/apparmor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20130906/ba1571b8/attachment.pgp>
More information about the AppArmor
mailing list