autotools - INCLUDES = -I/usr/include/<blah>

Need help with C, C++, perl, python, etc?

autotools - INCLUDES = -I/usr/include/<blah>

Postby bareassed_caveman » 2006-06-25 06:22

I have a project which uses the unportable construct:-
[code]INCLUDES = -I/usr/include/gtkhtml-2.0 -I/usr/include/libxml2[/code]
in Makefile.am that I need to replace with something portable that will find the location of those include dirs and feed it into the autoconf/make system.

so far I have found these in:-
/usr/include/gtkhtml-2.0
/usr/X11/include/gtkhtml-2.0
/usr/local/include/gtkhtml-2.0
/opt/include/gtkhtml-2.0
/opt/gnome/include/gtkhtml-2.0
in various distros of linux and BSD.

I have spent many hours reading the devhelp books but haven't been able to make anything work

thanks in advance
/]/]ik
User avatar
bareassed_caveman
 
Posts: 10
Joined: 2005-08-27 07:29
Location: Brisbane Qld .au

Postby ale2006 » 2006-07-26 08:10

Do you use AC_CHECK_HEADERS?
ale2006
 
Posts: 7
Joined: 2006-06-15 09:12


Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable