head	1.134;
access;
symbols
	start:1.1.1.1 uadedev:1.1.1;
locks; strict;
comment	@# @;


1.134
date	2005.06.17.20.10.58;	author shd;	state Exp;
branches;
next	1.133;

1.133
date	2005.05.22.21.33.57;	author shd;	state Exp;
branches;
next	1.132;

1.132
date	2005.05.22.21.30.05;	author shd;	state Exp;
branches;
next	1.131;

1.131
date	2005.05.10.15.13.41;	author shd;	state Exp;
branches;
next	1.130;

1.130
date	2005.03.20.20.02.12;	author shd;	state Exp;
branches;
next	1.129;

1.129
date	2005.03.07.16.44.42;	author shd;	state Exp;
branches;
next	1.128;

1.128
date	2005.02.10.23.46.08;	author shd;	state Exp;
branches;
next	1.127;

1.127
date	2005.02.10.22.21.31;	author shd;	state Exp;
branches;
next	1.126;

1.126
date	2005.02.10.22.17.59;	author shd;	state Exp;
branches;
next	1.125;

1.125
date	2004.10.30.16.01.35;	author shd;	state Exp;
branches;
next	1.124;

1.124
date	2004.09.24.15.03.26;	author shd;	state Exp;
branches;
next	1.123;

1.123
date	2004.09.24.14.39.29;	author shd;	state Exp;
branches;
next	1.122;

1.122
date	2004.07.27.11.36.13;	author shd;	state Exp;
branches;
next	1.121;

1.121
date	2004.07.16.10.27.23;	author shd;	state Exp;
branches;
next	1.120;

1.120
date	2004.07.15.18.41.53;	author mld;	state Exp;
branches;
next	1.119;

1.119
date	2004.07.15.17.34.44;	author shd;	state Exp;
branches;
next	1.118;

1.118
date	2004.07.15.17.30.42;	author shd;	state Exp;
branches;
next	1.117;

1.117
date	2004.07.15.17.27.21;	author shd;	state Exp;
branches;
next	1.116;

1.116
date	2004.07.14.19.38.55;	author shd;	state Exp;
branches;
next	1.115;

1.115
date	2004.07.14.19.27.40;	author shd;	state Exp;
branches;
next	1.114;

1.114
date	2004.07.12.16.02.13;	author shd;	state Exp;
branches;
next	1.113;

1.113
date	2004.07.12.15.33.35;	author shd;	state Exp;
branches;
next	1.112;

1.112
date	2004.07.12.14.46.05;	author shd;	state Exp;
branches;
next	1.111;

1.111
date	2004.07.10.15.06.36;	author shd;	state Exp;
branches;
next	1.110;

1.110
date	2004.07.10.13.13.12;	author shd;	state Exp;
branches;
next	1.109;

1.109
date	2004.07.09.10.28.22;	author mld;	state Exp;
branches;
next	1.108;

1.108
date	2004.07.01.15.49.42;	author shd;	state Exp;
branches;
next	1.107;

1.107
date	2004.07.01.09.22.33;	author mld;	state Exp;
branches;
next	1.106;

1.106
date	2004.06.30.21.32.40;	author shd;	state Exp;
branches;
next	1.105;

1.105
date	2004.06.30.21.31.11;	author shd;	state Exp;
branches;
next	1.104;

1.104
date	2004.06.30.16.30.23;	author shd;	state Exp;
branches;
next	1.103;

1.103
date	2004.06.19.20.56.08;	author shd;	state Exp;
branches;
next	1.102;

1.102
date	2004.06.19.20.46.38;	author shd;	state Exp;
branches;
next	1.101;

1.101
date	2004.06.19.20.31.47;	author shd;	state Exp;
branches;
next	1.100;

1.100
date	2004.06.19.20.14.17;	author shd;	state Exp;
branches;
next	1.99;

1.99
date	2004.06.18.21.02.19;	author shd;	state Exp;
branches;
next	1.98;

1.98
date	2004.06.18.20.46.22;	author shd;	state Exp;
branches;
next	1.97;

1.97
date	2004.06.18.14.15.54;	author shd;	state Exp;
branches;
next	1.96;

1.96
date	2004.04.08.14.18.40;	author shd;	state Exp;
branches;
next	1.95;

1.95
date	2004.04.08.13.42.23;	author shd;	state Exp;
branches;
next	1.94;

1.94
date	2004.04.07.22.24.38;	author shd;	state Exp;
branches;
next	1.93;

1.93
date	2004.04.07.20.36.07;	author shd;	state Exp;
branches;
next	1.92;

1.92
date	2004.04.02.15.33.53;	author shd;	state Exp;
branches;
next	1.91;

1.91
date	2004.04.02.14.02.12;	author shd;	state Exp;
branches;
next	1.90;

1.90
date	2004.04.02.14.00.55;	author shd;	state Exp;
branches;
next	1.89;

1.89
date	2004.01.26.18.23.42;	author shd;	state Exp;
branches;
next	1.88;

1.88
date	2004.01.26.00.05.45;	author shd;	state Exp;
branches;
next	1.87;

1.87
date	2004.01.26.00.02.08;	author shd;	state Exp;
branches;
next	1.86;

1.86
date	2004.01.26.00.00.06;	author shd;	state Exp;
branches;
next	1.85;

1.85
date	2004.01.23.00.04.26;	author shd;	state Exp;
branches;
next	1.84;

1.84
date	2004.01.22.23.59.16;	author shd;	state Exp;
branches;
next	1.83;

1.83
date	2004.01.22.23.59.07;	author shd;	state Exp;
branches;
next	1.82;

1.82
date	2004.01.22.23.43.36;	author shd;	state Exp;
branches;
next	1.81;

1.81
date	2004.01.22.23.43.05;	author shd;	state Exp;
branches;
next	1.80;

1.80
date	2004.01.22.23.42.37;	author shd;	state Exp;
branches;
next	1.79;

1.79
date	2004.01.09.14.04.12;	author shd;	state Exp;
branches;
next	1.78;

1.78
date	2004.01.06.19.51.18;	author shd;	state Exp;
branches;
next	1.77;

1.77
date	2004.01.06.18.25.06;	author shd;	state Exp;
branches;
next	1.76;

1.76
date	2003.09.14.18.32.36;	author shd;	state Exp;
branches;
next	1.75;

1.75
date	2003.09.14.18.23.16;	author shd;	state Exp;
branches;
next	1.74;

1.74
date	2003.09.08.06.35.17;	author shd;	state Exp;
branches;
next	1.73;

1.73
date	2003.07.22.11.03.57;	author shd;	state Exp;
branches;
next	1.72;

1.72
date	2003.07.07.22.56.43;	author shd;	state Exp;
branches;
next	1.71;

1.71
date	2003.07.04.12.16.09;	author shd;	state Exp;
branches;
next	1.70;

1.70
date	2003.07.01.08.11.44;	author shd;	state Exp;
branches;
next	1.69;

1.69
date	2003.07.01.07.57.41;	author shd;	state Exp;
branches;
next	1.68;

1.68
date	2003.06.26.16.40.56;	author shd;	state Exp;
branches;
next	1.67;

1.67
date	2003.05.27.10.06.30;	author shd;	state Exp;
branches;
next	1.66;

1.66
date	2003.05.26.10.01.27;	author shd;	state Exp;
branches;
next	1.65;

1.65
date	2003.05.22.10.13.00;	author shd;	state Exp;
branches;
next	1.64;

1.64
date	2003.05.22.10.07.14;	author shd;	state Exp;
branches;
next	1.63;

1.63
date	2003.04.27.00.22.09;	author shd;	state Exp;
branches;
next	1.62;

1.62
date	2003.04.26.23.49.17;	author shd;	state Exp;
branches;
next	1.61;

1.61
date	2003.04.26.23.44.50;	author shd;	state Exp;
branches;
next	1.60;

1.60
date	2003.04.26.23.43.16;	author shd;	state Exp;
branches;
next	1.59;

1.59
date	2003.04.26.23.36.37;	author shd;	state Exp;
branches;
next	1.58;

1.58
date	2003.04.22.19.01.24;	author shd;	state Exp;
branches;
next	1.57;

1.57
date	2003.04.21.22.41.55;	author shd;	state Exp;
branches;
next	1.56;

1.56
date	2003.04.21.22.25.19;	author shd;	state Exp;
branches;
next	1.55;

1.55
date	2003.04.04.14.49.02;	author shd;	state Exp;
branches;
next	1.54;

1.54
date	2003.04.04.14.45.17;	author shd;	state Exp;
branches;
next	1.53;

1.53
date	2003.03.15.17.56.55;	author shd;	state Exp;
branches;
next	1.52;

1.52
date	2003.03.12.14.44.35;	author shd;	state Exp;
branches;
next	1.51;

1.51
date	2003.03.12.12.37.12;	author shd;	state Exp;
branches;
next	1.50;

1.50
date	2003.03.01.20.21.01;	author shd;	state Exp;
branches;
next	1.49;

1.49
date	2003.01.24.15.22.18;	author shd;	state Exp;
branches;
next	1.48;

1.48
date	2003.01.22.08.23.28;	author shd;	state Exp;
branches;
next	1.47;

1.47
date	2003.01.17.16.17.14;	author shd;	state Exp;
branches;
next	1.46;

1.46
date	2003.01.17.04.32.12;	author shd;	state Exp;
branches;
next	1.45;

1.45
date	2003.01.16.23.07.04;	author shd;	state Exp;
branches;
next	1.44;

1.44
date	2003.01.14.12.01.00;	author mld;	state Exp;
branches;
next	1.43;

1.43
date	2003.01.10.00.01.31;	author shd;	state Exp;
branches;
next	1.42;

1.42
date	2002.11.16.05.11.27;	author shd;	state Exp;
branches;
next	1.41;

1.41
date	2002.11.15.14.23.08;	author mld;	state Exp;
branches;
next	1.40;

1.40
date	2002.11.14.18.47.06;	author shd;	state Exp;
branches;
next	1.39;

1.39
date	2002.11.14.18.40.58;	author shd;	state Exp;
branches;
next	1.38;

1.38
date	2002.11.14.18.20.55;	author shd;	state Exp;
branches;
next	1.37;

1.37
date	2002.11.12.01.27.31;	author shd;	state Exp;
branches;
next	1.36;

1.36
date	2002.11.02.22.18.29;	author shd;	state Exp;
branches;
next	1.35;

1.35
date	2002.08.28.00.20.29;	author shd;	state Exp;
branches;
next	1.34;

1.34
date	2002.08.22.16.00.53;	author mld;	state Exp;
branches;
next	1.33;

1.33
date	2002.06.06.13.40.10;	author meleth;	state Exp;
branches;
next	1.32;

1.32
date	2002.05.23.18.05.45;	author shd;	state Exp;
branches;
next	1.31;

1.31
date	2002.04.22.13.56.00;	author shd;	state Exp;
branches;
next	1.30;

1.30
date	2002.03.19.18.37.43;	author shd;	state Exp;
branches;
next	1.29;

1.29
date	2002.03.19.18.18.17;	author shd;	state Exp;
branches;
next	1.28;

