Annotation of sql/mysql/configure.in, revision 1.35

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.35    ! misha       5: AM_INIT_AUTOMAKE(parser3mysql, 10.2, 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: 
1.33      misha      22:        if test -z "$MYSQL_INC"; then
1.7       paf        23:                AC_MSG_ERROR($MYSQL_INC does not seem to be valid MySQL includes directory)
1.33      misha      24:        fi
1.7       paf        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: 
1.33      misha      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: 
1.33      misha      44: AC_ARG_WITH(dynamic-stdcpp, [  --with-dynamic-stdcpp   link libstdc++ dynamically
                     45:                           by default, libstdc++ is linked statically],[
                     46:                LDFLAGS="-lstdc++"
                     47: ],[
                     48:                LDFLAGS="-Wl,-Bstatic -Wl,-lstdc++ -Wl,-Bdynamic"
                     49: ])
                     50: 
                     51: AC_SUBST(LDFLAGS)
                     52: 
                     53: 
1.1       parser     54: dnl Checks for programs.
                     55: AC_PROG_INSTALL
                     56: AC_PROG_MAKE_SET
                     57: AC_PROG_AWK
1.24      paf        58: AC_PROG_CXX
                     59: AC_PROG_CC
1.1       parser     60: 
1.24      paf        61: dnl most tests should be compiled with C compiler [especially qsort test]
                     62: AC_LANG_C 
1.3       paf        63: 
1.1       parser     64: dnl Enable building of the convenience library
                     65: dnl and set LIBLTDL accordingly
                     66: AC_LIBLTDL_CONVENIENCE
                     67: dnl Substitute INCLTDL and LIBLTDL in the Makefiles
                     68: AC_SUBST(INCLTDL)
                     69: AC_SUBST(LIBLTDL)
                     70: AC_SUBST(LIBADD_DL)
                     71: dnl Configure libtool
1.9       paf        72: AC_DISABLE_STATIC
1.11      paf        73: AC_LIBTOOL_WIN32_DLL
1.15      paf        74: AC_PROG_LIBTOOL
1.1       parser     75: dnl Configure libltdl
                     76: AC_CONFIG_SUBDIRS(libltdl)
                     77: 
                     78: dnl Checks for libraries.
                     79: 
1.31      misha      80: dnl FreeBSD4 requires workaround with destructor
                     81: case "$host" in
1.33      misha      82:        *-freebsd4*)
                     83:                AC_DEFINE(FREEBSD4,,FreeBSD4X target platform)
1.31      misha      84: esac
                     85: 
1.1       parser     86: dnl Checks for header files.
                     87: 
                     88: AC_CHECK_HEADERS(
                     89: stdio.h \
                     90: stdlib.h \
1.5       paf        91: string.h \
1.23      paf        92: setjmp.h \
                     93: ctype.h
1.1       parser     94: )
                     95: 
                     96: dnl Checks for typedefs, structures, and compiler characteristics.
                     97: 
                     98: AC_TYPE_SIZE_T
                     99: 
                    100: dnl Checks for library functions.
                    101: 
                    102: dnl Output makefiles
                    103: 
1.13      paf       104: AC_OUTPUT(Makefile)

E-mail: