problem with pong and configure



Hi,

I just downloaded pong and it's very cool :)

I'm trying to get it to work (in my own program) but unfortunatly
configure fails with the following error

checking for PonG >= 1.0.0... ./configure: line 2706: syntax error near
unexpected token `('
./configure: line 2706: `			if test $g_ve -gt $g_r_ve -o ( $g_ve -eq
$g_r_ve -a $g_ma -gt $g_r_ma ) -o ( $g_ve -eq $g_r_ve -a $g_ma -eq
$g_r_ma -a $g_pl -ge $g_r_pl ) ; then'

I'm pretty sure I followed the instructions I've attached my
configure.in and Makefile.am in case I screwed up there

Here is the bit of configure about pong I've stuck the arrows next to
line 2706

	echo $ac_n "checking for PonG >= $PONG_VERS""... $ac_c" 1>&6
echo "configure:2686: checking for PonG >= $PONG_VERS" >&5
	if test ! x$GNOME_CONFIG = x ; then	
		g_vers=`$GNOME_CONFIG --modversion pong`
		case $g_vers
		in
		pong-*)
			g_vers=`echo $g_vers|sed 's/pong-//'`
			g_r_ve=`echo $PONG_VERS|awk 'BEGIN { FS="." } { print $1 }'`
			g_r_ma=`echo $PONG_VERS|awk 'BEGIN { FS="." } { print $2 }'`
			g_r_pl=`echo $PONG_VERS|awk 'BEGIN { FS="." } { print $3 }'`
			g_ve=`echo $g_vers|awk 'BEGIN { FS="." } { print $1 }'`
			g_ma=`echo $g_vers|awk 'BEGIN { FS="." } { print $2 }'`
			g_pl=`echo $g_vers|awk 'BEGIN { FS="." } { print $3 }'`

			if test x$g_r_ve = x ; then g_r_ve=0 ;fi
			if test x$g_ve = x ; then g_ve=0 ;fi
			if test x$g_r_ma = x ; then g_r_ma=0 ;fi
			if test x$g_ma = x ; then g_ma=0 ;fi
			if test x$g_r_pl = x ; then g_r_pl=0 ;fi
			if test x$g_pl = x ; then g_pl=0 ;fi

>>>			if test $g_ve -gt $g_r_ve -o ( $g_ve -eq $g_r_ve -a $g_ma -gt
$g_r_ma ) -o ( $g_ve -eq $g_r_ve -a $g_ma -eq $g_r_ma -a $g_pl -ge
$g_r_pl ) ; then
				echo "$ac_t""ok" 1>&6
			else
				{ echo "configure: error: "found $g_ve.$g_ma.$g_pl requires
$g_r_ve.$g_r_ma.$g_r_pl"" 1>&2; exit 1; }
			fi
			g_line="pong"
			for n in `echo ` ; do
				g_line="$g_line pong_$n"
			done
			PONG_CFLAGS=`$GNOME_CONFIG --cflags $(echo $g_line)`
			PONG_LIBS=`$GNOME_CONFIG --libs $(echo $g_line)`
			
			
	
			unset g_ve
			unset g_ma
			unset g_pl
			unset g_r_ve
			unset g_r_ma
			unset g_r_pl
			
			;;
		*)
			{ echo "configure: error: Cannot find PonG, check
http://www.5z.com/jirka/pong.html"; 1>&2; exit 1; }
			;;
		esac
		unset g_vers
	else
		{ echo "configure: error: Cannot find PonG, check
http://www.5z.com/jirka/pong.html"; 1>&2; exit 1; }
	fi
	unset PONG_VERS


dose anyone know what's wrong? 

p.s is pong going to included with ximian gnome anytime soon?
 
thanks

-- 

rob
dnl Process this file with autoconf to produce a configure script.

AC_INIT(configure.in)

dnl
dnl Due to the sed scripts being split on 90 line
dnl blocks, this macro needs to be right at the beggining.
dnl
AM_PROG_XML_I18N_TOOLS

dnl For Pong
AM_PROG_PONG

AM_INIT_AUTOMAKE(gchord, 0.1)
AM_CONFIG_HEADER(config.h)

dnl Pick up the Gnome macros.
AM_ACLOCAL_INCLUDE(macros)

GNOME_INIT
AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC

GNOME_COMPILE_WARNINGS
GNOME_X_CHECKS

dnl More stuff for Pong
PONG_CHECK(1.0.0)

dnl Trying to add xml support
AM_PATH_XML2

dnl Add the languages which your application supports here.
ALL_LINGUAS=""
AM_GNU_GETTEXT

dnl Set PACKAGE_LOCALE_DIR in config.h.
if test "x${prefix}" = "xNONE"; then
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
else
  AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
fi

AC_OUTPUT([
Makefile
macros/Makefile
src/Makefile
intl/Makefile
po/Makefile.in
])

## Process this file with automake to produce Makefile.in

SUBDIRS = intl po macros src

EXTRA_DIST = \
	autogen.sh \
	gchord.glade

install-data-local:
	@$(NORMAL_INSTALL)
	if test -d $(srcdir)/pixmaps; then \
	  $(mkinstalldirs) $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
	  for pixmap in $(srcdir)/pixmaps/*; do \
	    if test -f $$pixmap; then \
	      $(INSTALL_DATA) $$pixmap $(DESTDIR)$(datadir)/pixmaps/$(PACKAGE); \
	    fi \
	  done \
	fi

dist-hook:
	if test -d pixmaps; then \
	  mkdir $(distdir)/pixmaps; \
	  for pixmap in pixmaps/*; do \
	    if test -f $$pixmap; then \
	      cp -p $$pixmap $(distdir)/pixmaps; \
	    fi \
	  done \
	fi

## Added for pong
pongdir  = $(datadir)/gchord
pong_in_files = gchord.pong.in
pong_DATA = $(pong_in_files:.pong.in=.pong)

@XML_I18N_MERGE_PONG_RULE@

schemadir  = $(sysconfdir)/gconf/schemas
schema_DATA = foobar.schema

@PONG_SCHEMA_RULE@



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]