views:

36

answers:

2

I have a linux system at my workplace with pretty old packages and no root access. I'm compiling packages that I need from source with --prefix=[somewhere in homedir]. My problem is that I just can't find out how to convince configure to look for header files in a specific directory. The source is cpp. I tried with environment variables related to g++ and looking up flags and googling but I had no success. Can someone help me solve this?

+1  A: 

The normal way to do this is --with-<feature>=<header directory>.

Ignacio Vazquez-Abrams
Thanks. It worked.
jakab922
If it worked then don't leave us hanging here...
Ignacio Vazquez-Abrams
A: 

Usually you can pass additional compiler flags inside CXXFLAGS. For gcc you can specify more include directories with -I/some/dir, e.g.

$ ./configure CXXFLAGS="-I/same/dir/"

where /some/dir/ contains your headers.

honk