1.28
date	2002.02.14.13.58.18;	author shd;	state Exp;
branches;
next	1.27;

1.27
date	2002.02.04.00.58.37;	author mld;	state Exp;
branches;
next	1.26;

1.26
date	2002.01.29.08.27.13;	author meleth;	state Exp;
branches;
next	1.25;

1.25
date	2002.01.26.01.06.51;	author shd;	state Exp;
branches;
next	1.24;

1.24
date	2002.01.26.00.54.02;	author shd;	state Exp;
branches;
next	1.23;

1.23
date	2002.01.26.00.41.26;	author shd;	state Exp;
branches;
next	1.22;

1.22
date	2002.01.26.00.25.13;	author shd;	state Exp;
branches;
next	1.21;

1.21
date	2002.01.19.20.20.27;	author shd;	state Exp;
branches;
next	1.20;

1.20
date	2002.01.19.01.28.57;	author shd;	state Exp;
branches;
next	1.19;

1.19
date	2002.01.18.14.18.19;	author shd;	state Exp;
branches;
next	1.18;

1.18
date	2002.01.18.13.52.01;	author shd;	state Exp;
branches;
next	1.17;

1.17
date	2002.01.16.13.38.45;	author shd;	state Exp;
branches;
next	1.16;

1.16
date	2002.01.16.13.35.28;	author shd;	state Exp;
branches;
next	1.15;

1.15
date	2002.01.11.10.26.32;	author mld;	state Exp;
branches;
next	1.14;

1.14
date	2002.01.10.08.49.36;	author shd;	state Exp;
branches;
next	1.13;

1.13
date	2002.01.07.12.41.02;	author mld;	state Exp;
branches;
next	1.12;

1.12
date	2001.12.19.15.53.51;	author shd;	state Exp;
branches;
next	1.11;

1.11
date	2001.12.07.13.00.03;	author shd;	state Exp;
branches;
next	1.10;

1.10
date	2001.12.06.20.35.04;	author shd;	state Exp;
branches;
next	1.9;

1.9
date	2001.12.06.20.25.04;	author shd;	state Exp;
branches;
next	1.8;

1.8
date	2001.12.06.04.30.41;	author shd;	state Exp;
branches;
next	1.7;

1.7
date	2001.12.06.03.19.10;	author shd;	state Exp;
branches;
next	1.6;

1.6
date	2001.12.06.02.02.55;	author shd;	state Exp;
branches;
next	1.5;

1.5
date	2001.12.06.01.18.20;	author shd;	state Exp;
branches;
next	1.4;

1.4
date	2001.12.05.19.44.55;	author shd;	state Exp;
branches;
next	1.3;

1.3
date	2001.12.05.00.00.33;	author shd;	state Exp;
branches;
next	1.2;

1.2
date	2001.12.03.23.47.52;	author shd;	state Exp;
branches;
next	1.1;

1.1
date	2001.12.03.23.27.58;	author shd;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.12.03.23.27.58;	author shd;	state Exp;
branches;
next	;


desc
@@


1.134
log
@*** empty log message ***
@
text
@#!/bin/sh

VERSION=1.03

if test -n "$CC"; then
    CC=$CC
    echo "Forcing compiler to be $CC"
else
    CC="gcc"
fi

ARCHFLAGS=""
if test -n "$CFLAGS"; then
    ARCHFLAGS="$ARCHFLAGS $CFLAGS"
    echo "Adding $ARCHFLAGS to ARCHFLAGS"
fi

ARCHLIBS=""
if test -n "$LDFLAGS"; then
    ARCHLIBS="$ARCHLIBS $LDFLAGS"
    echo "Adding $ARCHLIBS to ARCHLIBS"
fi

user="no"
packageprefix=""
mymods="\$ENV{HOME}"
usexmms="auto"
usebmp="auto"
xmmsplugindir="auto"
bmpplugindir="auto"
FORCEDAUDIOTARGET=""
disablealsa="no"
disableoss="no"
disablesdl="no"
disableao="no"
interaction="no"
debug_flags=""

for opt in "$@@" ; do
	case $opt in
	--prefix=*)
		prefix=`echo $opt | sed -n 's/--prefix=\(.*\)/\1/p'`
		;;
	--package-prefix=*)
		packageprefix=`echo $opt | sed -n 's/--package-prefix=\(.*\)/\1/p'`
		;;

        --bindir=*)
                bindir=`echo $opt | sed -n 's/--bindir=\(.*\)/\1/p'`
                ;;
	--docdir=*)
		docdir=`echo $opt | sed -n 's/--docdir=\(.*\)/\1/p'`
		;;
	--includedir=*)
		includedir=`echo $opt | sed -n 's/--includedir=\(.*\)/\1/p'`
		;;
	--libdir=*)
		libdir=`echo $opt | sed -n 's/--libdir=\(.*\)/\1/p'`
		;;
	--make=*)
	        MAKE=`echo $opt | sed -n 's/--make=\(.*\)/\1/p'`
		;;
	--mandir=*)
		mandir=`echo $opt | sed -n 's/--mandir=\(.*\)/\1/p'`
		;;
	--sharedir=*)
		sharedir=`echo $opt | sed -n 's/--sharedir=\(.*\)/\1/p'`
		;;

	--glib-config=*)
	        GLIB_CONFIG=`echo $opt | sed -n 's/--glib-config=\(.*\)/\1/p'`
		;;
	--gtk-config=*)
	        GTK_CONFIG=`echo $opt | sed -n 's/--gtk-config=\(.*\)/\1/p'`
		;;
	--pkg-config=*)
	        PKG_CONFIG=`echo $opt | sed -n 's/--pkg-config=\(.*\)/\1/p'`
		;;
	--xmms-config=*)
	        XMMS_CONFIG=`echo $opt | sed -n 's/--xmms-config=\(.*\)/\1/p'`
		;;
	--xmms-plugin-dir=*)
		xmmsplugindir=`echo $opt | sed -n 's/--xmms-plugin-dir=\(.*\)/\1/p'`
		;;
	--bmp-plugin-dir=*)
		bmpplugindir=`echo $opt | sed -n 's/--bmp-plugin-dir=\(.*\)/\1/p'`
		;;
	--mymods=*)
		mymods=`echo $opt | sed -n 's/--mymods=\(.*\)/\1/p'`
		mod=1
		;;

	--with-xmms)
		usexmms="yes"
		;;
	--without-xmms)
		usexmms="no"
		;;
	--with-bmp)
		usebmp="yes"
		;;
	--without-bmp)
		usebmp="no"
		;;

	--with-alsa)
		FORCEDAUDIOTARGET="ALSA"
		disablealsa="no"
		;;
	--without-alsa)
		disablealsa="yes"
		;;

	--with-null)
		FORCEDAUDIOTARGET="NULL"
		;;

	--with-oss)
		FORCEDAUDIOTARGET="OSS"
		disableoss="no"
		;;
	--without-oss)
		disableoss="yes"
		;;

	--with-ao)
		FORCEDAUDIOTARGET="AO"
		disableao="no"
		;;
	--without-ao)
		disableao="yes"
		;;

	--with-sdl)
		FORCEDAUDIOTARGET="SDL"
		disablesdl="no"
		;;
	--without-sdl)
		disablesdl="yes"
		;;

	--interaction)
		interaction="yes"
		;;
	--no-interaction)
		interaction="nooo"
		;;
        --user)
		user="yes"
		;;
	--debug)
		debug_flags="-g"
		;;
	--help)
		echo
		echo "Usage:"
		echo
		echo "Installation control:"
                echo " --user           Install the program completely to the home directory"
		echo "                  for _this_ user (no root privileges needed for installation)"
                echo " --prefix=path    Install program under 'path'"
	        echo " --package-prefix=path  File installation prefix (for package maintainers)"
		echo " --make=exe             Use 'exe' as the make command"
		echo " --bindir=dir           Install executables into this directory"
		echo " --docdir=dir           Install documentation into this directory"
		echo " --includedir=dir       Add this directory to compilation include path"
		echo " --mandir=dir           Install man page to this directory"
		echo " --libdir=dir           Add this dircetory to linking path"
		echo " --sharedir=dir         Install UADE data files into this directory"
		echo
		echo "Plugin control:"
		echo " --with-xmms            Compile XMMS plugin"
		echo " --without-xmms         Don't compile XMMS plugin"
		echo " --xmms-plugin-dir=dir  The XMMS input plugin is installed into this directory"
		echo " --with-bmp             Compile BeepMP plugin"
		echo " --without-bmp          Don't compile BeepMP plugin"
		echo " --bmp-plugin-dir=dir   The BeepMP input plugin is installed into this directory"
		echo
		echo "Pwrap control:"
		echo " --mymods=path        The default module directory for pwrap tk interface"
		echo "                      users. Default directory is the homedir."
		echo "Sound target control:"
		echo " --with-alsa          Use ALSA sound output"
		echo " --without-alsa       Do not use ALSA sound output"
		echo " --with-null          No sound output (just for testing)"
		echo " --with-oss           Use OSS sound output"
		echo " --without-oss        Do not use OSS sound output"
		echo " --with-ao            Use libao sound output"
		echo " --without-ao         Do not use libao sound output"
		echo " --with-sdl           Use SDL sound output"
		echo " --without-sdl        Do not use SDL sound output"
		echo
		echo "Library control:"
		echo " --glib-config=exe    Use 'exe' as glib-config executable"
		echo " --gtk-config=exe     Use 'exe' as gtk-config executable"
		echo " --pkg-config=exe     Use 'exe' as pkg-config executable"
		echo
		exit
		;;
	--x-libraries=*)
		;;
	--x-includes=*)
		;;
	*)
		echo "illegal option $opt"
		exit
		;;
	esac
done

if test -z "$PKG_CONFIG" ; then
    PKG_CONFIG="pkg-config"
fi
"$PKG_CONFIG" --version 2> /dev/null > /dev/null || PKG_CONFIG=""

if test -z "$XMMS_CONFIG" ; then
    XMMS_CONFIG="xmms-config"
fi

if test "$usexmms" = "auto" ; then
    if test -x "`which $XMMS_CONFIG`" ; then
	usexmms="yes"
    else
	usexmms="no"
	echo "Couldn't find xmms-config => not compiling xmms-plugin!"
    fi
fi

if test "$usebmp" = "auto" ; then
    usebmp="no"
    if test -n "$PKG_CONFIG" ; then
	if test -n "`$PKG_CONFIG bmp --libs 2>/dev/null`"; then
	    usebmp="yes"
	fi
    fi
fi

cp configure.h config.h
chmod u+w config.h

# set kernel type (such as AmigaOS) with environment variable $UADEKERNEL
OS="$UADEKERNEL"
if test -z "$OS" ; then
    OS="`uname`"
fi

UNIXSHELL="yes"
AUDIOTARGET="NULL"
OSSOURCE="uade-os-unix.c"
OSHEADER="uade-os-unix.h"
LIBTOOL="libtool"

if test -n "$OS" && test "$OS" = "SunOS"; then
    echo
    echo "Configuring for Solaris." 
    AUDIOTARGET="SOLARIS"
