Summary:ASTERISK-08259: [patch] asterisk-addons doesn't respect --prefix
Reporter:Jose Pablo Fernandez (pupeno)Labels:
Date Opened:2006-12-01 15:14:05.000-0600Date Closed:2007-05-14 11:27:47
Versions:Frequency of
Environment:Attachments:( 0) asterisk-addons_configure.diff
Description:I've compiled and installed Asterisk with --prefix=/usr/local; I was doing the same for asterisk-addons when I encountered this error:

checking for /usr/include/asterisk/channel.h... no

Of course not, it should be looking on /usr/local/include/asterisk/channel.h. Checking if there was some argument for that I've found:

--includedir=DIR       C header files [PREFIX/include]

so, my parameters were correct, it seems they are not being respected.
Comments:By: Serge Vecher (serge-v) 2006-12-01 15:48:38.000-0600

I don't think this is correctly filed under 'Zaptel'.

By: Jason Parker (jparker) 2007-01-09 14:35:58.000-0600

What this actually needs, is a --with-asterisk= option, or something.  As far as I know, --prefix and --includedir are for installing files

By: Jason Parker (jparker) 2007-01-18 16:03:27.000-0600

I've attached a patch which I'm going to propose as a potential fix for this..

After applying the patch, you need to run ./bootstrap.sh, and in asterisk-ooh323/ you need to re-run autoconf (I think?)

After that, ./configure --with-asterisk=/path/to/asterisk --prefix=/path/to/asterisk

By: Serge Vecher (serge-v) 2007-01-25 12:21:03.000-0600

pupeno: please test qwell's patch and report results

By: Tilghman Lesher (tilghman) 2007-05-08 12:54:29

Your feedback on this patch would be greatly appreciated.

By: Jose Pablo Fernandez (pupeno) 2007-05-13 08:42:10

I am sorry, I can't test it right now. I am no longer working with Asterisk (switching jobs) and I don't have the time nor the resources to try it.
Thank you though.

By: Russell Bryant (russell) 2007-05-14 11:03:06

This patch looks good to me.  Commit away.

By: Jason Parker (jparker) 2007-05-14 11:27:46

Fixed in svn 1.4 and trunk in revisions 382 and 383.