From: Alexander P. <ale...@us...> - 2009-04-30 07:26:45
|
Build Version : T2.5.0.23690 Firebird 2.5 Beta 1 (writeBuildNum.sh,v 1.23854 2009/04/30 07:26:39 alexpeshkof ) Update of /cvsroot/firebird/firebird2 In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv24610 Modified Files: configure.in Log Message: Fixed pthread functions detection Index: configure.in =================================================================== RCS file: /cvsroot/firebird/firebird2/configure.in,v retrieving revision 1.337 retrieving revision 1.338 diff -b -U3 -r1.337 -r1.338 --- configure.in 29 Apr 2009 08:33:50 -0000 1.337 +++ configure.in 30 Apr 2009 07:26:38 -0000 1.338 @@ -648,9 +648,17 @@ AC_CHECK_FUNCS(localtime_r) AC_CHECK_FUNCS(gmtime_r) AC_CHECK_FUNCS(fchmod) -if test "$ac_cv_header_semaphore_h" = "yes"; then +AC_CHECK_FUNCS(semtimedop) + +# Checks for pthread functions savedFlags="$CFLAGS" CFLAGS="$CFLAGS $PTHREAD_CFLAGS" + +AC_CHECK_FUNCS(pthread_mutexattr_setprotocol) +AC_CHECK_FUNCS(pthread_mutexattr_setrobust_np) +AC_CHECK_FUNCS(pthread_mutex_consistent_np) + +if test "$ac_cv_header_semaphore_h" = "yes"; then AC_CHECK_FUNCS(sem_timedwait) AC_CHECK_FUNCS(sem_init) if test "$ac_cv_func_sem_init" = "yes"; then @@ -665,10 +673,9 @@ AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) fi -CFLAGS="$savedFlags" fi -AC_CHECK_FUNCS(semtimedop) -AC_CHECK_FUNCS(pthread_mutexattr_setprotocol) + +CFLAGS="$savedFlags" # HPUX has a bug in .h files. To detect it we need C++ here. AC_LANG_PUSH(C++) @@ -677,9 +684,6 @@ AC_DEFINE(HAVE_POSIX_FADVISE, 1, [Define this if posix_fadvise() is present on the platform])) AC_LANG_POP(C++) -AC_CHECK_FUNCS(pthread_mutexattr_setrobust_np) -AC_CHECK_FUNCS(pthread_mutex_consistent_np) - # Checks for typedefs, structures, and compiler characteristics. AC_C_BIGENDIAN AC_C_VOLATILE |