elif test -n "$OS" && test "$OS" = "IRIX"; then
    echo
    echo "Configuring for IRIX."
    AUDIOTARGET="SGI"
elif test -n "$OS" && test "$OS" = "MorphOS"; then
    echo
    echo "Configuring for MorphOS / AmigaOS."
    AUDIOTARGET="AHI"
    OSSOURCE="uade-os-amiga.c"
    OSHEADER="uade-os-amiga.h"
    ARCHFLAGS="$ARCHFLAGS -noixemul"
    UNIXSHELL="no"
    usexmms="no"
elif test -n "$OS" && test "$OS" = "AmigaOS"; then
    echo
    echo "Configuring for AmigaOS 4."
    AUDIOTARGET="AHI"
    OSSOURCE="uade-os-amiga.c"
    OSHEADER="uade-os-amiga.h"
    ARCHFLAGS="$ARCHFLAGS"
    UNIXSHELL="no"
    usexmms="no"
elif test -n "$OS" && test "$OS" = "Darwin"; then
    echo
    echo "Configuring for MacOSX"
    AUDIOTARGET="COREAUDIO"
    ARCHFLAGS="$ARCHFLAGS -no-cpp-precomp"
    echo "#define HAVE_MACOSX" >> config.h
    LIBTOOL="glibtool"
    if test "$interaction" != "nooo"; then
        interaction="yes"
    fi
elif test -n "$OS" && test "$OS" = "Linux"; then
    if test "$interaction" != "nooo"; then
        interaction="yes"
    fi
    AUDIOTARGET="ALSA"
elif test -n "$OS" && test "$OS" = "OpenBSD"; then
    if test "$interaction" != "nooo"; then
        interaction=yes
    fi
    AUDIOTARGET="SOLARIS"
fi

if test "$disablealsa" = "yes" && test "$AUDIOTARGET" = "ALSA"; then
    AUDIOTARGET="NULL"
fi
if test "$disableoss" = "yes" && test "$AUDIOTARGET" = "OSS"; then
    AUDIOTARGET="NULL"
fi
if test "$disablesdl" = "yes" && test "$AUDIOTARGET" = "SDL"; then
    AUDIOTARGET="NULL"
fi
if test "$disableao" = "yes" && test "$AUDIOTARGET" = "AO"; then
    AUDIOTARGET="NULL"
fi


# Automatic checking for ALSA version 1.0.x. Fall back to OSS sound on
# failure.
if test "$AUDIOTARGET" = "ALSA"; then
 cat > test.c <<EOF
#include <alsa/asoundlib.h>
int main(void) { return (!(SND_LIB_MAJOR==1 && SND_LIB_MINOR==0)); }
EOF
$CC -Wall -O2 -o testexe test.c 2>/dev/null || AUDIOTARGET="OSS"
fi

if test -n "$FORCEDAUDIOTARGET"; then
    AUDIOTARGET="$FORCEDAUDIOTARGET"
    echo "Forcing sound output to be $AUDIOTARGET"
fi

AUDIOFLAGS=""
AUDIOLIBS=""

if test "$AUDIOTARGET" = "SOLARIS"; then
    SOUNDSOURCE="sd-sound-solaris.c"
    SOUNDHEADER="sd-sound-generic.h"
elif test "$AUDIOTARGET" = "SGI"; then
    AUDIOLIBS="$UADEEXTRALIBS -lgen -laudio"
    SOUNDSOURCE="sd-sound-sgi.c"
    SOUNDHEADER="sd-sound-sgi.h"
elif test "$AUDIOTARGET" = "AHI"; then
    SOUNDSOURCE="sd-sound-ahi.c"
    SOUNDHEADER="sd-sound-ahi.h"
elif test "$AUDIOTARGET" = "ALSA"; then
    AUDIOFLAGS=""
    AUDIOLIBS="-lasound"
    if test -n "$PKG_CONFIG" ; then
	AUDIOFLAGS="`"$PKG_CONFIG" alsa --cflags`" || AUDIOFLAGS=""
	AUDIOLIBS="`"$PKG_CONFIG" alsa --libs`" || AUDIOLIBS="-lasound"
    fi
    SOUNDSOURCE="sd-sound-alsa.c"
    SOUNDHEADER="sd-sound-alsa.h"
elif test "$AUDIOTARGET" = "OSS"; then
    SOUNDHEADER="sd-sound-generic.h"
    SOUNDSOURCE="sd-sound-oss.c"
elif test "$AUDIOTARGET" = "SDL"; then
    AUDIOFLAGS=`sdl-config --cflags`
    AUDIOLIBS=`sdl-config --libs`
    SOUNDSOURCE="sd-sound-sdl.c"
    SOUNDHEADER="sd-sound-sdl.h"
elif test "$AUDIOTARGET" = "AO"; then
    AUDIOFLAGS=""
    AUDIOLIBS="-lao"
    if test -n "$PKG_CONFIG" ; then
	AUDIOFLAGS="`"$PKG_CONFIG" ao --cflags`" || AUDIOFLAGS=""
	AUDIOLIBS="`"$PKG_CONFIG" ao --libs`" || AUDIOLIBS="-lao"
    fi
    SOUNDSOURCE="sd-sound-ao.c"
    SOUNDHEADER="sd-sound-ao.h"
elif test "$AUDIOTARGET" = "COREAUDIO"; then
    AUDIOLIBS="-framework coreaudio"
    SOUNDSOURCE="sd-sound-coreaudio.c"
    SOUNDHEADER="sd-sound-coreaudio.h"
else
    SOUNDSOURCE="sd-sound-null.c"
    SOUNDHEADER="sd-sound-null.h"
fi

echo "#include \"$SOUNDSOURCE\"" > src/sd-sound.c;
echo "#include \"$SOUNDHEADER\"" > src/sd-sound.h;
echo "#include \"$OSSOURCE\"" > osdep/uade-os.c;
echo "#include \"$OSHEADER\"" > osdep/uade-os.h;

MACHINE="`uname -m`"
if test "$MACHINE" = "parisc"; then
    ARCHFLAGS="$ARCHFLAGS -ffunction-sections"
fi

PERLDIR="`which perl`"
INSTALLTEST="`which ginstall`"

if test ! -x "$INSTALLTEST"; then
 if test -n "$OS" && test "$OS" = "SunOS"; then
  echo
  echo "Warning: ginstall not found, install might not work."
  echo "If you do have ginstall make sure it is in your path."
  echo
  INSTALLTEST="`which install`"
 else
  INSTALLTEST="`which install`"
 fi
fi

if test -z "$MAKE" ; then
    if test -n "$OS" && test "$OS" = "MorphOS"; then
	MAKE="make"
    else
	MAKE="`which gmake`"
	if test ! -x "$MAKE"; then
	    MAKE="`which make`"
	fi
	if test ! -x "$MAKE"; then
	    echo FATAL: cannot find make
	    exit 1
	fi
    fi
fi

if test "$user" = "no"; then
    # global installation
    if test -z "$prefix"; then
	prefix="/usr/local"
    fi
    uadedatadir="$prefix/share/uade"
    if test -z "$bindir"; then
	bindir="$prefix/bin"
    fi
    if test "$usexmms" = "yes"; then
	xmmsplugin=`$XMMS_CONFIG --input-plugin-dir`
    fi
    if test "$usebmp" = "yes"; then
	bmpplugin=`$PKG_CONFIG bmp --variable=input_plugin_dir`
    fi
    if test -z "$docdir"; then
	docdir="$prefix/share/doc/uade-$VERSION"
    fi
    if test -z "$mandir"; then
	mandir="$prefix/share/man/man1"
    fi
else
    # user installation
    if test -z "$prefix"; then
	prefix="$HOME/.uade"
    fi
    uadedatadir="$prefix"
    if test -z "$bindir"; then
	bindir="$prefix"
    fi
    xmmsplugin="$HOME/.xmms/Plugins/Input"
    bmpplugin="$HOME/.bmp/Plugins/Input"
    if test -z "$docdir"; then
	docdir="$prefix/uade-$VERSION"
    fi
    if test -z "$mandir"; then
	mandir="$prefix/man/man1"
    fi
fi

# --xmms-plugin-dir overrides automatically detected xmms plugin directory
if test "$xmmsplugindir" != "auto"; then
    xmmsplugin=$xmmsplugindir
fi

# --bmp-plugin-dir overrides automatically detected bmp plugin directory
if test "$bmpplugindir" != "auto"; then
    bmpplugin=$bmpplugindir
fi

if test -z "$libdir" ; then
    libdir="$prefix/lib"
fi
if test -z "$includedir" ; then
    includedir="$prefix/include"
fi
if test -n "$sharedir"; then
    uadedatadir="$sharedir"
fi

LHA="`which lha`"
if test -x "$LHA"; then
    LHAREPLY="yes"
else
    echo
    echo "LHA archiver not found: UADE won't take advantage of lha archives"
    echo "until 'lha' executable is placed into command execution path."
    echo "You do not need to reinstall and/or recompile UADE if you later add"
    echo "lha to command execution path.."
    echo
    LHAREPLY="no"
fi

cd osdep
echo "#include <string.h>" > strl.c
if test -n "$OS" && test "$OS" != "MorphOS"; then
    $CC -o strltest strltest.c 2>/dev/null || cp strlrep.c strl.c
fi
cd ..

echo "UADE and frontends will be installed to : $bindir"
echo "Data directory will be                  : $uadedatadir"
if test "$usexmms" = "yes"; then
    echo "XMMS plugin                             : yes"
    echo "XMMS plugin directory will be           : $xmmsplugin"
else
    echo "XMMS plugin                             : no"
fi
if test "$usebmp" = "yes"; then
    echo "BeepMP plugin                           : yes"
    echo "BeepMP plugin directory will be         : $bmpplugin"
else
    echo "BeepMP plugin                           : no"
fi
echo "Documentation directory will be         : $docdir"
echo "Man directory will be                   : $mandir"
if test "$mod" = "1"; then
    echo "Default module dir for pwrap.pl will be : $mymods"
else
    echo "Default module dir for pwrap.pl will be : Users \$HOME"
fi
echo "Installer that will be used             : $INSTALLTEST"
echo "Make that will be used during the build : $MAKE"
echo "Sound output with                       : $AUDIOTARGET"
echo "Use LHA                                 : $LHAREPLY"
echo "Using GNOME / KDE                       : (check ./contrib/uade-launcher)"
echo "Using some totally useless feature      : no"
echo


sed -e "s|{MAKE}|$MAKE|" \
    -e "s|{DATADIR}|$uadedatadir|" \
    -e "s|{BINDIR}|$bindir|" \
    -e "s|{DOCDIR}|$docdir|" \
    -e "s|{MANDIR}|$mandir|" \
    -e "s|{WITH_XMMS}|$usexmms|" \
    -e "s|{WITH_BEEP}|$usebmp|" \
    -e "s|{PACKAGEPREFIX}|$packageprefix|" \
    Makefile.in > Makefile

