Blame hdspconf/configure.ac

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