8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00

Fixed #7084 - Creating unique constraints on MacOS fails on larger tables.

configure.ac macros were not compiling and returning 1.

That caused FB_ALIGNMENT and FB_DOUBLE_ALIGN to have the wrong value 1.
This commit is contained in:
Adriano dos Santos Fernandes 2021-12-22 15:18:46 -03:00
parent 66568b12d5
commit 2920891287

View File

@ -1049,7 +1049,7 @@ AC_MSG_CHECKING(for working sem_init())
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <semaphore.h> AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <semaphore.h>
main () { main () {
sem_t s; sem_t s;
exit(sem_init(&s,0,0)); return sem_init(&s,0,0);
} }
]])],[AC_DEFINE(WORKING_SEM_INIT,1,[Define this if sem_init() works on the platform]) ]])],[AC_DEFINE(WORKING_SEM_INIT,1,[Define this if sem_init() works on the platform])
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)
@ -1089,7 +1089,7 @@ if test "$ac_cv_sys_file_offset_bits" = "no"; then
AC_MSG_CHECKING(for native large file support) AC_MSG_CHECKING(for native large file support)
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <unistd.h> AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <unistd.h>
main () { main () {
exit(!(sizeof(off_t) == 8)); return !(sizeof(off_t) == 8);
}]])],[ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64) }]])],[ac_cv_sys_file_offset_bits=64; AC_DEFINE(_FILE_OFFSET_BITS,64)
AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)],[]) AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)],[])
fi fi
@ -1140,7 +1140,7 @@ main () {
char a; char a;
union { long long x; sem_t y; } b; union { long long x; sem_t y; } b;
}; };
exit((int)&((struct s*)0)->b); return (int)&((struct s*)0)->b;
}]])],[ac_cv_c_alignment=$ac_status],[ac_cv_c_alignment=$ac_status],[]) }]])],[ac_cv_c_alignment=$ac_status],[ac_cv_c_alignment=$ac_status],[])
AC_MSG_RESULT($ac_cv_c_alignment) AC_MSG_RESULT($ac_cv_c_alignment)
AC_DEFINE_UNQUOTED(FB_ALIGNMENT, $ac_cv_c_alignment, [Alignment of long]) AC_DEFINE_UNQUOTED(FB_ALIGNMENT, $ac_cv_c_alignment, [Alignment of long])
@ -1151,7 +1151,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[main () {
char a; char a;
double b; double b;
}; };
exit((int)&((struct s*)0)->b); return (int)&((struct s*)0)->b;
}]])],[ac_cv_c_double_align=$ac_status],[ac_cv_c_double_align=$ac_status],[]) }]])],[ac_cv_c_double_align=$ac_status],[ac_cv_c_double_align=$ac_status],[])
AC_MSG_RESULT($ac_cv_c_double_align) AC_MSG_RESULT($ac_cv_c_double_align)
AC_DEFINE_UNQUOTED(FB_DOUBLE_ALIGN, $ac_cv_c_double_align, [Alignment of double]) AC_DEFINE_UNQUOTED(FB_DOUBLE_ALIGN, $ac_cv_c_double_align, [Alignment of double])
@ -1168,7 +1168,7 @@ static int abs64Compare(SINT64 n1, SINT64 n2) {
return n1 == n2 ? 0 : n1 < n2 ? 1 : -1; return n1 == n2 ? 0 : n1 < n2 ? 1 : -1;
} }
int main() { int main() {
exit (abs64Compare(-9223372036854775808, 3652058) == 1 ? 0 : 1); return abs64Compare(-9223372036854775808, 3652058) == 1 ? 0 : 1;
}]])],[ac_cv_compare_failed=0 }]])],[ac_cv_compare_failed=0
ac_cv_compare_result=success]) ac_cv_compare_result=success])
CFLAGS="$savedflags" CFLAGS="$savedflags"