mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Generate "config.h" directly into the "include" directory, later copied
to "my_config.h". Not to pollute the top directory, and to get more control over what is included. Made the include path for "libedit" pick up its own "config.h" first.
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
ASRC = $(srcdir)/vi.c $(srcdir)/emacs.c $(srcdir)/common.c
|
||||
AHDR = vi.h emacs.h common.h
|
||||
|
||||
INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \
|
||||
-I$(srcdir)/../.. -I..
|
||||
# Make sure to include stuff from this directory first, to get right "config.h"
|
||||
INCLUDES = -I. -I$(top_builddir)/include -I$(top_srcdir)/include
|
||||
|
||||
noinst_LIBRARIES = libedit.a
|
||||
|
||||
|
@@ -763,7 +763,6 @@ AC_SUBST(CXX_VERSION)
|
||||
])
|
||||
|
||||
AC_DEFUN([MYSQL_PROG_AR], [
|
||||
AC_REQUIRE([MYSQL_CHECK_CXX_VERSION])
|
||||
case $CXX_VERSION in
|
||||
MIPSpro*)
|
||||
AR=$CXX
|
||||
|
@@ -8,7 +8,7 @@ AC_CANONICAL_SYSTEM
|
||||
# The Docs Makefile.am parses this line!
|
||||
# remember to also change ndb version below and update version.c in ndb
|
||||
AM_INIT_AUTOMAKE(mysql, 5.0.48)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_CONFIG_HEADER([include/config.h:config.h.in])
|
||||
|
||||
PROTOCOL_VERSION=10
|
||||
DOT_FRM_VERSION=6
|
||||
|
@@ -49,8 +49,11 @@ link_sources:
|
||||
@readline_h_ln_cmd@
|
||||
@yassl_h_ln_cmd@
|
||||
|
||||
my_config.h: ../config.h
|
||||
$(CP) ../config.h my_config.h
|
||||
# We want both "my_config.h" and "config.h" that are identical, as
|
||||
# MySQL sources assumes the name "my_config.h", and 3rd party sources
|
||||
# assumes the name "config.h".
|
||||
my_config.h: config.h
|
||||
$(CP) config.h my_config.h
|
||||
|
||||
# These files should not be included in distributions since they are
|
||||
# generated by configure from the .h.in files
|
||||
|
@@ -257,7 +257,7 @@ if [ $BASE_SYSTEM = "netware" ] ; then
|
||||
rm -f $BASE/lib/*.la
|
||||
fi
|
||||
|
||||
copyfileto $BASE/include config.h include/*
|
||||
copyfileto $BASE/include include/*
|
||||
|
||||
rm -f $BASE/include/Makefile* $BASE/include/*.in $BASE/include/config-win.h
|
||||
if [ $BASE_SYSTEM != "netware" ] ; then
|
||||
|
Reference in New Issue
Block a user