kopia lustrzana https://github.com/Hamlib/Hamlib
Merge pull request #1694 from N0NB/static_lib
Restore libtool default of building shared and static libspull/1695/head
commit
34698df17a
34
configure.ac
34
configure.ac
|
@ -43,23 +43,23 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||||
## ------------------------------ ##
|
## ------------------------------ ##
|
||||||
## Hamlib specific configuration. ##
|
## Hamlib specific configuration. ##
|
||||||
## ------------------------------ ##
|
## ------------------------------ ##
|
||||||
AC_ARG_ENABLE([shared],
|
dnl AC_ARG_ENABLE([shared],
|
||||||
[AS_HELP_STRING([--enable-shared],
|
dnl [AS_HELP_STRING([--enable-shared],
|
||||||
[Enable shared libraries @<:@default=yes@:>@])],
|
dnl [Enable shared libraries @<:@default=yes@:>@])],
|
||||||
[enable_shared=$enableval],
|
dnl [enable_shared=$enableval],
|
||||||
[enable_shared=yes])
|
dnl [enable_shared=yes])
|
||||||
AC_ARG_ENABLE([static],
|
dnl AC_ARG_ENABLE([static],
|
||||||
[AS_HELP_STRING([--enable-static],
|
dnl [AS_HELP_STRING([--enable-static],
|
||||||
[Enable static libraries @<:@default=check@:>@])],
|
dnl [Enable static libraries @<:@default=check@:>@])],
|
||||||
[enable_static=$enableval],
|
dnl [enable_static=$enableval],
|
||||||
[enable_static=check])
|
dnl [enable_static=check])
|
||||||
|
dnl
|
||||||
AS_IF([test "x$enable_static" = "xyes"], [
|
dnl AS_IF([test "x$enable_static" = "xyes"], [
|
||||||
enable_shared=no
|
dnl enable_shared=no
|
||||||
])
|
dnl ])
|
||||||
AS_IF([test "x$enable_static" = "xyes" && test "x$enable_shared" = "xyes"], [
|
dnl AS_IF([test "x$enable_static" = "xyes" && test "x$enable_shared" = "xyes"], [
|
||||||
AC_MSG_ERROR([Both --enable-static and --enable-shared cannot be enabled at the same time.])
|
dnl AC_MSG_ERROR([Both --enable-static and --enable-shared cannot be enabled at the same time.])
|
||||||
])
|
dnl ])
|
||||||
|
|
||||||
dnl New backends must be listed here! Also the new Makefile path must be
|
dnl New backends must be listed here! Also the new Makefile path must be
|
||||||
dnl added to AC_CONFIG_FILES near the end of this file. See README.developer
|
dnl added to AC_CONFIG_FILES near the end of this file. See README.developer
|
||||||
|
|
Ładowanie…
Reference in New Issue