[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Potential bug in AC_CONFIG_SRCDIR
From: |
Michael Cress |
Subject: |
Potential bug in AC_CONFIG_SRCDIR |
Date: |
Mon, 7 Jan 2019 17:52:55 +0000 |
Greetings:
I am observing some strange behavior ( see comments in snippet ) with the
AC_CONFIG_SRCDIR macro when using the configure.ac snippet below.
<Begin configure.ac snippet>
…
#Define a subdirectory which contains the source files ( a separate Git repo )
DCMSGSRCDIR=DockControllerImplv1_Messages_src
AC_SUBST([DCMSGSRCDIR], [$DCMSGSRCDIR])
#This works
# AC_CONFIG_SRCDIR([DockControllerImplv1_Messages_src/src/dockcontrollermsg.c])
#
AC_CONFIG_SRCDIR([DockControllerImplv1_Messages_src/include/dockcontrollermsg.h])
#This also works
AC_CONFIG_SRCDIR([$DCMSGSRCDIR/src/dockcontrollermsg.c])
AC_CONFIG_SRCDIR([DockControllerImplv1_Messages_src/include/dockcontrollermsg.h])
# This ***does not*** work
# This second use of the variable doesn't work and fails with ‘configure:
error: cannot find sources (/include/dockcontrollermsg.h) in . or ..’.
# Is this a bug?
AC_CONFIG_SRCDIR([$DCMSGSRCDIR/src/dockcontrollermsg.c])
AC_CONFIG_SRCDIR([$DCMSGSRCDIR/include/dockcontrollermsg.h])
…
<End configure.ac snippet>
Thank you,
Michael Cress
--
- Potential bug in AC_CONFIG_SRCDIR,
Michael Cress <=