autoconf
[Top][All Lists]
Advanced

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

Getting srcdir in script executed using m4_esyscmd in AC_INIT


From: Bob Friesenhahn
Subject: Getting srcdir in script executed using m4_esyscmd in AC_INIT
Date: Sun, 3 Jan 2021 17:00:56 -0600 (CST)
User-agent: Alpine 2.20 (GSO 67 2015-01-07)

I am trying to update the Autoconf and Automake initializations in GraphicsMagick to the current standard. There is an external script which produces all of the version information. This script needs to access a file (called ChangeLog) in the top of the source directory.

I am using this syntax in configure.ac:

AC_INIT(m4_esyscmd([./version.sh packagename]),
        m4_esyscmd([./version.sh packageversion]),
        m4_esyscmd([./version.sh packagebugreport]))

This works fine when building in the source directory.

The problem I am encountering is that in the context of AC_INIT and m4_esyscmd, I do not know how to obtain the path to the top of the source directory.

Can someone please give me a clue as to how to determine the top of the source directory?

Thanks,

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt



reply via email to

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