GOODNESS.
OK so I tried this way and that with my config statement. I found that removing db-related stuff let it run to completion. I also found this bug report which indicated that the php compile doesn't seem to work on Max OSX if you have 64-bit MySQL installed.
So thanks to these instructions, I was able to remove 64-bit MySQL completely by entering these commands:
* Use mysqldump to backup your databases to text files!
* Stop the database server
* sudo rm /usr/local/mysql
* sudo rm -rf /usr/local/mysql*
* sudo rm -rf /Library/StartupItems/MySQLCOM
* sudo rm -rf /Library/PreferencePanes/My*
* edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
* sudo rm -rf ~/Library/PreferencePanes/My*
* sudo rm -rf /Library/Receipts/mysql*
* sudo rm -rf /Library/Receipts/MySQL*
Once I had removed 64-bit mysql, I downloaded the 32-bit MySQL DMG from the mysql site and install that.
I then ran this configure in the folder where I had extracted the php5.3.2 source:
sudo ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --enable-exif --enable-ftp --enable-mbstring --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql --enable-soap --enable-sockets --enable-wddx --with-xmlrpc --enable-zip --with-openssl --with-curl --with-gd --with-mcrypt --with-jpeg-dir=/usr/local/lib
and it ran to completion! FINALLY.
then it was:
make
make install
These also ran to completion and apparently I've managed to get mysql, mysqli, and pdo-mysql installed:
My-Mac:php-5.3.2 sneakyimp$ /usr/local/bin/php -r 'print_r(get_loaded_extensions());'
Array
(
[0] => Core
[1] => date
[2] => ereg
[3] => libxml
[4] => openssl
[5] => pcre
[6] => sqlite3
[7] => ctype
[8] => curl
[9] => dom
[10] => hash
[11] => fileinfo
[12] => filter
[13] => ftp
[14] => gd
[15] => session
[16] => iconv
[17] => json
[18] => mbstring
[19] => mcrypt
[20] => mysql
[21] => SPL
[22] => mysqli
[23] => PDO
[24] => pdo_mysql
[25] => pdo_sqlite
[26] => standard
[27] => posix
[28] => Reflection
[29] => Phar
[30] => SimpleXML
[31] => soap
[32] => sockets
[33] => SQLite
[34] => exif
[35] => tokenizer
[36] => wddx
[37] => xml
[38] => xmlreader
[39] => xmlrpc
[40] => xmlwriter
[41] => zip
)
NOW. I just need to see if I can get amfext installed.