1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

added <mysql.h> autoconf test.

(This used to be commit 511ef8a58ccfc04d0744f28753bb48d848851980)
This commit is contained in:
Luke Leighton 1999-03-02 16:43:27 +00:00
parent 236cea4efa
commit 81f866db3a
5 changed files with 10 additions and 33 deletions

32
source3/configure vendored
View File

@ -44,8 +44,6 @@ ac_help="$ac_help
ac_help="$ac_help
--with-ssl Include SSL support
--without-ssl Don't include SSL support (default)"
ac_help="$ac_help
--with-sslinc=DIR Tells us where the SSL stuff is (default /usr/local/ssl)"
ac_help="$ac_help
--with-mmap Include experimental MMAP support
--without-mmap Don't include MMAP support (default)"
@ -1933,7 +1931,7 @@ else
fi
done
for ac_hdr in sys/acl.h sys/cdefs.h glob.h
for ac_hdr in sys/acl.h sys/cdefs.h glob.h mysql.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
@ -8282,34 +8280,6 @@ if test "${with_ssl+set}" = set; then
#define WITH_SSL 1
EOF
CFLAGS="-I/usr/local/ssl/include $CFLAGS"
if test "${with_sslinc+set}" = set; then
withval="$with_sslinc"
case "$withval" in
yes|no)
echo "configure: warning: --with-sslinc called without argument - will
use default" 1>&2
CFLAGS="-I/usr/local/ssl/include $CFLAGS"
LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
LIBS="-lssl -lcrypto $LIBS"
;;
* )
CFLAGS="-I${withval}/include $CFLAGS"
LDFLAGS="-L${withval}/lib $LDFLAGS"
LIBS="-lssl -lcrypto $LIBS"
;;
esac
else
CFLAGS="-I/usr/local/ssl/include $CFLAGS"
LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
LIBS="-lssl -lcrypto $LIBS"
fi
;;
*)
echo "$ac_t""no" 1>&6

View File

@ -1,3 +1,3 @@
#!/bin/sh
export CFLAGS="-g -O2 -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align"
export CFLAGS="-g -O2 -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align" -DDEBUG_PASSWORD
./configure

View File

@ -62,7 +62,7 @@ AC_CHECK_HEADERS(sys/statfs.h sys/dustat.h sys/statvfs.h stdarg.h sys/sockio.h)
AC_CHECK_HEADERS(shadow.h netinet/tcp.h sys/security.h security/pam_appl.h)
AC_CHECK_HEADERS(stropts.h poll.h readline.h history.h readline/readline.h)
AC_CHECK_HEADERS(readline/history.h sys/capability.h syscall.h sys/syscall.h)
AC_CHECK_HEADERS(sys/acl.h sys/cdefs.h glob.h)
AC_CHECK_HEADERS(sys/acl.h sys/cdefs.h glob.h mysql.h)
AC_CHECK_SIZEOF(int,cross)
AC_CHECK_SIZEOF(long,cross)

View File

@ -786,6 +786,9 @@
/* Define if you have the <utime.h> header file. */
#undef HAVE_UTIME_H
/* Define if you have the <mysql.h> header file. */
#undef HAVE_MYSQL_H
/* Define if you have the dl library (-ldl). */
#undef HAVE_LIBDL

View File

@ -330,6 +330,10 @@
#endif
#endif /* HAVE_NETGROUP */
#if defined(HAVE_MYSQL_H)
#include <mysql.h>
#endif
#ifndef uchar
#define uchar unsigned char
#endif