sed -e "s|{UADEDATADIR}|$uadedatadir/|" \
    -e "s|{UADEEXENAME}|$bindir/uade|" \
    -e "s|{UADEVERSION}|$VERSION|" \
    osdep/uadeconfig-unix.h.in > osdep/uadeconfig.h

if test "$usexmms" = "yes"; then
    if test -z "$GLIB_CONFIG" ; then
	GLIB_CONFIG="glib-config"
    fi
    if test -z "$GTK_CONFIG" ; then
	GTK_CONFIG="gtk-config"
    fi

    GLIBFLAGS=`$GLIB_CONFIG --cflags`
    GLIBLIBS=`$GLIB_CONFIG --libs`
    GTKFLAGS=`$GTK_CONFIG --cflags`
    GTKLIBS=`$GTK_CONFIG --libs`
    XMMSFLAGS=`$XMMS_CONFIG --cflags`
    XMMSLIBS=`$XMMS_CONFIG --libs`

    INCLUDEFLAG="-I$includedir"
    LIBFLAG="-L$libdir"

    sed -e "s|{INSTALLER}|$INSTALLTEST|" \
	-e "s|{GLIBFLAGS}|$GLIBFLAGS|" -e "s|{GLIBLIBS}|$GLIBLIBS|" \
	-e "s|{GTKFLAGS}|$GTKFLAGS|" -e "s|{GTKLIBS}|$GTKLIBS|" \
	-e "s|{XMMSFLAGS}|$XMMSFLAGS|" -e "s|{XMMSLIBS}|$XMMSLIBS|" \
	-e "s|{INCLUDEFLAG}|$INCLUDEFLAG|" -e "s|{LIBFLAG}|$LIBFLAG|" \
	-e "s|{PLUGINDIR}|$xmmsplugin|" \
	-e "s|{PACKAGEPREFIX}|$packageprefix|" \
	-e "s|{ARCHFLAGS}|$ARCHFLAGS|" -e "s|{ARCHLIBS}|$ARCHLIBS|" \
	-e "s|{CC}|$CC|" \
	-e "s|{VERSION}|$VERSION|" \
	-e "s|{DEBUGFLAGS}|$debug_flags|" \
	-e "s|{LIBTOOL}|$LIBTOOL|" \
	plugindir/xmms/Makefile.in > plugindir/xmms/Makefile
fi

if test "$usebmp" = "yes"; then
    GLIBFLAGS=`$PKG_CONFIG glib-2.0 --cflags`
    GLIBLIBS=`$PKG_CONFIG glib-2.0 --libs`
    GTKFLAGS=`$PKG_CONFIG gtk+-2.0 --cflags`
    GTKLIBS=`$PKG_CONFIG gtk+-2.0 --libs`
    BMPFLAGS=`$PKG_CONFIG bmp --cflags`
    BMPLIBS=`$PKG_CONFIG bmp --libs`

    INCLUDEFLAG="-I$includedir"
    LIBFLAG="-L$libdir"

    sed -e "s|{INSTALLER}|$INSTALLTEST|" \
	-e "s|{GLIBFLAGS}|$GLIBFLAGS|" -e "s|{GLIBLIBS}|$GLIBLIBS|" \
	-e "s|{GTKFLAGS}|$GTKFLAGS|" -e "s|{GTKLIBS}|$GTKLIBS|" \
	-e "s|{BMPFLAGS}|$BMPFLAGS|" -e "s|{BMPLIBS}|$BMPLIBS|" \
	-e "s|{PLUGINDIR}|$bmpplugin|" \
	-e "s|{INCLUDEFLAG}|$INCLUDEFLAG|" -e "s|{LIBFLAG}|$LIBFLAG|" \
	-e "s|{PACKAGEPREFIX}|$packageprefix|" \
	-e "s|{ARCHFLAGS}|$ARCHFLAGS|" -e "s|{ARCHLIBS}|$ARCHLIBS|" \
	-e "s|{CC}|$CC|" \
	-e "s|{VERSION}|$VERSION|" \
	-e "s|{DEBUGFLAGS}|$debug_flags|" \
	-e "s|{LIBTOOL}|$LIBTOOL|" \
	plugindir/beepmp/Makefile.in > plugindir/beepmp/Makefile
fi

sed -e "s|{UADEDATADIR}|$uadedatadir|" \
    -e "s|{PERLDIR}|$PERLDIR|" \
    -e "s|{MYMODDIR}|$mymods|" \
    -e "s|{BINDIR}|$bindir|" \
    frontends/pwrap/pwrap.pl.in >pwrap.pl
chmod 755 pwrap.pl
sed -e "s|{UADE_BINARY}|$bindir/uade|" frontends/euade/euade.in >euade
chmod 755 euade

sed -e "s|{ARCHFLAGS}|$ARCHFLAGS|" -e "s|{ARCHLIBS}|$ARCHLIBS|" \
    -e "s|{AUDIOFLAGS}|$AUDIOFLAGS|" -e "s|{AUDIOLIBS}|$AUDIOLIBS|" \
    -e "s|{CC}|$CC|" \
    -e "s|{SOUNDSOURCE}|$SOUNDSOURCE|" -e "s|{SOUNDHEADER}|$SOUNDHEADER|" \
    -e "s|{DEBUGFLAGS}|$debug_flags|" \
  src/Makefile.in > src/Makefile

if test "$UNIXSHELL" = "yes"; then
    echo "#define HAVE_UNIX_SHELL" >> config.h
    echo "#include \"unix-shell.c\"" > src/local-slave.c
    echo "#include \"unix-shell.h\"" > src/local-slave.h
    echo "" >> src/Makefile
    echo "local-slave.o: local-slave.c local-slave.h unix-shell.c unix-shell.h" >> src/Makefile
    echo "" >> src/Makefile
elif test -n "$OS" && test "$OS" = "MorphOS"; then
    echo "#define HAVE_AMIGA_SHELL" >> config.h
    echo "#include \"amiga-shell.c\"" > src/local-slave.c
    echo "#include \"amiga-shell.h\"" > src/local-slave.h
    echo "" >> src/Makefile
    echo "local-slave.o: local-slave.c local-slave.h amiga-shell.c amiga-shell.h" >> src/Makefile
    echo "" >> src/Makefile
elif test -n "$OS" && test "$OS" = "AmigaOS"; then
    echo "#define HAVE_AMIGA_SHELL" >> config.h
    echo "#include \"amiga-shell.c\"" > src/local-slave.c
    echo "#include \"amiga-shell.h\"" > src/local-slave.h
    echo "" >> src/Makefile
    echo "local-slave.o: local-slave.c local-slave.h amiga-shell.c amiga-shell.h" >> src/Makefile
    echo "" >> src/Makefile
else
    echo "" > src/local-slave.c
    echo "" > src/local-slave.h
    echo "" >> src/Makefile
    echo "local-slave.o: local-slave.c local-slave.h" >> src/Makefile
    echo "" >> src/Makefile
fi

if test "$usexmms" = "yes" -o "$usebmp" = "yes"; then
    echo "#define HAVE_XMMS_SLAVE" >> config.h
    echo "#include \"xmms-slave.c\"" > src/remote-slave.c
    echo "#include \"xmms-slave.h\"" > src/remote-slave.h
    echo "" >> src/Makefile
    echo "remote-slave.o: remote-slave.c remote-slave.h xmms-slave.c xmms-slave.h" >> src/Makefile
    echo "" >> src/Makefile
else
    echo "" > src/remote-slave.c
    echo "" > src/remote-slave.h
    echo "" >> src/Makefile
    echo "remote-slave.o: remote-slave.c remote-slave.h" >> src/Makefile
    echo "" >> src/Makefile
fi

if test "$interaction" = "yes"; then
    echo "#define HAVE_UNIX_SHELL_INT" >> config.h
    echo "#include \"unix-shell-int.c\"" > src/interaction.c
    echo "#include \"unix-shell-int.h\"" > src/interaction.h
    echo "" >> src/Makefile
    echo "interaction.o: interaction.c interaction.h unix-shell-int.c unix-shell-int.h" >> src/Makefile
    echo "" >> src/Makefile
else
    echo "" > src/interaction.c
    echo "" > src/interaction.h
    echo "" >> src/Makefile
    echo "interaction.o: interaction.c interaction.h" >> src/Makefile
    echo "" >> src/Makefile
fi
@


1.133
log
@*** empty log message ***
@
text
@d232 1
a232 1
	if test -n "`$PKG_CONFIG bmp --libs`"; then
d286 3
@


1.132
log
@*** empty log message ***
@
text
@d595 1
@


1.131
log
@*** empty log message ***
@
text
@d251 1
d282 1
a282 1
    AUDIOTARGET="SDL"
a283 1
    ARCHLIBS="$ARCHLIBS -lpoll"
d285 1
d366 4
d569 1
@


1.130
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=1.02
d241 5
a245 1
OS="`uname`"
d269 9
d622 7
@


1.129
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=1.01
@


1.128
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=1.00
@


1.127
log
@*** empty log message ***
@
text
@a382 4
    MAKE="`which gmake`"
    if test ! -x "$MAKE"; then
	MAKE="`which make`"
    fi
d385 5
a389 5
    elif test -n "$OS" && test "$OS" = "Darwin"; then
	MAKE="make"
    fi
    # work around for MorphOS which can't handle: test ! -x "$FOO"
    if test "$OS" != "MorphOS"; then
@


1.126
log
@*** empty log message ***
@
text
@a37 1
MAKE=""
d163 1
a166 1
		echo " --make=exe             Use 'exe' as the make command"
@


1.125
log
@*** empty log message ***
@
text
@d38 1
d61 3
d167 2
a169 1
		echo " --mandir=dir           Install man page to this directory"
d383 2
a384 11
MAKE="`which gmake`"
if test ! -x "$MAKE"; then
    MAKE="`which make`"
fi
if test -n "$OS" && test "$OS" = "MorphOS"; then
    MAKE="make"
elif test -n "$OS" && test "$OS" = "Darwin"; then
    MAKE="make"
fi
# work around for MorphOS which can't handle: test ! -x "$FOO"
if test "$OS" != "MorphOS"; then
d386 13
a398 2
        echo FATAL: cannot find make
        exit 1
@


1.124
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=0.91
@


1.123
log
@*** empty log message ***
@
text
@d184 2
d210 2
d226 5
a230 4
    if test -n "`$PKG_CONFIG bmp --libs`"; then
	usebmp="yes"
    else
	usebmp="no"
d289 4
d323 1
d325 4
a339 1
    echo "FIX TO USE PKG-CONFIG WITH AO"
d342 4
@


1.122
log
@*** empty log message ***
@
text
@d35 1
d123 8
d325 6
@


1.121
log
@*** empty log message ***
@
text
@d32 3
d104 1
d106 4
d113 1
d116 1
d118 4
d124 4
d129 1
d171 1
d174 1
d176 1
d266 10
@


1.120
log
@*** empty log message ***
@
text
@d344 1
a344 1
	bmpplugin=`$PKG_CONFIG bmp --variable=plugin_dir`
a494 1
    PLUGINDIR=$bmpplugin
d503 1
a503 1
	-e "s|{PLUGINDIR}|$PLUGINDIR|" \
