# HG changeset patch # User Matti Hamalainen # Date 1208750102 -10800 # Node ID 925df071b0c784f1bc40324cdd1971a074bd1a9b # Parent 06e98465cffa5c4925430eb97fca8e4f83352f5e Imported and cleaned up some missing pieces of functionality from old configure.ac. diff -r 06e98465cffa -r 925df071b0c7 configure.ac --- a/configure.ac Mon Apr 21 06:53:58 2008 +0300 +++ b/configure.ac Mon Apr 21 06:55:02 2008 +0300 @@ -447,6 +447,23 @@ ### --------------------------------------------------------------------------- +dnl XXX Work around some autoconf bugs. +if test "x$prefix" = "xNONE"; then + prefix="${ac_default_prefix}" +fi + +if test -z "$datadir"; then + datadir="${prefix}/share" +fi + +localedir="$datadir/locale" +AC_SUBST([localedir]) + +AUDACIOUS_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\"" +AC_SUBST([AUDACIOUS_DEFINES]) + + +### --------------------------------------------------------------------------- dnl Output configuration files dnl ========================== AC_CONFIG_FILES([