Hi,
try it this way:
Make sure that the Oracle environment variables are set correctly prior to running configure. Assuming that you installed Oracle in /u01 and the e.g. the folders network or bin are in /u01/OraHome1 you should at least export the following environment variables:
ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/OraHome1
NLS_LANG=GERMAN_GERMANY.ISO8859P1
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
You might need to adjust NLS_LANG to e.g.
AMERICAN_AMERICA.ISO8859P1 or whatever you need.
Now replace --with-oracle=yes and --with-oci8=yes by --with-oracle and --with-oci8.
The configure script might not be able to find the correct oracle folders if you don't export the environment variables and use yes with those two switches. If it still doesn't work you could try --with-oracle=/u01 and --with-oci8=/u01. But the best way to verify that Oracle can be found by configure is if it works just with --with-oracle and --with-oci8.
What's the reason that you still use php 4.0.6 ?
Thomas