@


1.119
log
@*** empty log message ***
@
text
@d76 1
a76 1
		xmmsinputplugindir=`echo $opt | sed -n 's/--xmms-plugin-dir=\(.*\)/\1/p'`
@


1.118
log
@*** empty log message ***
@
text
@d251 1
a251 1
$(CC) -Wall -O2 -o testexe test.c 2>/dev/null || AUDIOTARGET="OSS"
d407 1
a407 1
    $(CC) -o strltest strltest.c 2>/dev/null || cp strlrep.c strl.c
@


1.117
log
@*** empty log message ***
@
text
@d251 1
a251 1
gcc -Wall -O2 -o testexe test.c 2>/dev/null || AUDIOTARGET="OSS"
d407 1
a407 1
    gcc -o strltest strltest.c 2>/dev/null || cp strlrep.c strl.c
@


1.116
log
@*** empty log message ***
@
text
@d186 1
a186 1
	echo "Couldn't find xmms-plugin => not compiling xmms-plugin!"
@


1.115
log
@*** empty log message ***
@
text
@a85 4
	--no-plugin)
		usexmms="no"
		usebmp="no"
		;;
d126 2
d131 17
a147 8
	        echo " --package-prefix=path    File installation prefix (for package maintainers)"
		echo " --no-plugin              Don't compile XMMS or BeepMP plugin"
		echo " --with-xmms              Compile XMMS plugin"
		echo " --without-xmms           Don't compile XMMS plugin"
		echo " --with-bmp               Compile BeepMP plugin"
		echo " --without-bmp            Don't compile BeepMP plugin"
		echo " --xmms-plugin-dir=dir   The XMMS input plugin is installed into this directory"
		echo " --bmp-plugin-dir=dir    The BeepMP input plugin is installed into this directory"
d150 1
d152 1
a152 1
		echo " --with-null          Use no sound output (just for testing)"
d155 2
@


1.114
log
@*** empty log message ***
@
text
@a24 1
prefix="/usr/local"
d29 2
a30 2
xmmsplugindir="automatic"
bmpplugindir="automatic"
d40 6
a45 2
        --binprefix=*)
                binprefix=`echo $opt | sed -n 's/--binprefix=\(.*\)/\1/p'`
d47 2
a48 2
	--docprefix=*)
		docprefix=`echo $opt | sed -n 's/--docprefix=\(.*\)/\1/p'`
d50 2
a51 2
	--package-prefix=*)
		packageprefix=`echo $opt | sed -n 's/--package-prefix=\(.*\)/\1/p'`
d56 2
a57 2
	--includedir=*)
		includedir=`echo $opt | sed -n 's/--includedir=\(.*\)/\1/p'`
d62 1
d323 3
d327 3
a329 1
    bindir="$prefix/bin"
d336 6
a341 2
    docdir="$prefix/doc/uade-$VERSION"
    mandir="$prefix/share/man/man1"
d344 3
a346 1
    prefix="$HOME/.uade"
d348 3
a350 1
    bindir="$prefix"
d353 6
a358 2
    docdir="$prefix/uade-$VERSION"
    mandir="$prefix/man/man1"
d362 1
a362 1
if test "$xmmsplugindir" != "automatic"; then
d367 1
a367 1
if test "$bmpplugindir" != "automatic"; then
d377 2
a378 2
if test -z "$sharedir" ; then
    sharedir="$prefix/share"
d431 2
a432 2
sed -e "s|{DATADIR}|$uadedatadir|" \
    -e "s|{MAKE}|$MAKE|" \
@


1.113
log
@*** empty log message ***
@
text
@d29 3
a31 3
usebeep="auto"
xmmsinputplugindir="automatic"
beepinputplugindir="automatic"
d71 2
a72 2
	--xmms-input-plugin-dir=*)
		xmmsinputplugindir=`echo $opt | sed -n 's/--xmms-input-plugin-dir=\(.*\)/\1/p'`
d74 2
a75 5
	--beep-config=*)
	        BEEP_CONFIG=`echo $opt | sed -n 's/--beep-config=\(.*\)/\1/p'`
		;;
	--beep-input-plugin-dir=*)
		beepinputplugindir=`echo $opt | sed -n 's/--beep-input-plugin-dir=\(.*\)/\1/p'`
d84 1
a84 1
		usebeep="no"
d93 1
a93 1
		usebeep="yes"
d96 1
a96 1
		usebeep="no"
d135 2
a136 2
		echo " --xmms-input-plugin-dir=dir   The XMMS input plugin is installed into this directory"
		echo " --beep-input-plugin-dir=dir   The XMMS input plugin is installed into this directory"
d163 3
d168 1
a168 1
    if test -x "`which xmms-config`" ; then
d176 3
a178 3
if test "$usebeep" = "auto" ; then
    if test -x "`which beep-config`" ; then
	usebeep="yes"
d180 1
a180 5
	if test -n "`$PKG_CONFIG bmp --libs`"; then
	    usebeep="yes"
	else
	    usebeep="no"
	fi
d322 1
a322 1
	xmmsplugin=`xmms-config --input-plugin-dir`
d324 2
a325 2
    if test "$usebeep" = "yes"; then
	beepplugin=`$PKG_CONFIG bmp --variable=plugin_dir`
d335 1
a335 1
    beepplugin="$HOME/.bmp/Plugins/Input"
d340 3
a342 2
if test "$xmmsinputplugindir" != "automatic"; then
    xmmsplugin=$xmmsinputplugindir
d345 3
a347 2
if test "$beepinputplugindir" != "automatic"; then
    beepplugin=$beepinputplugindir
d388 1
a388 1
if test "$usebeep" = "yes"; then
d390 1
a390 1
    echo "BeepMP plugin directory will be         : $beepplugin"
d416 1
a416 1
    -e "s|{WITH_BEEP}|$usebeep|" \
a431 3
    if test -z "$XMMS_CONFIG" ; then
	XMMS_CONFIG="xmms-config"
    fi
d457 1
a457 1
if test "$usebeep" = "yes"; then
d464 1
a464 1
    PLUGINDIR=$beepplugin
d521 1
a521 1
if test "$usexmms" = "yes" -o "$usebeep" = "yes"; then
@


1.112
log
@*** empty log message ***
@
text
@d95 1
a95 1
	--with-beep)
d98 1
a98 1
	--without-beep)
d136 2
a137 2
		echo " --with-beep               Compile BeepMP plugin"
		echo " --without-beep            Don't compile BeepMP plugin"
d163 4
d168 6
a173 6
 if test -x "`which xmms-config`" ; then
  usexmms="yes"
 else
  usexmms="no"
  echo "Couldn't find xmms-plugin => not compiling xmms-plugin!"
 fi
d177 9
a185 6
 if test -x "`which beep-config`" ; then
  usebeep="yes"
 else
  usebeep="no"
  echo "Couldn't find beep-config => not compiling BeepMP-plugin!"
 fi
a187 1

d329 1
a329 1
	beepplugin=`beep-config --input-plugin-dir`
a462 3
    if test -z "$PKG_CONFIG" ; then
	PKG_CONFIG="pkg-config"
    fi
@


1.111
log
@*** empty log message ***
@
text
@d457 9
a465 6
    GLIBFLAGS=`pkg-config glib-2.0 --cflags`
    GLIBLIBS=`pkg-config glib-2.0 --libs`
    GTKFLAGS=`pkg-config gtk+-2.0 --cflags`
    GTKLIBS=`pkg-config gtk+-2.0 --libs`
    BMPFLAGS=`pkg-config beep --cflags`
    BMPLIBS=`pkg-config beep --libs`
@


1.110
log
@*** empty log message ***
@
text
@d329 3
a331 3
    prefix="$HOME/.xmms"
    uadedatadir="$prefix/uade"
    bindir="$prefix/uade"
d334 2
a335 2
    docdir="$prefix/uade/uade-$VERSION"
    mandir="$prefix/uade/man/man1"
d414 1
a414 1
    Makefile.in >Makefile
d416 1
a416 4
sed -e "s|{SCORENAME}|$uadedatadir/score|" \
    -e "s|{UAERCNAME}|$uadedatadir/uaerc|" \
    -e "s|{FORMATSNAME}|$uadedatadir/players/uadeformats|" \
    -e "s|{UADEDATADIR}|$uadedatadir/|" \
@


1.109
log
@*** empty log message ***
@
text
@d411 2
a412 2
    -e "s|{USEXMMS}|$usexmms|" \
    -e "s|{USEBEEP}|$usebeep|" \
@


1.108
log
@*** empty log message ***
@
text
@d456 1
a456 1
	plugindir/Makefile.in > plugindir/Makefile
@


1.107
log
@*** empty log message ***
@
text
@d523 1
a523 16
if test "$usexmms" = "yes"; then
    echo "#define HAVE_XMMS_SLAVE" >> config.h
    echo "#include \"xmms-slave.c\"" > src/remote-slave.c
    echo "#include \"xmms-slave.h\"" > src/remote-slave.h
    echo "" >> src/Makefile
    echo "remote-slave.o: remote-slave.c remote-slave.h xmms-slave.c xmms-slave.h" >> src/Makefile
    echo "" >> src/Makefile
else
    echo "" > src/remote-slave.c
    echo "" > src/remote-slave.h
    echo "" >> src/Makefile
    echo "remote-slave.o: remote-slave.c remote-slave.h" >> src/Makefile
    echo "" >> src/Makefile
fi

if test "$usebeep" = "yes"; then
@


1.106
log
@*** empty log message ***
@
text
@d29 1
a29 1
usebmp="auto"
d31 1
d71 8
a78 2
	--input-plugin-dir=*)
		xmmsinputplugindir=`echo $opt | sed -n 's/--input-plugin-dir=\(.*\)/\1/p'`
d87 1
a87 1
		usebmp="no"
d95 2
a96 2
	--with-bmp)
		usebmp="yes"
d98 2
a99 2
	--without-bmp)
		usebmp="no"
d133 1
a133 1
		echo " --no-plugin              Don't compile XMMS or BMP plugin"
d136 4
a139 3
		echo " --with-bmp               Compile BMP plugin"
		echo " --without-bmp            Don't compile BMP plugin"
		echo " --input-plugin-dir=dir   The XMMS input plugin is installed into this directory"
d172 10
d320 4
a323 1
	plugin=`xmms-config --input-plugin-dir`
d332 2
a333 1
    plugin="$HOME/.xmms/Plugins/Input"
d339 5
a343 1
    plugin=$xmmsinputplugindir
d379 2
a380 1
    echo "XMMS plugin directory will be           : $plugin"
d382 7
a388 1
    echo "XMMS plugin directory will be           : nowhere"
d401 1
a401 1
echo "Using GNOME / KDE                       : who cares?"
d412 1
d450 1
a450 1
	-e "s|{PLUGINDIR}|$plugin|" \
d459 1
a459 1
if test "$usebmp" = "yes"; then
d462 2
a463 2
    GTKFLAGS=`pkg-config gtk-2.0 --cflags`
    GTKLIBS=`pkg-config gtk-2.0 --libs`
