Commit b7dd9283 authored by Klaus Ziegler's avatar Klaus Ziegler Committed by Niels Möller

ABI and libdir detection for Irix.

parent f1a54f2a
2015-05-19 Niels Möller <nisse@lysator.liu.se>
* configure.ac: ABI detection (n32 or n64) on Irix, and
appropriate default for libdir. Patch from Klaus Ziegler.
2015-05-12 Niels Möller <nisse@lysator.liu.se> 2015-05-12 Niels Möller <nisse@lysator.liu.se>
* version.c (nettle_version_major, nettle_version_minor): New * version.c (nettle_version_major, nettle_version_minor): New
......
...@@ -285,6 +285,17 @@ case "$host_cpu" in ...@@ -285,6 +285,17 @@ case "$host_cpu" in
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#if defined(__sparcv9) || defined(__arch64__) #if defined(__sparcv9) || defined(__arch64__)
#error 64-bit sparc #error 64-bit sparc
#endif
], [], [
ABI=32
], [
ABI=64
])
;;
*mips*)
AC_TRY_COMPILE([
#if defined(__sgi) && defined(__LP64__)
#error 32-bit mips
#endif #endif
], [], [ ], [], [
ABI=32 ABI=32
...@@ -335,6 +346,12 @@ if test "x$ABI" != xstandard ; then ...@@ -335,6 +346,12 @@ if test "x$ABI" != xstandard ; then
*:freebsd*:64) *:freebsd*:64)
libdir='${exec_prefix}/lib' libdir='${exec_prefix}/lib'
;; ;;
*:irix*:32)
libdir='${exec_prefix}/lib32'
;;
*:irix*:64)
libdir='${exec_prefix}/lib64'
;;
*) *)
AC_MSG_WARN([Don't know where to install $ABI-bit libraries on this system.]); dnl ' AC_MSG_WARN([Don't know where to install $ABI-bit libraries on this system.]); dnl '
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment