bug#23029: Enable subdir-objects cannot find Po of source with absolute path

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

bug#23029: Enable subdir-objects cannot find Po of source with absolute path

Hansni Liu
Hi,
I'm told to enable subdir-objects when upgrading automake. However, if that's enabled, the Makefile generated does not include the correct path of the .Plo file if the source is with absolute path.

My autoconf is 2.69, automake is 1.15, libtool is 2.4.6

For example, my configure.ac is
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_SRCDIR([test.c])
AC_CONFIG_HEADERS([config.h])

# Checks for programs.
AC_PROG_CC

LT_INIT([dlopen])

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

AC_CONFIG_FILES([Makefile])

AC_OUTPUT


And my Makefile.am is:
bin_PROGRAMS = test
test_SOURCES = test.c /home/hansni/tmp/test_automake/lib.c

Now after making a build directory in the top source, running configure, the Po is at
/home/hansni/tmp/test_automake/build/home/hansni/tmp/test_automake/.deps/lib.Po

However, in Makefile, it tries the path:
include /home/hansni/tmp/test_automake/$(DEPDIR)/lib.Po

It seems that the Po is created inside the build directory, however, Makefile tries to find it in the original absolute path.

B.R.
Hansni

Loading...