Annotation of sql/mysql/configure.in, revision 1.5
1.1 parser 1: dnl Process this file with autoconf to produce a configure script.
2: AC_INIT(parser3mysql.C)
3: AM_INIT_AUTOMAKE(parser3mysqlclient, 3.0g, nodefine)
4:
5: AM_CONFIG_HEADER(config_auto.h)
6:
7: dnl Arguments
8:
1.3 paf 9: AC_ARG_WITH(mysql-inc,[ --with-mysql-inc[=DIR] DIR is the MySQL includes directory],,
1.1 parser 10: withval="/usr/include/mysql"
11: )
1.2 parser 12:
1.1 parser 13: MYSQL_INC=$withval
14: AC_SUBST(MYSQL_INC)
1.2 parser 15:
16: if test \! -f "$MYSQL_INC/mysql.h"; then
17: AC_MSG_ERROR($MYSQL_INC does not seem to be valid MySQL includes directory)
18: fi
1.1 parser 19:
20:
21: dnl Checks for programs.
22: AC_PROG_INSTALL
23: AC_PROG_MAKE_SET
24: AC_PROG_AWK
25:
26: AC_LANG_CPLUSPLUS
27: AC_PROG_CXX
1.3 paf 28:
29: AC_DEFUN(GCC_OPTION,
30: [
31: AC_MSG_CHECKING(whether gcc accepts $1)
32: save_CXXFLAGS=$CXXFLAGS
33: CXXFLAGS="$save_CXXFLAGS $1"
34: AC_TRY_COMPILE(,,
35: AC_MSG_RESULT(yes)
36: dnl leave CXXFLAGS
37: ,
38: AC_MSG_RESULT(no)
39: CXXFLAGS=$save_CXXFLAGS
40: )
41: ])
42:
43: if test "z$GXX" = "zyes"; then
1.4 paf 44: dnl Versions of GCC up to 2.8.0 required -fhandle-exceptions, but it is
45: dnl the default in versions 2.8.0 and after.
46: dnl GCC_OPTION(-fhandle-exceptions)
1.3 paf 47: GCC_OPTION(-fno-rtti)
48: fi
1.1 parser 49:
50: dnl Enable building of the convenience library
51: dnl and set LIBLTDL accordingly
52: AC_LIBLTDL_CONVENIENCE
53: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
54: AC_SUBST(INCLTDL)
55: AC_SUBST(LIBLTDL)
56: AC_SUBST(LIBADD_DL)
57: dnl Check for dlopen support
58: AC_LIBTOOL_DLOPEN
59: dnl Configure libtool
60: AM_PROG_LIBTOOL
61: dnl Configure libltdl
62: AC_CONFIG_SUBDIRS(libltdl)
63:
64: dnl Checks for libraries.
65:
66: dnl Checks for header files.
67:
68: AC_CHECK_HEADERS(
69: stdio.h \
70: stdlib.h \
1.5 ! paf 71: string.h \
! 72: setjmp.h
1.1 parser 73: )
74:
75: dnl Checks for typedefs, structures, and compiler characteristics.
76:
77: AC_TYPE_SIZE_T
78:
79: dnl Checks for library functions.
80:
81: dnl Output makefiles
82:
83: AC_OUTPUT(libltdl/Makefile Makefile)
E-mail: