kopia lustrzana https://github.com/Hamlib/Hamlib
Update libtool support, patch by Priit ES0PLS
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2690 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.2.10
rodzic
1ac0e03288
commit
c747b0c155
11
autogen.sh
11
autogen.sh
|
@ -3,6 +3,7 @@
|
||||||
# Taken from glib CVS
|
# Taken from glib CVS
|
||||||
|
|
||||||
# Change the following to match the versions installed on your system
|
# Change the following to match the versions installed on your system
|
||||||
|
LIBTOOLIZE=libtoolize
|
||||||
AUTOCONF=autoconf
|
AUTOCONF=autoconf
|
||||||
AUTOHEADER=autoheader
|
AUTOHEADER=autoheader
|
||||||
AUTOMAKE=automake
|
AUTOMAKE=automake
|
||||||
|
@ -38,6 +39,14 @@ FILE=include/hamlib/rig.h
|
||||||
|
|
||||||
DIE=0
|
DIE=0
|
||||||
|
|
||||||
|
($LIBTOOLIZE --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
|
echo
|
||||||
|
echo "You must have libtool installed to compile $PROJECT."
|
||||||
|
echo "Download the appropriate package for your distribution,"
|
||||||
|
echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
|
||||||
|
DIE=1
|
||||||
|
}
|
||||||
|
|
||||||
($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
|
($AUTOCONF --version) < /dev/null > /dev/null 2>&1 || {
|
||||||
echo
|
echo
|
||||||
echo "You must have autoconf installed to compile $PROJECT."
|
echo "You must have autoconf installed to compile $PROJECT."
|
||||||
|
@ -78,7 +87,7 @@ $ACLOCAL $ACLOCAL_FLAGS
|
||||||
# optionally feature autoheader
|
# optionally feature autoheader
|
||||||
($AUTOHEADER --version) < /dev/null > /dev/null 2>&1 && $AUTOHEADER
|
($AUTOHEADER --version) < /dev/null > /dev/null 2>&1 && $AUTOHEADER
|
||||||
|
|
||||||
libtoolize --automake --ltdl
|
$LIBTOOLIZE -c -i --force
|
||||||
$AUTOMAKE -a $am_opt
|
$AUTOMAKE -a $am_opt
|
||||||
$AUTOCONF
|
$AUTOCONF
|
||||||
cd $ORIGDIR
|
cd $ORIGDIR
|
||||||
|
|
20
configure.ac
20
configure.ac
|
@ -24,7 +24,7 @@ AM_MAINTAINER_MODE
|
||||||
ABI_VERSION=2
|
ABI_VERSION=2
|
||||||
|
|
||||||
dnl Pick up the Hamlib macros.
|
dnl Pick up the Hamlib macros.
|
||||||
AM_ACLOCAL_INCLUDE(macros)
|
AM_ACLOCAL_INCLUDE([macros])
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(ABI_VERSION, $ABI_VERSION, [Frontend ABI version])
|
AC_DEFINE_UNQUOTED(ABI_VERSION, $ABI_VERSION, [Frontend ABI version])
|
||||||
AC_SUBST(ABI_VERSION)
|
AC_SUBST(ABI_VERSION)
|
||||||
|
@ -176,22 +176,10 @@ AC_LIBOBJ(dummy)
|
||||||
## ------------------------ ##
|
## ------------------------ ##
|
||||||
## libtool Initialisation. ##
|
## libtool Initialisation. ##
|
||||||
## ------------------------ ##
|
## ------------------------ ##
|
||||||
dnl Enable building of the convenience library
|
LT_CONFIG_LTDL_DIR([libltdl])
|
||||||
dnl and set LIBLTDL accordingly
|
LT_INIT([dlopen], [win32-dll])
|
||||||
AC_LIBLTDL_CONVENIENCE
|
LTDL_INIT([convenience])
|
||||||
dnl Substitute INCLTDL and LIBLTDL in the Makefiles
|
|
||||||
AC_SUBST([INCLTDL])
|
|
||||||
AC_SUBST([LIBLTDL])
|
|
||||||
|
|
||||||
dnl Check for dlopen support
|
|
||||||
AC_LIBTOOL_WIN32_DLL
|
|
||||||
AC_LIBTOOL_DLOPEN
|
|
||||||
dnl Configure libtool
|
|
||||||
AC_PROG_LIBTOOL
|
|
||||||
AC_SUBST([LIBTOOL_DEPS])
|
|
||||||
AC_LIB_LTDL
|
|
||||||
dnl Configure libltdl
|
|
||||||
AC_CONFIG_SUBDIRS(libltdl)
|
|
||||||
|
|
||||||
case "$host_os" in
|
case "$host_os" in
|
||||||
darwin* | rhapsody*)
|
darwin* | rhapsody*)
|
||||||
|
|
Ładowanie…
Reference in New Issue