envy24control: support gtk1 only in configure.in-gtk1

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2012-01-20 12:39:09 +01:00
parent 15aaaba184
commit 52384d8479
4 changed files with 1 additions and 52 deletions

View file

@ -6,7 +6,7 @@ envy24control_SOURCES = envy24control.c envy24control.h levelmeters.c midi.c \
profiles.c profiles.h midi.h config.c config.h
envy24control_LDADD = @ENVY24CONTROL_LIBS@
EXTRA_DIST = gitcompile envy24control.1 depcomp configure.in-gtk1 \
configure.in-gtk2 strstr_icase_blank.c new_process.c \
strstr_icase_blank.c new_process.c \
README.profiles
AUTOMAKE_OPTIONS = foreign

View file

@ -4,23 +4,6 @@ AC_PROG_CC
AC_PROG_INSTALL
AC_HEADER_STDC
AC_ARG_WITH(gtk2,
[ --with-gtk2=yes,no Build with GTK+2 (default = yes)],
with_gtk2="$withval", with_gtk2="yes")
if test "$with_gtk2" = "yes"; then
PKG_CHECK_MODULES(ENVY24CONTROL, gtk+-2.0 alsa >= 0.9.0)
else
AM_PATH_GTK(1.0.1)
AM_PATH_ALSA(1.0.0)
ENVY24CONTROL_CFLAGS="$CFLAGS $ALSA_CFLAGS $GTK_CFLAGS"
ENVY24CONTROL_LIBS="$LIBS $ALSA_LIBS $GTK_LIBS"
AC_SUBST(ENVY24CONTROL_CFLAGS)
AC_SUBST(ENVY24CONTROL_LIBS)
fi
AC_OUTPUT(Makefile)

View file

@ -1,9 +0,0 @@
AC_INIT(envy24control.c)
AM_INIT_AUTOMAKE(envy24control, 0.6.0)
AC_PROG_CC
AC_PROG_INSTALL
AC_HEADER_STDC
PKG_CHECK_MODULES(ENVY24CONTROL, gtk+-2.0 alsa >= 0.9.0)
AC_OUTPUT(Makefile)

View file

@ -1,25 +0,0 @@
#!/bin/bash
if test "x$AUTOMAKE_DIR" = "x"; then
if test -d /usr/local/share/automake; then
AUTOMAKE_DIR=/usr/local/share/automake
fi
if test -d /usr/share/automake; then
AUTOMAKE_DIR="/usr/share/automake"
fi
fi
for f in install-sh mkinstalldirs missing; do
cp -av $AUTOMAKE_DIR/$f .
done
aclocal $ACLOCAL_FLAGS
automake --foreign --add-missing --copy
touch depcomp
autoconf
export CFLAGS='-O2 -Wall -pipe -g'
echo "CFLAGS=$CFLAGS"
echo "./configure $@"
./configure $@
unset CFLAGS
make