How to meet required dependencies in order to install expect pecl extension on Mac OS X?
I am attempting to install the expect pecl extension.  
OS version = 10.7.3
PHP version 5.3.10 installed via macports  
expect version 5.45 installed via macports  
The command I am executing:
<code>sudo pecl -d preferred_state=beta install expect</code>  
fails with <code>ld: library not found for -lexpect</code>  
The libexpect5.45.dylib file is located in /opt/local/lib  
full output of the install command is here <a href="http://pastebin.com/KWHk7X0b">PASTEBIN</a>  
From what I can tell pecl just can not find the libexpect library, I even tried prepending  
<code>LD_LIBRARY_PATH=/opt/local/lib/expect5.45</code> and  
<code>LD_LIBRARY_PATH=/System/Library/Tcl/8.5/expect5.45</code> and  
<code>LD_LIBRARY_PATH=/opt/local/lib</code> each location has an expect5.45.dylib file.  It did not help.
How to meet required dependencies in order to install expect pecl extension on Mac OS X?
===

I am attempting to install the expect pecl extension.  
OS version = 10.7.3
PHP version 5.3.10 installed via macports  
expect version 5.45 installed via macports  
The command I am executing:
<code>sudo pecl -d preferred_state=beta install expect</code>  
fails with <code>ld: library not found for -lexpect</code>  
The libexpect5.45.dylib file is located in /opt/local/lib  
full output of the install command is here <a href="http://pastebin.com/KWHk7X0b">PASTEBIN</a>  
From what I can tell pecl just can not find the libexpect library, I even tried prepending  
<code>LD_LIBRARY_PATH=/opt/local/lib/expect5.45</code> and  
<code>LD_LIBRARY_PATH=/System/Library/Tcl/8.5/expect5.45</code> and  
<code>LD_LIBRARY_PATH=/opt/local/lib</code> each location has an expect5.45.dylib file.  It did not help.