fix the situation when one of sublibraries is not built

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-08-03 15:09:17 +00:00
parent 0154f61aa8
commit edd891e220
3 changed files with 195 additions and 147 deletions

304
configure vendored

File diff suppressed because one or more lines are too long

View File

@@ -3672,12 +3672,13 @@ dnl Checks specific to contrib libs (MMedia)
dnl ------------------------------------------ dnl ------------------------------------------
dnl Check for ESD: dnl Check for ESD:
ESD_LINK= EXTRALIBS_ESD=
AC_CHECK_HEADER([esd.h], [ AC_CHECK_LIB(esd, esd_close, [
AC_CHECK_LIB(esd, esd_close, [ AC_CHECK_HEADERS([esd.h], [
ESD_LINK="-lesd" EXTRALIBS_ESD="-lesd"
]) ])
]) ])
AC_SUBST(EXTRALIBS_ESD)
dnl =========================================================================== dnl ===========================================================================
@@ -5390,6 +5391,28 @@ AC_DEFINE_UNQUOTED(wxINSTALL_PREFIX, "$wxPREFIX")
dnl define the variables used in wx-config dnl define the variables used in wx-config
top_builddir_wxconfig=`pwd` top_builddir_wxconfig=`pwd`
dnl ---------------------------------------------------------------------------
dnl define variables with all built libraries for wx-config
dnl ---------------------------------------------------------------------------
CORE_BASE_LIBS="net base"
CORE_GUI_LIBS="adv core"
if test "$wxUSE_XML" = "yes" ; then
CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
fi
if test "$wxUSE_ODBC" = "yes" ; then
CORE_GUI_LIBS="odbc $CORE_GUI_LIBS"
fi
if test "$wxUSE_HTML" = "yes" ; then
CORE_GUI_LIBS="html $CORE_GUI_LIBS"
fi
AC_SUBST(CORE_BASE_LIBS)
AC_SUBST(CORE_GUI_LIBS)
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl Output the makefiles and such from the results found above dnl Output the makefiles and such from the results found above
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
@@ -5733,9 +5756,6 @@ AC_SUBST(MAKEINFO)
AC_SUBST(INSTALL_LIBRARY) AC_SUBST(INSTALL_LIBRARY)
AC_SUBST(INSTALL_DIR) AC_SUBST(INSTALL_DIR)
dnl contrib tests results:
AC_SUBST(ESD_LINK)
dnl MAKE_SET will be replaced with "MAKE=..." or nothing if make sets MAKE dnl MAKE_SET will be replaced with "MAKE=..." or nothing if make sets MAKE
dnl itself (this macro is required if SUBDIRS variable is used in Makefile.am dnl itself (this macro is required if SUBDIRS variable is used in Makefile.am

View File

@@ -57,8 +57,8 @@ LIBS="@LIBS@"
# Linker flags for sublibraries: # Linker flags for sublibraries:
CORE_BASE_LIBS="xml net base" CORE_BASE_LIBS="@CORE_BASE_LIBS@"
CORE_GUI_LIBS="html odbc adv core" CORE_GUI_LIBS="@CORE_GUI_LIBS@"
ldlibs_base="@WXCONFIG_EXTRALIBS@" ldlibs_base="@WXCONFIG_EXTRALIBS@"
ldlibs_core="@EXTRALIBS_GUI@" ldlibs_core="@EXTRALIBS_GUI@"