AC_RUN_IFELSE vrs --prefix and --exec-prefix -they fight with each other.

2008-12-25 Thread Duane Ellis
In a ./configure script I am working on I make use of the idiom: AC_RUN_IFELSE( [ some code ], [ success ], [ failure ] ) The problem is, the CFLAGS and LDFLAGS at that point contain: CFLAGS="-I$includedir" And LDFLAGS="-L$libdir -Wl,-rpath,$libdir" Which - is correct however, whe

Re: library search test fails, please help

2009-02-22 Thread Duane Ellis
Allan Caffee wrote: AC_CHECK_LIB (AFAIK) is not intended to handle static libraries. I don't know much about AC_CHECK_LIB.. > The reason for this is that compilers handle static libraries quite differently than shared object libraries. This I disagree with. To a developer, these are '99.9

Re: overwriting default make rules

2009-03-02 Thread Duane Ellis
satyakam>Is it the right thing to do if i overwrite this rule as follows: > $(PROGRAM): $(OBJECTS) $(LIBS) > $(LD) $(LD_FLAGS) $(OBJECTS) $(LIBS) -o $static_link_file > # some more intermediate steps here... > $(POSLINK) $(PL_FLAGS) $static_link_file -o $@ In those situations (ie: Em