X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/776862b4972c6e10da2df21769743a9d1dc490e0..70541533c8e108249a82fbe2bc05ccfb73bf028d:/configure.in?ds=sidebyside diff --git a/configure.in b/configure.in index ba45c3913f..38b5e11961 100644 --- a/configure.in +++ b/configure.in @@ -3071,10 +3071,12 @@ if test "$wxUSE_THREADS" = "yes" ; then dnl defined, we do it by directly assigned dnl PTHREAD_MUTEX_RECURSIVE_MUTEX_INITIALIZER_NP to attr - dnl we need to define _XOPEN_SOURCE=500 to get PTHREAD_MUTEX_RECURSIVE - dnl with glibc 2.1+, it probably shouldn't hurt elsewhere? + dnl we need _GNU_SOURCE to get PTHREAD_MUTEX_RECURSIVE with glibc 2.1+ + dnl (strictly speaking we only need _XOPEN_SOURCE=500 but just defining + dnl this disables _BSD_SOURCE which breaks libtiff compilation, so it is + dnl simpler to just define _GNU_SOURCE to get everything) if test "x$wx_lib_glibc21" = "xyes"; then - CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500" + CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" fi AC_CACHE_CHECK([for pthread_mutexattr_t], wx_cv_type_pthread_mutexattr_t, @@ -4506,6 +4508,18 @@ fi AC_DEFINE_UNQUOTED(WXWIN_OS_DESCRIPTION, $OSINFO) +dnl --------------------------------------------------------------------------- +dnl define the variable containing the installation prefix (used in dcpsg.cpp) +dnl --------------------------------------------------------------------------- + +if test "x$prefix" != "xNONE"; then + wxPREFIX=$prefix +else + wxPREFIX=$ac_default_prefix +fi + +AC_DEFINE_UNQUOTED(wxINSTALL_PREFIX, "$wxPREFIX") + dnl --------------------------------------------------------------------------- dnl Output the makefiles and such from the results found above dnl ---------------------------------------------------------------------------