mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
Add --with-ld10k1 configure option
Added --with-ld10k1 configure option for better detection of ld10k1 package. The include directory and ld10k1 symlink are automatically created to point the local path.
This commit is contained in:
parent
ca7cb411ff
commit
37fccff016
4 changed files with 27 additions and 10 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
SUBDIRS = src include
|
SUBDIRS = src
|
||||||
|
|
||||||
EXTRA_DIST = COPYING configure.in README NEWS AUTHORS TODO INSTALL ChangeLog
|
EXTRA_DIST = COPYING configure.in README NEWS AUTHORS TODO INSTALL ChangeLog
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||||
#undef HAVE_INTTYPES_H
|
#undef HAVE_INTTYPES_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `lo10k1' library (-llo10k1). */
|
||||||
|
#undef HAVE_LIBLO10K1
|
||||||
|
|
||||||
/* Define to 1 if you have the <memory.h> header file. */
|
/* Define to 1 if you have the <memory.h> header file. */
|
||||||
#undef HAVE_MEMORY_H
|
#undef HAVE_MEMORY_H
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,15 +9,29 @@ AC_PROG_LIBTOOL
|
||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
gw_CHECK_QT
|
gw_CHECK_QT
|
||||||
|
|
||||||
dnl AM_PATH_LD10K1(0.1.8)
|
dnl Check ld10k1 availability
|
||||||
|
AC_ARG_WITH(ld10k1,
|
||||||
|
[ --with-ld10k1 local|system Specify the ld10k1 installation (default=local)],
|
||||||
|
ld10k1="$withval",
|
||||||
|
ld10k1="local")
|
||||||
|
|
||||||
dnl Build with the local ld10k1
|
if test "$ld10k1" = "system"; then
|
||||||
rm -f include/lo10k1
|
AM_PATH_LD10K1(0.1.8)
|
||||||
ln -s ../../ld10k1/include include/lo10k1
|
else
|
||||||
LD10K1_CFLAGS="-I../include"
|
if test "$ld10k1" = "local"; then
|
||||||
LD10K1_LIBS="-L../../ld10k1/src -llo10k1"
|
ld10k1="../ld10k1"
|
||||||
AC_SUBST(LD10K1_CFLAGS)
|
fi
|
||||||
AC_SUBST(LD10K1_LIBS)
|
test -d "$ld10k1" || AC_MSG_ERROR([Cannot find ld10k1 directory $ld10k1])
|
||||||
|
rm -f ld10k1
|
||||||
|
ln -s $ld10k1 ld10k1
|
||||||
|
rm -rf include
|
||||||
|
mkdir include
|
||||||
|
ln -s ../ld10k1/include include/lo10k1
|
||||||
|
LD10K1_CFLAGS="-I../include"
|
||||||
|
LD10K1_LIBS="-L$ld10k1/src -llo10k1"
|
||||||
|
AC_SUBST(LD10K1_CFLAGS)
|
||||||
|
AC_SUBST(LD10K1_LIBS)
|
||||||
|
fi
|
||||||
|
|
||||||
AC_OUTPUT(Makefile
|
AC_OUTPUT(Makefile
|
||||||
src/Makefile include/Makefile)
|
src/Makefile)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue