kopia lustrzana https://github.com/Hamlib/Hamlib
initial release
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1198 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.4
rodzic
729d46c39a
commit
8b521ecfa5
|
@ -0,0 +1,11 @@
|
|||
prefix=@prefix@
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${prefix}/include
|
||||
|
||||
Name: hamlib
|
||||
Description: Library to control radio and rotator equipments
|
||||
Requires:
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lhamlib @MATH_LIBS@
|
||||
Cflags: -I${includedir}
|
|
@ -0,0 +1,15 @@
|
|||
## Please update this variable if any new macros are created
|
||||
|
||||
MACROS = \
|
||||
aclocal-include.m4 \
|
||||
libtool.m4 \
|
||||
pkg.m4 \
|
||||
tcl.m4
|
||||
|
||||
|
||||
EXTRA_DIST=$(MACROS)
|
||||
MAINTAINERCLEANFILES=macros.dep
|
||||
|
||||
@MAINT@macros.dep: Makefile.am
|
||||
@MAINT@ @echo '$$(top_srcdir)/aclocal.m4: $(MACROS:%=macros/%)' > $@
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# aclocal-include.m4
|
||||
#
|
||||
# This macro adds the name macrodir to the set of directories
|
||||
# that `aclocal' searches for macros.
|
||||
|
||||
# serial 1
|
||||
|
||||
dnl AM_ACLOCAL_INCLUDE(macrodir)
|
||||
AC_DEFUN([AM_ACLOCAL_INCLUDE],
|
||||
[
|
||||
AM_CONDITIONAL(INSIDE_GNOME_COMMON, test x = y)
|
||||
|
||||
test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
|
||||
|
||||
for k in $1 ; do ACLOCAL="$ACLOCAL -I $k" ; done
|
||||
])
|
Plik diff jest za duży
Load Diff
|
@ -0,0 +1,58 @@
|
|||
#------------------------------------------------------------------------
|
||||
# SC_PATH_PERLINC --
|
||||
#
|
||||
# Locate the perl include files
|
||||
#
|
||||
# Arguments:
|
||||
# none
|
||||
#
|
||||
# Results:
|
||||
#
|
||||
# Adds the following arguments to configure:
|
||||
# --with-perl-inc=...
|
||||
#
|
||||
# Defines the following vars:
|
||||
# PERL_INC_DIR Full path to the directory containing
|
||||
# the perl include files
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
AC_DEFUN(SC_PATH_PERLINC, [
|
||||
|
||||
# we reset no_perl in case something fails here
|
||||
no_perl=true
|
||||
|
||||
AC_ARG_WITH(perl-inc, [ --with-perl-inc directory containing perl includes], with_perl_inc=${withval})
|
||||
AC_MSG_CHECKING([for perl headers])
|
||||
AC_CACHE_VAL(ac_cv_c_perl_inc,[
|
||||
|
||||
# First check to see if --with-perl-inc was specified.
|
||||
if test x"${with_perl_inc}" != x ; then
|
||||
if test -f "${with_perl_inc}/perl.h" ; then
|
||||
ac_cv_c_perl_inc=`(cd ${with_perl_inc}; pwd)`
|
||||
else
|
||||
AC_MSG_ERROR([${with_perl_inc} directory doesn't contain perl.h])
|
||||
fi
|
||||
fi
|
||||
|
||||
# then check for a private Perl installation
|
||||
if test x"${ac_cv_c_perl_inc}" = x ; then
|
||||
eval `perl -V:archlibexp`
|
||||
if test -f "${archlibexp}/CORE/perl.h" ; then
|
||||
ac_cv_c_perl_inc=`(cd ${archlibexp}/CORE; pwd)`
|
||||
else
|
||||
AC_MSG_WARN([${with_perl_inc} directory doesn't contain perl.h])
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
if test x"${ac_cv_c_perl_inc}" = x ; then
|
||||
PERL_INC_DIR=
|
||||
AC_MSG_WARN(Can't find Perl header files)
|
||||
else
|
||||
no_perl=
|
||||
PERL_INC_DIR=${ac_cv_c_perl_inc}
|
||||
AC_MSG_RESULT(found $PERL_INC_DIR)
|
||||
fi
|
||||
AC_SUBST(PERL_INC_DIR)
|
||||
])
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
|
||||
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
|
||||
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
|
||||
dnl also defines GSTUFF_PKG_ERRORS on error
|
||||
AC_DEFUN(PKG_CHECK_MODULES, [
|
||||
succeeded=no
|
||||
|
||||
if test -z "$PKG_CONFIG"; then
|
||||
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
|
||||
fi
|
||||
|
||||
if test "$PKG_CONFIG" = "no" ; then
|
||||
echo "*** The pkg-config script could not be found. Make sure it is"
|
||||
echo "*** in your path, or set the PKG_CONFIG environment variable"
|
||||
echo "*** to the full path to pkg-config."
|
||||
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
|
||||
else
|
||||
PKG_CONFIG_MIN_VERSION=0.9.0
|
||||
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
|
||||
AC_MSG_CHECKING(for $2)
|
||||
|
||||
if $PKG_CONFIG --exists "$2" ; then
|
||||
AC_MSG_RESULT(yes)
|
||||
succeeded=yes
|
||||
|
||||
AC_MSG_CHECKING($1_CFLAGS)
|
||||
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
|
||||
AC_MSG_RESULT($$1_CFLAGS)
|
||||
|
||||
AC_MSG_CHECKING($1_LIBS)
|
||||
$1_LIBS=`$PKG_CONFIG --libs "$2"`
|
||||
AC_MSG_RESULT($$1_LIBS)
|
||||
else
|
||||
$1_CFLAGS=""
|
||||
$1_LIBS=""
|
||||
## If we have a custom action on failure, don't print errors, but
|
||||
## do set a variable so people can do so.
|
||||
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
|
||||
ifelse([$4], ,echo $$1_PKG_ERRORS,)
|
||||
fi
|
||||
|
||||
AC_SUBST($1_CFLAGS)
|
||||
AC_SUBST($1_LIBS)
|
||||
else
|
||||
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
|
||||
echo "*** See http://www.freedesktop.org/software/pkgconfig"
|
||||
fi
|
||||
fi
|
||||
|
||||
if test $succeeded = yes; then
|
||||
ifelse([$3], , :, [$3])
|
||||
else
|
||||
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
|
||||
fi
|
||||
])
|
||||
|
||||
|
|
@ -0,0 +1,136 @@
|
|||
#------------------------------------------------------------------------
|
||||
# SC_PATH_TCLCONFIG --
|
||||
#
|
||||
# Locate the tclConfig.sh file and perform a sanity check on
|
||||
# the Tcl compile flags
|
||||
#
|
||||
# Arguments:
|
||||
# none
|
||||
#
|
||||
# Results:
|
||||
#
|
||||
# Adds the following arguments to configure:
|
||||
# --with-tcl=...
|
||||
#
|
||||
# Defines the following vars:
|
||||
# TCL_BIN_DIR Full path to the directory containing
|
||||
# the tclConfig.sh file
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
AC_DEFUN(SC_PATH_TCLCONFIG, [
|
||||
#
|
||||
# Ok, lets find the tcl configuration
|
||||
# First, look for one uninstalled.
|
||||
# the alternative search directory is invoked by --with-tcl
|
||||
#
|
||||
|
||||
if test x"${no_tcl}" = x ; then
|
||||
# we reset no_tcl in case something fails here
|
||||
no_tcl=true
|
||||
AC_ARG_WITH(tcl, [ --with-tcl directory containing tcl configuration (tclConfig.sh)], with_tclconfig=${withval})
|
||||
AC_MSG_CHECKING([for Tcl configuration])
|
||||
AC_CACHE_VAL(ac_cv_c_tclconfig,[
|
||||
|
||||
# First check to see if --with-tclconfig was specified.
|
||||
if test x"${with_tclconfig}" != x ; then
|
||||
if test -f "${with_tclconfig}/tclConfig.sh" ; then
|
||||
ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
|
||||
else
|
||||
AC_MSG_ERROR([${with_tclconfig} directory doesn't contain tclConfig.sh])
|
||||
fi
|
||||
fi
|
||||
|
||||
# then check for a private Tcl installation
|
||||
if test x"${ac_cv_c_tclconfig}" = x ; then
|
||||
for i in \
|
||||
../tcl \
|
||||
`ls -dr ../tcl[[8-9]].[[0-9]]* 2>/dev/null` \
|
||||
../../tcl \
|
||||
`ls -dr ../../tcl[[8-9]].[[0-9]]* 2>/dev/null` \
|
||||
../../../tcl \
|
||||
`ls -dr ../../../tcl[[8-9]].[[0-9]]* 2>/dev/null` ; do
|
||||
if test -f "$i/unix/tclConfig.sh" ; then
|
||||
ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# check in a few common install locations
|
||||
if test x"${ac_cv_c_tclconfig}" = x ; then
|
||||
for i in `ls -d ${prefix}/lib 2>/dev/null` \
|
||||
`ls -d /usr/local/lib 2>/dev/null` \
|
||||
`ls -dr /usr/lib/tcl[[8-9]].[[0-9]]* 2>/dev/null` ; do
|
||||
if test -f "$i/tclConfig.sh" ; then
|
||||
ac_cv_c_tclconfig=`(cd $i; pwd)`
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# check in a few other private locations
|
||||
if test x"${ac_cv_c_tcliconfig}" = x ; then
|
||||
for i in \
|
||||
${srcdir}/../tcl \
|
||||
`ls -dr ${srcdir}/../tcl[[8-9]].[[0-9]]* 2>/dev/null` ; do
|
||||
if test -f "$i/unix/tclConfig.sh" ; then
|
||||
ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
])
|
||||
|
||||
if test x"${ac_cv_c_tclconfig}" = x ; then
|
||||
TCL_BIN_DIR="# no Tcl configs found"
|
||||
AC_MSG_WARN(Can't find Tcl configuration definitions)
|
||||
else
|
||||
no_tcl=
|
||||
TCL_BIN_DIR=${ac_cv_c_tclconfig}
|
||||
AC_MSG_RESULT(found $TCL_BIN_DIR/tclConfig.sh)
|
||||
fi
|
||||
fi
|
||||
])
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
# SC_LOAD_TCLCONFIG --
|
||||
#
|
||||
# Load the tclConfig.sh file
|
||||
#
|
||||
# Arguments:
|
||||
#
|
||||
# Requires the following vars to be set:
|
||||
# TCL_BIN_DIR
|
||||
#
|
||||
# Results:
|
||||
#
|
||||
# Subst the following vars:
|
||||
# TCL_BIN_DIR
|
||||
# TCL_SRC_DIR
|
||||
# TCL_LIB_FILE
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
AC_DEFUN(SC_LOAD_TCLCONFIG, [
|
||||
AC_MSG_CHECKING([for existence of $TCL_BIN_DIR/tclConfig.sh])
|
||||
|
||||
if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
|
||||
AC_MSG_RESULT([loading])
|
||||
. $TCL_BIN_DIR/tclConfig.sh
|
||||
else
|
||||
AC_MSG_RESULT([file not found])
|
||||
fi
|
||||
|
||||
#
|
||||
# The eval is required to do the TCL_DBGX substitution in the
|
||||
# TCL_LIB_FILE variable
|
||||
#
|
||||
|
||||
eval TCL_LIB_FILE=${TCL_LIB_FILE}
|
||||
eval TCL_LIB_FLAG=${TCL_LIB_FLAG}
|
||||
|
||||
AC_SUBST(TCL_BIN_DIR)
|
||||
AC_SUBST(TCL_SRC_DIR)
|
||||
AC_SUBST(TCL_LIB_FILE)
|
||||
])
|
||||
|
Ładowanie…
Reference in New Issue