Blame hdspconf/configure.ac
|
Packit |
427e91 |
AC_INIT(hdspconf, 1.4)
|
|
Packit |
427e91 |
AM_INIT_AUTOMAKE
|
|
Packit |
427e91 |
AM_MAINTAINER_MODE([enable])
|
|
Packit |
427e91 |
|
|
Packit |
427e91 |
AC_PROG_CXX
|
|
Packit |
427e91 |
AC_PROG_MAKE_SET
|
|
Packit |
427e91 |
AC_STDC_HEADERS
|
|
Packit |
427e91 |
AC_PATH_X
|
|
Packit |
427e91 |
|
|
Packit |
427e91 |
AM_PATH_ALSA(1.0.0)
|
|
Packit |
427e91 |
|
|
Packit |
427e91 |
dnl desktop install
|
|
Packit |
427e91 |
AC_ARG_WITH(desktop-dir,
|
|
Packit |
427e91 |
[ --with-desktop-dir specify the path to install desktop file],
|
|
Packit |
427e91 |
[desktopdir="$withval"], [desktopdir=""])
|
|
Packit |
427e91 |
if test -z "$desktopdir"; then
|
|
Packit |
427e91 |
desktopdir=$datadir/applications
|
|
Packit |
427e91 |
fi
|
|
Packit |
427e91 |
DESKTOP_DIR="$desktopdir"
|
|
Packit |
427e91 |
AC_SUBST(DESKTOP_DIR)
|
|
Packit |
427e91 |
|
|
Packit |
427e91 |
AC_ARG_WITH(pixmap-dir,
|
|
Packit |
427e91 |
[ --with-pixmap-dir specify the path to install desktop pixmap file],
|
|
Packit |
427e91 |
[pixmapdir="$withval"], [pixmapdir=""])
|
|
Packit |
427e91 |
if test -z "$pixmapdir"; then
|
|
Packit |
427e91 |
pixmapdir=$datadir/pixmaps
|
|
Packit |
427e91 |
fi
|
|
Packit |
427e91 |
PIXMAP_DIR="$pixmapdir"
|
|
Packit |
427e91 |
AC_SUBST(PIXMAP_DIR)
|
|
Packit |
427e91 |
|
|
Packit |
427e91 |
dnl library check
|
|
Packit |
427e91 |
AC_PATH_PROG(FLTK_CONFIG, fltk-config, no)
|
|
Packit |
427e91 |
if test "$FLTK_CONFIG" = "no" && ! test "`hostname -f`" = "alsa.alsa-project.org"; then
|
|
Packit |
427e91 |
AC_MSG_ERROR(no fltk-config is found)
|
|
Packit |
427e91 |
fi
|
|
Packit |
427e91 |
FLTK_CXXFLAGS="`$FLTK_CONFIG $fltk_config_args --cxxflags` -fno-exceptions"
|
|
Packit |
427e91 |
FLTK_LIBS=`$FLTK_CONFIG $fltk_config_args --ldflags`
|
|
Packit |
427e91 |
|
|
Packit |
427e91 |
CXXFLAGS="$CXXFLAGS $ALSA_CFLAGS $FLTK_CXXFLAGS"
|
|
Packit |
427e91 |
LIBS="$LIBS $ALSA_LIBS $FLTK_LIBS"
|
|
Packit |
427e91 |
|
|
Packit |
427e91 |
AC_OUTPUT(Makefile src/Makefile pixmaps/Makefile desktop/Makefile)
|