dnl stupid GTK+ AM macros produce their own messages, so we
dnl have to pass to the next line
gtk_version_cached=0
- AC_MSG_RESULT("")
+ AC_MSG_RESULT()
wx_cv_lib_gtk=
if test "x$wxUSE_GTK2" = "xyes"; then
mgl_lib_type=""
if test "$wxUSE_DEBUG_FLAG" = yes ; then
- if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
+ if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
+ -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
mgl_lib_type=debug
fi
fi
if test "x$mgl_lib_type" = x ; then
- if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
+ if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
+ -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
mgl_lib_type=release
else
AC_MSG_ERROR([Cannot find MGL libraries, make sure they are compiled.])
ALL_OBJECTS="\$(GUIOBJS)"
fi
- ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS)"
+ ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJECTS)"
if test "$TOOLKIT" != "MSW"; then
ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
- dnl FIXME: this is a hack.. do we need a --static flag to wx-config?
- dnl or is this just plain wrong?
- dnl This is NOT compatible with both static and dynamic linking
- WXCONFIG_LIBS="${WXCONFIG_LIBS}.${SO_SUFFIX}"
-
SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"