]> granicus.if.org Git - php/commitdiff
Non-functional changes
authorSascha Schumann <sas@php.net>
Thu, 30 Mar 2000 19:03:15 +0000 (19:03 +0000)
committerSascha Schumann <sas@php.net>
Thu, 30 Mar 2000 19:03:15 +0000 (19:03 +0000)
ext/mysql/config.m4

index f04301c5c65a4b287419d275456ddf3bdaedb0d9..77c242d9b00986819b50092c88f81c79e6c82055 100644 (file)
@@ -18,17 +18,16 @@ AC_DEFUN(PHP_MYSQL_SOCK,[
   AC_DEFINE_UNQUOTED(MYSQL_UNIX_ADDR, "$MYSQL_SOCK", [ ])
   AC_MSG_RESULT($MYSQL_SOCK)
 ])
-       
-AC_MSG_CHECKING(for MySQL support)
-AC_ARG_WITH(mysql,
+
+PHP_ARG_WITH(mysql, for MySQL support,
 [  --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base
                           directory. If unspecified, the bundled MySQL library
-                          will be used.],[
-  PHP_MYSQL=$withval
-],[
-  PHP_MYSQL=yes
-])
-AC_MSG_RESULT($PHP_MYSQL)
+                          will be used.], yes)
+
+if test "$PHP_MYSQL" != "no"; then
+  AC_DEFINE(HAVE_MYSQL, 1, [Whether you have MySQL])
+  PHP_EXTENSION(mysql)
+fi
 
 if test "$PHP_MYSQL" = "yes"; then
   PHP_MYSQL_SOCK
@@ -38,7 +37,6 @@ if test "$PHP_MYSQL" = "yes"; then
   PHP_SUBST(MYSQL_LIBADD)
   PHP_SUBST(MYSQL_SUBDIRS)
 
-  PHP_EXTENSION(mysql)
   AC_ADD_INCLUDE(${ext_src_base}libmysql)
 elif test "$PHP_MYSQL" != "no"; then
   for i in $PHP_MYSQL; do
@@ -58,9 +56,4 @@ elif test "$PHP_MYSQL" != "no"; then
   AC_ADD_LIBPATH($MYSQL_DIR/lib/mysql) 
   AC_ADD_LIBRARY(mysqlclient)
   AC_ADD_INCLUDE($MYSQL_INC_DIR)
-  PHP_EXTENSION(mysql)
-fi
-
-if test "$PHP_MYSQL" != "no"; then
-  AC_DEFINE(HAVE_MYSQL, 1, [Whether you have MySQL])
 fi