d466 1
a466 1
    PLUGINDIR=`pkg-config beep --input-plugin-dir`
d538 15
@


1.105
log
@*** empty log message ***
@
text
@d29 1
a29 1
usebmp="no"
@


1.104
log
@*** empty log message ***
@
text
@d24 1
d28 1
a28 1
usexmms="yes"
a47 7
		if test "$prefix" = "$HOME/.xmms"; then
			echo
			echo "with --package-prefix you must give a global installation prefix first..."
			echo "example: --prefix=/usr/local --package-prefix=/tmp/foobar"
			echo
			exit
		fi
d77 1
d80 7
d94 1
d114 1
a114 1
		prefix="$HOME/.xmms"
d126 5
a130 1
		echo " --no-plugin              Don't compile or install the XMMS plugin"
d155 5
a159 3
if test "$usexmms" = "yes" ; then
 if test ! -x "`which xmms-config`" ; then
  usexmms=no
d297 2
a298 7
if test "$prefix" = "$HOME/.xmms"; then
    uadedatadir="$prefix/uade"
    bindir="$prefix/uade"
    plugin="$HOME/.xmms/Plugins/Input"
    docdir="$prefix/uade/uade-$VERSION"
    mandir="$prefix/uade/man/man1"
else
a302 2
    else
	plugin="$HOME/.xmms/Plugins/Input"
d306 8
d352 5
a356 1
echo "XMMS plugin directory will be           : $plugin"
d422 1
a422 1
	plugindir/Makefile.in >plugindir/Makefile
@


1.103
log
@*** empty log message ***
@
text
@d28 1
d70 3
d86 6
d133 1
d411 26
@


1.102
log
@*** empty log message ***
@
text
@d192 1
a192 1
if test "$UNIXSHELL" = "yes"; then
@


1.101
log
@*** empty log message ***
@
text
@a215 2
    AUDIOFLAGS=""
    AUDIOLIBS=""
a218 1
    AUDIOFLAGS=""
a222 2
    AUDIOFLAGS=""
    AUDIOLIBS=""
a230 2
    AUDIOFLAGS=""
    AUDIOLIBS=""
@


1.100
log
@*** empty log message ***
@
text
@d400 2
a401 1
	-e "s|{ARCHFLAGS}|$ARCHFLAGS|" \
@


1.99
log
@*** empty log message ***
@
text
@d5 19
d27 4
a30 7
usexmms=yes
xmmsinputplugindir=automatic
FORCEALSA=no
FORCESDL=no
ALSA=no
SDL=no
interaction=no
d80 10
a89 1
		usexmms=no
d92 1
a92 4
		FORCESDL=yes
		;;
	--with-alsa)
		FORCEALSA=yes
d95 1
a95 1
		interaction=yes
d98 1
a98 1
		interaction=nooo
d117 3
a120 1
		echo " --with-alsa          Use ALSA sound output"
d149 3
a151 7
UNIXSHELL=yes
ARCHFLAGS= 
ARCHLIBS=
AUDIOFLAGS=""
AUDIOLIBS=""
SOUNDHEADER="sd-sound-generic.h"
SOUNDSOURCE="sd-sound-oss.c"
a152 1
OSSOURCE="uade-os-unix.c"
d157 1
a157 2
    SOUNDSOURCE="sd-sound-solaris.c"
    SOLARIS=yes
d159 3
a161 6
	echo
	echo "Configuring for IRIX."
	SOUNDSOURCE="sd-sound-sgi.c"
	SOUNDHEADER="sd-sound-sgi.h"
	IRIX=yes
	AUDIOLIBS="$UADEEXTRALIBS -lgen -laudio"
d163 8
a170 9
	echo
	echo "Configuring for MorphOS / AmigaOS."
	SOUNDSOURCE="sd-sound-ahi.c"
	SOUNDHEADER="sd-sound-ahi.h"
	OSSOURCE="uade-os-amiga.c"
	OSHEADER="uade-os-amiga.h"
	ARCHFLAGS="$ARCHFLAGS -noixemul"
	UNIXSHELL=no
	usexmms=no
d172 6
a177 6
	echo
	echo "Configuring for MacOSX"
	SDL=yes
	ARCHFLAGS="$ARCHFLAGS -no-cpp-precomp"
	ARCHLIBS="-lpoll"
	echo "#define HAVE_MACOSX" >> config.h
d179 4
a182 3
	if test "$interaction" != "nooo"; then
	    interaction=yes
	fi
d184 4
a187 4
	if test "$interaction" != "nooo"; then
	    interaction=yes
	fi
	SOUNDSOURCE="sd-sound-solaris.c"
d190 2
a191 1
# Automatic checking for ALSA version 1.0.x
d197 1
a197 1
gcc -Wall -O2 -o testexe test.c 2>/dev/null && ALSA="yes"
d200 3
a202 5
# in conflict situation ALSA takes precedence over SDL.
if test "$FORCEALSA" = "yes"; then
    ALSA=yes
elif test "$FORCESDL" = "yes"; then
    SDL=yes
d204 17
a220 1
if test "$ALSA" = "yes"; then
d225 6
a230 1
elif test "$SDL" = "yes";then
d235 5
a246 1

d256 1
a256 1
 if test "$SOLARIS" = "yes";then
d272 1
a272 1
    MAKE=make
d274 1
a274 1
    MAKE=make
d348 1
a348 2
echo "Sound output with SDL                   : $SDL"
echo "Sound output with ALSA                  : $ALSA"
d417 1
@


1.98
log
@*** empty log message ***
@
text
@d10 2
d67 1
a67 1
		SDL=yes
d70 1
a70 1
		ALSA=yes
d175 9
d185 11
a195 1
if test "$SDL" = "yes";then
a200 5
if test "$ALSA" = "yes"; then
    AUDIOLIBS=-lasound
    SOUNDSOURCE="sd-sound-alsa.c"
    SOUNDHEADER="sd-sound-alsa.h"
fi
@


1.97
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=0.90
d105 2
@


1.96
log
@*** empty log message ***
@
text
@d126 4
d134 1
a134 4
    echo '#include "sd-sound-solaris.c"' > src/sd-sound.c;
    echo '#include "sd-sound-generic.h"' > src/sd-sound.h;
    echo '#include "uade-os-unix.c"' > osdep/uade-os.c;
    echo '#include "uade-os-unix.h"' > osdep/uade-os.h;
d139 2
a140 4
	echo '#include "sd-sound-sgi.c"' > src/sd-sound.c;
	echo '#include "sd-sound-sgi.h"' > src/sd-sound.h;
	echo '#include "uade-os-unix.c"' > osdep/uade-os.c;
	echo '#include "uade-os-unix.h"' > osdep/uade-os.h;
d146 4
a149 4
	echo '#include "sd-sound-ahi.c"' > src/sd-sound.c
	echo '#include "sd-sound-ahi.h"' > src/sd-sound.h
	echo '#include "uade-os-amiga.c"' > osdep/uade-os.c;
	echo '#include "uade-os-amiga.h"' > osdep/uade-os.h;
a159 2
	echo '#include "uade-os-unix.c"' > osdep/uade-os.c;
	echo '#include "uade-os-unix.h"' > osdep/uade-os.h;
a163 4
	echo '#include "sd-sound-oss.c"' > src/sd-sound.c;
	echo '#include "sd-sound-generic.h"' > src/sd-sound.h;
	echo '#include "uade-os-unix.c"' > osdep/uade-os.c;
	echo '#include "uade-os-unix.h"' > osdep/uade-os.h;
d168 1
a168 9
	echo '#include "sd-sound-solaris.c"' > src/sd-sound.c;
	echo '#include "sd-sound-generic.h"' > src/sd-sound.h;
	echo '#include "uade-os-unix.c"' > osdep/uade-os.c;
	echo '#include "uade-os-unix.h"' > osdep/uade-os.h;
else
	echo '#include "sd-sound-oss.c"' > src/sd-sound.c;
	echo '#include "sd-sound-generic.h"' > src/sd-sound.h;
	echo '#include "uade-os-unix.c"' > osdep/uade-os.c;
	echo '#include "uade-os-unix.h"' > osdep/uade-os.h;
d171 1
d175 2
a176 2
    echo '#include "sd-sound-sdl.c"' > src/sd-sound.c;
    echo '#include "sd-sound-sdl.h"' > src/sd-sound.h;
a177 1

d180 2
a181 2
    echo '#include "sd-sound-alsa.c"' > src/sd-sound.c;
    echo '#include "sd-sound-alsa.h"' > src/sd-sound.h;
d184 5
d361 1
@


1.95
log
@*** empty log message ***
@
text
@d93 2
a94 1
		echo " --with-sdl           Use SDL sound output rather than native sound output"
@


1.94
log
@*** empty log message ***
@
text
@d251 1
a251 1
    mandir="$prefix/man/man1"
@


1.93
log
@*** empty log message ***
@
text
@d241 1
d251 1
d292 1
d312 1
@


1.92
log
@*** empty log message ***
@
text
@d10 1
d67 3
a120 1
SOUNDLIBS=""
d123 2
d142 1
a142 1
	SOUNDLIBS="$UADEEXTRALIBS -lgen -laudio"
a184 1

d186 2
a187 2
    SDLFLAGS=`sdl-config --cflags`
    SDLLIBS=`sdl-config --libs`
d190 6
a195 3
else
    SDLFLAGS=""
    SDLLIBS=""
d298 1
d365 1
a365 2
    -e "s|{SDLFLAGS}|$SDLFLAGS|" -e "s|{SDLLIBS}|$SDLLIBS|" \
    -e "s|{SOUNDLIBS}|$SOUNDLIBS|" \
@


1.91
log
@*** empty log message ***
@
text
@a398 3
echo "ugly interaction remove"
interaction="no"

d400 1
a400 1
    echo "#define HAVE_SHELL_INTERACTION" >> config.h
@


1.90
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=0.81
@


1.89
log
@*** empty log message ***
@
text
@d5 1
a5 1
prefix=$HOME/.xmms
d72 3
d80 12
a91 8
		echo "Usage: --prefix=path if you don't want this installed in home dir."
	        echo "       --package-prefix=path file installation prefix (for package maintainers)"
		echo "       --no-plugin if you don't want to have an xmms plugin"
		echo "       --input-plugin-dir=path where path is the xmms input plugin"
		echo "                               directory"
		echo "       --mymods=path where path is the default mod directory for "
		echo "                     pwraps tk interface. Default path is homedir."
		echo "       --with-sdl use SDL rather than native audio for sound output."
@


1.88
log
@*** empty log message ***
@
text
@d214 6
a219 3
if test ! -x "$MAKE"; then
    echo FATAL: cannot find make
    exit 1
@


