if test "$REDIRECT" = "0"; then
if test "$DISCARD_PATH" = "0"; then
echo "+--------------------------------------------------------------------+"
- echo "| Warning: |"
+ echo "| *** WARNING *** |"
+ echo "| |"
echo "| You will be compiling the CGI version of PHP without any |"
echo "| redirection checking. By putting this cgi binary somewhere in |"
echo "| your web space, users may be able to circumvent existing .htaccess |"
rm -f config.cache
cat <<X
+--------------------------------------------------------------------+
-| ATTENTION! |
+| *** ATTENTION *** |
+| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
X
fi
+ if test "$MYSQL_MODULE_TYPE" = "builtin" ; then
+cat <<X
++--------------------------------------------------------------------+
+| *** WARNING *** |
+| |
+| You chose to compile PHP with the built-in MySQL support. If you |
+| are compiling a server module, and intend to use other server |
+| modules that also use MySQL (e.g, mod_auth_mysql, PHP 3.0, |
+| mod_perl) you must NOT rely on PHP's built-in MySQL support, and |
+| instead build it with your local MySQL support files, by adding |
+| --with-mysql=/path/to/mysql to your configure line. |
+X
+ fi
+
echo "+--------------------------------------------------------------------+"
echo "| License: |"
echo "| This software is subject to the PHP License, available in this |"
PHP_SUBST(MYSQL_SUBDIRS)
LIB_BUILD($ext_builddir/libmysql,$ext_shared,yes)
AC_ADD_INCLUDE($ext_srcdir/libmysql)
+ MYSQL_MODULE_TYPE="builtin"
elif test "$PHP_MYSQL" != "no"; then
for i in $PHP_MYSQL; do
if test -r $i/include/mysql/mysql.h; then
AC_MSG_ERROR(Cannot find header files under $PHP_MYSQL)
fi
+ MYSQL_MODULE_TYPE="external"
for i in lib lib/mysql; do
MYSQL_LIB_CHK($i)
done
AC_ADD_LIBRARY_WITH_PATH(mysqlclient, $MYSQL_LIB_DIR, MYSQL_SHARED_LIBADD)
AC_ADD_INCLUDE($MYSQL_INC_DIR)
+else
+ MYSQL_MODULE_TYPE="none"
fi
PHP_SUBST(MYSQL_SHARED_LIBADD)