Potential bug in AC_CONFIG_SRCDIR
Michael Cress <[email protected]>
| Newsgroups | gmane.comp.sysutils.autoconf.bugs |
|---|---|
| Message-ID | <CO2PR01MB1973F3FF019A3CE17E7D427CA7890@CO2PR01MB1973.prod.exchangelabs.com> |
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 --