On Monday 19 December 2011 03:45:56 Serge Pavlov wrote:
> --- a/configure.ac
> +++ b/configure.ac
> @@ -26,7 +26,20 @@ AC_PREREQ(2.63) dnl Minimum
> Autoconf version required.
>
> dnl We use GNU make extensions; automake 1.10 defaults to -Wportability.
> AM_INIT_AUTOMAKE([gnits 1.8 -Wno-portability dist-bzip2 no-dist-gzip])
> -AM_MAINTAINER_MODE
> +
> +dnl If autogenerated files are absent, set maintainer mode to recreate
> them +if test ! -f ${srcdir}/libcpu/i386_dis.h; then
> + use_maintainer_mode=enable
> +elif test ! -f ${srcdir}/libcpu/x86_64_dis.h; then
> + use_maintainer_mode=enable
> +fi
> +if test -z "$use_maintainer_mode"; then
> + AM_MAINTAINER_MODE
> +else
> + AM_MAINTAINER_MODE(enable)
> + AC_MSG_WARN([Maintainer mode is turned on as libcpu files not found])
> +fi
assuming srcdir is sane, looks like it should work. you should be able to
test by doing:
# build in tree
$ autoreconf -f -i
$ rm -f libcpu/{i386,x86_64}_dis.h
$ ./configure
<make sure maintainer is enabled>
$ make
<should work>
# build a package
$ make distcheck
# build out of tree
$ make distclean
$ mkdir build
$ cd build
$ ../configure
<maintainer should not be enabled>
$ make
<should work>
-mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ elfutils-devel mailing list [email protected] https://fedorahosted.org/mailman/listinfo/elfutils-devel
