Annotation of sql/mysql/configure.in, revision 1.28
1.1 parser 1: dnl Process this file with autoconf to produce a configure script.
2: AC_INIT(parser3mysql.C)
1.15 paf 3: AC_PREREQ(2.57)
4:
1.28 ! misha 5: AM_INIT_AUTOMAKE(parser3mysql, 9.6, nodefine)
1.1 parser 6:
7: AM_CONFIG_HEADER(config_auto.h)
8:
1.7 paf 9:
1.25 paf 10: AC_DEFUN([MYSQL_INC_CHK],[
1.7 paf 11: if test -r "$1/mysql.h"; then
12: MYSQL_INC=$1
13: fi
14: ])
15:
16:
1.1 parser 17: dnl Arguments
18:
1.7 paf 19: AC_ARG_WITH(mysql-inc,[ --with-mysql-inc=DIR DIR is the MySQL includes directory],
20: MYSQL_INC_CHK($withval)
21:
22: if test -z "$MYSQL_INC"; then
23: AC_MSG_ERROR($MYSQL_INC does not seem to be valid MySQL includes directory)
24: fi
25: ,
1.8 paf 26: AC_MSG_CHECKING(for MYSQL_INC directory)
1.7 paf 27: for d in \
1.8 paf 28: /usr/local/include/mysql \
29: /usr/include/mysql ; do
1.7 paf 30: MYSQL_INC_CHK($d)
31: done
32:
33: if test -z "$MYSQL_INC"; then
34: AC_MSG_ERROR(use --with-mysql-inc=DIR to specify MySQL includes directory)
35: fi
1.8 paf 36:
37: AC_MSG_RESULT($MYSQL_INC)
1.1 parser 38: )
1.2 parser 39:
1.1 parser 40: AC_SUBST(MYSQL_INC)
1.2 parser 41:
1.1 parser 42:
43:
44: dnl Checks for programs.
45: AC_PROG_INSTALL
46: AC_PROG_MAKE_SET
47: AC_PROG_AWK
1.24 paf 48: AC_PROG_CXX
49: AC_PROG_CC
1.1 parser 50:
1.24 paf 51: dnl most tests should be compiled with C compiler [especially qsort test]
52: AC_LANG_C
1.3 paf 53:
1.1 parser 54: dnl Enable building of the convenience library
55: dnl and set LIBLTDL accordingly
56: AC_LIBLTDL_CONVENIENCE
57: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
58: AC_SUBST(INCLTDL)
59: AC_SUBST(LIBLTDL)
60: AC_SUBST(LIBADD_DL)
61: dnl Configure libtool
1.9 paf 62: AC_DISABLE_STATIC
1.11 paf 63: AC_LIBTOOL_WIN32_DLL
1.15 paf 64: AC_PROG_LIBTOOL
1.1 parser 65: dnl Configure libltdl
66: AC_CONFIG_SUBDIRS(libltdl)
67:
68: dnl Checks for libraries.
69:
70: dnl Checks for header files.
71:
72: AC_CHECK_HEADERS(
73: stdio.h \
74: stdlib.h \
1.5 paf 75: string.h \
1.23 paf 76: setjmp.h \
77: ctype.h
1.1 parser 78: )
79:
80: dnl Checks for typedefs, structures, and compiler characteristics.
81:
82: AC_TYPE_SIZE_T
83:
84: dnl Checks for library functions.
85:
86: dnl Output makefiles
87:
1.13 paf 88: AC_OUTPUT(Makefile)
E-mail: