Custom search includes directories with autoconf

I am trying to compile a program that uses the festival library.

Basically, the requirements are that you include the festival header catalogs and estools in the inclusion path, and you include both of their library paths.

In a typical installation, they simply remain in their folders, so you have

/some/path/festival/src/include 
/some/other/path/estools/include

as a necessary search path, and

/some/path/festival/src/lib
/some/other/path/estools/lib

as a path to the library.

I think the right way to handle this is with the configuration of "--with-estools" and "--with-festival".

However, when installing on a debian / ubuntu system, there is a different setting. I would like to be able to handle this setup where the search paths

/usr/include/festival
/usr/include/estools

and the search path is just

/usr/lib

, , , . ?

+3
3

-, ?

  • - - ( ) /usr/include/festival

  • - festival-libs ( ) /usr/lib/libfestival.XXX

.

+2

, ; . , LDFLAGS = -L///lib CONFIG_SITE configure . , -I/path/to/include CPPFLAGS.

, debian , . , , . .

, --with-festival --with-festival-headers, ; LDFLAGS CPPFLAGS, .

+2

Heirarchy - http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard.

autoconf, , , , CFLAGS, /opt/openssl/lib "" .

FHS , /usr/local " , ". , , /opt.

FHS/opt → http://www.pathname.com/fhs/pub/fhs-2.3.html#OPTADDONAPPLICATIONSOFTWAREPACKAGES

+1

All Articles