mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
b0121dc312
I have been setting up a cross-project librarized autoconf setup; use it for NASM as well. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
20 lines
479 B
Plaintext
20 lines
479 B
Plaintext
dnl --------------------------------------------------------------------------
|
|
dnl PA_LIBEXT
|
|
dnl
|
|
dnl Guess the library extension based on the object extension
|
|
dnl --------------------------------------------------------------------------
|
|
AC_DEFUN([PA_LIBEXT],
|
|
[AC_MSG_CHECKING([for suffix of library files])
|
|
if test x"$LIBEXT" = x; then
|
|
case "$OBJEXT" in
|
|
obj)
|
|
LIBEXT=lib
|
|
;;
|
|
*)
|
|
LIBEXT=a
|
|
;;
|
|
esac
|
|
fi
|
|
AC_MSG_RESULT([$LIBEXT])
|
|
AC_SUBST([LIBEXT])])
|