AC_DEFINE(__UNIX__)
fi
+dnl ----------------------------------------------------------------
+dnl Linux: test for libc5/glibc2: glibc2 has gettext() included
+dnl ----------------------------------------------------------------
+if test "$USE_LINUX" = 1; then
+ AC_CHECK_LIB(c,gettext,AC_DEFINE(wxHAVE_GLIBC2))
+fi
+
dnl ----------------------------------------------------------------
dnl search for toolkit (widget sets)
dnl ----------------------------------------------------------------
AC_MSG_ERROR(no)
fi
- GUI_TK_LINK="-lXm -lXmu -lXt -lXpm -lX11 -lm"
- GUI_TK_LINK="$CHECK_LINK $GUI_TK_LINK"
+ GUI_TK_LINK="-lXm -lXpm -lXmu -lXt -lX11 -lm"
+ GUI_TK_LIBRARY="$CHECK_LIB $GUI_TK_LINK"
TOOLKIT=MOTIF
TOOLKIT_DEF="__WXMOTIF__ -D__LINUX__ -D__UNIX__"
- WX_LINK=-lwx_motif
+ WX_LINK=-lwx_motif2
MAKEINCLUDE=../motif.inc
fi
dnl Register compile options for makefiles and setup.h
dnl ----------------------------------------------------------------
+EXTRA_LINK=
+
WXDEBUG=
if test "$wxUSE_DEBUG_GDB" = 1 ; then
wxUSE_DEBUG_INFO=1
WXDEBUG="-g"
wxUSE_OPTIMISE=0
else
- WX_LINK="-s $WX_LINK"
+ EXTRA_LINK="-s $EXTRA_LINK"
fi
fi
AC_SUBST(WXDEBUG)
AC_DEFINE_UNQUOTED(wxUSE_GLOBAL_MEMORY_OPERATORS,$wxUSE_MEM_TRACING)
fi
-EXTRA_LINK=
if test "$wxUSE_DMALLOC" = 1 ; then
EXTRA_LINK="$EXTRA_LINK -ldmalloc"
fi