mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 13:42:06 -04:00
2713. [port] aix/powerpc: 'asm("ics");' needs non standard assembler
flags.
This commit is contained in:
parent
8f7de3db7e
commit
616560e3db
2 changed files with 36 additions and 3 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
2713. [port] aix/powerpc: 'asm("ics");' needs non standard assembler
|
||||
flags.
|
||||
|
||||
--- 9.7.0b1 released ---
|
||||
|
||||
2713. [bug] powerpc: atomic operations missing asm("ics") /
|
||||
|
|
|
|||
36
configure.in
36
configure.in
|
|
@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl
|
|||
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
|
||||
AC_DIVERT_POP()dnl
|
||||
|
||||
AC_REVISION($Revision: 1.483 $)
|
||||
AC_REVISION($Revision: 1.484 $)
|
||||
|
||||
AC_INIT(lib/dns/name.c)
|
||||
AC_PREREQ(2.59)
|
||||
|
|
@ -2431,7 +2431,37 @@ AC_ARG_ENABLE(atomic,
|
|||
enable_atomic="autodetect")
|
||||
case "$enable_atomic" in
|
||||
yes|''|autodetect)
|
||||
use_atomic=yes
|
||||
case "$host" in
|
||||
powerpc-ibm-aix*)
|
||||
if test "X$GCC" = "Xyes"; then
|
||||
AC_MSG_CHECKING([if asm("isc"); works])
|
||||
AC_TRY_COMPILE(,[
|
||||
main() { asm("ics"); exit(0); }
|
||||
],
|
||||
[AC_MSG_RESULT(yes)
|
||||
use_atomic=yes],
|
||||
[
|
||||
saved_cflags="$CFLAGS"
|
||||
CFLAGS="$CFLAGS -Wa,-many"
|
||||
AC_TRY_RUN([
|
||||
main() { asm("ics"); exit(0); }
|
||||
],
|
||||
[AC_MSG_RESULT([yes, required -Wa,-many])
|
||||
use_atomic=yes],
|
||||
[AC_MSG_RESULT([no, use_atomic disabled])
|
||||
CFLAGS="$saved_cflags"
|
||||
use_atomic=no],
|
||||
[AC_MSG_RESULT([cross compile, assume yes])
|
||||
CFLAGS="$saved_cflags"
|
||||
use_atomic=yes])
|
||||
]
|
||||
)
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
use_atomic=yes
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
no)
|
||||
use_atomic=no
|
||||
|
|
@ -2896,7 +2926,7 @@ AC_SUBST_FILE(BIND9_MAKE_RULES)
|
|||
BIND9_MAKE_RULES=$BIND9_TOP_BUILDDIR/make/rules
|
||||
|
||||
. $srcdir/version
|
||||
BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}"
|
||||
BIND9_VERSION="VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}"
|
||||
AC_SUBST(BIND9_VERSION)
|
||||
|
||||
if test -z "$ac_configure_args"; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue