configure is broken when gnutls 2.6.6 is used without pkg-config. I don't have pkg-config. I cannot use >2.6.6.
configure is trying to run libgnutls-config from $OPT_GNUTLS, without 'bin'. E.g. /Users/marcdebruin/Desktop/iphone-os/libgnutls-config.
Running 'make install' from gnutls with prefix /Users/marcdebruin/Desktop/iphone-os deploys libgnutils-config to /Users/marcdebruin/Desktop/iphone-os/bin.
Therefore building the configure test program for gnutls failed for configuring curl: "configure --host=arm-apple-darwin9 --prefix=/Users/marcdebruin/Desktop/iphone-os --enable-shared=no --with-libssh2=/Users/marcdebruin/Desktop/iphone-os --with-gnutls=/Users/marcdebruin/Desktop/iphone-os --without-ssl"
Manually changing lines 26375, 26377-26380 to include 'bin' solved the configure problem. (E.g., $OPT_GNUTLS/libgnutls-config to $OPT_GNUTLS/bin/libgnutls-config).
Sorry for my bad bug report but I'm not really a developer. :-) I didn't know what group to take ("wrong behaviour"), might be wrong.
Thanks for the report, this problem is now fixed in CVS!