How do I pass through --program-prefix=PREFIX from configure to one of the child makefiles?

StackOverflow https://stackoverflow.com/questions/909151

  •  05-09-2019
  •  | 
  •  

Question

Autoconf has gotten me stumped.

I have tried modifying the COMPILE in Makefile.in as follows

COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
        $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -DFINALDIR=\"$(DESTDIR)$(bindir)\"

but my use of FINALDIR is undefined. What is the proper way to do it? In my defense the whole autoconf business is a rats nest of preprocessors hiding anything obvious.

Thanks in advance... sorry I am such a tool!

Was it helpful?

Solution

You may need to move that definition into CPPFLAGS or AM_CPPFLAGS; it's quite possible that something is running the C preprocessor only, without running the compiler, or at least running the compiler without using ${COMPILE}.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top