Changeset 3477 for trunk/psLib/configure.ac
- Timestamp:
- Mar 22, 2005, 2:23:58 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/configure.ac (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/configure.ac
r3440 r3477 51 51 then 52 52 AC_MSG_RESULT([enable building MySQL functionality]) 53 AC_ARG_WITH(mysql, 54 [AC_HELP_STRING([--with-mysql=DIR],[Specify location of MYSQL.])], 55 [MYSQL_CFLAGS="-I$withval/include" 56 MYSQL_LDFLAGS="-L$withval/lib"]) 57 AC_ARG_WITH(mysql-include, 58 [AC_HELP_STRING([--with-mysql-include=DIR],[Specify MYSQL include directory.])], 59 [MYSQL_CFLAGS="-I$withval"]) 60 AC_ARG_WITH(mysql-lib, 61 [AC_HELP_STRING([--with-mysql-lib=DIR],[Specify MYSQL library directory.])], 62 [MYSQL_LDFLAGS="-L$withval"]) 63 CFLAGS="${CFLAGS=} $MYSQL_CFLAGS" 64 PSLIB_LIBS="${PSLIB_LIBS=} $MYSQL_LDFLAGS -lmysql" 65 AC_CHECK_HEADERS([mysql/mysql.h],[], 66 [AC_MSG_ERROR([MySQL 4.1.2 or newer is required. Obtain it at http://www.mysql.com or use --with-mysql to specify location.])]) 53 AC_ARG_WITH(mysql_config, 54 [AC_HELP_STRING([--with-mysql_config=FILE],[Specify location of MYSQL configuration script.])], 55 [MYSQL_CONFIG=$withval], 56 [MYSQL_CONFIG=`which mysql_config`]) 57 AC_CHECK_FILE($MYSQL_CONFIG,[], 58 [AC_MSG_ERROR([MYSQL 4.1.2 or newer is required. http://www.mysql.com or use --with-mysql_config to specify location of ocnfiguration script.])]) 59 60 AC_MSG_CHECKING([MySQL cflags]) 61 MYSQL_CFLAGS="`${MYSQL_CONFIG} --cflags`" 62 AC_MSG_RESULT([${MYSQL_CFLAGS}]) 63 CFLAGS="${CFLAGS=} ${MYSQL_CFLAGS}" 64 65 AC_MSG_CHECKING([MySQL link options]) 66 MYSQL_LDFLAGS="`${MYSQL_CONFIG} --libs`" 67 AC_MSG_RESULT([${MYSQL_LDFLAGS}]) 68 PSLIB_LIBS="${PSLIB_LIBS=} ${MYSQL_LDFLAGS}" 67 69 68 70 AC_RUN_IFELSE([AC_LANG_PROGRAM(
Note:
See TracChangeset
for help on using the changeset viewer.
