bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Hansni Liu
Subject: bug#23029: Enable subdir-objects cannot find Po of source with absolute path
Date: Wed, 16 Mar 2016 17:07:45 +0800

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]