1.87
log
@*** empty log message ***
@
text
@d158 8
d175 4
a178 4
SDLFLAGS=`sdl-config --cflags`
SDLLIBS=`sdl-config --libs`
echo '#include "sd-sound-sdl.c"' > src/sd-sound.c;
echo '#include "sd-sound-sdl.h"' > src/sd-sound.h;
d180 2
a181 2
SDLFLAGS=""
SDLLIBS=""
d187 1
a187 1
ARCHFLAGS="$ARCHFLAGS -ffunction-sections"
d207 1
a207 1
MAKE="`which make`"
d210 1
a210 1
MAKE=make
d212 1
a212 1
MAKE=make
d236 1
a236 1
plugin=$xmmsinputplugindir
d251 1
a251 1
LHAREPLY="yes"
d253 7
a259 7
echo
echo "LHA archiver not found: UADE won't take advantage of lha archives"
echo "until 'lha' executable is placed into command execution path."
echo "You do not need to reinstall and/or recompile UADE if you later add"
echo "lha to command execution path.."
echo
LHAREPLY="no"
d274 1
a274 1
echo "Default module dir for pwrap.pl will be : $mymods"
d276 1
a276 1
echo "Default module dir for pwrap.pl will be : Users \$HOME"
@


1.86
log
@*** empty log message ***
@
text
@a295 1
    echo foo
@


1.85
log
@*** empty log message ***
@
text
@d295 11
a305 9
if test -z "$GLIB_CONFIG" ; then
    GLIB_CONFIG="glib-config"
fi
if test -z "$GTK_CONFIG" ; then
    GTK_CONFIG="gtk-config"
fi
if test -z "$XMMS_CONFIG" ; then
    XMMS_CONFIG="xmms-config"
fi
d307 6
a312 6
GLIBFLAGS=`$GLIB_CONFIG --cflags`
GLIBLIBS=`$GLIB_CONFIG --libs`
GTKFLAGS=`$GTK_CONFIG --cflags`
GTKLIBS=`$GTK_CONFIG --libs`
XMMSFLAGS=`$XMMS_CONFIG --cflags`
XMMSLIBS=`$XMMS_CONFIG --libs`
d314 2
a315 2
INCLUDEFLAG="-I$includedir"
LIBFLAG="-L$libdir"
d317 12
a328 11
sed -e "s|{INSTALLER}|$INSTALLTEST|" \
    -e "s|{GLIBFLAGS}|$GLIBFLAGS|" -e "s|{GLIBLIBS}|$GLIBLIBS|" \
    -e "s|{GTKFLAGS}|$GTKFLAGS|" -e "s|{GTKLIBS}|$GTKLIBS|" \
    -e "s|{XMMSFLAGS}|$XMMSFLAGS|" -e "s|{XMMSLIBS}|$XMMSLIBS|" \
    -e "s|{INCLUDEFLAG}|$INCLUDEFLAG|" -e "s|{LIBFLAG}|$LIBFLAG|" \
    -e "s|{PLUGINDIR}|$plugin|" \
    -e "s|{PACKAGEPREFIX}|$packageprefix|" \
    -e "s|{ARCHFLAGS}|$ARCHFLAGS|" \
    -e "s|{VERSION}|$VERSION|" \
    -e "s|{DEBUGFLAGS}|$debug_flags|" \
 plugindir/Makefile.in >plugindir/Makefile
@


1.84
log
@*** empty log message ***
@
text
@d97 5
a101 23
if test "$usexmms" = "yes"; then
if test -x "`which xmms-config`"; then
 echo > /dev/null
else
usexmms=no
echo "Couldn't find xmms-plugin => not compiling xmms-plugin!"
fi
fi

if [ -f src/sd-sound.c ];then
rm src/sd-sound.c
fi

if [ -f src/sd-sound.h ];then
rm src/sd-sound.h
fi

if [ -f osdep/uade-os.c ];then
rm osdep/uade-os.c
fi

if [ -f osdep/uade-os.h ];then
rm osdep/uade-os.h
@


1.83
log
@*** empty log message ***
@
text
@a223 1

@


1.82
log
@*** empty log message ***
@
text
@d203 10
a212 10
if test -x "$INSTALLTEST";then
echo
elif test "$SOLARIS" = "yes";then
echo
echo "Warning: ginstall not found, install might not work."
echo "If you do have ginstall make sure it is in your path."
echo
INSTALLTEST="`which install`"
else
INSTALLTEST="`which install`"
d216 1
a216 3
if test -x "$MAKE"; then
echo 
else
d225 4
@


1.81
log
@*** empty log message ***
@
text
@d223 1
a223 1
elif test -n "$OS" $$ test "$OS" = "Darwin"; then
@


1.80
log
@*** empty log message ***
@
text
@a213 3
if [ -f uadeinstall ];then
rm uadeinstall
fi
@


1.79
log
@*** empty log message ***
@
text
@d226 2
d229 1
@


1.78
log
@*** empty log message ***
@
text
@d272 4
a275 2
echo "" > strl.c
gcc -o strltest strltest.c 2>/dev/null || cp strlrep.c strl.c
@


1.77
log
@*** empty log message ***
@
text
@a378 3
echo "ugly xmms remove"
usexmms="no"

@


1.76
log
@*** empty log message ***
@
text
@d379 3
d396 3
@


1.75
log
@*** empty log message ***
@
text
@d44 9
d310 17
a326 6
GLIBFLAGS=`glib-config --cflags`
GLIBLIBS=`glib-config --libs`
GTKFLAGS=`gtk-config --cflags`
GTKLIBS=`gtk-config --libs`
XMMSFLAGS=`xmms-config --cflags`
XMMSLIBS=`xmms-config --libs`
@


1.74
log
@*** empty log message ***
@
text
@d35 9
d239 9
a247 3
libdir="$prefix/lib"
includedir="$prefix/include"
sharedir="$prefix/share"
@


1.73
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=0.80
@


1.72
log
@*** empty log message ***
@
text
@d313 2
@


1.71
log
@*** empty log message ***
@
text
@d12 1
d54 3
d304 1
d317 1
@


1.70
log
@*** empty log message ***
@
text
@d298 1
a364 3

sed -e "s|{ARCHFLAGS}|$ARCHFLAGS|" \
  decrunch/Makefile.in > decrunch/Makefile
@


1.69
log
@*** empty log message ***
@
text
@d50 3
d147 3
a149 1
	interaction=yes
@


1.68
log
@*** empty log message ***
@
text
@d11 1
d47 3
d143 6
d342 15
@


1.67
log
@*** empty log message ***
@
text
@d93 2
d136 1
a189 3

cp configure.h config.h
chmod u+w config.h
@


1.66
log
@*** empty log message ***
@
text
@d134 2
@


1.65
log
@*** empty log message ***
@
text
@d132 1
a132 5
	ARCHLIBS="-lpoll"
elif test -n "$OS" && test "$OS" = "Jaguar"; then
	echo
	echo "Configuring for MacOSX"
	SDL=yes
@


1.64
log
@*** empty log message ***
@
text
@d99 1
d132 1
a132 1
	ARCHFLAGS="-lpoll"
d137 1
a137 1
	ARCHFLAGS="-lpoll"
d159 1
a159 1
ARCHFLAGS="-ffunction-sections"
d295 1
a295 1
sed -e "s|{ARCHFLAGS}|$ARCHFLAGS|" \
@


1.63
log
@*** empty log message ***
@
text
@d127 10
@


1.62
log
@*** empty log message ***
@
text
@d296 7
@


1.61
log
@*** empty log message ***
@
text
@d175 4
@


1.60
log
@*** empty log message ***
@
text
@a67 2
OS="`uname`"

a75 3
if test -n "$OS" && test "$OS" = "MorphOS"; then
usexmms=no
fi
d94 2
d126 1
@


1.59
log
@*** empty log message ***
@
text
@d68 2
a101 2

OS="`uname`"
@


1.58
log
@*** empty log message ***
@
text
@d76 3
@


1.57
log
@*** empty log message ***
@
text
@d94 1
d125 1
d284 15
d301 2
a302 2
    echo "#include \"xmms-slave.c\"" > src/slave.c
    echo "#include \"xmms-slave.h\"" > src/slave.h
d304 1
a304 1
    echo "slave.o: slave.c slave.h xmms-slave.c xmms-slave.h" >> src/Makefile
d307 2
a308 2
    echo "" > src/slave.c
    echo "" > src/slave.h
d310 1
a310 1
    echo "slave.o: slave.c slave.h" >> src/Makefile
@


1.56
log
@*** empty log message ***
@
text
@a174 4
if test "$usexmms" = "yes"; then
    echo "#define HAVE_XMMS_SLAVE" >> config.h
fi

d281 15
@


1.55
log
@*** empty log message ***
@
text
@d175 4
@


1.54
log
@*** empty log message ***
@
text
@d229 1
d231 1
a231 1
echo "Use LHA                                 : $LHAREPLY"
@


1.53
log
@*** empty log message ***
@
text
@d229 1
@


1.52
log
@*** empty log message ***
@
text
@d12 2
a13 5



for _switch ; do
	case $_switch in
d15 1
a15 2
		prefix=`echo $1 | sed -n 's/--prefix=\(.*\)/\1/p'`
		shift;
d18 1
a18 2
                binprefix=`echo $1 | sed -n 's/--binprefix=\(.*\)/\1/p'`
                shift;
d21 1
a21 2
		docprefix=`echo $1 | sed -n 's/--docprefix=\(.*\)/\1/p'`
		shift;
d24 1
a24 1
		packageprefix=`echo $1 | sed -n 's/--package-prefix=\(.*\)/\1/p'`
a30 2
		else
			shift;
d34 1
a34 2
		xmmsinputplugindir=`echo $1 | sed -n 's/--input-plugin-dir=\(.*\)/\1/p'`
		shift;
d37 1
a37 1
		mymods=`echo $1 | sed -n 's/--mymods=\(.*\)/\1/p'`
a38 1
		shift;
a41 1
		shift;
a44 1
		shift;
a59 1
		shift;
a61 1
		shift;
@


1.51
log
@*** empty log message ***
@
text
@d15 1
a15 1
for _switch in "$*"; do
@


1.50
log
@*** empty log message ***
@
text
@d15 1
a15 1
for _switch ; do
@


1.49
log
@*** empty log message ***
@
text
@d116 4
a119 5
    echo '#include "sd-sound-solaris.c"' >> src/sd-sound.c;
    echo '#include "sd-sound-generic.h"' >> src/sd-sound.h;

    echo '#include "uade-os-unix.c"' >> osdep/uade-os.c;
    echo '#include "uade-os-unix.h"' >> osdep/uade-os.h;
d124 4
a127 4
	echo '#include "sd-sound-sgi.c"' >> src/sd-sound.c;
	echo '#include "sd-sound-sgi.h"' >> src/sd-sound.h;
	echo '#include "uade-os-unix.c"' >> osdep/uade-os.c;
	echo '#include "uade-os-unix.h"' >> osdep/uade-os.h;
d133 4
a136 4
	echo '#include "sd-sound-ahi.c"' >> src/sd-sound.c
	echo '#include "sd-sound-ahi.h"' >> src/sd-sound.h
	echo '#include "uade-os-amiga.c"' >> osdep/uade-os.c;
	echo '#include "uade-os-amiga.h"' >> osdep/uade-os.h;
d139 4
a142 4
	echo '#include "sd-sound-oss.c"' >> src/sd-sound.c;
	echo '#include "sd-sound-generic.h"' >> src/sd-sound.h;
	echo '#include "uade-os-unix.c"' >> osdep/uade-os.c;
	echo '#include "uade-os-unix.h"' >> osdep/uade-os.h;
