added tests for fsync() and pthread_cleanup_push/pop()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
816a7358d3
commit
6ebeb4c721
37
configure.in
37
configure.in
@ -1698,10 +1698,6 @@ fi
|
||||
dnl defines HAVE_FNMATCH_H
|
||||
AC_CHECK_HEADERS(fnmatch.h)
|
||||
|
||||
if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
|
||||
AC_CHECK_FUNCS(fnmatch)
|
||||
fi
|
||||
|
||||
dnl defines HAVE_LANGINFO_H (GNU libc locale parameters)
|
||||
AC_CHECK_HEADERS(langinfo.h)
|
||||
|
||||
@ -3977,6 +3973,13 @@ fi
|
||||
|
||||
AC_LANG_RESTORE
|
||||
|
||||
if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
|
||||
AC_CHECK_FUNCS(fnmatch)
|
||||
fi
|
||||
|
||||
if test "$wxUSE_FILE" = "yes"; then
|
||||
AC_CHECK_FUNCS(fsync)
|
||||
fi
|
||||
|
||||
|
||||
dnl the following tests are for Unix(like) systems only
|
||||
@ -4516,6 +4519,28 @@ if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
|
||||
if test "$wxUSE_THREADS" = "yes" ; then
|
||||
AC_CHECK_FUNCS(thr_setconcurrency)
|
||||
|
||||
dnl can't use AC_CHECK_FUNCS for this one as it's usually a macro and so
|
||||
dnl wouldn't be found by it
|
||||
AC_CACHE_CHECK([for pthread_cleanup_push/pop], wx_cv_func_pthread_cleanup,
|
||||
[
|
||||
AC_TRY_COMPILE([#include <pthread.h>
|
||||
void ThreadCleanupFunc(void *p);
|
||||
],
|
||||
[
|
||||
void *p;
|
||||
pthread_cleanup_push(ThreadCleanupFunc, p);
|
||||
pthread_cleanup_pop(0);
|
||||
], [
|
||||
wx_cv_func_pthread_cleanup=yes
|
||||
], [
|
||||
wx_cv_func_pthread_cleanup=no
|
||||
]
|
||||
)
|
||||
])
|
||||
if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
|
||||
AC_DEFINE(wxHAVE_PTHREAD_CLEANUP)
|
||||
fi
|
||||
|
||||
AC_CHECK_HEADERS(sched.h)
|
||||
if test "$ac_cv_header_sched_h" = "yes"; then
|
||||
AC_CHECK_FUNC(sched_yield,
|
||||
@ -6540,10 +6565,8 @@ INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
|
||||
dnl C/C++ compiler options used to compile wxWidgets
|
||||
if test "$GXX" = yes ; then
|
||||
dnl CXXWARNINGS="-Wall -W -Wcast-qual -Werror"
|
||||
CWARNINGS="-Wall"
|
||||
CWARNINGS="-Wall -Wundef"
|
||||
CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
|
||||
dnl should enable this one day...
|
||||
dnl CXXWARNINGS="-Wall -Werror"
|
||||
fi
|
||||
|
||||
EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
|
||||
|
Loading…
Reference in New Issue
Block a user