@


1.48
log
@*** empty log message ***
@
text
@a11 2
for arg
do 
a12 4
if expr "$arg" : "--prefix=.*" > /dev/null;then 
    prefix=`echo $arg | sed -n 's/--prefix=\(.*\)/\1/p'`
    echo $prefix
fi
a13 10
if expr "$arg" : "--package-prefix=.*" > /dev/null;then 
    packageprefix=`echo $arg | sed -n 's/--package-prefix=\(.*\)/\1/p'`
    if test "$prefix" = "$HOME/.xmms"; then
	echo
	echo "with --package-prefix you must give a global installation prefix first..."
        echo "example: --prefix=/usr/local --package-prefix=/tmp/foobar"
	echo
	exit
    fi
fi
d15 66
a80 12
if expr "$arg" : "--mymods=.*" > /dev/null;then 
    mymods=`echo $arg | sed -n 's/--mymods=\(.*\)/\1/p'`
    mod=1
fi

if expr "$arg" : "--input-plugin-dir=.*" > /dev/null;then 
    xmmsinputplugindir=`echo $arg | sed -n 's/--input-plugin-dir=\(.*\)/\1/p'`
fi

if expr "$arg" : "--no-plugin" > /dev/null;then
    usexmms=no
fi
a88 20

fi

if test "$arg" = "--with-sdl";then
SDL=yes
fi

if test "$arg" = "--help";then
echo
echo "Usage: --prefix=path if you don't want this installed in /usr/local."
echo "       --package-prefix=path file installation prefix (for package maintainers)"
echo "       --no-plugin if you don't want to have an xmms plugin"
echo "       --input-plugin-dir=path where path is the xmms input plugin"
echo "                               directory"
echo "       --mymods=path where path is the default mod directory for "
echo "                     pwraps tk interface. Default path is homedir."
echo "       --with-sdl use SDL rather than native audio for sound output."
echo
exit 1
break
a89 3


done
@


1.47
log
@*** empty log message ***
@
text
@d281 1
a281 1
  src/decrunch/Makefile.in > src/decrunch/Makefile
@


1.46
log
@*** empty log message ***
@
text
@d61 1
@


1.45
log
@*** empty log message ***
@
text
@d278 3
@


1.44
log
@*** empty log message ***
@
text
@d93 1
d106 1
a106 2
else
    if test -n "$OS" && test "$OS" = "IRIX"; then
a110 1

a112 1

d115 9
a123 1
    else
a125 1

a127 1
    fi
a142 1
ARCHFLAGS= 
@


1.43
log
@*** empty log message ***
@
text
@d10 1
a127 2
echo
echo "...enabling SDL for sound output."
d224 1
@


1.42
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=0.73
@


1.41
log
@*** empty log message ***
@
text
@d6 1
d16 12
d229 1
a229 1
sed -e "s|{SYSDATADIR}|$uadedatadir|" \
d234 1
d260 1
@


1.40
log
@*** empty log message ***
@
text
@d69 9
d87 3
d97 4
d106 3
@


1.39
log
@*** empty log message ***
@
text
@d69 2
d86 1
d239 1
@


1.38
log
@*** empty log message ***
@
text
@d31 1
a31 1
if test -n "`which xmms-config`"; then
d72 16
a87 8
echo
echo "Configuring for Solaris." 
echo '#include "sd-sound-solaris.c"' >> src/sd-sound.c;
echo '#include "sd-sound-generic.h"' >> src/sd-sound.h;
SOLARIS=yes
else
echo '#include "sd-sound-oss.c"' >> src/sd-sound.c;
echo '#include "sd-sound-generic.h"' >> src/sd-sound.h;
d129 1
a129 1
if test -n "$MAKE"; then
d162 1
a162 1
if test -n "$LHA"; then
@


1.37
log
@*** empty log message ***
@
text
@d7 1
d14 1
a14 1
prefix=`echo $arg | sed -n 's/--prefix=\(.*\)/\1/p'`
d18 2
a19 2
mymods=`echo $arg | sed -n 's/--mymods=\(.*\)/\1/p'`
mod=1
d23 15
a37 1
xmmsinputplugindir=`echo $arg | sed -n 's/--input-plugin-dir=\(.*\)/\1/p'`
d47 3
d51 1
a51 1
echo "                pwraps tk interface. Default path is homedir."
d130 13
a142 9
uadedatadir="$prefix/uade"
bindir="$prefix/uade"
plugin="$HOME/.xmms/Plugins/Input"
docdir="$prefix/uade/uade-$VERSION"
else
uadedatadir="$prefix/share/uade"
bindir="$prefix/bin"
plugin=`xmms-config --input-plugin-dir`
docdir="$prefix/doc/uade-$VERSION"
d190 1
@


1.36
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=0.72
@


1.35
log
@*** empty log message ***
@
text
@d3 1
a3 1
VERSION=0.71
@


1.34
log
@*** empty log message ***
@
text
@d144 5
@


1.33
log
@Fixed pwraps RPM issues.
@
text
@d25 4
d34 1
d40 1
d47 4
d57 1
d61 1
d64 14
d198 3
a200 1
sed -e "s|{ARCHFLAGS}|$ARCHFLAGS|" src/Makefile.in > src/Makefile
@


1.32
log
@*** empty log message ***
@
text
@d6 1
a6 1
mymods=$HOME
d18 1
d122 1
d124 3
@


1.31
log
@*** empty log message ***
@
text
@d139 1
@


1.30
log
@*** empty log message ***
@
text
@d104 13
d124 1
@


1.29
log
@*** empty log message ***
@
text
@d7 2
d20 4
d94 4
@


1.28
log
@*** empty log message ***
@
text
@d94 1
a94 2
echo "Installer that will be used             : $INSTALLTEST"
echo "Make that will be used during the build : $MAKE"
a97 1
echo "Frontends will be installed in          : $bindir"
d99 2
@


1.27
log
@*** empty log message ***
@
text
@d3 2
d82 1
d87 1
d98 1
d107 1
d132 1
a133 1

@


1.26
log
@updated it to fix pwrap paths.
@
text
@a127 3
sed -e "s|{UADEDATADIR}|$uadedatadir|" \
    frontends/playuade/playuade.in >playuade
chmod 755 playuade
@


1.25
log
@*** empty log message ***
@
text
@d135 1
@


1.24
log
@*** empty log message ***
@
text
@a116 1
XMMSINPUTPLUGINDIR=`xmms-config --input-plugin-dir`
a123 1
    -e "s|{XMMSINPUTPLUGINDIR}|$XMMSINPUTPLUGINDIR|" \
@


1.23
log
@*** empty log message ***
@
text
@d106 1
a106 1
    -e "s|{FORMATSNAME}|$uadedatadir/deliplayers/uadeformats|" \
@


1.22
log
@*** empty log message ***
@
text
@d78 1
a78 1
bindir="$prefix/uade/bin"
d108 1
a108 1
    -e "s|{UADEEXENAME}|$uadedatadir/uade|" \
@


1.21
log
@*** empty log message ***
@
text
@d42 7
d139 2
@


1.20
log
@*** empty log message ***
@
text
@d72 1
d76 1
d86 1
d120 1
@


1.19
log
@*** empty log message ***
@
text
@a80 1
echo "#define UADEDATADIR \"$uadedatadir\"" >> config.h
@


1.18
log
@*** empty log message ***
@
text
@d99 1
@


1.17
log
@*** empty log message ***
@
text
@d97 2
@


1.16
log
@*** empty log message ***
@
text
@d97 1
a97 1
    osdep/uadeconfig.h.in > osdep/uadeconfig.h
@


1.15
log
@*** empty log message ***
@
text
@d97 1
a97 1
    src/uadeconfig.h.in > src/uadeconfig.h
@


1.14
log
@*** empty log message ***
@
text
@d3 2
a4 2
prefix=/usr/local

d12 4
d19 2
d42 1
a42 1

d49 1
a49 1
echo "Warning: ginstall not found, sysinstall might not work."
a65 3
echo Using $MAKE as make...

echo
d69 4
d74 3
a79 1
bindir="$prefix/bin"
d82 7
a88 4
echo "Global data directory will be (if installed with make sysinstall):"
echo 
echo $uadedatadir
echo 
a96 1
    -e "s|{FORMATSNAME}|$uadedatadir/deliplayers/uadeformats|" \
d122 2
@


1.13
log
@*** empty log message ***
@
text
@d85 1
@


1.12
log
@*** empty log message ***
@
text
@d106 1
a106 1
    playuade.in >playuade
d108 4
@


1.11
log
@*** empty log message ***
@
text
@d84 1
@


1.10
log
@*** empty log message ***
@
text
@d83 3
@


1.9
log
@*** empty log message ***
@
text
@d90 2
a91 2
INCLUDEFLAGS="-I$includedir"
LIBFLAGS="-L$libdir"
d98 1
a98 1
    -e "s|{INCLUDEFLAGS}|$INCLUDEFLAGS|" -e "s|{LIBFLAGS}|$LIBFLAGS|" \
d103 1
a103 1
chmod 755 playuade@


1.8
log
@*** empty log message ***
@
text
@d2 13
d16 5
d29 1
d40 1
a40 1
echo 
d65 8
a72 6
cd contrib
make >/dev/zero
./conf $* >/dev/null || exit
PREFIX="`./conf $*`"
cd ..
echo "#define UADEDATADIR \"$PREFIX\"" >> config.h
d75 1
a75 1
echo $PREFIX
d78 1
a78 1
sed -e "s|{SYSDATADIR}|$PREFIX|" \
d80 1
d90 2
d98 1
d100 4
@


1.7
log
@*** empty log message ***
@
text
@d51 1
a51 1
echo "#define UADEDATADIR $PREFIX" >> config.h
@


1.6
log
@*** empty log message ***
@
text
@d44 2
a45 2
cp configure.h configtemp.h
chmod u+w configtemp.h
d48 2
a49 1
./conf $1 >> ../configtemp.h || exit
d51 5
a55 1
mv -f configtemp.h config.h
d57 1
a57 1
sed -e "s|{SYSDATADIR}|`cat uadedatadirpath`|" \
a59 1
rm uadedatadirpath
@


1.5
log
@*** empty log message ***
@
text
@d20 1
a20 1
if test -n "$INSTALLTEST";then
@


1.4
log
@*** empty log message ***
@
text
@d21 1
a21 1
echo
a30 1

d35 7
a41 1
echo $INSTALLTEST >> uadeinstall
d43 1
d45 1
d52 19
@


1.3
log
@*** empty log message ***
@
text
@d2 35
a38 1
chmod u+w configtemp.h
d41 1
a41 1
./conf $* >> ../configtemp.h || exit
d44 1
@


1.2
log
@*** empty log message ***
@
text
@d7 1
a7 1
./conf $1 >> ../configtemp.h || exit
@


1.1
log
@Initial revision
@
text
@d4 1
@


1.1.1.1
log
@wheeeee...
@
text
@@
